/* Lyrii - Modern Social Writing App CSS */

:root {
    --primary-color: #8b5cf6;
    --primary-dark: #6d28d9;
    --primary-light: #a78bfa;
    --secondary-color: #6366f1;
    --secondary-dark: #4f46e5;
    --accent-color: #ec4899;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;

    --bg-primary: #0f0118;
    --bg-secondary: #1a0d2e;
    --bg-tertiary: #2d1b4e;
    --bg-hover: #3d2563;

    --text-primary: #f0e7ff;
    --text-secondary: #c4b5fd;
    --text-tertiary: #a78bfa;

    --border-color: #3d2563;
    --border-light: #4f3a7f;

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.5);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.6);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.7);

    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s ease-out;
}

/* Ensure all modals are hidden by default - highest priority */
.modal {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    height: 100%;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
}

body {
    overflow-x: hidden;
    overflow-y: auto;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-light);
}

/* App Layout */
#app {
    width: 100%;
    height: 100%;
}

.main-app {
    display: flex;
    height: 100%;
}

.main-app.hidden {
    display: none;
}

/* Sidebar Navigation */
.sidebar {
    width: 250px;
    background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    padding: 20px;
    overflow-y: auto;
}

.sidebar-header {
    margin-bottom: 30px;
}

.logo-mini {
    font-size: 20px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.sidebar-nav {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 8px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.nav-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(139, 92, 246, 0.1);
    transition: var(--transition);
    z-index: -1;
}

.nav-item:hover::before {
    left: 0;
}

.nav-item:hover {
    color: var(--primary-light);
}

.nav-item.active {
    color: var(--primary-light);
    background: rgba(139, 92, 246, 0.2);
}

.nav-icon {
    font-size: 20px;
}

.nav-badge {
    margin-left: auto;
    background: var(--danger-color);
    color: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    box-shadow: 0 0 8px rgba(239, 68, 68, 0.6);
    animation: badgePulse 2s infinite;
}

.nav-badge.hidden {
    display: none;
}

@keyframes badgePulse {

    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 0 8px rgba(239, 68, 68, 0.6);
    }

    50% {
        transform: scale(1.1);
        box-shadow: 0 0 12px rgba(239, 68, 68, 0.8);
    }
}

.sidebar-footer {
    margin-top: auto;
}

/* Main Content Area */
.content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Right Sidebar */
.right-sidebar {
    width: 280px;
    background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
    border-left: 1px solid var(--border-color);
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.notifications-panel {
    flex: 1;
}

.notifications-panel h4 {
    margin-bottom: 15px;
    color: var(--text-primary);
}

.notifications-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.notification-item {
    padding: 12px;
    background: var(--bg-tertiary);
    border-radius: 8px;
    border-left: 3px solid var(--primary-color);
    font-size: 13px;
    color: var(--text-secondary);
    animation: slideInRight 0.3s ease-out;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Pages */
.page {
    display: none;
    flex: 1;
    overflow-y: auto;
    padding: 30px;
}

.page.active {
    display: flex;
    flex-direction: column;
}

/* Feed Page */
#feedPage {
    flex-direction: column;
}

.feed-header {
    margin-bottom: 30px;
}

.feed-header h2 {
    font-size: 28px;
    margin-bottom: 15px;
    background: linear-gradient(135deg, var(--primary-light), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.feed-filters {
    display: flex;
    gap: 10px;
}

.filter-btn {
    padding: 8px 16px;
    border: 1px solid var(--border-color);
    background: transparent;
    color: var(--text-secondary);
    border-radius: 20px;
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-light);
}

.filter-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.feed-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    flex: 1;
    overflow-y: auto;
}

.feed-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
}

/* Post Card */
.post-card {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    transition: var(--transition);
    cursor: pointer;
    animation: fadeInUp 0.4s ease-out;
}

@keyframes fadeInUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.post-card:hover {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, var(--bg-tertiary) 0%, var(--bg-hover) 100%);
    box-shadow: var(--shadow-lg);
}

.post-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-tertiary);
    border: 2px solid var(--primary-color);
    object-fit: cover;
}

.author-meta {
    flex: 1;
}

.author-name {
    font-weight: 600;
    color: var(--text-primary);
}

.post-date {
    font-size: 12px;
    color: var(--text-tertiary);
}

.post-type-badge {
    display: inline-block;
    padding: 4px 10px;
    background: rgba(139, 92, 246, 0.2);
    border: 1px solid var(--primary-color);
    border-radius: 20px;
    font-size: 11px;
    color: var(--primary-light);
}

.post-card-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.post-card-content {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 16px;
    max-height: 200px;
    overflow-y: auto;
}

.post-card-images {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
    margin: 16px 0;
}

.post-card-images img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
}

.post-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    border-top: 1px solid var(--border-color);
    font-size: 13px;
}

.post-stats {
    display: flex;
    gap: 16px;
    color: var(--text-tertiary);
}

.post-stat {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Compose Page */
.compose-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
    width: 100%;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.compose-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 40px;
    width: 100%;
}

.compose-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 30px;
    color: var(--text-primary);
}

.compose-header {
    text-align: center;
    margin-bottom: 40px;
}

.compose-header h2 {
    font-size: 32px;
    margin-bottom: 10px;
    background: linear-gradient(135deg, var(--primary-light), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.compose-subtitle {
    color: var(--text-secondary);
}

.compose-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.compose-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.compose-section label {
    font-weight: 600;
    color: var(--text-primary);
}

.form-control {
    padding: 12px 16px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-family: inherit;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    background: var(--bg-hover);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

.editor {
    min-height: 300px;
    resize: vertical;
    font-family: 'Courier New', monospace;
}

.editor-wrapper {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.editor-stats {
    display: flex;
    gap: 20px;
    font-size: 12px;
    color: var(--text-tertiary);
    padding: 10px;
    background: var(--bg-secondary);
    border-radius: 6px;
}

.image-upload-area {
    border: 2px dashed var(--primary-color);
    border-radius: 8px;
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    background: rgba(139, 92, 246, 0.05);
}

.image-upload-area:hover {
    background: rgba(139, 92, 246, 0.1);
    border-color: var(--primary-light);
}

.upload-icon {
    font-size: 40px;
    display: block;
    margin-bottom: 10px;
}

.upload-placeholder p {
    color: var(--text-secondary);
}

.image-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 12px;
    margin-top: 15px;
}

.image-preview-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
}

.image-preview-item img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.image-preview-remove {
    position: absolute;
    top: 5px;
    right: 5px;
    background: var(--danger-color);
    color: white;
    border: none;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-description {
    padding: 8px;
    background: var(--bg-tertiary);
    border-top: 1px solid var(--border-color);
    font-size: 12px;
}

.image-description input {
    width: 100%;
    padding: 4px 8px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: var(--text-secondary);
    font-size: 12px;
}

.compose-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

/* Buttons */
/* Modern Premium Button Styles */
.btn {
    padding: 14px 32px;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    font-size: 14px;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: left 0.5s ease;
    z-index: -1;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, #8B5CF6, #7C3AED);
    color: white;
    box-shadow: 0 8px 24px rgba(139, 92, 246, 0.35), 0 0 1px rgba(139, 92, 246, 0.5);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(139, 92, 246, 0.45), 0 0 1px rgba(139, 92, 246, 0.6);
}

.btn-primary:active {
    transform: translateY(-1px);
}

.btn-secondary {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--bg-hover);
    border-color: var(--primary-color);
}

.btn-block {
    width: 100%;
    display: block;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 12px;
}

.btn-icon {
    background: none;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    font-size: 20px;
    padding: 8px;
    transition: var(--transition);
}

.btn-icon:hover {
    color: var(--primary-light);
}

/* Auth */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal.active {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
}

.modal.hidden {
    display: none !important;
}

.auth-container {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(15, 1, 24, 0.9), rgba(45, 27, 78, 0.9));
}

.auth-card {
    width: 100%;
    max-width: 400px;
    padding: 40px;
    background: linear-gradient(135deg, var(--bg-secondary), var(--bg-tertiary));
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: var(--shadow-xl);
}

.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.logo {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 10px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-icon {
    font-size: 40px;
}

.logo-subtitle {
    color: var(--text-secondary);
    font-size: 14px;
}

.auth-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    border-bottom: 1px solid var(--border-color);
}

.tab-btn {
    flex: 1;
    padding: 12px;
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-weight: 600;
    border-bottom: 2px solid transparent;
    transition: var(--transition);
}

.tab-btn.active {
    color: var(--primary-light);
    border-bottom-color: var(--primary-color);
}

.auth-form {
    display: none;
    flex-direction: column;
    gap: 16px;
}

.auth-form.active {
    display: flex;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-weight: 600;
    color: var(--text-primary);
}

.form-group input {
    padding: 12px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    transition: var(--transition);
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: var(--bg-hover);
}

.form-group select {
    padding: 12px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    transition: var(--transition);
    cursor: pointer;
    font-size: 14px;
}

.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    background: var(--bg-hover);
}

.form-group select option {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

/* Modal Content */
.modal-content {
    background: linear-gradient(135deg, var(--bg-secondary), var(--bg-tertiary));
    border: 1px solid var(--border-color);
    border-radius: 12px;
    max-width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-xl);
    position: relative;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 28px;
    cursor: pointer;
    transition: var(--transition);
}

.modal-close:hover {
    color: var(--accent-color);
}

/* Modern Premium Post Details Modal */
.post-detail-modal {
    width: 100%;
    max-width: 750px;
    padding: 0;
    background: linear-gradient(135deg, var(--bg-primary), rgba(139, 92, 246, 0.05));
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(139, 92, 246, 0.15), 0 0 1px rgba(139, 92, 246, 0.25);
    border: 1px solid rgba(139, 92, 246, 0.1);
}

.post-detail {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 48px;
}

/* Author section with premium styling */
.post-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-bottom: 32px;
    border-bottom: 2px solid rgba(139, 92, 246, 0.1);
    margin-bottom: 8px;
}

.post-author-info {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 1;
}

.post-author-info img {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 3px solid rgba(139, 92, 246, 0.2);
    object-fit: cover;
    transition: all 0.3s ease;
}

.post-author-info:hover img {
    border-color: rgba(139, 92, 246, 0.4);
    transform: scale(1.05);
}

.author-info {
    flex: 1;
}

.author-info h4 {
    margin: 0 0 6px 0;
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.author-info p {
    margin: 0;
    font-size: 13px;
    color: var(--text-tertiary);
    font-weight: 500;
}

/* Title styling */
.post-content h2 {
    font-size: 32px;
    font-weight: 800;
    margin: 0 0 20px 0;
    color: var(--text-primary);
    line-height: 1.3;
    letter-spacing: -0.5px;
}

/* Content text styling */
.post-text {
    color: var(--text-secondary);
    line-height: 1.8;
    white-space: pre-wrap;
    word-wrap: break-word;
    font-size: 16px;
    margin-bottom: 24px;
}

/* Images with premium styling */
.post-images {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 14px;
    margin: 28px 0;
    padding: 24px 0;
    border-top: 1px solid rgba(139, 92, 246, 0.08);
    border-bottom: 1px solid rgba(139, 92, 246, 0.08);
}

.post-images img {
    width: 100%;
    height: 220px;
    border-radius: 16px;
    object-fit: cover;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 2px solid rgba(139, 92, 246, 0.1);
    cursor: pointer;
}

.post-images img:hover {
    transform: scale(1.03) translateY(-2px);
    border-color: rgba(139, 92, 246, 0.3);
    box-shadow: 0 12px 32px rgba(139, 92, 246, 0.2);
}

/* Stats section - Premium card style */
.post-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    padding: 24px;
    margin: 24px 0;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.05), rgba(236, 72, 153, 0.02));
    border-radius: 16px;
    border: 1px solid rgba(139, 92, 246, 0.1);
    text-align: center;
}

/* Post Actions - Rating & Comments */
.post-actions {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-top: 32px;
    padding-top: 32px;
    border-top: 2px solid rgba(139, 92, 246, 0.1);
}

.rating-section {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.rating-section label {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.star-rating {
    display: flex;
    gap: 12px;
    align-items: center;
}

.star {
    font-size: 32px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
    filter: grayscale(100%) opacity(0.4);
    transform-origin: center;
}

.star:hover {
    filter: grayscale(0%) opacity(1);
    transform: scale(1.3) rotate(12deg);
}

.star.hover,
.star.active {
    filter: grayscale(0%) opacity(1);
    transform: scale(1.2);
}

.star svg {
    width: 28px;
    height: 28px;
    filter: drop-shadow(0 2px 4px rgba(139, 92, 246, 0.2));
}

.star.active svg {
    fill: #FFD700;
    stroke: #FFA500;
}

/* Comment textarea */
#ratingComment {
    min-height: 100px;
    padding: 16px;
    background: rgba(139, 92, 246, 0.03);
    border: 2px solid rgba(139, 92, 246, 0.1);
    border-radius: 12px;
    font-family: inherit;
    font-size: 15px;
    color: var(--text-primary);
    resize: vertical;
    transition: all 0.3s ease;
}

#ratingComment:hover {
    border-color: rgba(139, 92, 246, 0.2);
    background: rgba(139, 92, 246, 0.06);
}

#ratingComment:focus {
    border-color: rgba(139, 92, 246, 0.4);
    background: rgba(139, 92, 246, 0.08);
    outline: none;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

.collaborators-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.collaborator-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: var(--bg-tertiary);
    border-radius: 6px;
    border-left: 3px solid var(--primary-color);
}

.collaborator-item img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
}

/* Explore Page */
.explore-header {
    margin-bottom: 30px;
}

.search-box {
    position: relative;
    max-width: 500px;
}

.search-box input {
    width: 100%;
    padding: 12px 16px;
    padding-right: 40px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    transition: var(--transition);
}

.search-box input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: var(--bg-hover);
}

.search-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-tertiary);
}

.search-results {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
}

.search-results.hidden {
    display: none;
}

/* Add this to styles.css */
.users-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 20px;
    max-width: 100%;
}

.user-card {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(236, 72, 153, 0.08));
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 12px;
    padding: 16px;
    text-align: left;
    transition: all 0.3s ease;
    display: grid;
    grid-template-columns: 60px 1fr auto;
    grid-template-rows: auto auto;
    align-items: center;
    gap: 12px;
    width: 100%;
}

.user-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(139, 92, 246, 0.15);
}

.user-card img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(139, 92, 246, 0.3);
    flex-shrink: 0;
    grid-row: 1 / 3;
}

.user-card-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    grid-column: 2;
}

.user-card-bio {
    font-size: 13px;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    grid-column: 2;
}

.user-card>div:nth-child(2) {
    display: contents;
}

.user-card-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
    grid-column: 3;
    grid-row: 1 / 3;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.explore-content {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.explore-section {
    width: 100%;
    overflow: hidden;
}

.explore-section h3 {
    margin-bottom: 15px;
    color: var(--text-primary);
}

.posts-grid,
.writers-grid {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding-bottom: 12px;
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: rgba(139, 92, 246, 0.4) transparent;
}

.posts-grid::-webkit-scrollbar,
.writers-grid::-webkit-scrollbar {
    height: 6px;
}

.posts-grid::-webkit-scrollbar-track,
.writers-grid::-webkit-scrollbar-track {
    background: transparent;
}

.posts-grid::-webkit-scrollbar-thumb,
.writers-grid::-webkit-scrollbar-thumb {
    background: rgba(139, 92, 246, 0.4);
    border-radius: 3px;
}

.posts-grid::-webkit-scrollbar-thumb:hover,
.writers-grid::-webkit-scrollbar-thumb:hover {
    background: rgba(139, 92, 246, 0.6);
}

/* Writer Card Styling */
.writer-card {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.08), rgba(236, 72, 153, 0.05));
    border: 1px solid rgba(139, 92, 246, 0.15);
    border-radius: 16px;
    padding: 20px;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
    min-width: 280px;
    flex-shrink: 0;
}

.writer-card:hover {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.12), rgba(236, 72, 153, 0.08));
    border-color: rgba(139, 92, 246, 0.25);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(139, 92, 246, 0.15);
}

.writer-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(139, 92, 246, 0.2);
    background: linear-gradient(135deg, #a78bfa, #ec4899);
}

.writer-info {
    flex: 1;
    width: 100%;
}

.writer-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 8px 0 4px 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.writer-bio {
    font-size: 13px;
    color: var(--text-secondary);
    margin: 0 0 12px 0;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.writer-stats {
    display: flex;
    justify-content: space-around;
    font-size: 12px;
    color: var(--text-tertiary);
    padding-top: 12px;
    border-top: 1px solid rgba(139, 92, 246, 0.1);
    margin-bottom: 12px;
}

.writer-stats span {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.follow-writer-btn {
    width: 100%;
}

/* Messages Page */
.messages-container {
    display: flex;
    gap: 20px;
    flex: 1;
    height: 100%;
}

.conversations-panel {
    width: 280px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.conversations-header {
    padding: 15px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.conversations-header h3 {
    margin: 0;
}

.conversations-list {
    flex: 1;
    overflow-y: auto;
}

.conversation-item {
    padding: 12px 15px;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}

.conversation-item:hover {
    background: var(--bg-tertiary);
}

.conversation-item.active {
    background: rgba(139, 92, 246, 0.2);
    border-left: 3px solid var(--primary-color);
}

.conversation-user {
    display: flex;
    align-items: center;
    gap: 10px;
}

.conversation-user img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.conversation-info {
    flex: 1;
}

.conversation-name {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 14px;
}

.conversation-time {
    font-size: 12px;
    color: var(--text-tertiary);
}

.conversation-badge {
    position: absolute;
    top: 12px;
    right: 10px;
    background: var(--danger-color);
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
}

.chat-panel {
    flex: 1;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.no-chat-selected {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-tertiary);
}

.chat-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.05), rgba(236, 72, 153, 0.03));
}

.chat-header.hidden {
    display: none;
}

.chat-user-pic {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border-color);
}

.chat-user-info {
    flex: 1;
}

.chat-user-info h4 {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
}

.chat-content {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.chat-message {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 10px;
    animation: fadeInUp 0.3s ease-out;
}

.chat-message.own {
    align-items: flex-end;
}

.message-sender {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    padding: 0 4px;
}

.message-sender .verified-tick {
    color: #10b981;
    margin-left: 4px;
    font-weight: bold;
}

.message-bubble {
    max-width: 60%;
    padding: 12px 16px;
    border-radius: 8px;
    word-wrap: break-word;
}

.chat-message:not(.own) .message-bubble {
    background: var(--bg-tertiary);
    color: var(--text-secondary);
}

.chat-message.own .message-bubble {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
}

.chat-input {
    padding: 15px;
    border-top: 1px solid var(--border-color);
    position: relative;
}

.message-form {
    display: flex;
    gap: 10px;
}

#messageText {
    flex: 1;
    padding: 10px 14px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-primary);
}

.emoji-btn {
    padding: 8px;
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.emoji-btn:hover {
    color: var(--primary-color);
}

.emoji-picker {
    position: absolute;
    bottom: 60px;
    left: 15px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 10px;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 8px;
    width: 280px;
    max-height: 250px;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: var(--shadow-lg);
}

.emoji-picker.hidden {
    display: none;
}

.emoji-item {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    border-radius: 6px;
    transition: var(--transition);
    background: var(--bg-tertiary);
    border: 1px solid transparent;
}

.emoji-item:hover {
    background: var(--bg-hover);
    border-color: var(--primary-color);
    transform: scale(1.1);
}

/* Profile Page - New Design */
.profile-wrapper {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.profile-header-new {
    margin-bottom: 40px;
    position: relative;
}

.profile-header-bg {
    width: 100%;
    height: 250px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.8) 0%, rgba(236, 72, 153, 0.6) 100%);
    border-radius: 16px;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
}

.profile-header-content {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: flex-end;
    gap: 40px;
    padding: 40px;
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
    border: 1px solid var(--border-color);
    border-top: none;
    border-radius: 0 0 16px 16px;
    margin-top: 180px;
}

.profile-pic-container {
    position: relative;
    flex-shrink: 0;
}

.profile-pic-large {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    border: 6px solid var(--bg-secondary);
    object-fit: cover;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    margin-top: -120px;
}

.upload-photo-btn {
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--primary-color);
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.4);
}

.upload-photo-btn:hover {
    background: var(--primary-dark);
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(139, 92, 246, 0.6);
}

.profile-header-info {
    flex: 1;
    padding-bottom: 20px;
}

.profile-username {
    font-size: 32px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 8px;
    line-height: 1.2;
}

.profile-bio {
    font-size: 15px;
    color: var(--text-secondary);
    margin-bottom: 24px;
    line-height: 1.6;
}

.profile-stats-row {
    display: flex;
    gap: 32px;
    margin-bottom: 24px;
}

.stat-box {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.stat-number {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-light);
    line-height: 1;
}

.stat-name {
    font-size: 13px;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 4px;
}

.profile-content-new {
    padding: 40px 20px;
}

.profile-section-new {
    margin-bottom: 60px;
}

.section-header {
    margin-bottom: 32px;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 16px;
}

.section-header h2 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.section-header p {
    font-size: 14px;
    color: var(--text-secondary);
}

.profile-post-card {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.profile-post-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(139, 92, 246, 0.2);
}

.profile-post-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
}

.profile-post-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    flex: 1;
    line-height: 1.4;
}

.profile-post-type {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    color: var(--primary-light);
    background: rgba(139, 92, 246, 0.1);
    padding: 4px 10px;
    border-radius: 4px;
    text-transform: uppercase;
    white-space: nowrap;
    flex-shrink: 0;
}

.profile-post-preview {
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 1.6;
    margin: 0 0 12px 0;
    flex: 1;
}

.profile-post-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    border-top: 1px solid var(--border-color);
    font-size: 12px;
    color: var(--text-tertiary);
}

.profile-post-date {
    flex-shrink: 0;
}

.profile-post-stats {
    display: flex;
    gap: 16px;
    flex-shrink: 0;
}

.posts-grid-new {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 20px;
}

.badges-grid-new {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 16px;
}

.badge-item {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(236, 72, 153, 0.08));
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
}

.badge-item:hover {
    border-color: var(--primary-color);
    transform: translateY(-6px);
    box-shadow: 0 8px 20px rgba(139, 92, 246, 0.2);
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.15), rgba(236, 72, 153, 0.1));
}

.badge-icon {
    font-size: 48px;
    margin-bottom: 12px;
    display: block;
}

.badge-name {
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--text-primary);
    font-size: 13px;
}

.badge-level {
    font-size: 11px;
    color: var(--text-tertiary);
}

.memory-item {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 16px;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}

.memory-item:hover {
    border-color: var(--primary-color);
}

.memory-item.pinned {
    border-color: var(--primary-color);
    background: rgba(139, 92, 246, 0.1);
}

.memory-pin {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 16px;
}

.memory-title {
    font-weight: 600;
    margin-bottom: 8px;
}

.memory-content {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.memory-type {
    display: inline-block;
    margin-top: 10px;
    padding: 4px 8px;
    background: rgba(139, 92, 246, 0.2);
    border-radius: 4px;
    font-size: 11px;
    color: var(--primary-light);
}

/* Editor Modal */
.editor-modal {
    width: 95%;
    height: 95vh;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.editor-header {
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.active-users {
    display: flex;
    gap: 8px;
    align-items: center;
}

.active-user {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid var(--primary-color);
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.editor-main {
    display: flex;
    flex: 1;
    overflow: hidden;
}

.shared-editor {
    flex: 1;
    padding: 20px;
    background: var(--bg-primary);
    color: var(--text-primary);
    border: none;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    line-height: 1.6;
    resize: none;
}

.shared-editor:focus {
    outline: none;
}

.editor-sidebar {
    width: 280px;
    background: var(--bg-secondary);
    border-left: 1px solid var(--border-color);
    padding: 20px;
    overflow-y: auto;
}

.contributions-history {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contributions-history h4 {
    margin-bottom: 8px;
}

.contribution-item {
    padding: 8px 12px;
    background: var(--bg-tertiary);
    border-left: 3px solid var(--primary-color);
    border-radius: 4px;
    font-size: 12px;
}

.contribution-user {
    font-weight: 600;
    color: var(--text-primary);
}

.contribution-change {
    font-size: 11px;
    color: var(--text-tertiary);
}

/* Toast Notification */
.toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 16px 20px;
    background: var(--primary-color);
    color: white;
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    display: none;
    z-index: 2000;
    animation: slideInUp 0.3s ease-out;
}

.toast.show {
    display: block;
}

/* Loading */
.loader {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.loader.hidden {
    display: none;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--border-color);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Edit Profile Modal */
.edit-profile-modal {
    width: 100%;
    max-width: 500px;
    padding: 30px;
}

.edit-profile-modal h2 {
    margin-bottom: 20px;
}

.edit-profile-modal form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Add Memory Modal */
.add-memory-modal {
    width: 100%;
    max-width: 500px;
    padding: 30px;
}

.add-memory-modal h2 {
    margin-bottom: 20px;
}

.add-memory-modal form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Landing Page Styles */
.landing-page {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: stretch;
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    z-index: 10;
    overflow: hidden;
    opacity: 1;
    transition: opacity 0.3s ease-out;
    pointer-events: auto;
    visibility: visible;
}

.landing-page.hidden {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    z-index: -100 !important;
    position: fixed !important;
    top: -9999px !important;
}

/* Landing Wrapper - Two Column Layout */
.landing-wrapper {
    display: flex;
    width: 100%;
    height: 100%;
    position: relative;
    z-index: 10;
}

.landing-content {
    position: relative;
    flex: 1;
    text-align: center;
    padding: 60px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow-y: auto;
    animation: fadeInLeft 0.8s ease-out;
}

/* Auth Section on Landing Page */
.landing-auth-section {
    flex: 0 0 420px;
    background: rgba(26, 13, 46, 0.8);
    backdrop-filter: blur(10px);
    border-left: 1px solid var(--border-color);
    padding: 40px 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-y: auto;
    animation: fadeInRight 0.8s ease-out;
}

.auth-card-landing {
    width: 100%;
    max-width: 350px;
}

.auth-card-landing .auth-header {
    margin-bottom: 30px;
    text-align: center;
}

.auth-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.auth-subtitle {
    color: var(--text-secondary);
    font-size: 14px;
}

.landing-header {
    margin-bottom: 60px;
    animation: fadeInDown 0.8s ease-out;
}

.logo-container {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.logo-icon-large {
    font-size: 80px;
    animation: floatBounce 3s ease-in-out infinite;
    display: inline-block;
}

.landing-title {
    font-size: 64px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-color) 50%, var(--secondary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
    letter-spacing: -1px;
}

.landing-tagline {
    font-size: 24px;
    color: var(--text-secondary);
    margin-top: 15px;
    font-weight: 300;
    letter-spacing: 0.5px;
}

.landing-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
    margin-bottom: 50px;
}

.feature-card {
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 30px 20px;
    transition: var(--transition);
    animation: slideUpCard 0.6s ease-out both;
}

.feature-card:nth-child(1) {
    animation-delay: 0.1s;
}

.feature-card:nth-child(2) {
    animation-delay: 0.2s;
}

.feature-card:nth-child(3) {
    animation-delay: 0.3s;
}

.feature-card:nth-child(4) {
    animation-delay: 0.4s;
}

.feature-card:hover {
    background: rgba(139, 92, 246, 0.2);
    border-color: var(--primary-color);
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(139, 92, 246, 0.3);
}

.feature-icon {
    font-size: 48px;
    margin-bottom: 15px;
    display: inline-block;
    transition: transform 0.3s ease-out;
}

.feature-card:hover .feature-icon {
    transform: scale(1.2) rotate(10deg);
}

.feature-card h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.feature-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.landing-cta {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-bottom: 40px;
    animation: fadeIn 1s ease-out 0.5s both;
}

.btn-lg {
    padding: 15px 40px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-light);
    transition: var(--transition);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.landing-footer {
    color: var(--text-tertiary);
    font-size: 14px;
}

.landing-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    z-index: 0;
}

.floating-spark {
    position: absolute;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(40px);
}

.spark-1 {
    width: 150px;
    height: 150px;
    top: 10%;
    left: 5%;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.2) 0%, transparent 70%);
    animation: float 8s ease-in-out infinite;
}

.spark-2 {
    width: 120px;
    height: 120px;
    top: 20%;
    right: 10%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, transparent 70%);
    animation: float 10s ease-in-out infinite 1s;
}

.spark-3 {
    width: 100px;
    height: 100px;
    bottom: 15%;
    left: 10%;
    background: radial-gradient(circle, rgba(236, 72, 153, 0.1) 0%, transparent 70%);
    animation: float 12s ease-in-out infinite 2s;
}

.spark-4 {
    width: 130px;
    height: 130px;
    bottom: 10%;
    right: 8%;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.15) 0%, transparent 70%);
    animation: float 9s ease-in-out infinite 1.5s;
}

/* Keyframe Animations */
@keyframes floatBounce {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px) translateX(0px);
        opacity: 0.3;
    }

    50% {
        transform: translateY(-30px) translateX(20px);
        opacity: 0.6;
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUpCard {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Smooth button transitions */
.btn {
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

/* Modal Animations */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    align-items: center;
    justify-content: center;
    z-index: 1001;
    animation: fadeIn 0.3s ease-out;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 30px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideInUp 0.3s ease-out;
}

/* ============================================
   NEW MODERN LANDING PAGE STYLES
   ============================================ */

.landing-page {
    position: relative;
    width: 100%;
    height: 100%;
    overflow-y: auto;
    background: var(--bg-primary);
}

.landing-page.hidden {
    display: none;
}

/* Animated Background */
.landing-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: radial-gradient(circle at 20% 50%, rgba(139, 92, 246, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(236, 72, 153, 0.1) 0%, transparent 50%),
        var(--bg-primary);
    overflow: hidden;
}

/* Floating sparks animation */
.floating-spark {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(139, 92, 246, 0.6);
    border-radius: 50%;
    animation: float-spark linear infinite;
}

.spark-1 {
    top: 20%;
    left: 10%;
    animation-duration: 6s;
    animation-delay: 0s;
}

.spark-2 {
    top: 60%;
    left: 20%;
    animation-duration: 8s;
    animation-delay: 1s;
}

.spark-3 {
    top: 40%;
    left: 80%;
    animation-duration: 7s;
    animation-delay: 2s;
}

.spark-4 {
    top: 80%;
    left: 90%;
    animation-duration: 9s;
    animation-delay: 0.5s;
}

.spark-5 {
    top: 30%;
    left: 50%;
    animation-duration: 7s;
    animation-delay: 1.5s;
}

.spark-6 {
    top: 70%;
    left: 60%;
    animation-duration: 8s;
    animation-delay: 0.8s;
}

@keyframes float-spark {

    0%,
    100% {
        transform: translateY(0px) translateX(0px);
        opacity: 0.6;
    }

    25% {
        transform: translateY(-20px) translateX(10px);
        opacity: 0.8;
    }

    50% {
        transform: translateY(-40px) translateX(-10px);
        opacity: 0.4;
    }

    75% {
        transform: translateY(-20px) translateX(20px);
        opacity: 0.7;
    }
}

/* Gradient blobs */
.gradient-blob {
    position: absolute;
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    filter: blur(80px);
    opacity: 0.3;
    animation: blob-move 8s infinite;
}

.blob-1 {
    width: 300px;
    height: 300px;
    background: linear-gradient(45deg, #8b5cf6, #ec4899);
    top: 10%;
    left: 5%;
    animation-delay: 0s;
}

.blob-2 {
    width: 250px;
    height: 250px;
    background: linear-gradient(45deg, #ec4899, #8b5cf6);
    top: 60%;
    right: 5%;
    animation-delay: 2s;
}

.blob-3 {
    width: 280px;
    height: 280px;
    background: linear-gradient(45deg, #6366f1, #8b5cf6);
    bottom: 10%;
    left: 50%;
    animation-delay: 4s;
}

@keyframes blob-move {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
    }

    25% {
        transform: translate(20px, -30px) rotate(90deg);
    }

    50% {
        transform: translate(-10px, 20px) rotate(180deg);
    }

    75% {
        transform: translate(-30px, -10px) rotate(270deg);
    }
}

/* Navigation Header - Premium Glassmorphic Design */
.landing-nav-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 72px;
    margin: 16px 24px 0;
    background: linear-gradient(135deg,
            rgba(139, 92, 246, 0.12) 0%,
            rgba(236, 72, 153, 0.08) 50%,
            rgba(99, 102, 241, 0.12) 100%);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid transparent;
    border-radius: 20px;
    z-index: 100;
    animation: navFloatIn 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow:
        0 8px 32px rgba(139, 92, 246, 0.15),
        0 0 0 1px rgba(139, 92, 246, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

/* Animated gradient border effect */
.landing-nav-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 1px;
    border-radius: 20px;
    background: linear-gradient(135deg,
            rgba(139, 92, 246, 0.5) 0%,
            rgba(236, 72, 153, 0.4) 25%,
            rgba(99, 102, 241, 0.3) 50%,
            rgba(236, 72, 153, 0.4) 75%,
            rgba(139, 92, 246, 0.5) 100%);
    background-size: 300% 300%;
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    animation: borderShimmer 4s ease-in-out infinite;
    pointer-events: none;
}

/* Shimmer highlight sweep effect */
.landing-nav-header::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent 0%,
            rgba(255, 255, 255, 0.08) 50%,
            transparent 100%);
    animation: shimmerSweep 4s ease-in-out infinite;
    pointer-events: none;
}

@keyframes navFloatIn {
    0% {
        transform: translateY(-120%);
        opacity: 0;
    }

    60% {
        transform: translateY(8px);
        opacity: 1;
    }

    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes borderShimmer {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

@keyframes shimmerSweep {
    0% {
        left: -100%;
    }

    50%,
    100% {
        left: 100%;
    }
}

.nav-container {
    height: 100%;
    padding: 0 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 14px;
    cursor: pointer;
    padding: 8px 16px;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.nav-logo:hover {
    background: rgba(139, 92, 246, 0.15);
    transform: scale(1.02);
}

.logo-icon {
    font-size: 32px;
    animation: logoFloat 3s ease-in-out infinite;
    filter: drop-shadow(0 0 8px rgba(139, 92, 246, 0.4));
}

@keyframes logoFloat {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    25% {
        transform: translateY(-3px) rotate(-5deg);
    }

    75% {
        transform: translateY(-3px) rotate(5deg);
    }
}

@keyframes pulse-icon {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

.logo-text {
    font-size: 26px;
    font-weight: 800;
    background: linear-gradient(135deg, #a78bfa, #ec4899, #8b5cf6, #a78bfa);
    background-size: 300% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientFlow 4s ease-in-out infinite;
    letter-spacing: -0.5px;
    text-shadow: 0 0 40px rgba(139, 92, 246, 0.3);
}

@keyframes gradientFlow {
    0% {
        background-position: 0% center;
    }

    50% {
        background-position: 100% center;
    }

    100% {
        background-position: 0% center;
    }
}

@keyframes gradient-shift {
    0% {
        background-position: 0% center;
    }

    100% {
        background-position: 200% center;
    }
}

.nav-buttons {
    display: flex;
    gap: 12px;
    align-items: center;
}

.nav-btn {
    padding: 12px 28px;
    border: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    background: transparent;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.3px;
}

.nav-btn-login {
    color: rgba(255, 255, 255, 0.85);
    background: rgba(139, 92, 246, 0.08);
    border: 1px solid rgba(139, 92, 246, 0.25);
    backdrop-filter: blur(8px);
}

.nav-btn-login::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(236, 72, 153, 0.15));
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 12px;
}

.nav-btn-login:hover {
    border-color: rgba(139, 92, 246, 0.5);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(139, 92, 246, 0.2);
}

.nav-btn-login:hover::before {
    opacity: 1;
}

.nav-btn-signup {
    background: linear-gradient(135deg, #8b5cf6 0%, #a855f7 50%, #ec4899 100%);
    background-size: 200% 200%;
    color: white;
    border: none;
    box-shadow:
        0 4px 16px rgba(139, 92, 246, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    animation: signupGlow 3s ease-in-out infinite;
}

.nav-btn-signup::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent 0%,
            rgba(255, 255, 255, 0.25) 50%,
            transparent 100%);
    transition: left 0.5s ease;
}

.nav-btn-signup:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow:
        0 12px 32px rgba(139, 92, 246, 0.45),
        0 0 20px rgba(236, 72, 153, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.nav-btn-signup:hover::before {
    left: 100%;
}

@keyframes signupGlow {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

/* Landing Wrapper */
.landing-wrapper {
    padding: 0;
    max-width: 100%;
    margin: 0 auto;
    position: relative;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

/* Background Decorations */
.bg-decoration {
    position: fixed;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    pointer-events: none;
    z-index: 0;
}

.bg-deco-1 {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.3), rgba(236, 72, 153, 0.2));
    top: -100px;
    left: -100px;
    animation: float-deco 8s ease-in-out infinite;
}

.bg-deco-2 {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.25), rgba(139, 92, 246, 0.15));
    bottom: 100px;
    right: -50px;
    animation: float-deco 10s ease-in-out infinite 2s;
}

.bg-deco-3 {
    width: 350px;
    height: 350px;
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.2), rgba(99, 102, 241, 0.15));
    top: 50%;
    right: 5%;
    animation: float-deco 12s ease-in-out infinite 4s;
}

@keyframes float-deco {

    0%,
    100% {
        transform: translateY(0px) translateX(0px);
    }

    25% {
        transform: translateY(-30px) translateX(20px);
    }

    50% {
        transform: translateY(-60px) translateX(-20px);
    }

    75% {
        transform: translateY(-30px) translateX(20px);
    }
}

/* New Landing Page - Fresh Design */
.landing-hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    min-height: 100vh;
    padding: 120px 60px;
    max-width: 1600px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
}

/* Hero Content - Left Side */
.hero-content {
    display: flex;
    flex-direction: column;
    gap: 32px;
    animation: fadeInLeft 0.8s ease-out;
}

.hero-top {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.hero-title {
    font-size: 64px;
    font-weight: 800;
    line-height: 1.2;
    color: var(--text-primary);
    margin: 0;
    letter-spacing: -1px;
    animation: slideInUp 0.8s ease-out 0.1s backwards;
}

.hero-tagline {
    font-size: 18px;
    color: var(--primary-light);
    font-weight: 600;
    margin: 0;
    animation: fadeInUp 0.8s ease-out 0.2s backwards;
}

.hero-description {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-secondary);
    max-width: 480px;
    margin: 0;
    animation: fadeInUp 0.8s ease-out 0.3s backwards;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    animation: fadeInUp 0.8s ease-out 0.4s backwards;
    margin-top: 8px;
}

.btn-primary,
.btn-secondary {
    padding: 14px 32px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, #a78bfa 0%, #ec4899 100%);
    color: white;
    box-shadow: 0 12px 24px rgba(139, 92, 246, 0.3);
}

.btn-primary:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 32px rgba(139, 92, 246, 0.4);
}

.btn-secondary {
    background: rgba(139, 92, 246, 0.1);
    color: var(--primary-light);
    border: 1px solid rgba(139, 92, 246, 0.3);
}

.btn-secondary:hover {
    background: rgba(139, 92, 246, 0.15);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.hero-bottom-info {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 16px;
    animation: fadeInUp 0.8s ease-out 0.5s backwards;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: var(--text-secondary);
}

.info-icon {
    font-size: 24px;
    animation: float 3s ease-in-out infinite;
}

/* Hero Badge */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    width: fit-content;
    padding: 12px 20px;
    background: rgba(139, 92, 246, 0.15);
    border: 1px solid rgba(139, 92, 246, 0.4);
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-light);
    animation: slideInUp 0.6s ease-out;
}

.badge-pulse {
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.3);
        opacity: 0.7;
    }
}

/* Main Title with Half-Text Purple Animation */
.hero-title-main {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.4;
    color: var(--text-primary);
    margin: 0 0 20px 0;
    letter-spacing: -0.5px;
    max-width: 550px;
    animation: slideInUp 0.8s ease-out 0.1s backwards;
}

.title-gradient {
    background: linear-gradient(90deg, var(--text-primary) 0%, var(--text-primary) 50%, var(--primary-color) 50%, var(--primary-color) 100%);
    background-size: 200% 100%;
    background-position: 100% 0;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: colorShift 3s ease-in-out infinite;
}

@keyframes colorShift {

    0%,
    100% {
        background-position: 100% 0;
    }

    50% {
        background-position: 0% 0;
    }
}

/* Visual Divider */
.hero-visual-divider {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #a78bfa, #ec4899);
    margin-bottom: 20px;
    border-radius: 2px;
    animation: slideInLeft 0.8s ease-out 0.2s backwards;
}

/* Short Description */
.hero-description-short {
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-secondary);
    margin: 0 0 32px 0;
    max-width: 550px;
    animation: fadeInUp 0.8s ease-out 0.2s backwards;
}

/* Feature Pills - New Design */
.hero-features-minimal {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 32px;
    animation: fadeInUp 0.8s ease-out 0.3s backwards;
}

.feature-pill {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.12), rgba(236, 72, 153, 0.08));
    border: 1px solid rgba(139, 92, 246, 0.25);
    border-radius: 12px;
    padding: 16px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.feature-pill:hover {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.18), rgba(236, 72, 153, 0.12));
    border-color: var(--primary-color);
    transform: translateX(8px);
    box-shadow: 0 8px 20px rgba(139, 92, 246, 0.15);
}

.pill-content {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.pill-icon {
    font-size: 24px;
    flex-shrink: 0;
    margin-top: 2px;
    animation: float 3s ease-in-out infinite;
}

.pill-text h3 {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 4px 0;
}

.pill-text p {
    font-size: 13px;
    color: var(--text-tertiary);
    margin: 0;
    line-height: 1.5;
}

/* Section Divider */
.hero-section-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.3), transparent);
    margin: 32px 0;
    animation: fadeInUp 0.8s ease-out 0.4s backwards;
}

/* Bottom Content */
.hero-bottom-content {
    animation: fadeInUp 0.8s ease-out 0.45s backwards;
}

.hero-bottom-content h2 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 12px 0;
}

.hero-bottom-content p {
    font-size: 15px;
    line-height: 1.8;
    color: var(--text-secondary);
    margin: 0;
    max-width: 550px;
}

/* Description */
.hero-description {
    font-size: 18px;
    line-height: 1.7;
    color: var(--text-secondary);
    max-width: 500px;
    animation: fadeInUp 0.8s ease-out 0.5s backwards;
}

/* Minimal Features - Icon + Text */
.hero-minimal-features {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
    margin-bottom: 32px;
    animation: fadeInUp 0.8s ease-out 0.35s backwards;
}

.mini-feature {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 16px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.08), rgba(236, 72, 153, 0.06));
    border: 1px solid rgba(139, 92, 246, 0.15);
    border-radius: 12px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.mini-feature:hover {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.12), rgba(236, 72, 153, 0.1));
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.mini-icon {
    font-size: 28px;
    flex-shrink: 0;
    animation: float 3s ease-in-out infinite;
}

.mini-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.mini-text {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.3;
}

.mini-desc {
    font-size: 12px;
    color: var(--text-tertiary);
    line-height: 1.4;
}

/* CTA Buttons */
.hero-cta-buttons {
    display: flex;
    gap: 16px;
    animation: fadeInUp 0.8s ease-out 0.7s backwards;
}

.cta-btn {
    padding: 16px 32px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.cta-primary {
    background: linear-gradient(135deg, #a78bfa 0%, #ec4899 100%);
    color: white;
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.3);
}

.cta-primary:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(139, 92, 246, 0.5);
}

.cta-primary:active {
    transform: translateY(-2px);
}

.cta-secondary {
    background: rgba(139, 92, 246, 0.1);
    color: var(--primary-light);
    border: 1px solid var(--primary-color);
}

.cta-secondary:hover {
    background: rgba(139, 92, 246, 0.2);
    transform: translateY(-4px);
}

.large-btn {
    padding: 18px 40px;
    font-size: 17px;
}

.btn-arrow {
    transition: transform 0.3s ease;
}

.cta-primary:hover .btn-arrow {
    transform: translateX(4px);
}

/* Stats Section */
.hero-stats {
    display: flex;
    gap: 60px;
    animation: fadeInUp 0.8s ease-out 0.6s backwards;
    margin-bottom: 32px;
    padding: 24px 0;
    border-top: 1px solid rgba(139, 92, 246, 0.1);
    border-bottom: 1px solid rgba(139, 92, 246, 0.1);
}

.stat-box {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.stat-number {
    font-size: 36px;
    font-weight: 800;
    background: linear-gradient(135deg, #a78bfa, #ec4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 14px;
    color: var(--text-tertiary);
    font-weight: 600;
}

/* Secondary CTA */
.hero-cta-secondary {
    text-align: center;
    animation: fadeInUp 0.8s ease-out 0.7s backwards;
}

.hero-cta-secondary p {
    font-size: 15px;
    color: var(--text-secondary);
    margin: 0;
}

.link-primary {
    color: var(--primary-light);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
}

.link-primary::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(135deg, #a78bfa, #ec4899);
    transition: width 0.3s ease;
}

.link-primary:hover::after {
    width: 100%;
}

.link-primary:hover {
    color: #ec4899;
}

/* Hero Visual - Right Side */
.hero-visual {
    position: relative;
    height: 500px;
    animation: fadeInRight 0.8s ease-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

.visual-card {
    position: relative;
    width: 280px;
    height: 320px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.15), rgba(236, 72, 153, 0.1));
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 24px;
    padding: 40px 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    animation: floatUp 0.8s ease-out 0.2s backwards;
    z-index: 10;
}

@keyframes floatUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card-blur {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 30%, rgba(139, 92, 246, 0.1), transparent);
    border-radius: 24px;
}

.card-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.card-emoji {
    font-size: 64px;
    animation: bounce 2s ease-in-out infinite;
}

.card-content h3 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.card-content p {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0;
}

/* Floating Items */
.visual-floating {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.float-item {
    position: absolute;
    font-size: 48px;
    animation: floatAround 6s ease-in-out infinite;
}

.float-1 {
    top: 20px;
    right: 20px;
    animation-delay: 0s;
}

.float-2 {
    bottom: 80px;
    left: 20px;
    animation-delay: 1.5s;
}

.float-3 {
    bottom: 20px;
    right: 40px;
    animation-delay: 3s;
}

@keyframes floatAround {

    0%,
    100% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(8deg);
    }
}

/* Gradient Blobs */
.visual-gradient-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.1;
    animation: blobMove 8s ease-in-out infinite;
}

.blob-1 {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, #a78bfa, #ec4899);
    top: -100px;
    left: -100px;
    animation-delay: 0s;
}

.blob-2 {
    width: 250px;
    height: 250px;
    background: linear-gradient(135deg, #6366f1, #a78bfa);
    top: 200px;
    right: -80px;
    animation-delay: 2s;
}

.blob-3 {
    width: 280px;
    height: 280px;
    background: linear-gradient(135deg, #ec4899, #a78bfa);
    bottom: -100px;
    left: 50%;
    animation-delay: 4s;
}

@keyframes blobMove {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(20px, -30px) scale(1.1);
    }
}

/* Visual Showcase Container */
.visual-showcase {
    position: relative;
    width: 100%;
    height: 500px;
    animation: fadeInUp 0.8s ease-out 0.2s backwards;
}

/* Showcase Elements - Large animated shapes */
.showcase-element {
    position: absolute;
    border-radius: 50%;
    opacity: 0.08;
    animation: float-showcase 10s ease-in-out infinite;
    filter: blur(60px);
}

.showcase-element-1 {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, #a78bfa, #ec4899);
    top: -100px;
    right: -50px;
    animation-delay: 0s;
}

.showcase-element-2 {
    width: 250px;
    height: 250px;
    background: linear-gradient(135deg, #6366f1, #a78bfa);
    top: 150px;
    left: -80px;
    animation-delay: 2s;
}

.showcase-element-3 {
    width: 280px;
    height: 280px;
    background: linear-gradient(135deg, #ec4899, #a78bfa);
    bottom: -100px;
    right: 50px;
    animation-delay: 4s;
}

.showcase-element-4 {
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, #a78bfa, #6366f1);
    bottom: 100px;
    left: 0;
    animation-delay: 3s;
}

@keyframes float-showcase {

    0%,
    100% {
        transform: translateY(0px) scale(1);
    }

    50% {
        transform: translateY(-40px) scale(1.05);
    }
}

/* Showcase Card - Stats highlight */
.showcase-card {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 240px;
    height: auto;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.15), rgba(236, 72, 153, 0.1));
    border: 1px solid rgba(139, 92, 246, 0.3);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 32px 24px;
    text-align: center;
    animation: fadeInScale 0.8s ease-out 0.3s backwards;
    z-index: 10;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.9);
    }

    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

.card-stat {
    animation: fadeInUp 0.8s ease-out backwards;
}

.card-stat:first-child {
    animation-delay: 0.4s;
}

.card-stat:last-child {
    animation-delay: 0.5s;
}

.stat-number {
    font-size: 36px;
    font-weight: 800;
    background: linear-gradient(135deg, #a78bfa, #ec4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 4px;
}

.stat-desc {
    font-size: 12px;
    color: var(--text-tertiary);
    font-weight: 600;
}

.card-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.3), transparent);
    margin: 16px 0;
}

/* Right Text Content */
.right-text-content {
    width: 100%;
    padding: 0 20px;
    animation: fadeInUp 0.8s ease-out 0.55s backwards;
}

.right-text-content h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 12px 0;
}

.right-text-content p {
    font-size: 14px;
    line-height: 1.7;
    color: var(--text-secondary);
    margin: 0 0 20px 0;
}

/* Content Highlights - Dot list */
.content-highlights {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.highlight-dot {
    width: 6px;
    height: 6px;
    background: linear-gradient(135deg, #a78bfa, #ec4899);
    border-radius: 50%;
    flex-shrink: 0;
}

/* Accent Shapes */
.accent-shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.2;
    animation: pulse-accent 4s ease-in-out infinite;
}

.accent-1 {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #a78bfa, #ec4899);
    top: 30%;
    left: 10%;
    animation-delay: 0s;
}

.accent-2 {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #ec4899, #6366f1);
    bottom: 20%;
    right: 15%;
    animation-delay: 1s;
}

.accent-3 {
    width: 90px;
    height: 90px;
    background: linear-gradient(135deg, #6366f1, #a78bfa);
    top: 70%;
    right: 5%;
    animation-delay: 2s;
}

@keyframes pulse-accent {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.3);
    }
}

/* Visual Element Container */
.visual-element-container {
    position: relative;
    width: 100%;
    height: 280px;
    animation: fadeInUp 0.8s ease-out 0.4s backwards;
    margin-bottom: 40px;
}

.floating-element {
    position: absolute;
    border-radius: 50%;
    opacity: 0.15;
    animation: float-element 8s ease-in-out infinite;
}

.element-1 {
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, #a78bfa, #ec4899);
    top: -50px;
    right: -50px;
    animation-delay: 0s;
}

.element-2 {
    width: 150px;
    height: 150px;
    background: linear-gradient(135deg, #6366f1, #a78bfa);
    top: 100px;
    left: -30px;
    animation-delay: 1s;
}

.element-3 {
    width: 180px;
    height: 180px;
    background: linear-gradient(135deg, #ec4899, #a78bfa);
    bottom: -60px;
    right: 20px;
    animation-delay: 2s;
}

.element-4 {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, #a78bfa, #6366f1);
    bottom: 40px;
    left: 30px;
    animation-delay: 1.5s;
}

@keyframes float-element {

    0%,
    100% {
        transform: translateY(0px) scale(1);
    }

    50% {
        transform: translateY(-30px) scale(1.05);
    }
}

/* Bottom Right CTA Section */
.hero-cta-bottom-right {
    display: flex;
    flex-direction: column;
    gap: 12px;
    animation: fadeInUp 0.8s ease-out 0.5s backwards;
    padding-bottom: 20px;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* Animated Shapes */
.animated-shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.1;
    animation: pulse-shape 4s ease-in-out infinite;
}

.shape-1 {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, #a78bfa, #ec4899);
    top: -100px;
    right: -100px;
}

.shape-2 {
    width: 250px;
    height: 250px;
    background: linear-gradient(135deg, #6366f1, #a78bfa);
    bottom: -80px;
    left: -80px;
    animation-delay: 2s;
}

@keyframes pulse-shape {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

/* Enhanced glow elements */
.glow-element {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.2;
    animation: glow-pulse 4s ease-in-out infinite;
}

.glow-1 {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, #a78bfa, #ec4899);
    top: 10%;
    left: 20%;
}

.glow-2 {
    width: 350px;
    height: 350px;
    background: linear-gradient(135deg, #6366f1, #a78bfa);
    bottom: 10%;
    right: 15%;
    animation-delay: 2s;
}

@keyframes glow-pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.2;
    }

    50% {
        transform: scale(1.2);
        opacity: 0.3;
    }
}

/* Animated Gradient Background */
.animated-gradient {
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(139, 92, 246, 0.05), transparent);
    animation: gradient-move 8s linear infinite;
    z-index: 0;
}

.gradient-2 {
    animation-delay: 4s;
}

@keyframes gradient-move {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

/* Scroll Indicator */
.scroll-indicator {
    position: fixed;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: var(--text-tertiary);
    font-size: 14px;
    z-index: 50;
    animation: fadeInUp 1s ease-out 1s backwards;
}

.scroll-arrow {
    font-size: 24px;
    animation: bounce-arrow 2s ease-in-out infinite;
}

@keyframes bounce-arrow {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(8px);
    }
}

/* SVG Logo Styling */
.logo-svg {
    width: 40px;
    height: 40px;
    animation: logo-float 3s ease-in-out infinite;
}

.logo-main-shape {
    animation: shape-glow 2s ease-in-out infinite;
}

.logo-dot {
    animation: dot-orbit 6s linear infinite;
}

@keyframes logo-float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

@keyframes shape-glow {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.8;
    }
}

@keyframes dot-orbit {
    0% {
        opacity: 0.4;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0.4;
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Hero Section */
.hero-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    min-height: 100vh;
    padding: 120px 80px;
    max-width: 1600px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
}

.hero-content {
    animation: fadeInLeft 0.8s ease-out;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.hero-header {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.header-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    width: fit-content;
    padding: 12px 20px;
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-light);
    animation: fadeInUp 0.8s ease-out backwards;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: var(--accent-color);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(1.2);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.hero-title {
    font-size: 72px;
    line-height: 1.1;
    margin: 0;
    font-weight: 800;
    color: var(--text-primary);
    animation: fadeInUp 0.8s ease-out 0.1s backwards;
}

.hero-title .highlight {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color), var(--primary-color));
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-shift 3s linear infinite;
    display: inline;
}

.hero-tagline {
    font-size: 18px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin: 0;
    max-width: 520px;
    animation: fadeInUp 0.8s ease-out 0.2s backwards;
}

.hero-cta {
    display: flex;
    gap: 20px;
    animation: fadeInUp 0.8s ease-out 0.3s backwards;
    flex-wrap: wrap;
}

.cta-btn {
    padding: 14px 36px;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.cta-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.cta-btn:hover::before {
    width: 300px;
    height: 300px;
}

.cta-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
}

.cta-primary:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(139, 92, 246, 0.5);
}

.cta-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--primary-color);
}

.cta-secondary:hover {
    background: rgba(139, 92, 246, 0.1);
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(139, 92, 246, 0.3);
}

/* Hero Visual */
.hero-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeInRight 0.8s ease-out;
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.hero-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeInRight 0.8s ease-out;
}

.highlight-card {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.15), rgba(236, 72, 153, 0.1));
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 24px;
    padding: 0;
    backdrop-filter: blur(20px);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.highlight-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.1), transparent);
    transition: left 0.6s ease;
    z-index: 0;
}

.highlight-card:hover {
    border-color: rgba(139, 92, 246, 0.5);
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(236, 72, 153, 0.15));
    transform: translateY(-16px);
    box-shadow: 0 30px 60px rgba(139, 92, 246, 0.2);
}

.highlight-card:hover::before {
    left: 100%;
}

.card-content {
    padding: 60px 50px;
    text-align: center;
    position: relative;
    z-index: 1;
    max-width: 100%;
}

.card-icon {
    font-size: 64px;
    margin-bottom: 24px;
    display: block;
    animation: float-card-icon 3s ease-in-out infinite;
}

@keyframes float-card-icon {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-15px);
    }
}

.card-badge {
    display: inline-block;
    padding: 10px 24px;
    background: rgba(139, 92, 246, 0.25);
    border: 1px solid rgba(139, 92, 246, 0.4);
    border-radius: 20px;
    font-size: 14px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 24px;
    display: block;
}

.highlight-card p {
    font-size: 20px;
    color: var(--text-primary);
    line-height: 1.6;
    margin: 0 0 32px 0;
    font-weight: 500;
}

.card-stats {
    display: flex;
    gap: 50px;
    justify-content: center;
}

.stat {
    text-align: center;
}

.stat-value {
    display: block;
    font-size: 32px;
    font-weight: 800;
    color: var(--primary-light);
    margin-bottom: 8px;
}

.stat-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-secondary);
    font-weight: 600;
    display: block;
}


/* Scroll Indicator */
.scroll-indicator {
    text-align: center;
    padding: 40px 0;
    color: var(--text-secondary);
    font-size: 14px;
    animation: fadeInUp 0.8s ease-out 0.5s backwards;
    position: relative;
    z-index: 10;
}

.scroll-arrow {
    font-size: 24px;
    animation: bounce 2s ease-in-out infinite;
    display: block;
    margin-top: 12px;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(12px);
    }
}

/* Content Section */
.content-section {
    padding: 100px 80px;
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
}

.content-block {
    margin-bottom: 80px;
    animation: fadeInUp 0.8s ease-out backwards;
}

.content-block:nth-child(1) {
    animation-delay: 0.1s;
}

.content-block:nth-child(2) {
    animation-delay: 0.2s;
}

.content-block:nth-child(3) {
    animation-delay: 0.3s;
}

.content-block h2 {
    font-size: 36px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 24px;
    line-height: 1.3;
}

.content-block p {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 16px;
    max-width: 800px;
}

.content-block p:last-of-type {
    margin-bottom: 0;
}

.cta-large {
    padding: 16px 48px !important;
    font-size: 16px !important;
    margin-top: 24px;
    animation: fadeInUp 0.8s ease-out 0.4s backwards;
}


/* Auth Modal */
.auth-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    z-index: 999;
    display: none;
    animation: fadeIn 0.3s ease-out;
}

.auth-modal-overlay.active {
    display: block;
}

.auth-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(135deg, var(--bg-secondary), var(--bg-tertiary));
    border: 1px solid var(--border-color);
    border-radius: 16px;
    width: 90%;
    max-width: 450px;
    padding: 40px;
    z-index: 1000;
    display: none;
    animation: scaleIn 0.3s ease-out;
}

.auth-modal.active {
    display: block;
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.9);
    }

    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

.modal-close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 36px;
    height: 36px;
    border: none;
    background: rgba(139, 92, 246, 0.1);
    color: var(--text-primary);
    font-size: 24px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-close-btn:hover {
    background: rgba(139, 92, 246, 0.2);
    transform: rotate(90deg);
}

.auth-modal-content {
    animation: fadeInUp 0.3s ease-out;
}

.auth-modal-header h2 {
    font-size: 28px;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.auth-modal-header p {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 30px;
}

.auth-modal-form {
    margin-bottom: 20px;
}

.auth-modal-form .form-group {
    margin-bottom: 20px;
}

.auth-modal-form label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.auth-modal-form input {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 14px;
    transition: all 0.3s ease;
}

.auth-modal-form input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(139, 92, 246, 0.1);
}

.auth-modal-footer {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    font-size: 14px;
    color: var(--text-secondary);
}

.auth-switch {
    color: var(--primary-color);
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.auth-switch:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

/* Responsive Landing Page */
@media (max-width: 1024px) {
    .hero-section {
        grid-template-columns: 1fr;
        gap: 60px;
        padding: 100px 60px;
        min-height: auto;
    }

    .hero-title {
        font-size: 56px;
    }

    .highlight-card {
        min-height: 420px;
    }

    .card-content {
        padding: 50px 40px;
    }

    .about-section,
    .final-cta-section {
        padding: 80px 60px;
    }

    .reasons-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
    }

    .about-section h2,
    .final-cta-section h2 {
        font-size: 42px;
    }
}

@media (max-width: 768px) {
    .landing-nav-header {
        margin: 12px 16px 0;
        border-radius: 16px;
    }

    .nav-container {
        padding: 0 16px;
    }

    .logo-text {
        font-size: 18px;
    }

    .nav-buttons {
        gap: 8px;
    }

    .nav-btn {
        padding: 8px 14px;
        font-size: 12px;
        border-radius: 10px;
    }

    .bg-deco-1,
    .bg-deco-2,
    .bg-deco-3 {
        opacity: 0.2;
        filter: blur(60px);
    }

    .hero-section {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 80px 30px;
    }

    .hero-title {
        font-size: 42px;
        line-height: 1.2;
    }

    .header-badge {
        font-size: 12px;
        padding: 8px 16px;
    }

    .hero-tagline {
        font-size: 16px;
        max-width: 100%;
    }

    .hero-cta {
        flex-direction: column;
        gap: 12px;
    }

    .cta-btn {
        padding: 12px 24px;
        font-size: 14px;
        width: 100%;
    }

    .highlight-card {
        min-height: 380px;
        width: 100%;
    }

    .card-content {
        padding: 40px 30px;
    }

    .card-icon {
        font-size: 48px;
        margin-bottom: 16px;
    }

    .card-badge {
        font-size: 12px;
        padding: 8px 16px;
    }

    .highlight-card p {
        font-size: 16px;
        margin-bottom: 24px;
    }

    .card-stats {
        gap: 30px;
        flex-wrap: wrap;
    }

    .stat-value {
        font-size: 24px;
    }

    .stat-label {
        font-size: 11px;
    }

    .about-section,
    .final-cta-section {
        padding: 60px 30px;
    }

    .section-divider {
        width: 60px;
        margin-bottom: 30px;
    }

    .about-section h2,
    .final-cta-section h2 {
        font-size: 32px;
        margin-bottom: 40px;
    }

    .final-cta-section p {
        font-size: 16px;
        margin-bottom: 30px;
    }

    .cta-large {
        padding: 14px 32px !important;
        font-size: 14px !important;
    }

    .reasons-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .reason-item {
        padding: 32px;
    }

    .reason-item h3 {
        font-size: 18px;
    }

    .reason-item p {
        font-size: 14px;
    }


    .auth-modal {
        width: 95%;
        max-width: 90vw;
        padding: 30px 20px;
    }

    .auth-modal-header h2 {
        font-size: 24px;
    }

    .modal-close-btn {
        width: 32px;
        height: 32px;
        font-size: 20px;
    }
}

/* Responsive Design */
@media (max-width: 1200px) {
    .right-sidebar {
        display: none;
    }

    .main-app {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        max-height: 80px;
        padding: 10px;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    .sidebar-nav {
        flex-direction: row;
        flex: 1;
        margin-left: 20px;
    }

    .sidebar-footer {
        margin-top: 0;
    }
}

@media (max-width: 768px) {
    .sidebar {
        max-height: 60px;
    }

    .nav-label {
        display: none;
    }

    .compose-container {
        max-width: 100%;
    }

    .page {
        padding: 15px;
    }

    .posts-grid,
    .writers-grid {
        display: flex;
        gap: 20px;
        overflow-x: auto;
        padding-bottom: 12px;
        scroll-behavior: smooth;
    }

    .badges-grid,
    .memory-wall-grid {
        grid-template-columns: 1fr;
    }

    .messages-container {
        flex-direction: column;
    }

    .conversations-panel {
        width: 100%;
    }

    .modal-content {
        width: 95%;
        max-height: 95vh;
    }

    .auth-card {
        width: 90%;
        padding: 30px 20px;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100%);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(100%);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Smooth transitions */
* {
    transition: background-color 0.2s ease, color 0.2s ease;
}

/* ========================================
   RESPONSIVE DESIGN - LANDING PAGE
   ======================================== */

@media (max-width: 1200px) {
    .landing-container {
        gap: 40px;
        padding: 100px 40px;
    }

    .hero-title-main {
        font-size: 56px;
    }

    .hero-description {
        font-size: 16px;
    }

    .visual-container {
        height: 500px;
    }
}

@media (max-width: 768px) {
    .landing-hero {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 90px 30px 60px 30px;
        min-height: auto;
    }

    .hero-content {
        gap: 24px;
    }

    .hero-title {
        font-size: 44px;
        line-height: 1.25;
    }

    .hero-tagline {
        font-size: 16px;
    }

    .hero-description {
        font-size: 15px;
        max-width: 100%;
    }

    .hero-buttons {
        gap: 12px;
    }

    .btn-primary,
    .btn-secondary {
        padding: 12px 28px;
        font-size: 15px;
        flex: 1;
    }

    .hero-visual {
        height: 400px;
    }

    .visual-card {
        width: 240px;
        height: 280px;
    }

    .card-emoji {
        font-size: 52px;
    }

    .card-content h3 {
        font-size: 20px;
    }

    .hero-minimal-features {
        grid-template-columns: 1fr;
        gap: 14px;
        margin-bottom: 28px;
    }

    .mini-feature {
        padding: 14px;
        gap: 12px;
    }

    .mini-icon {
        font-size: 24px;
    }

    .mini-text {
        font-size: 13px;
    }

    .mini-desc {
        font-size: 11px;
    }

    .visual-showcase {
        height: 380px;
    }

    .showcase-element-1 {
        width: 200px;
        height: 200px;
    }

    .showcase-element-2 {
        width: 180px;
        height: 180px;
    }

    .showcase-element-3 {
        width: 200px;
        height: 200px;
    }

    .showcase-element-4 {
        width: 150px;
        height: 150px;
    }

    .showcase-card {
        width: 240px;
        padding: 30px 20px;
    }

    .landing-nav-header {
        height: 64px;
        margin: 12px 16px 0;
        border-radius: 16px;
    }

    .nav-container {
        padding: 0 16px;
    }

    .logo-svg {
        width: 32px;
        height: 32px;
    }

    .logo-text {
        font-size: 20px;
    }

    .nav-btn {
        padding: 10px 18px;
        font-size: 13px;
        border-radius: 10px;
    }

    /* Hero Section Mobile */
    .hero-left-content {
        gap: 24px;
    }

    .hero-title-main {
        font-size: 38px;
        line-height: 1.3;
    }

    .hero-subtitle {
        font-size: 16px;
        max-width: 100%;
    }

    .hero-intro-text p {
        font-size: 15px;
        max-width: 100%;
    }

    .hero-features {
        gap: 16px;
        margin-bottom: 30px;
    }

    .feature-item {
        gap: 12px;
        padding: 12px 0;
    }

    .feature-icon {
        font-size: 24px;
    }

    .feature-text h3 {
        font-size: 15px;
    }

    .feature-text p {
        font-size: 13px;
    }

    .hero-what-is-lyrii {
        padding: 20px;
        margin-bottom: 30px;
    }

    .hero-what-is-lyrii h2 {
        font-size: 20px;
    }

    .hero-what-is-lyrii p {
        font-size: 14px;
    }

    .hero-stats {
        gap: 40px;
        padding: 16px 0;
        margin-bottom: 24px;
    }

    .stat-number {
        font-size: 28px;
    }

    .hero-cta-buttons {
        flex-wrap: wrap;
        gap: 12px;
    }

    .cta-btn {
        padding: 14px 28px;
        font-size: 15px;
        flex: 1;
        min-width: 150px;
    }

    .hero-stats {
        gap: 30px;
        margin-top: 10px;
    }

    .stat-number {
        font-size: 28px;
    }

    .stat-label {
        font-size: 13px;
    }

    /* Right Side Mobile */
    .visual-container {
        height: 400px;
        margin-top: 30px;
    }

    .floating-card {
        padding: 24px;
        border-radius: 16px;
    }

    .card-1,
    .card-2,
    .card-3 {
        width: 160px;
    }

    .card-icon-large {
        font-size: 40px;
    }

    .card-title {
        font-size: 18px;
    }

    .card-text {
        font-size: 13px;
    }

    /* Shapes Mobile */
    .shape-1 {
        width: 200px;
        height: 200px;
        top: -50px;
        right: -50px;
    }

    .shape-2 {
        width: 180px;
        height: 180px;
        bottom: -40px;
        left: -40px;
    }

    .glow-1 {
        width: 250px;
        height: 250px;
        left: 10%;
    }

    .glow-2 {
        width: 200px;
        height: 200px;
        right: 10%;
    }

    /* Scroll Indicator */
    .scroll-indicator {
        bottom: 20px;
        font-size: 12px;
    }

    .scroll-arrow {
        font-size: 20px;
    }
}

@media (max-width: 480px) {

    /* New Landing Hero Mobile Styles */
    .landing-hero {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 60px 20px 40px 20px;
        min-height: auto;
    }

    .hero-content {
        gap: 20px;
    }

    .hero-title {
        font-size: 32px;
        line-height: 1.2;
    }

    .hero-tagline {
        font-size: 15px;
    }

    .hero-description {
        font-size: 14px;
        max-width: 100%;
        line-height: 1.6;
    }

    .hero-buttons {
        gap: 10px;
        flex-wrap: wrap;
    }

    .btn-primary,
    .btn-secondary {
        padding: 11px 24px;
        font-size: 14px;
        flex: 1;
        min-width: 140px;
    }

    .hero-bottom-info {
        gap: 14px;
        margin-top: 12px;
    }

    .info-item {
        font-size: 13px;
        gap: 10px;
    }

    .info-icon {
        font-size: 20px;
    }

    .hero-visual {
        height: 320px;
        justify-content: center;
        align-items: center;
    }

    .visual-card {
        width: 220px;
        height: 260px;
        padding: 30px 15px;
    }

    .card-emoji {
        font-size: 48px;
    }

    .card-content h3 {
        font-size: 18px;
    }

    .card-content p {
        font-size: 12px;
    }

    .float-item {
        font-size: 36px;
    }

    .float-1 {
        top: 10px;
        right: 10px;
    }

    .float-2 {
        bottom: 60px;
        left: 10px;
    }

    .float-3 {
        bottom: 10px;
        right: 20px;
    }

    .blob-1,
    .blob-2,
    .blob-3 {
        filter: blur(60px);
        opacity: 0.08;
    }

    .blob-1 {
        width: 200px;
        height: 200px;
    }

    .blob-2 {
        width: 150px;
        height: 150px;
    }

    .blob-3 {
        width: 180px;
        height: 180px;
    }

    /* Old landing styles for backwards compatibility */
    .landing-container {
        padding: 75px 20px 50px 20px;
        gap: 30px;
    }

    .hero-title-main {
        font-size: 28px;
        margin-bottom: 12px;
    }

    .hero-visual-divider {
        width: 50px;
        margin-bottom: 14px;
    }

    .hero-description-short {
        font-size: 14px;
        margin-bottom: 20px;
        max-width: 100%;
    }

    .hero-minimal-features {
        grid-template-columns: 1fr;
        gap: 12px;
        margin-bottom: 20px;
    }

    .mini-feature {
        padding: 12px;
        gap: 10px;
        align-items: center;
    }

    .mini-icon {
        font-size: 22px;
    }

    .mini-text {
        font-size: 12px;
    }

    .mini-desc {
        font-size: 11px;
    }

    .visual-showcase {
        height: 300px;
    }

    .showcase-element-1 {
        width: 150px;
        height: 150px;
    }

    .showcase-element-2 {
        width: 130px;
        height: 130px;
    }

    .showcase-element-3 {
        width: 150px;
        height: 150px;
    }

    .showcase-element-4 {
        width: 110px;
        height: 110px;
    }

    .showcase-card {
        width: 200px;
        padding: 25px 15px;
    }

    .card-text-line {
        height: 6px;
        margin-bottom: 10px;
    }

    .landing-nav-header {
        height: 56px;
        margin: 10px 12px 0;
        border-radius: 16px;
        /* Enhanced glassmorphic styling for mobile */
        background: linear-gradient(135deg,
                rgba(139, 92, 246, 0.15) 0%,
                rgba(236, 72, 153, 0.1) 50%,
                rgba(99, 102, 241, 0.15) 100%) !important;
        backdrop-filter: blur(20px) saturate(180%) !important;
        -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
        box-shadow:
            0 4px 24px rgba(139, 92, 246, 0.15),
            0 0 0 1px rgba(139, 92, 246, 0.2),
            inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
    }

    .landing-nav-header::before,
    .landing-nav-header::after {
        display: none;
        /* Hide complex animations on mobile for performance */
    }

    .nav-container {
        padding: 0 12px;
    }

    .nav-logo {
        padding: 4px 8px;
    }

    .logo-icon {
        font-size: 24px;
        filter: drop-shadow(0 0 6px rgba(139, 92, 246, 0.4));
    }

    .logo-svg {
        width: 24px;
        height: 24px;
    }

    .logo-text {
        font-size: 18px;
    }

    .nav-buttons {
        gap: 8px;
    }

    .nav-btn {
        padding: 8px 14px;
        font-size: 12px;
        border-radius: 10px;
    }

    .nav-btn-signup {
        box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
    }

    /* Hero Mobile Small */
    .hero-left-content {
        gap: 20px;
    }

    .hero-badge {
        font-size: 12px;
        padding: 8px 14px;
    }

    .hero-title-main {
        font-size: 28px;
        line-height: 1.2;
        margin-bottom: 12px;
    }

    .hero-subtitle {
        font-size: 15px;
        margin-bottom: 16px;
    }

    .hero-intro-text {
        margin-bottom: 20px;
    }

    .hero-intro-text p {
        font-size: 14px;
    }

    .hero-description {
        font-size: 14px;
        line-height: 1.6;
    }

    .hero-features {
        gap: 12px;
        margin-bottom: 20px;
    }

    .feature-item {
        gap: 10px;
        padding: 10px 0;
    }

    .feature-icon {
        font-size: 20px;
        min-width: 20px;
    }

    .feature-text h3 {
        font-size: 13px;
    }

    .feature-text p {
        font-size: 12px;
    }

    .hero-what-is-lyrii {
        padding: 18px;
        margin-bottom: 20px;
    }

    .hero-what-is-lyrii h2 {
        font-size: 18px;
        margin-bottom: 12px;
    }

    .hero-what-is-lyrii p {
        font-size: 13px;
        margin-bottom: 10px;
    }

    .hero-stats {
        flex-direction: column;
        gap: 16px;
        padding: 16px 0;
        margin-bottom: 20px;
    }

    .stat-number {
        font-size: 24px;
    }

    .stat-label {
        font-size: 12px;
    }

    .hero-cta-buttons {
        flex-direction: column;
        gap: 10px;
    }

    .cta-btn {
        padding: 14px 28px;
        font-size: 15px;
    }

    .btn-arrow {
        display: inline;
    }

    .large-btn {
        padding: 12px 20px;
        font-size: 14px;
    }

    .hero-stats {
        flex-direction: column;
        gap: 20px;
        margin-top: 5px;
    }

    .stat-number {
        font-size: 24px;
    }

    .stat-label {
        font-size: 12px;
    }

    /* Right Side - Hide on very small screens or adjust */
    .visual-container {
        height: 300px;
    }

    .floating-card {
        padding: 20px;
        width: 140px !important;
        left: auto !important;
        right: auto !important;
        top: auto !important;
        bottom: auto !important;
        transform: translateX(-50%) !important;
    }

    .card-1 {
        left: 50% !important;
        top: 0 !important;
    }

    .card-2 {
        left: 50% !important;
        top: 100px !important;
    }

    .card-3 {
        left: 50% !important;
        bottom: 0 !important;
        transform: translateX(-50%);
    }

    .card-icon-large {
        font-size: 36px;
        margin-bottom: 8px;
    }

    .card-title {
        font-size: 16px;
    }

    .card-text {
        font-size: 12px;
    }

    /* Background shapes - reduce on mobile */
    .floating-spark {
        opacity: 0.3;
    }

    .shape-1,
    .shape-2 {
        opacity: 0.05;
    }

    .glow-1,
    .glow-2 {
        opacity: 0.15;
    }
}

/* ========================================
   NEW FEED PAGE REDESIGN
   ======================================== */

.feed-header-new {
    padding: 40px 40px 0;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.05), rgba(236, 72, 153, 0.03));
    border-bottom: 1px solid rgba(139, 92, 246, 0.1);
    margin-bottom: 30px;
    border-radius: 16px 16px 0 0;
}

.feed-header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    gap: 20px;
    flex-wrap: wrap;
}

.feed-title {
    font-size: 32px;
    font-weight: 800;
    color: var(--text-primary);
    margin: 0;
    letter-spacing: -0.5px;
}

.feed-search-box {
    position: relative;
    flex: 1;
    max-width: 350px;
    min-width: 250px;
}

.feed-search-input {
    width: 100%;
    padding: 12px 16px 12px 40px;
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 14px;
    transition: all 0.3s ease;
}

.feed-search-input:focus {
    outline: none;
    background: rgba(139, 92, 246, 0.15);
    border-color: rgba(139, 92, 246, 0.4);
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.2);
}

.search-icon-feed {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    opacity: 0.6;
}

.feed-filters-new {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    padding-bottom: 20px;
}

.filter-btn-new {
    padding: 10px 18px;
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 20px;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn-new:hover {
    background: rgba(139, 92, 246, 0.15);
    border-color: rgba(139, 92, 246, 0.4);
    transform: translateY(-2px);
}

.filter-btn-new.active {
    background: linear-gradient(135deg, #a78bfa, #ec4899);
    color: white;
    border-color: transparent;
    box-shadow: 0 8px 20px rgba(139, 92, 246, 0.3);
}

.feed-main {
    padding: 20px 40px 40px;
    min-height: calc(100vh - 300px);
}

.feed-container-new {
    display: flex;
    flex-direction: column;
    gap: 20px;
    animation: fadeIn 0.3s ease-out;
}

/* Post Card Redesign */
.post-card-new {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.08), rgba(236, 72, 153, 0.05));
    border: 1px solid rgba(139, 92, 246, 0.15);
    border-radius: 16px;
    padding: 24px;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    cursor: pointer;
    overflow: hidden;
    position: relative;
    min-width: 320px;
    flex-shrink: 0;
}

.post-card-new::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #a78bfa, #ec4899);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.post-card-new:hover {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.12), rgba(236, 72, 153, 0.08));
    border-color: rgba(139, 92, 246, 0.25);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(139, 92, 246, 0.15);
}

.post-card-new:hover::before {
    opacity: 1;
}

.post-card-header-new {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    cursor: pointer;
}

.post-author-avatar-new {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #a78bfa, #ec4899);
    object-fit: cover;
    border: 2px solid rgba(139, 92, 246, 0.2);
    cursor: pointer;
    transition: transform 0.2s ease;
}

.post-author-avatar-new:hover {
    transform: scale(1.1);
}

.post-author-info-new {
    flex: 1;
}

.post-author-name-new {
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    font-size: 15px;
    cursor: pointer;
    transition: color 0.2s ease;
}

.post-author-name-new:hover {
    color: #8B5CF6;
}

.post-author-date-new {
    font-size: 12px;
    color: var(--text-tertiary);
    margin: 0;
}

.post-type-badge {
    display: inline-block;
    padding: 4px 10px;
    background: rgba(236, 72, 153, 0.15);
    border-radius: 12px;
    font-size: 11px;
    color: #ec4899;
    font-weight: 600;
}

.post-title-new {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 12px 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
}

.post-content-preview-new {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-images-new {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 8px;
    margin-bottom: 16px;
    max-height: 200px;
    overflow: hidden;
}

.post-image-thumbnail-new {
    width: 100%;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
    background: rgba(139, 92, 246, 0.1);
}

.post-stats-new {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    border-top: 1px solid rgba(139, 92, 246, 0.1);
    font-size: 13px;
    color: var(--text-tertiary);
}

.post-stat-item-new {
    display: flex;
    align-items: center;
    gap: 6px;
}

.post-rating-new {
    color: var(--primary-light);
    font-weight: 600;
}

.feed-empty {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 400px;
    padding: 40px;
}

.empty-state {
    text-align: center;
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 300px;
    width: 100%;
}

.empty-state.hidden {
    display: none !important;
    visibility: hidden;
}

.empty-icon {
    font-size: 64px;
    display: block;
    margin-bottom: 20px;
    animation: float 3s ease-in-out infinite;
}

.empty-state h3 {
    font-size: 20px;
    color: var(--text-primary);
    margin: 0 0 8px 0;
}

.empty-state p {
    color: var(--text-secondary);
    margin: 0;
    font-size: 14px;
}

/* ========================================
   USER PROFILE MODAL REDESIGN
   ======================================== */

.user-profile-modal {
    max-width: 600px !important;
    max-height: 90vh;
    overflow-y: auto;
}

.user-profile-content {
    padding: 0;
}

.user-profile-header {
    position: relative;
    margin-bottom: 30px;
}

.user-profile-cover {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #a78bfa, #ec4899);
    border-radius: 16px 16px 0 0;
}

.user-profile-info {
    padding: 0 30px 20px;
    display: flex;
    gap: 20px;
    align-items: flex-start;
    margin-top: -50px;
    position: relative;
    z-index: 10;
}

.user-profile-avatar {
    width: 120px;
    height: 120px;
    border-radius: 16px;
    border: 4px solid var(--bg-primary);
    object-fit: cover;
    background: linear-gradient(135deg, #a78bfa, #ec4899);
}

.user-details {
    flex: 1;
    padding-top: 30px;
}

.user-details h2 {
    font-size: 24px;
    font-weight: 800;
    color: var(--text-primary);
    margin: 0 0 8px 0;
}

.user-bio {
    font-size: 13px;
    color: var(--text-secondary);
    margin: 0 0 16px 0;
    line-height: 1.6;
}

.user-profile-stats {
    display: flex;
    gap: 24px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat-count {
    font-size: 18px;
    font-weight: 800;
    color: var(--primary-light);
}

.stat-name {
    font-size: 11px;
    color: var(--text-tertiary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.user-profile-actions {
    display: flex;
    gap: 12px;
    padding: 0 30px 20px;
}

.user-profile-actions .btn {
    flex: 1;
}

.user-profile-section {
    padding: 0 30px 30px;
}

.user-profile-section h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 16px 0;
}

.user-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 12px;
}

.user-post-item {
    aspect-ratio: 1;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(236, 72, 153, 0.08));
    border: 1px solid rgba(139, 92, 246, 0.15);
    border-radius: 12px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: hidden;
}

.user-post-item:hover {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.15), rgba(236, 72, 153, 0.12));
    border-color: rgba(139, 92, 246, 0.25);
    transform: translateY(-4px);
}

.user-post-title {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-primary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.user-post-type {
    font-size: 10px;
    color: var(--primary-light);
    font-weight: 600;
    margin-top: auto;
}

/* ========================================
   RESPONSIVE FEED REDESIGN
   ======================================== */

@media (max-width: 1024px) {
    .feed-header-new {
        padding: 30px 30px 0;
    }

    .feed-main {
        padding: 15px 30px 30px;
    }

    .post-card-new {
        padding: 20px;
    }

    .feed-title {
        font-size: 28px;
    }
}

@media (max-width: 768px) {
    .feed-header-top {
        flex-direction: column;
    }

    .feed-search-box {
        max-width: none;
        width: 100%;
    }

    .feed-header-new {
        padding: 24px 20px 0;
    }

    .feed-main {
        padding: 15px 20px 30px;
    }

    .feed-filters-new {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 10px;
    }

    .post-card-new {
        padding: 16px;
    }

    .feed-title {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .feed-header-new {
        padding: 20px 16px 0;
        margin-bottom: 20px;
    }

    .feed-header-top {
        gap: 12px;
    }

    .feed-title {
        font-size: 20px;
    }

    .feed-search-box {
        min-width: auto;
        max-width: none;
    }

    .feed-main {
        padding: 12px 16px 24px;
        min-height: auto;
    }

    .feed-container-new {
        gap: 12px;
    }

    .post-card-new {
        padding: 12px;
    }

    .post-title-new {
        font-size: 15px;
    }

    .post-content-preview-new {
        font-size: 13px;
    }

    .post-images-new {
        max-height: 120px;
    }

    .post-image-thumbnail-new {
        height: 80px;
    }

    .user-profile-modal {
        max-height: 95vh !important;
    }

    .user-profile-info {
        padding: 0 20px 20px;
    }

    .user-profile-avatar {
        width: 80px;
        height: 80px;
    }

    .user-details h2 {
        font-size: 18px;
    }

    .user-profile-actions,
    .user-profile-section {
        padding-left: 20px;
        padding-right: 20px;
    }

    .user-posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ========================================
   IMAGE UPLOAD REDESIGN
   ======================================== */

.image-upload-section {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.image-upload-area {
    position: relative;
    border: 2px dashed rgba(139, 92, 246, 0.3);
    border-radius: 12px;
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.05), rgba(236, 72, 153, 0.03));
}

.image-upload-area:hover {
    border-color: rgba(139, 92, 246, 0.5);
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.08), rgba(236, 72, 153, 0.06));
    transform: translateY(-2px);
}

.image-upload-area.dragover {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.12), rgba(236, 72, 153, 0.08));
}

.upload-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.upload-icon {
    font-size: 36px;
    animation: float 3s ease-in-out infinite;
}

.upload-placeholder p {
    margin: 0;
    font-size: 14px;
    color: var(--text-primary);
    font-weight: 600;
}

.upload-placeholder small {
    display: block;
    color: var(--text-tertiary);
    font-size: 12px;
    margin-top: 4px;
}

.image-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 12px;
}

.image-preview-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(139, 92, 246, 0.2);
    background: rgba(139, 92, 246, 0.05);
}

.image-preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-remove-btn {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 24px;
    height: 24px;
    background: rgba(0, 0, 0, 0.5);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: all 0.2s ease;
}

.image-remove-btn:hover {
    background: rgba(239, 68, 68, 0.8);
}

@media (max-width: 768px) {
    .image-upload-area {
        padding: 30px 15px;
    }

    .upload-icon {
        font-size: 28px;
    }

    .image-preview-grid {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    }
}


/* ========================================
   NEW LANDING PAGE STYLES
   ======================================== */

.landing-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #0f0118 0%, #1a0d2e 50%, #2d1b4e 100%);
    z-index: 0;
    overflow: hidden;
}

.mesh-gradient {
    position: absolute;
    width: 150%;
    height: 150%;
    background: radial-gradient(circle at 20% 50%, rgba(139, 92, 246, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(236, 72, 153, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 40% 0%, rgba(99, 102, 241, 0.2) 0%, transparent 50%);
    animation: meshShift 15s ease-in-out infinite;
}

@keyframes meshShift {

    0%,
    100% {
        transform: translate(0, 0);
    }

    25% {
        transform: translate(2%, 2%);
    }

    50% {
        transform: translate(-1%, 1%);
    }

    75% {
        transform: translate(1%, -2%);
    }
}

.blur-element {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
}

.blur-1 {
    width: 500px;
    height: 500px;
    background: rgba(139, 92, 246, 0.3);
    top: -100px;
    left: -100px;
}

.blur-2 {
    width: 400px;
    height: 400px;
    background: rgba(236, 72, 153, 0.2);
    bottom: 100px;
    right: 100px;
    animation: float 8s ease-in-out infinite;
}

.blur-3 {
    width: 300px;
    height: 300px;
    background: rgba(99, 102, 241, 0.2);
    top: 50%;
    right: 20%;
    animation: float 10s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(20px);
    }
}

.landing-container {
    position: relative;
    z-index: 10;
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    padding: 80px 20px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 60px;
}

.hero-section {
    padding: 40px 0 0;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-left {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.hero-badge {
    display: inline-block;
    background: rgba(139, 92, 246, 0.2);
    color: var(--primary-light);
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 14px;
    width: fit-content;
    font-weight: 600;
}

.hero-title {
    font-size: 56px;
    font-weight: 800;
    line-height: 1.2;
    color: var(--text-primary);
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary-light), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 18px;
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 500px;
}

.hero-cta {
    display: flex;
    gap: 16px;
}

.btn-large {
    padding: 16px 40px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary.btn-large {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
}

.btn-primary.btn-large:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.4);
}

.btn-outline.btn-large {
    background: transparent;
    color: var(--primary-light);
    border: 2px solid var(--primary-color);
}

.btn-outline.btn-large:hover {
    background: rgba(139, 92, 246, 0.1);
    transform: translateY(-3px);
}

.hero-stats {
    display: flex;
    gap: 40px;
    padding-top: 20px;
}

.stat {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.stat-value {
    font-size: 28px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-light), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 14px;
    color: var(--text-tertiary);
}

.hero-right {
    display: grid;
    align-items: center;
    justify-items: center;
}

.cards-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    width: 100%;
}

.feature-card {
    background: rgba(45, 27, 78, 0.5);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 16px;
    padding: 24px;
    text-align: center;
    transition: all 0.3s ease;
}

.feature-card:hover {
    background: rgba(45, 27, 78, 0.8);
    border-color: var(--primary-color);
    transform: translateY(-5px);
}

.card-icon {
    font-size: 32px;
    margin-bottom: 12px;
}

.feature-card h3 {
    color: var(--text-primary);
    font-size: 16px;
    margin-bottom: 8px;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.5;
}

.features-section {
    padding: 40px 0;
    text-align: center;
}

.section-title {
    font-size: 40px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 60px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 30px;
    background: rgba(45, 27, 78, 0.3);
    border-radius: 16px;
    border: 1px solid rgba(139, 92, 246, 0.1);
    transition: all 0.3s ease;
}

.feature-item:hover {
    background: rgba(45, 27, 78, 0.6);
    border-color: var(--primary-color);
}

.feature-icon-large {
    font-size: 48px;
}

.feature-item h4 {
    font-size: 18px;
    color: var(--text-primary);
}

.feature-item p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
}

.cta-section {
    padding: 60px 30px;
    text-align: center;
    background: rgba(45, 27, 78, 0.3);
    border-radius: 20px;
    margin-bottom: 0;
}

.cta-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.cta-section h2 {
    font-size: 36px;
    font-weight: 800;
    color: var(--text-primary);
}

.cta-section p {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 500px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .cards-container {
        grid-template-columns: 1fr 1fr;
        max-width: 500px;
    }

    .hero-title {
        font-size: 42px;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 80px 0 40px;
    }

    .hero-title {
        font-size: 32px;
    }

    .hero-description {
        font-size: 16px;
    }

    .hero-cta {
        flex-direction: column;
    }

    .btn-large {
        width: 100%;
    }

    .cards-container {
        grid-template-columns: 1fr;
        max-width: 100%;
    }

    .hero-stats {
        flex-direction: column;
        gap: 24px;
    }

    .section-title {
        font-size: 28px;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .feature-item {
        padding: 20px;
    }
}

/* Verified Badge Styling - Cool Animated Design */
/* Modern Circular Verified Badge */
.verified-tick {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    margin-left: 8px;
    vertical-align: middle;
    position: relative;
    cursor: pointer;
    animation: badgeFloat 3s ease-in-out infinite;
}

/* Outer circle - rotating ring */
.verified-tick::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: conic-gradient(from 0deg,
            #8B5CF6 0deg,
            #7C3AED 90deg,
            #EC4899 180deg,
            #8B5CF6 360deg);
    border-radius: 50%;
    padding: 2px;
    animation: rotateRing 4s linear infinite;
    z-index: 1;
}

/* Inner circle - solid gradient */
.verified-tick::after {
    content: '✓';
    position: absolute;
    width: calc(100% - 4px);
    height: calc(100% - 4px);
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #8B5CF6, #7C3AED);
    border-radius: 50%;
    font-size: 14px;
    font-weight: 900;
    color: white;
    z-index: 2;
    box-shadow: 0 4px 16px rgba(139, 92, 246, 0.4), inset 0 1px 2px rgba(255, 255, 255, 0.2);
    animation: badgePulse 2s ease-in-out infinite;
}

.verified-tick:hover::before {
    animation: rotateRingFast 2s linear infinite;
}

.verified-tick:hover::after {
    animation: badgePulseHover 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 8px 24px rgba(139, 92, 246, 0.6), inset 0 1px 2px rgba(255, 255, 255, 0.3);
}

@keyframes rotateRing {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes rotateRingFast {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes badgePulse {

    0%,
    100% {
        box-shadow: 0 4px 16px rgba(139, 92, 246, 0.4), inset 0 1px 2px rgba(255, 255, 255, 0.2);
        transform: scale(1);
    }

    50% {
        box-shadow: 0 6px 20px rgba(139, 92, 246, 0.6), inset 0 1px 2px rgba(255, 255, 255, 0.3);
        transform: scale(1.05);
    }
}

@keyframes badgePulseHover {
    0% {
        transform: scale(0.8) rotate(-180deg);
        opacity: 0.8;
    }

    50% {
        transform: scale(1.15) rotate(-90deg);
    }

    100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}

@keyframes badgeFloat {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-2px);
    }
}

.verified-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    color: #8B5CF6;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* Scrollbar Styling for Comments Section */
#ratingsCommentsList::-webkit-scrollbar {
    width: 8px;
}

#ratingsCommentsList::-webkit-scrollbar-track {
    background: transparent;
}

#ratingsCommentsList::-webkit-scrollbar-thumb {
    background: rgba(139, 92, 246, 0.4);
    border-radius: 4px;
}

#ratingsCommentsList::-webkit-scrollbar-thumb:hover {
    background: rgba(139, 92, 246, 0.6);
}

/* ========================================
   MOBILE RESPONSIVE IMPROVEMENTS FOR FEED
   ======================================== */

@media (max-width: 768px) {

    /* Feed items improvements */
    .post-author-avatar {
        width: 36px;
        height: 36px;
    }

    .post-author-name {
        font-size: 13px;
    }

    .post-title {
        font-size: 15px;
    }

    .post-excerpt {
        font-size: 13px;
        line-height: 1.4;
    }

    .post-meta {
        font-size: 11px;
        gap: 8px;
    }

    .post-rating,
    .post-likes {
        font-size: 11px;
    }

    /* Modal improvements */
    .modal {
        padding: 10px;
    }

    .modal-content {
        max-height: 90vh;
        overflow-y: auto;
        border-radius: 16px;
    }

    #modalPostTitle {
        font-size: 18px;
    }

    #modalPostContent {
        font-size: 13px;
        line-height: 1.6;
    }

    .rating-form textarea {
        font-size: 12px;
        min-height: 60px;
    }

    /* Tabs improvements */
    .admin-tabs {
        gap: 8px;
        margin-bottom: 16px;
    }

    .admin-tab-btn {
        padding: 10px 12px;
        font-size: 12px;
        flex: 1;
    }

    /* Table improvements */
    .admin-table {
        font-size: 12px;
    }

    .admin-table th,
    .admin-table td {
        padding: 8px;
    }

    .admin-table input[type="text"],
    .admin-table input[type="email"] {
        font-size: 11px;
        padding: 4px;
    }

    .admin-btn {
        padding: 6px 10px;
        font-size: 11px;
    }
}

@media (max-width: 480px) {

    /* Feed items improvements */
    .post-author-avatar {
        width: 32px;
        height: 32px;
    }

    .post-author-name {
        font-size: 12px;
    }

    .post-title {
        font-size: 14px;
        margin-bottom: 8px;
    }

    .post-excerpt {
        font-size: 12px;
        line-height: 1.4;
        margin-bottom: 8px;
    }

    .post-meta {
        font-size: 10px;
        gap: 6px;
        flex-wrap: wrap;
    }

    .post-rating,
    .post-likes {
        font-size: 10px;
    }

    .post-actions {
        gap: 4px;
    }

    .post-action-btn {
        padding: 6px 10px;
        font-size: 10px;
    }

    /* Modal improvements */
    .modal {
        padding: 0;
    }

    .modal-content {
        width: 100% !important;
        max-width: none;
        height: 100%;
        max-height: 100%;
        border-radius: 0;
        padding: 12px;
        overflow-y: auto;
    }

    .modal-close {
        top: 12px;
        right: 12px;
    }

    #modalPostTitle {
        font-size: 16px;
        margin-bottom: 8px;
    }

    #modalPostAuthor {
        font-size: 11px;
    }

    #modalPostContent {
        font-size: 12px;
        line-height: 1.5;
        margin-bottom: 12px;
    }

    .post-rating-value,
    .post-comments-count {
        font-size: 11px;
    }

    .rating-form {
        gap: 8px;
    }

    .rating-form textarea {
        font-size: 12px;
        min-height: 50px;
        padding: 8px;
    }

    .rating-form button {
        padding: 8px 12px;
        font-size: 11px;
    }

    .comments-list {
        max-height: 200px;
    }

    .comment-item {
        padding: 8px;
        margin-bottom: 8px;
    }

    .comment-author {
        font-size: 11px;
        margin-bottom: 4px;
    }

    .comment-text {
        font-size: 11px;
        line-height: 1.4;
    }

    /* Admin page improvements */
    .admin-page {
        padding: 12px;
    }

    .admin-tabs {
        gap: 4px;
        margin-bottom: 12px;
        flex-wrap: wrap;
    }

    .admin-tab-btn {
        padding: 8px 10px;
        font-size: 11px;
        flex: 1;
        min-width: 60px;
    }

    .admin-tab-content {
        overflow-x: auto;
    }

    /* Table improvements */
    .admin-table {
        font-size: 11px;
        table-layout: auto;
    }

    .admin-table thead {
        font-size: 10px;
    }

    .admin-table th,
    .admin-table td {
        padding: 6px 4px;
    }

    .admin-table input[type="text"],
    .admin-table input[type="email"],
    .admin-table select {
        font-size: 10px;
        padding: 3px;
        width: 100%;
    }

    .admin-btn {
        padding: 4px 8px;
        font-size: 10px;
        white-space: nowrap;
    }

    .status-badge {
        padding: 2px 6px;
        font-size: 9px;
    }

    /* Notifications improvements */
    .notification-item {
        padding: 10px;
        margin-bottom: 8px;
        font-size: 12px;
    }

    .notification-item strong {
        font-size: 11px;
        display: block;
        margin-bottom: 2px;
    }

    .notification-item p {
        font-size: 10px;
        margin: 0;
    }
}

/* ========================================
   BUY ME A COFFEE WIDGET FIX
   ======================================== */

/* Ensure BMC widget doesn't interfere with navigation */
#bmc-widget-frame {
    z-index: 500 !important;
}

/* Keep sidebar and navigation on top - GLASSMORPHIC DESIGN */
.app-sidebar {
    z-index: 1001;
    /* Frosted glass background */
    background: rgba(10, 5, 20, 0.85) !important;
    backdrop-filter: blur(40px) saturate(200%) !important;
    -webkit-backdrop-filter: blur(40px) saturate(200%) !important;
    /* Gradient border */
    border-right: 2px solid rgba(139, 92, 246, 0.4) !important;
    /* Glow effect */
    box-shadow:
        8px 0 40px rgba(139, 92, 246, 0.2),
        inset -1px 0 0 rgba(255, 255, 255, 0.1),
        inset 0 0 60px rgba(139, 92, 246, 0.08) !important;
}

/* Shimmer overlay for sidebar */
.app-sidebar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg,
            rgba(139, 92, 246, 0.08) 0%,
            transparent 30%,
            transparent 70%,
            rgba(236, 72, 153, 0.05) 100%);
    pointer-events: none;
    z-index: 0;
}

/* Nav links glassmorphic style */
.app-sidebar .nav-link {
    background: rgba(139, 92, 246, 0.08) !important;
    border: 1px solid rgba(139, 92, 246, 0.15) !important;
    border-radius: 14px !important;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
    position: relative;
    z-index: 1;
}

.app-sidebar .nav-link:hover {
    background: rgba(139, 92, 246, 0.2) !important;
    border-color: rgba(139, 92, 246, 0.4) !important;
    transform: translateY(-2px) scale(1.02) !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1) !important;
}

.app-sidebar .nav-link.active {
    background: linear-gradient(135deg, #8b5cf6 0%, #a855f7 50%, #ec4899 100%) !important;
    border-color: transparent !important;
    box-shadow:
        0 4px 12px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.25) !important;
}

/* Active indicator bar */
.app-sidebar .nav-link.active::after {
    content: '';
    position: absolute;
    left: -12px;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 20px;
    background: linear-gradient(180deg, #a78bfa, #ec4899);
    border-radius: 0 4px 4px 0;
    box-shadow: none;
}

.nav-badge {
    z-index: 1002;
}

/* ============================================
   STORIES POPUP - CENTERED ON SCREEN
   ============================================ */
.stories-dropdown {
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) scale(0.9) !important;
    background: rgba(15, 5, 25, 0.95) !important;
    backdrop-filter: blur(40px) saturate(200%) !important;
    -webkit-backdrop-filter: blur(40px) saturate(200%) !important;
    border: 2px solid rgba(139, 92, 246, 0.4) !important;
    border-radius: 24px !important;
    box-shadow:
        0 25px 80px rgba(0, 0, 0, 0.6),
        0 0 60px rgba(139, 92, 246, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
    min-width: 280px;
    max-width: 320px;
    z-index: 100000 !important;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
    padding: 16px 0;
}

/* Popup visible state */
.stories-dropdown:not(.hidden) {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translate(-50%, -50%) scale(1) !important;
}

.stories-dropdown.hidden {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

/* Popup header */
.stories-dropdown::before {
    content: 'Stories';
    display: block;
    text-align: center;
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    padding: 8px 0 16px;
    margin-bottom: 8px;
    border-bottom: 1px solid rgba(139, 92, 246, 0.2);
    background: linear-gradient(135deg, #a78bfa, #ec4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Popup items */
.stories-dropdown .dropdown-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 24px;
    margin: 4px 12px;
    border-radius: 12px;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: all 0.25s ease;
    background: transparent;
}

.stories-dropdown .dropdown-item:hover {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.25), rgba(236, 72, 153, 0.2)) !important;
    transform: translateX(4px);
}

.stories-dropdown .dropdown-icon {
    width: 24px;
    height: 24px;
    color: #a78bfa;
    filter: drop-shadow(0 0 6px rgba(139, 92, 246, 0.5));
}

.stories-dropdown .dropdown-text {
    font-size: 15px;
    font-weight: 600;
}

.stories-dropdown .dropdown-emoji {
    font-size: 20px;
}

/* Ensure chat panel is above widget */
.chat-panel {
    z-index: 600;
}

/* ============================================
   ENHANCED LANDING PAGE - NEW SECTIONS
   ============================================ */

/* Hero Badge */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: rgba(139, 92, 246, 0.15);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    color: var(--primary-light);
    margin-bottom: 20px;
    animation: slideInUp 0.6s ease-out;
}

.badge-dot {
    display: inline-block;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.6;
    }
}

.gradient-text {
    background: linear-gradient(135deg, #a78bfa 0%, #ec4899 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Enhanced Info Items */
.hero-bottom-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 24px !important;
}

.info-item {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 14px;
    background: rgba(139, 92, 246, 0.08);
    border: 1px solid rgba(139, 92, 246, 0.15);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.info-item:hover {
    background: rgba(139, 92, 246, 0.12);
    border-color: var(--primary-color);
    transform: translateX(4px);
}

.info-emoji {
    font-size: 24px;
    flex-shrink: 0;
}

.info-item>div {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.info-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
}

.info-text {
    font-size: 13px;
    color: var(--text-secondary);
}

/* Enhanced Visual Card */
.visual-card {
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.25);
    border-radius: 16px;
    padding: 32px;
    text-align: center;
    animation: slideInUp 0.8s ease-out 0.3s backwards;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.visual-card:hover {
    background: rgba(139, 92, 246, 0.15);
    border-color: var(--primary-color);
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(139, 92, 246, 0.2);
}

.card-icon-large {
    font-size: 56px;
    margin-bottom: 16px;
    animation: float 3s ease-in-out infinite;
}

.card-content h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 12px 0;
}

.card-content>p {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.card-features {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 16px;
}

.feature-badge {
    display: inline-block;
    padding: 6px 12px;
    background: rgba(139, 92, 246, 0.2);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    color: var(--primary-light);
    transition: all 0.3s ease;
}

.feature-badge:hover {
    background: rgba(139, 92, 246, 0.3);
    border-color: var(--primary-color);
}

/* Floating Cards */
.visual-floating {
    position: relative;
    height: 300px;
    margin-top: 40px;
}

.float-card {
    position: absolute;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.15), rgba(236, 72, 153, 0.1));
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 12px;
    padding: 16px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.float-card:hover {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(236, 72, 153, 0.15));
    border-color: var(--primary-color);
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(139, 92, 246, 0.2);
}

.float-1 {
    width: 140px;
    top: 0;
    left: 0;
    animation: float-up 4s ease-in-out infinite;
}

.float-2 {
    width: 140px;
    top: 80px;
    right: 0;
    animation: float-up 5s ease-in-out infinite 0.5s;
}

.float-3 {
    width: 140px;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    animation: float-up 4s ease-in-out infinite 1s;
}

@keyframes float-up {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-15px);
    }
}

.float-emoji {
    font-size: 28px;
    margin-bottom: 8px;
}

.float-card p {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

/* Features Section */
.features-section {
    padding: 80px 60px;
    background: linear-gradient(180deg, transparent 0%, rgba(139, 92, 246, 0.05) 100%);
    position: relative;
    z-index: 10;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
    animation: fadeInUp 0.8s ease-out;
}

.section-header h2 {
    font-size: 44px;
    font-weight: 800;
    color: var(--text-primary);
    margin: 0 0 12px 0;
    letter-spacing: -0.5px;
}

.section-header p {
    font-size: 18px;
    color: var(--text-secondary);
    margin: 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
    max-width: 1400px;
    margin: 0 auto;
}

.feature-box {
    background: rgba(139, 92, 246, 0.08);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 16px;
    padding: 32px;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    animation: slideUpCard 0.6s ease-out both;
}

.feature-box:nth-child(1) {
    animation-delay: 0.1s;
}

.feature-box:nth-child(2) {
    animation-delay: 0.15s;
}

.feature-box:nth-child(3) {
    animation-delay: 0.2s;
}

.feature-box:nth-child(4) {
    animation-delay: 0.25s;
}

.feature-box:nth-child(5) {
    animation-delay: 0.3s;
}

.feature-box:nth-child(6) {
    animation-delay: 0.35s;
}

.feature-box:hover {
    background: rgba(139, 92, 246, 0.15);
    border-color: var(--primary-color);
    transform: translateY(-12px);
    box-shadow: 0 24px 48px rgba(139, 92, 246, 0.2);
}

.feature-icon-box {
    font-size: 40px;
    margin-bottom: 16px;
    display: inline-block;
    animation: float 3s ease-in-out infinite;
}

.feature-box h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 12px 0;
}

.feature-box p {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-secondary);
    margin: 0 0 16px 0;
}

.feature-highlight {
    display: inline-block;
    padding: 6px 12px;
    background: rgba(139, 92, 246, 0.2);
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    color: var(--primary-light);
}

/* Stats Section */
.stats-section {
    padding: 80px 60px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1) 0%, rgba(236, 72, 153, 0.05) 100%);
    position: relative;
    z-index: 10;
}

.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 32px;
    max-width: 1200px;
    margin: 0 auto;
}

.stat-card {
    text-align: center;
    padding: 32px;
    background: rgba(139, 92, 246, 0.08);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 16px;
    transition: all 0.3s ease;
    animation: slideUpCard 0.6s ease-out both;
}

.stat-card:nth-child(1) {
    animation-delay: 0.1s;
}

.stat-card:nth-child(2) {
    animation-delay: 0.2s;
}

.stat-card:nth-child(3) {
    animation-delay: 0.3s;
}

.stat-card:nth-child(4) {
    animation-delay: 0.4s;
}

.stat-card:hover {
    background: rgba(139, 92, 246, 0.15);
    border-color: var(--primary-color);
    transform: translateY(-8px);
    box-shadow: 0 16px 32px rgba(139, 92, 246, 0.15);
}

.stat-number {
    font-size: 48px;
    font-weight: 800;
    background: linear-gradient(135deg, #a78bfa 0%, #ec4899 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-secondary);
}

/* CTA Section */
.cta-section {
    padding: 80px 60px;
    text-align: center;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.08) 0%, rgba(236, 72, 153, 0.06) 100%);
    position: relative;
    z-index: 10;
    overflow: hidden;
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
    animation: fadeInUp 0.8s ease-out;
}

.cta-section h2 {
    font-size: 44px;
    font-weight: 800;
    color: var(--text-primary);
    margin: 0 0 16px 0;
    letter-spacing: -0.5px;
}

.cta-section p {
    font-size: 18px;
    color: var(--text-secondary);
    margin: 0 0 32px 0;
}

.cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-large {
    padding: 16px 36px;
    font-size: 16px;
    font-weight: 700;
}

/* Landing Footer */
.landing-footer {
    padding: 60px;
    background: linear-gradient(180deg, transparent 0%, rgba(139, 92, 246, 0.05) 100%);
    border-top: 1px solid rgba(139, 92, 246, 0.1);
    position: relative;
    z-index: 10;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto 40px;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 60px;
}

.footer-section {
    animation: fadeInUp 0.6s ease-out;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 12px;
}

.footer-logo .logo-text {
    background: linear-gradient(135deg, #a78bfa 0%, #ec4899 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-section p {
    color: var(--text-secondary);
    margin: 0;
    font-size: 14px;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    animation: fadeInUp 0.6s ease-out 0.1s backwards;
}

.link-group h4 {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 12px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.link-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.link-group a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.link-group a:hover {
    color: var(--primary-light);
}

.footer-bottom {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid rgba(139, 92, 246, 0.1);
    animation: fadeInUp 0.6s ease-out 0.2s backwards;
}

.footer-bottom p {
    color: var(--text-tertiary);
    font-size: 14px;
    margin: 0;
}

/* Mobile Responsiveness for Landing Page */
@media (max-width: 1024px) {
    .landing-hero {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 80px 40px;
    }

    .hero-visual {
        min-height: 400px;
    }

    .features-section,
    .stats-section,
    .cta-section {
        padding: 60px 40px;
    }

    .section-header h2 {
        font-size: 36px;
    }

    .footer-links {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

@media (max-width: 768px) {

    /* Landing Hero */
    .landing-hero {
        padding: 40px 16px;
    }

    .hero-content {
        padding: 0;
    }

    .hero-badge {
        padding: 8px 14px;
        font-size: 12px;
        margin-bottom: 16px;
    }

    .hero-title {
        font-size: 32px;
        line-height: 1.3;
        margin-bottom: 12px;
    }

    .hero-tagline {
        font-size: 14px;
        margin-bottom: 16px;
    }

    .hero-description {
        font-size: 14px;
        line-height: 1.5;
        margin-bottom: 20px;
    }

    /* Hero Buttons */
    .hero-buttons {
        flex-direction: column;
        gap: 10px;
        margin-bottom: 24px;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        padding: 12px 16px;
        font-size: 14px;
    }

    /* Hero Bottom Info */
    .hero-bottom-info {
        flex-direction: column;
        gap: 12px;
        margin-top: 20px;
    }

    .info-item {
        padding: 12px 0;
        border-bottom: 1px solid rgba(139, 92, 246, 0.1);
    }

    .info-item:last-child {
        border-bottom: none;
    }

    .info-emoji {
        font-size: 24px;
        margin-right: 12px;
    }

    .info-title {
        font-size: 13px;
        font-weight: 600;
    }

    .info-text {
        font-size: 12px;
    }

    /* Hero Visual */
    .hero-visual {
        min-height: 300px;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .visual-card {
        padding: 24px;
        width: 100%;
        max-width: 280px;
    }

    .card-icon-large {
        font-size: 48px;
    }

    .card-content h3 {
        font-size: 18px;
    }

    .card-content>p {
        font-size: 13px;
    }

    /* Floating Cards - Stack Vertically on Mobile */
    .visual-floating {
        position: relative;
        height: auto;
        margin-top: 20px;
        display: flex;
        flex-direction: column;
        gap: 12px;
        align-items: center;
    }

    .float-card {
        position: static !important;
        width: 100% !important;
        max-width: 250px !important;
        animation: none !important;
    }

    .float-1,
    .float-2,
    .float-3 {
        top: auto !important;
        left: auto !important;
        width: 100% !important;
        max-width: 250px !important;
        animation: none !important;
    }

    /* Features Section */
    .features-section {
        padding: 40px 16px;
    }

    .section-header {
        margin-bottom: 28px;
    }

    .section-header h2 {
        font-size: 24px;
        margin-bottom: 8px;
    }

    .section-header p {
        font-size: 14px;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .feature-box {
        padding: 20px 16px;
    }

    .feature-icon-box {
        font-size: 40px;
        margin-bottom: 12px;
    }

    .feature-box h3 {
        font-size: 16px;
        margin: 8px 0;
    }

    .feature-box p {
        font-size: 13px;
        line-height: 1.4;
        margin-bottom: 8px;
    }

    .feature-highlight {
        font-size: 11px;
        padding: 6px 10px;
    }

    /* Stats Section */
    .stats-section {
        padding: 40px 16px;
    }

    .stats-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .stat-card {
        padding: 16px 12px;
    }

    .stat-number {
        font-size: 28px;
    }

    .stat-label {
        font-size: 12px;
        margin-top: 8px;
    }

    /* CTA Section */
    .cta-section {
        padding: 40px 16px;
    }

    .cta-content h2 {
        font-size: 24px;
        margin-bottom: 12px;
    }

    .cta-content p {
        font-size: 14px;
        margin-bottom: 20px;
    }

    .cta-buttons {
        flex-direction: column;
        gap: 10px;
    }

    .btn-large {
        width: 100%;
        padding: 12px 16px;
        font-size: 14px;
    }

    /* Footer */
    .landing-footer {
        padding: 40px 16px 24px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 32px;
        margin-bottom: 24px;
    }

    .footer-logo {
        margin-bottom: 8px;
    }

    .footer-logo .logo-text {
        font-size: 20px;
    }

    .footer-section p {
        font-size: 13px;
    }

    .footer-links {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .link-group h4 {
        font-size: 14px;
        margin-bottom: 8px;
    }

    .link-group a {
        font-size: 13px;
    }

    .footer-bottom p {
        font-size: 12px;
    }

    /* Navigation Header */
    .landing-nav-header {
        padding: 12px 16px;
    }

    .nav-container {
        padding: 0;
    }

    .nav-logo .logo-text {
        font-size: 18px;
    }

    .nav-btn {
        padding: 8px 12px;
        font-size: 12px;
    }
}

/* Extra Small Screens (< 480px) */
@media (max-width: 480px) {

    /* Landing Hero */
    .landing-hero {
        padding: 30px 12px;
    }

    .hero-title {
        font-size: 24px;
        line-height: 1.2;
    }

    .hero-tagline {
        font-size: 12px;
    }

    .hero-description {
        font-size: 13px;
    }

    .hero-badge {
        padding: 6px 12px;
        font-size: 11px;
    }

    /* Buttons */
    .btn-primary,
    .btn-secondary,
    .btn-large {
        padding: 10px 14px;
        font-size: 13px;
    }

    /* Hero Info Items */
    .info-item {
        padding: 10px 0;
    }

    .info-emoji {
        font-size: 20px;
    }

    .info-title {
        font-size: 12px;
    }

    .info-text {
        font-size: 11px;
    }

    /* Visual Card */
    .visual-card {
        padding: 20px;
        max-width: 100%;
    }

    .card-icon-large {
        font-size: 44px;
    }

    .card-content h3 {
        font-size: 16px;
    }

    .card-content>p {
        font-size: 12px;
    }

    /* Floating Cards */
    .float-card {
        max-width: 100% !important;
        padding: 12px !important;
    }

    .float-emoji {
        font-size: 32px;
    }

    .float-card p {
        font-size: 12px;
    }

    /* Features Section */
    .features-section {
        padding: 30px 12px;
    }

    .section-header h2 {
        font-size: 20px;
    }

    .section-header p {
        font-size: 12px;
    }

    .feature-box {
        padding: 16px 12px;
    }

    .feature-icon-box {
        font-size: 36px;
    }

    .feature-box h3 {
        font-size: 14px;
    }

    .feature-box p {
        font-size: 12px;
    }

    /* Stats Section */
    .stats-section {
        padding: 30px 12px;
    }

    .stats-container {
        grid-template-columns: 1fr;
    }

    .stat-card {
        padding: 14px 10px;
    }

    .stat-number {
        font-size: 24px;
    }

    .stat-label {
        font-size: 11px;
    }

    /* CTA Section */
    .cta-section {
        padding: 30px 12px;
    }

    .cta-content h2 {
        font-size: 20px;
    }

    .cta-content p {
        font-size: 12px;
    }

    /* Footer */
    .landing-footer {
        padding: 30px 12px 20px;
    }

    .footer-content {
        gap: 24px;
    }

    .footer-logo .logo-text {
        font-size: 18px;
    }

    .footer-section p {
        font-size: 12px;
    }

    .link-group h4 {
        font-size: 13px;
    }

    .link-group a {
        font-size: 12px;
    }

    .footer-bottom p {
        font-size: 11px;
    }

    /* Navigation */
    .landing-nav-header {
        padding: 10px 12px;
    }

    .nav-logo .logo-text {
        font-size: 16px;
    }

    .nav-btn {
        padding: 6px 10px;
        font-size: 11px;
    }
}

/* ========================================
   MODERN APP LAYOUT SYSTEM
   Mobile-First, Component-Driven Architecture
   ======================================== */

/* ========================================
   CSS VARIABLES & THEME SETUP
   ======================================== */

:root {
    --header-height: 64px;
    --sidebar-width: 80px;
    --bottom-nav-height: 70px;
    --content-padding: 1rem;
    --border-radius: 12px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base HTML & Body Fixes */
html,
body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    /* Prevent unwanted scrolling on body */
}

/* ========================================
   ROOT LAYOUT STRUCTURE
   ======================================== */

.app-layout {
    display: flex;
    flex-direction: row;
    height: 100vh;
    background: var(--bg-primary);
    position: relative;
    overflow: hidden;
}

.app-layout.hidden {
    display: none;
}

/* ========================================
   PREMIUM SIDEBAR - FROSTED GLASS DESIGN
   ======================================== */

.app-sidebar {
    width: var(--sidebar-width);
    /* Frosted glass background */
    background: rgba(10, 5, 20, 0.75);
    backdrop-filter: blur(40px) saturate(200%);
    -webkit-backdrop-filter: blur(40px) saturate(200%);
    /* Animated gradient border */
    border-right: 2px solid transparent;
    background-image:
        linear-gradient(rgba(10, 5, 20, 0.9), rgba(10, 5, 20, 0.9)),
        linear-gradient(180deg, rgba(139, 92, 246, 0.6) 0%, rgba(236, 72, 153, 0.4) 50%, rgba(99, 102, 241, 0.6) 100%);
    background-origin: border-box;
    background-clip: padding-box, border-box;
    /* Glow effect */
    box-shadow:
        8px 0 40px rgba(139, 92, 246, 0.15),
        inset -1px 0 0 rgba(255, 255, 255, 0.08),
        inset 0 0 60px rgba(139, 92, 246, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 24px 0;
    position: relative;
    z-index: 100;
    overflow-y: auto;
    overflow-x: hidden;
}

/* Shimmer overlay effect */
.app-sidebar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg,
            rgba(255, 255, 255, 0.03) 0%,
            transparent 40%,
            transparent 60%,
            rgba(255, 255, 255, 0.02) 100%);
    pointer-events: none;
}

.sidebar-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-bottom: 32px;
    cursor: pointer;
    transition: all 0.4s ease;
    position: relative;
    z-index: 1;
}

.sidebar-brand:hover {
    transform: scale(1.05);
}

.brand-icon {
    font-size: 36px;
    filter: drop-shadow(0 0 12px rgba(139, 92, 246, 0.5));
    animation: brandPulse 3s ease-in-out infinite;
}

@keyframes brandPulse {

    0%,
    100% {
        filter: drop-shadow(0 0 12px rgba(139, 92, 246, 0.5));
    }

    50% {
        filter: drop-shadow(0 0 20px rgba(236, 72, 153, 0.6));
    }
}

.brand-text {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 2px;
    background: linear-gradient(135deg, #a78bfa, #ec4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-transform: uppercase;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 0 8px;
    margin: 0;
    position: relative;
    z-index: 1;
}

.sidebar-nav::-webkit-scrollbar {
    width: 3px;
}

.sidebar-nav::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar-nav::-webkit-scrollbar-thumb {
    background: rgba(139, 92, 246, 0.4);
    border-radius: 3px;
}

/* Nav Link - Floating pill style */
.nav-link {
    width: 54px;
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    background: rgba(139, 92, 246, 0.06);
    border: 1px solid rgba(139, 92, 246, 0.1);
    cursor: pointer;
    pointer-events: auto;
}

.nav-link:hover {
    background: rgba(139, 92, 246, 0.15);
    border-color: rgba(139, 92, 246, 0.3);
    color: #fff;
    transform: translateY(-4px) scale(1.05);
    box-shadow:
        0 8px 24px rgba(139, 92, 246, 0.25),
        0 0 0 1px rgba(139, 92, 246, 0.2);
}

.nav-link.active {
    background: linear-gradient(135deg, #8b5cf6 0%, #a855f7 50%, #ec4899 100%);
    color: white;
    border-color: transparent;
    box-shadow:
        0 8px 32px rgba(139, 92, 246, 0.5),
        0 0 24px rgba(236, 72, 153, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.25);
    transform: scale(1.02);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    left: -10px;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 20px;
    background: linear-gradient(180deg, #a78bfa, #ec4899);
    border-radius: 0 4px 4px 0;
    box-shadow: 0 0 12px rgba(139, 92, 246, 0.6);
}

.nav-icon {
    width: 24px;
    height: 24px;
    stroke-width: 2;
    pointer-events: none;
    transition: all 0.3s ease;
}

.nav-link.active .nav-icon {
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.5));
}

.nav-text {
    display: none;
    pointer-events: none;
}

.nav-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    background: linear-gradient(135deg, #ef4444, #f97316);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
    color: white;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.4);
}

.nav-badge.hidden {
    display: none;
}

.sidebar-footer {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: auto;
    flex-shrink: 0;
    padding: 20px 0 0 0;
    border-top: 1px solid rgba(139, 92, 246, 0.15);
    position: relative;
    z-index: 1;
}

.logout-btn {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.15);
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.logout-btn:hover {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger-color);
}

.logout-btn svg {
    width: 20px;
    height: 20px;
}

/* ========================================
   MAIN CONTENT AREA
   ======================================== */

.app-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
    /* Critical for flex layout - allows children to scroll properly */
    overflow: hidden;
    position: relative;
}

/* ========================================
   HEADER COMPONENT
   ======================================== */

.app-header {
    height: var(--header-height);
    background: linear-gradient(135deg,
            rgba(26, 13, 46, 0.95),
            rgba(15, 1, 24, 0.98));
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(139, 92, 246, 0.15);
    display: flex;
    align-items: center;
    padding: 0 var(--content-padding);
    gap: 1rem;
    position: sticky;
    top: 0;
    z-index: 100;
}

/* Hide header brand on desktop (it is mobile only) */
.header-brand {
    display: none;
}

.header-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.025em;
    margin: 0;
}

.header-spacer {
    flex: 1;
}

.header-actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

/* ========================================
   PAGE SYSTEM
   ======================================== */

.page {
    display: none;
    flex: 1;
    min-height: 0;
    /* Force scrollable height: 100vh - header (64px) - account for body margins */
    height: calc(100vh - 64px);
    overflow-y: auto;
    overflow-x: hidden;
    background: var(--bg-primary);
}

#feedPage {
    height: 650px !important;
    max-height: 650px !important;
}

.page.active {
    display: flex;
    flex-direction: column;
}

/* ========================================
   FEED PAGE COMPONENTS
   ======================================== */

.feed-container {
    flex: 1;
    padding: var(--content-padding);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 500px;
    margin: 0 auto;
    width: 100%;
    min-height: 0;
    overflow: visible !important;
}

.feed-filters {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.75rem 1.25rem;
    background: rgba(139, 92, 246, 0.08);
    border: 1px solid rgba(139, 92, 246, 0.2);
    color: var(--text-secondary);
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.875rem;
    font-weight: 600;
    white-space: nowrap;
}

.filter-btn:hover {
    background: rgba(139, 92, 246, 0.12);
    border-color: rgba(139, 92, 246, 0.3);
    transform: translateY(-1px);
}

.filter-btn.active {
    background: linear-gradient(135deg, #a78bfa, #ec4899);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 16px rgba(139, 92, 246, 0.3);
}

.feed-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-height: 0;
}

/* Post Card Component */
.post-card {
    background: linear-gradient(135deg,
            rgba(139, 92, 246, 0.06),
            rgba(236, 72, 153, 0.04));
    border: 1px solid rgba(139, 92, 246, 0.12);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    cursor: pointer;
    transition: var(--transition);
    animation: slideInUp 0.5s ease forwards;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.post-card:hover {
    background: linear-gradient(135deg,
            rgba(139, 92, 246, 0.1),
            rgba(236, 72, 153, 0.06));
    border-color: rgba(139, 92, 246, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(139, 92, 246, 0.12);
}

.post-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.post-avatar {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(139, 92, 246, 0.2);
}

.post-author-info {
    flex: 1;
}

.post-author-name {
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    font-size: 0.875rem;
}

.post-date {
    font-size: 0.75rem;
    color: var(--text-tertiary);
    margin: 0.25rem 0 0 0;
}

.post-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0.75rem 0;
    line-height: 1.4;
}

.post-preview {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ========================================
   COMPOSE PAGE COMPONENTS
   ======================================== */

.compose-container {
    flex: 1;
    padding: var(--content-padding);
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
}

.compose-card {
    background: linear-gradient(135deg,
            rgba(139, 92, 246, 0.06),
            rgba(236, 72, 153, 0.04));
    border: 1px solid rgba(139, 92, 246, 0.12);
    border-radius: var(--border-radius);
    padding: 2rem;
}

.compose-title {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--text-primary);
    margin: 0 0 2rem 0;
    letter-spacing: -0.025em;
}

.compose-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
}

.form-group input,
.form-group textarea,
.form-group select {
    padding: 0.875rem 1rem;
    background: rgba(139, 92, 246, 0.06);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: var(--border-radius);
    color: var(--text-primary);
    font-size: 0.875rem;
    transition: var(--transition);
    width: 100%;
    box-sizing: border-box;
}

.form-group textarea {
    min-height: 160px;
    resize: vertical;
    font-family: inherit;
    line-height: 1.5;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: rgba(139, 92, 246, 0.4);
    background: rgba(139, 92, 246, 0.1);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

.compose-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 0.75rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(139, 92, 246, 0.1);
}

.btn-primary {
    padding: 0.875rem 1.5rem;
    background: linear-gradient(135deg, #a78bfa, #ec4899);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(139, 92, 246, 0.3);
}

/* ========================================
   EXPLORE PAGE COMPONENTS
   ======================================== */

.explore-container {
    flex: 1;
    padding: var(--content-padding);
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.explore-header {
    margin-bottom: 2rem;
}

.explore-header h2 {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--text-primary);
    margin: 0 0 1.25rem 0;
    letter-spacing: -0.025em;
}

.search-container {
    position: relative;
    display: flex;
    align-items: center;
}

.search-container input {
    flex: 1;
    padding: 0.875rem 1rem;
    background: rgba(139, 92, 246, 0.06);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: var(--border-radius);
    color: var(--text-primary);
    font-size: 0.875rem;
    transition: var(--transition);
}

.search-container input:focus {
    outline: none;
    border-color: rgba(139, 92, 246, 0.4);
    background: rgba(139, 92, 246, 0.1);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

.search-icon {
    position: absolute;
    right: 1rem;
    color: var(--text-secondary);
    font-size: 1rem;
}

.explore-sections {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.section-header {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
    margin: 0;
    letter-spacing: -0.025em;
}

.section-description {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin: 0;
}

/* Grid Systems */
.grid-system {
    display: grid;
    gap: 1rem;
}

.posts-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.writers-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}

.grid-item {
    background: linear-gradient(135deg,
            rgba(139, 92, 246, 0.06),
            rgba(236, 72, 153, 0.04));
    border: 1px solid rgba(139, 92, 246, 0.12);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.grid-item:hover {
    background: linear-gradient(135deg,
            rgba(139, 92, 246, 0.1),
            rgba(236, 72, 153, 0.06));
    border-color: rgba(139, 92, 246, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(139, 92, 246, 0.12);
}

.grid-item h4 {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.4;
}

.grid-item p {
    margin: 0;
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.5;
    flex: 1;
}

.writer-item {
    align-items: center;
    text-align: center;
}

.writer-stats {
    font-size: 0.75rem;
    color: var(--text-tertiary);
    margin-top: 0.25rem;
}

/* ========================================
   PROFILE PAGE COMPONENTS
   ======================================== */

.profile-container {
    flex: 1;
    padding: var(--content-padding);
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
    width: 100%;
}

/* Profile Header */
.profile-header {
    background: linear-gradient(135deg,
            rgba(139, 92, 246, 0.1),
            rgba(236, 72, 153, 0.06));
    border: 1px solid rgba(139, 92, 246, 0.15);
    border-radius: var(--border-radius);
    padding: 2rem;
    display: flex;
    align-items: flex-start;
    gap: 2rem;
}

.profile-avatar-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
    gap: 1rem;
}

.profile-avatar {
    width: 120px;
    height: 120px;
    border-radius: var(--border-radius);
    object-fit: cover;
    border: 4px solid rgba(139, 92, 246, 0.3);
    box-shadow: 0 8px 32px rgba(139, 92, 246, 0.2);
}

.profile-info-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.profile-name {
    font-size: 2rem;
    font-weight: 900;
    color: var(--text-primary);
    margin: 0;
    letter-spacing: -0.05em;
}

.profile-bio {
    font-size: 1rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.6;
    max-width: 500px;
}

.profile-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin: 1rem 0;
}

.stat-item {
    text-align: center;
}

.stat-value {
    font-size: 2rem;
    font-weight: 900;
    background: linear-gradient(135deg, #a78bfa, #ec4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
    display: block;
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-tertiary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 0.5rem;
}

.profile-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

/* Profile Content */
.profile-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.content-section {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.section-header {
    border-bottom: 2px solid rgba(139, 92, 246, 0.1);
    padding-bottom: 1rem;
}

.content-grid {
    display: grid;
    gap: 1rem;
}

.badges-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
}

.badge-item {
    background: linear-gradient(135deg,
            rgba(139, 92, 246, 0.06),
            rgba(236, 72, 153, 0.04));
    border: 1px solid rgba(139, 92, 246, 0.12);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    text-align: center;
    transition: var(--transition);
}

.badge-item:hover {
    background: linear-gradient(135deg,
            rgba(139, 92, 246, 0.1),
            rgba(236, 72, 153, 0.06));
    border-color: rgba(139, 92, 246, 0.25);
    transform: translateY(-2px);
}

.badge-icon {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
    display: block;
}

.badge-name {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.badge-level {
    font-size: 0.75rem;
    color: var(--text-tertiary);
    margin: 0.25rem 0 0 0;
}

/* Empty States */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-secondary);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.empty-state-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-state h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 0.5rem 0;
}

.empty-state p {
    font-size: 0.875rem;
    margin: 0;
}

/* ========================================
   LOADING STATES
   ======================================== */

.loading-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.loading-spinner {
    width: 2.5rem;
    height: 2.5rem;
    border: 3px solid rgba(139, 92, 246, 0.1);
    border-top: 3px solid #a78bfa;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* ========================================
   RESPONSIVE BREAKPOINTS
   ======================================== */

/* Tablet (768px and up) */
@media (min-width: 768px) {
    :root {
        --content-padding: 2rem;
        --header-height: 70px;
    }

    .app-layout {
        flex-direction: row;
    }

    .header-title {
        font-size: 1.5rem;
    }

    .posts-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }

    .profile-header {
        padding: 2.5rem;
    }

    .profile-avatar {
        width: 140px;
        height: 140px;
    }
}

/* Desktop (1024px and up) */
@media (min-width: 1024px) {
    :root {
        --content-padding: 2.5rem;
    }

    .feed-container,
    .compose-container,
    .explore-container,
    .profile-container {
        max-width: 1200px;
    }

    .compose-card {
        padding: 3rem;
    }

    .profile-header {
        padding: 3rem;
        gap: 2.5rem;
    }

    .profile-avatar {
        width: 160px;
        height: 160px;
    }

    .profile-name {
        font-size: 2.5rem;
    }
}

/* Mobile Optimizations (480px and below) */
@media (max-width: 480px) {
    :root {
        --content-padding: 1rem;
        --border-radius: 10px;
    }

    .app-header {
        padding: 0 1rem;
        height: 60px;
    }

    .header-title {
        font-size: 1.125rem;
    }

    /* Feed optimizations */
    .feed-container {
        gap: 1rem;
    }

    .feed-filters {
        gap: 0.5rem;
        overflow-x: auto;
        padding-bottom: 0.5rem;
        margin-bottom: 0.5rem;
    }

    .filter-btn {
        padding: 0.625rem 1rem;
        font-size: 0.8125rem;
        flex-shrink: 0;
    }

    .post-card {
        padding: 1.25rem;
    }

    .post-title {
        font-size: 1rem;
    }

    /* Compose optimizations */
    .compose-card {
        padding: 1.5rem;
    }

    .compose-title {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .compose-form {
        gap: 1.25rem;
    }

    /* Profile optimizations */
    .profile-header {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
        padding: 1.5rem;
    }

    .profile-avatar {
        width: 100px;
        height: 100px;
    }

    .profile-name {
        font-size: 1.75rem;
    }

    .profile-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }

    .stat-value {
        font-size: 1.75rem;
    }

    .profile-actions {
        flex-direction: column;
        width: 100%;
    }

    .btn-primary {
        width: 100%;
    }

    /* Grid optimizations */
    .posts-grid,
    .writers-grid {
        grid-template-columns: 1fr;
        gap: 0.875rem;
    }

    .badges-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .grid-item {
        padding: 1.25rem;
    }
}

/* Large Mobile (481px - 767px) */
@media (min-width: 481px) and (max-width: 767px) {
    .posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .writers-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .badges-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .profile-header {
        flex-direction: column;
        text-align: center;
    }

    .profile-avatar-section {
        width: 100%;
    }
}

/* ========================================
   UTILITY CLASSES
   ======================================== */

.hidden {
    display: none !important;
}

.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.items-center {
    align-items: center;
}

.justify-center {
    justify-content: center;
}

.text-center {
    text-align: center;
}

.w-full {
    width: 100%;
}

.h-full {
    height: 100%;
}

/* ========================================
   ACCESSIBILITY & PERFORMANCE
   ======================================== */

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus styles for keyboard navigation */
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid #a78bfa;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {

    .post-card,
    .grid-item,
    .badge-item,
    .compose-card,
    .profile-header {
        border-width: 2px;
        background: transparent;
    }
}

/* ========================================
   COMPOSE BUTTONS - OPTIMIZED
   ======================================== */

.compose-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(139, 92, 246, 0.1);
}

.btn-compose {
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #a78bfa, #ec4899);
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1rem;
    min-height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-compose:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.4);
}

.btn-compose[type="reset"] {
    background: rgba(139, 92, 246, 0.1);
    color: var(--text-primary);
    border: 1px solid rgba(139, 92, 246, 0.3);
}

.btn-compose[type="reset"]:hover {
    background: rgba(139, 92, 246, 0.15);
    border-color: rgba(139, 92, 246, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(139, 92, 246, 0.2);
}

/* Desktop layout */
@media (min-width: 769px) {
    .compose-actions {
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
    }

    .btn-compose {
        padding: 1.125rem 2rem;
        font-size: 1.125rem;
        min-height: 60px;
    }
}

/* Mobile layout */
@media (max-width: 768px) {
    .compose-actions {
        grid-template-columns: 1fr;
        gap: 0.875rem;
    }

    .btn-compose {
        padding: 0.875rem 1.5rem;
        font-size: 0.875rem;
        min-height: 48px;
    }
}

/* ========================================
   PROFILE PAGE - MOBILE-FIRST OPTIMIZATION
   ======================================== */

.profile-container-new {
    width: 100%;
    min-height: 100%;
    display: flex;
    flex-direction: column;
}

/* ========================================
   PROFILE HERO SECTION
   ======================================== */

.profile-hero {
    position: relative;
    width: 100%;
    padding: 20px 16px;
    margin-bottom: 20px;
}

.profile-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(135deg,
            rgba(139, 92, 246, 0.15) 0%,
            rgba(236, 72, 153, 0.1) 100%);
    z-index: 0;
}

/* ========================================
   PROFILE CARD
   ======================================== */

.profile-card {
    position: relative;
    z-index: 1;
    background: linear-gradient(135deg,
            rgba(139, 92, 246, 0.08),
            rgba(236, 72, 153, 0.05));
    border: 1px solid rgba(139, 92, 246, 0.15);
    border-radius: 16px;
    padding: 24px 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

/* Avatar Section */
.profile-avatar-section {
    text-align: center;
    margin-bottom: 24px;
}

.profile-avatar-wrapper {
    position: relative;
    display: inline-block;
    margin-bottom: 16px;
}

.profile-avatar {
    width: 100px;
    height: 100px;
    border-radius: 12px;
    object-fit: cover;
    border: 3px solid rgba(139, 92, 246, 0.3);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.2);
}

.avatar-edit-btn {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, #a78bfa, #ec4899);
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

.avatar-edit-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(139, 92, 246, 0.4);
}

.avatar-edit-btn svg {
    width: 18px;
    height: 18px;
}

/* Profile Info */
.profile-info {
    margin-bottom: 20px;
}

.profile-name {
    font-size: 24px;
    font-weight: 800;
    color: var(--text-primary);
    margin: 0 0 8px 0;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.verified-tick {
    color: #10b981;
    font-size: 20px;
}

.profile-bio {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.5;
    max-width: 280px;
    margin-left: auto;
    margin-right: auto;
}

/* ========================================
   STATS GRID
   ======================================== */

.profile-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(139, 92, 246, 0.1);
}

.stat-card {
    text-align: center;
    padding: 12px 8px;
    background: rgba(139, 92, 246, 0.05);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.stat-card:hover {
    background: rgba(139, 92, 246, 0.1);
    transform: translateY(-2px);
}

.stat-value {
    font-size: 28px;
    font-weight: 800;
    background: linear-gradient(135deg, #a78bfa, #ec4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
}

.stat-label {
    font-size: 12px;
    color: var(--text-tertiary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 4px;
}

/* ========================================
   USER ID SECTION
   ======================================== */

.profile-userid-section {
    margin-bottom: 16px;
    padding: 12px;
    background: rgba(139, 92, 246, 0.05);
    border-radius: 10px;
}

.userid-label {
    display: block;
    font-size: 12px;
    color: var(--text-tertiary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.userid-input-group {
    display: flex;
    gap: 8px;
    align-items: center;
}

.userid-code {
    flex: 1;
    background: var(--bg-secondary);
    color: var(--text-primary);
    padding: 8px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-family: 'Courier New', monospace;
    word-break: break-all;
    border: 1px solid rgba(139, 92, 246, 0.2);
}

.userid-copy-btn {
    width: 36px;
    height: 36px;
    min-width: 36px;
    background: linear-gradient(135deg, #a78bfa, #ec4899);
    border: none;
    border-radius: 6px;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.userid-copy-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

/* ========================================
   ACTION BUTTONS
   ======================================== */

.profile-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.btn-primary-profile {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex: 1;
    min-width: 140px;
    padding: 12px 20px;
    background: linear-gradient(135deg, #a78bfa, #ec4899);
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

.btn-primary-profile:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(139, 92, 246, 0.4);
}

.btn-primary-profile:active {
    transform: translateY(0);
}

.btn-primary-profile svg {
    width: 18px;
    height: 18px;
}

.btn-secondary-profile {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex: 1;
    min-width: 140px;
    padding: 12px 20px;
    background: rgba(139, 92, 246, 0.1);
    color: #a78bfa;
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 10px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary-profile:hover {
    background: rgba(139, 92, 246, 0.2);
    border-color: rgba(139, 92, 246, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.2);
}

.btn-secondary-profile:active {
    transform: translateY(0);
}

.btn-secondary-profile svg {
    width: 18px;
    height: 18px;
}

/* ========================================
   PROFILE CONTENT WRAPPER
   ======================================== */

.profile-content-wrapper {
    padding: 0 16px;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

/* ========================================
   PROFILE SECTIONS
   ======================================== */

.profile-section {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.section-header {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 12px;
}

.section-header h2 {
    font-size: 20px;
    font-weight: 800;
    color: var(--text-primary);
    margin: 0;
    letter-spacing: -0.3px;
}

.section-header p {
    font-size: 13px;
    color: var(--text-tertiary);
    margin: 0;
}

/* ========================================
   POSTS GRID
   ======================================== */

.posts-grid-profile {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.post-card-profile {
    background: linear-gradient(135deg,
            rgba(139, 92, 246, 0.08),
            rgba(236, 72, 153, 0.05));
    border: 1px solid rgba(139, 92, 246, 0.15);
    border-radius: 12px;
    padding: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.post-card-profile:hover {
    background: linear-gradient(135deg,
            rgba(139, 92, 246, 0.12),
            rgba(236, 72, 153, 0.08));
    border-color: rgba(139, 92, 246, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.15);
}

.post-card-profile h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 8px 0;
    line-height: 1.4;
}

.post-card-profile p {
    font-size: 13px;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-meta-profile {
    display: flex;
    gap: 12px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(139, 92, 246, 0.1);
    font-size: 12px;
    color: var(--text-tertiary);
}

/* ========================================
   BADGES GRID
   ======================================== */

.badges-grid-profile {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.badge-item-profile {
    background: linear-gradient(135deg,
            rgba(139, 92, 246, 0.1),
            rgba(236, 72, 153, 0.06));
    border: 1px solid rgba(139, 92, 246, 0.15);
    border-radius: 12px;
    padding: 16px;
    text-align: center;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.badge-item-profile:hover {
    background: linear-gradient(135deg,
            rgba(139, 92, 246, 0.15),
            rgba(236, 72, 153, 0.1));
    border-color: rgba(139, 92, 246, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.1);
}

.badge-icon-profile {
    font-size: 32px;
    display: block;
}

.badge-name-profile {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    line-height: 1.3;
}

.badge-desc-profile {
    font-size: 11px;
    color: var(--text-tertiary);
    margin: 0;
}

/* ========================================
   EMPTY STATE
   ======================================== */

.profile-empty-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-secondary);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.profile-empty-state-icon {
    font-size: 48px;
    opacity: 0.5;
}

.profile-empty-state p {
    font-size: 14px;
    margin: 0;
}

/* ========================================
   TABLET LAYOUT (481px - 768px)
   ======================================== */

@media (min-width: 481px) and (max-width: 768px) {
    .profile-card {
        padding: 28px 20px;
    }

    .profile-avatar {
        width: 120px;
        height: 120px;
    }

    .profile-name {
        font-size: 28px;
    }

    .posts-grid-profile {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }

    .badges-grid-profile {
        grid-template-columns: repeat(3, 1fr);
        gap: 14px;
    }

    .profile-content-wrapper {
        padding: 0 20px;
    }
}

/* ========================================
   DESKTOP LAYOUT (769px and up)
   ======================================== */

@media (min-width: 769px) {
    .profile-hero {
        padding: 40px 40px;
        margin-bottom: 40px;
    }

    .profile-hero-bg {
        height: 150px;
    }

    .profile-card {
        max-width: 900px;
        margin: 0 auto;
        padding: 40px;
        display: grid;
        grid-template-columns: auto 1fr;
        gap: 40px;
        align-items: start;
    }

    .profile-avatar-section {
        text-align: left;
        grid-column: 1;
    }

    .profile-avatar {
        width: 140px;
        height: 140px;
    }

    .profile-name {
        font-size: 32px;
        justify-content: flex-start;
    }

    .profile-bio {
        max-width: none;
        text-align: left;
    }

    .profile-card>div:nth-child(2) {
        grid-column: 2;
        display: flex;
        flex-direction: column;
        gap: 24px;
    }

    .profile-stats-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }

    .profile-content-wrapper {
        padding: 0 40px;
        gap: 50px;
    }

    .posts-grid-profile {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 16px;
    }

    .badges-grid-profile {
        grid-template-columns: repeat(4, 1fr);
        gap: 16px;
    }

    .badge-item-profile {
        padding: 20px;
    }

    .badge-icon-profile {
        font-size: 40px;
    }
}

/* ========================================
   ACCESSIBILITY
   ======================================== */

@media (prefers-reduced-motion: reduce) {

    .avatar-edit-btn,
    .stat-card,
    .post-card-profile,
    .badge-item-profile,
    .btn-primary-profile {
        transition: none;
    }

    .avatar-edit-btn:hover,
    .stat-card:hover,
    .post-card-profile:hover,
    .badge-item-profile:hover,
    .btn-primary-profile:hover {
        transform: none;
    }
}

/* Focus styles for keyboard navigation */
.avatar-edit-btn:focus-visible,
.userid-copy-btn:focus-visible,
.btn-primary-profile:focus-visible,
.post-card-profile:focus-visible,
.badge-item-profile:focus-visible {
    outline: 2px solid #a78bfa;
    outline-offset: 2px;
}

/* ========================================
   ADMIN PAGE - MOBILE-FIRST OPTIMIZATION
   ======================================== */

.admin-container-new {
    width: 100%;
    min-height: 100%;
    display: flex;
    flex-direction: column;
}

/* ========================================
   ADMIN HEADER
   ======================================== */

.admin-header-new {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 16px;
    background: linear-gradient(135deg,
            rgba(139, 92, 246, 0.1),
            rgba(236, 72, 153, 0.05));
    border-bottom: 1px solid rgba(139, 92, 246, 0.15);
    gap: 16px;
}

.admin-header-content {
    flex: 1;
}

.admin-title {
    font-size: 24px;
    font-weight: 800;
    color: var(--text-primary);
    margin: 0 0 4px 0;
    letter-spacing: -0.5px;
}

.admin-subtitle {
    font-size: 13px;
    color: var(--text-secondary);
    margin: 0;
}

.admin-header-icon {
    font-size: 32px;
    opacity: 0.6;
}

/* ========================================
   TAB NAVIGATION
   ======================================== */

.admin-tabs-new {
    display: flex;
    gap: 8px;
    padding: 12px 16px;
    background: var(--bg-primary);
    border-bottom: 1px solid rgba(139, 92, 246, 0.1);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.admin-tabs-new::-webkit-scrollbar {
    height: 4px;
}

.admin-tabs-new::-webkit-scrollbar-track {
    background: transparent;
}

.admin-tabs-new::-webkit-scrollbar-thumb {
    background-color: rgba(139, 92, 246, 0.3);
    border-radius: 2px;
}

.admin-tab-btn-new {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 14px;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 8px;
    white-space: nowrap;
    flex-shrink: 0;
}

.admin-tab-btn-new:hover {
    background: rgba(139, 92, 246, 0.1);
    color: var(--text-primary);
}

.admin-tab-btn-new.active {
    background: linear-gradient(135deg, #a78bfa, #ec4899);
    color: white;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

.admin-tab-btn-new svg {
    width: 18px;
    height: 18px;
}

/* ========================================
   CONTENT AREA
   ======================================== */

.admin-content-new {
    flex: 1;
    padding: 20px 16px;
    overflow-y: auto;
}

.admin-tab-content-new {
    display: none;
    animation: fadeIn 0.3s ease-out;
}

.admin-tab-content-new.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   SECTION STYLING
   ======================================== */

.admin-section-new {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.section-title-new {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.section-title-new h2 {
    font-size: 18px;
    font-weight: 800;
    color: var(--text-primary);
    margin: 0;
    letter-spacing: -0.3px;
}

.section-title-new p {
    font-size: 12px;
    color: var(--text-tertiary);
    margin: 0;
}

/* ========================================
   ADMIN CARDS GRID
   ======================================== */

.admin-cards-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

/* ========================================
   ADMIN CARD
   ======================================== */

.admin-card {
    background: linear-gradient(135deg,
            rgba(139, 92, 246, 0.08),
            rgba(236, 72, 153, 0.05));
    border: 1px solid rgba(139, 92, 246, 0.15);
    border-radius: 12px;
    padding: 16px;
    transition: all 0.3s ease;
}

.admin-card:hover {
    background: linear-gradient(135deg,
            rgba(139, 92, 246, 0.12),
            rgba(236, 72, 153, 0.08));
    border-color: rgba(139, 92, 246, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.15);
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.card-title {
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    font-size: 15px;
}

.card-meta {
    font-size: 12px;
    color: var(--text-tertiary);
    margin: 0;
}

.card-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 12px;
}

.card-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
    padding: 8px 0;
}

.card-item-label {
    color: var(--text-secondary);
}

.card-item-value {
    color: var(--text-primary);
    font-weight: 600;
}

.card-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* ========================================
   ACTION BUTTONS
   ======================================== */

.admin-action-btn {
    padding: 8px 12px;
    border: 1px solid rgba(139, 92, 246, 0.3);
    background: rgba(139, 92, 246, 0.1);
    color: var(--primary-color);
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    flex: 1;
    min-width: 70px;
}

.admin-action-btn:hover {
    background: rgba(139, 92, 246, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(139, 92, 246, 0.2);
}

.admin-action-btn.danger {
    color: var(--danger-color);
    border-color: rgba(239, 68, 68, 0.3);
    background: rgba(239, 68, 68, 0.1);
}

.admin-action-btn.danger:hover {
    background: rgba(239, 68, 68, 0.2);
}

.admin-action-btn.success {
    color: #10b981;
    border-color: rgba(16, 185, 129, 0.3);
    background: rgba(16, 185, 129, 0.1);
}

.admin-action-btn.success:hover {
    background: rgba(16, 185, 129, 0.2);
}

/* ========================================
   STATUS BADGES
   ======================================== */

.status-badge-new {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.status-verified {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.status-unverified {
    background: rgba(107, 114, 128, 0.1);
    color: #6b7280;
}

.status-featured {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
}

.status-not-featured {
    background: rgba(107, 114, 128, 0.1);
    color: #6b7280;
}

.status-published {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
}

.status-draft {
    background: rgba(107, 114, 128, 0.1);
    color: #6b7280;
}

/* ========================================
   USER AVATAR IN CARD
   ======================================== */

.card-avatar {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    object-fit: cover;
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.2);
}

/* ========================================
   EMPTY STATE
   ======================================== */

.admin-empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.admin-empty-state-icon {
    font-size: 48px;
    opacity: 0.5;
}

.admin-empty-state p {
    font-size: 14px;
    margin: 0;
}

/* ========================================
   TABLET LAYOUT (481px - 768px)
   ======================================== */

@media (min-width: 481px) and (max-width: 768px) {
    .admin-header-new {
        padding: 24px 20px;
    }

    .admin-tabs-new {
        padding: 12px 20px;
        gap: 12px;
    }

    .admin-content-new {
        padding: 24px 20px;
    }

    .admin-cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }

    .admin-title {
        font-size: 28px;
    }
}

/* ========================================
   DESKTOP LAYOUT (769px and up)
   ======================================== */

@media (min-width: 769px) {
    .admin-header-new {
        padding: 32px 40px;
    }

    .admin-tabs-new {
        padding: 16px 40px;
        gap: 16px;
    }

    .admin-content-new {
        padding: 32px 40px;
        max-width: 1400px;
        margin: 0 auto;
    }

    .admin-cards-grid {
        grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
        gap: 16px;
    }

    .admin-title {
        font-size: 32px;
    }

    .admin-card {
        padding: 20px;
    }

    .card-actions {
        gap: 10px;
    }

    .admin-action-btn {
        flex: 0 1 auto;
        min-width: 80px;
    }
}

/* ========================================
   ACCESSIBILITY
   ======================================== */

@media (prefers-reduced-motion: reduce) {

    .admin-card,
    .admin-tab-btn-new,
    .admin-action-btn,
    .admin-tab-content-new {
        transition: none;
    }

    .admin-card:hover,
    .admin-tab-btn-new:hover,
    .admin-action-btn:hover {
        transform: none;
    }
}

/* Focus styles for keyboard navigation */
.admin-tab-btn-new:focus-visible,
.admin-action-btn:focus-visible {
    outline: 2px solid #a78bfa;
    outline-offset: 2px;
}

/* ========================================
   PREMIUM MESSAGES/DM INTERFACE REDESIGN
   ======================================== */

/* ========================================
   ANIMATIONS
   ======================================== */

@keyframes fadeInBottom {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes messageSlide {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes typingBubble {

    0%,
    60%,
    100% {
        opacity: 0.5;
        transform: translateY(0);
    }

    30% {
        opacity: 1;
        transform: translateY(-10px);
    }
}

/* ========================================
   MESSAGES CONTAINER
   ======================================== */

.messages-container {
    display: flex;
    gap: 0;
    flex: 1;
    height: 100%;
    background: var(--bg-primary);
}

/* ========================================
   CONVERSATIONS PANEL
   ======================================== */

.conversations-panel {
    width: 320px;
    background: linear-gradient(180deg, rgba(26, 13, 46, 0.6), rgba(15, 1, 24, 0.8));
    border-right: 1px solid rgba(139, 92, 246, 0.1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.conversations-header {
    padding: 24px;
    border-bottom: 1px solid rgba(139, 92, 246, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.conversations-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

.conversations-header .btn-icon {
    background: linear-gradient(135deg, #a78bfa, #ec4899);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    font-size: 20px;
}

.conversations-header .btn-icon:hover {
    transform: scale(1.05) translateY(-2px);
    box-shadow: 0 8px 20px rgba(139, 92, 246, 0.3);
}

.conversations-list {
    flex: 1;
    overflow-y: auto;
}

.conversations-list::-webkit-scrollbar {
    width: 8px;
}

.conversations-list::-webkit-scrollbar-track {
    background: rgba(139, 92, 246, 0.05);
    border-radius: 10px;
}

.conversations-list::-webkit-scrollbar-thumb {
    background: rgba(139, 92, 246, 0.4);
    border-radius: 10px;
    border: 2px solid rgba(139, 92, 246, 0.05);
}

.conversations-list::-webkit-scrollbar-thumb:hover {
    background: rgba(139, 92, 246, 0.6);
}

.conversations-list {
    scrollbar-width: thin;
    scrollbar-color: rgba(139, 92, 246, 0.4) rgba(139, 92, 246, 0.05);
}

.conversation-item {
    padding: 16px 20px;
    border-bottom: 1px solid rgba(139, 92, 246, 0.05);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    animation: fadeInBottom 0.5s ease forwards;
    opacity: 0;
}

.conversation-item:nth-child(1) {
    animation-delay: 0.05s;
}

.conversation-item:nth-child(2) {
    animation-delay: 0.1s;
}

.conversation-item:nth-child(3) {
    animation-delay: 0.15s;
}

.conversation-item:nth-child(4) {
    animation-delay: 0.2s;
}

.conversation-item:nth-child(5) {
    animation-delay: 0.25s;
}

.conversation-item:hover {
    background: rgba(139, 92, 246, 0.1);
    border-left: 3px solid var(--primary-color);
    padding-left: 17px;
}

.conversation-item.active {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(236, 72, 153, 0.1));
    border-left: 3px solid var(--primary-color);
    border-bottom: 1px solid rgba(139, 92, 246, 0.2);
    padding-left: 17px;
}

.conversation-user {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
}

.conversation-user img {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid rgba(139, 92, 246, 0.2);
}

.conversation-info {
    flex: 1;
    min-width: 0;
}

.conversation-name {
    font-weight: 700;
    color: var(--text-primary);
    font-size: 14px;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.conversation-time {
    font-size: 11px;
    color: var(--text-tertiary);
    margin: 4px 0 0 0;
}

.conversation-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 20px;
    height: 20px;
    background: var(--danger-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
    color: white;
}

/* ========================================
   CHAT PANEL
   ======================================== */

.chat-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: var(--bg-primary);
}

.chat-content {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.chat-content::-webkit-scrollbar {
    width: 8px;
}

.chat-content::-webkit-scrollbar-track {
    background: rgba(139, 92, 246, 0.05);
    border-radius: 10px;
}

.chat-content::-webkit-scrollbar-thumb {
    background: rgba(139, 92, 246, 0.4);
    border-radius: 10px;
    border: 2px solid rgba(139, 92, 246, 0.05);
}

.chat-content::-webkit-scrollbar-thumb:hover {
    background: rgba(139, 92, 246, 0.6);
}

.chat-content {
    scrollbar-width: thin;
    scrollbar-color: rgba(139, 92, 246, 0.4) rgba(139, 92, 246, 0.05);
}

.no-chat-selected {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 16px;
    text-align: center;
}

.no-chat-selected p {
    margin: 0;
}

.message-group {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
    animation: messageSlide 0.4s ease;
}

.message-group.own {
    flex-direction: row-reverse;
}

.message-avatar {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid rgba(139, 92, 246, 0.2);
}

.message-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
    max-width: 60%;
}

.message-group.own .message-content {
    align-items: flex-end;
}

.message-bubble {
    padding: 12px 16px;
    border-radius: 16px;
    word-wrap: break-word;
    font-size: 14px;
    line-height: 1.5;
    transition: all 0.3s ease;
}

.message-bubble:hover {
    transform: translateY(-2px);
}

.message-group:not(.own) .message-bubble {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.15), rgba(236, 72, 153, 0.1));
    color: var(--text-primary);
    border: 1px solid rgba(139, 92, 246, 0.2);
}

.message-group.own .message-bubble {
    background: linear-gradient(135deg, #a78bfa, #ec4899);
    color: white;
}

.message-time {
    font-size: 12px;
    color: var(--text-tertiary);
    padding: 0 4px;
}

.typing-indicator {
    display: flex;
    gap: 4px;
    align-items: center;
    padding: 12px 16px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.15), rgba(236, 72, 153, 0.1));
    border-radius: 16px;
    width: fit-content;
}

.typing-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(139, 92, 246, 0.6);
    animation: typingBubble 1.4s infinite;
}

.typing-dot:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-dot:nth-child(3) {
    animation-delay: 0.4s;
}

/* ========================================
   CHAT INPUT
   ======================================== */

.chat-input {
    padding: 20px;
    border-top: 1px solid rgba(139, 92, 246, 0.1);
    background: var(--bg-primary);
}

.chat-input.hidden {
    display: none;
}

.message-form {
    display: flex;
    gap: 12px;
    align-items: center;
}

.message-form input {
    flex: 1;
    padding: 12px 16px;
    background: rgba(139, 92, 246, 0.08);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 24px;
    color: var(--text-primary);
    font-size: 14px;
    transition: all 0.3s ease;
}

.message-form input::placeholder {
    color: var(--text-tertiary);
}

.message-form input:focus {
    outline: none;
    border-color: rgba(139, 92, 246, 0.4);
    background: rgba(139, 92, 246, 0.12);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

.message-form .btn-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #a78bfa, #ec4899);
    border: none;
    color: white;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    font-size: 18px;
}

.message-form .btn-icon:hover {
    transform: scale(1.05) translateY(-2px);
    box-shadow: 0 8px 20px rgba(139, 92, 246, 0.3);
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 1024px) {
    .conversations-panel {
        width: 280px;
    }

    .message-content {
        max-width: 70%;
    }
}

@media (max-width: 768px) {
    .messages-container {
        flex-direction: column;
    }

    .conversations-panel {
        width: 100%;
        height: auto;
        max-height: 40%;
        border-right: none;
        border-bottom: 1px solid rgba(139, 92, 246, 0.1);
    }

    .conversations-list {
        max-height: 200px;
    }

    .chat-panel {
        flex: 1;
    }

    .message-content {
        max-width: 85%;
    }
}

@media (max-width: 480px) {
    .conversations-panel {
        max-height: 30%;
    }

    .conversations-list {
        max-height: 150px;
    }

    .message-content {
        max-width: 90%;
    }

    .chat-content {
        padding: 16px;
    }

    .chat-input {
        padding: 16px;
    }

    .conversations-header {
        padding: 16px;
    }

    .message-form input {
        font-size: 16px;
    }
}

/* ========================================
   MOBILE RESPONSIVE IMPROVEMENTS
   ======================================== */

@media (max-width: 768px) {
    .messages-container {
        flex-direction: column;
    }

    .conversations-panel {
        width: 100%;
        height: 200px;
        border-right: none;
        border-bottom: 1px solid rgba(139, 92, 246, 0.1);
        max-height: 200px;
    }

    .conversations-list {
        max-height: 150px;
    }

    .chat-panel {
        flex: 1;
        display: flex;
        flex-direction: column;
    }

    .chat-content {
        max-height: calc(100vh - 300px);
        overflow-y: auto;
    }

    .message-form {
        flex-wrap: wrap;
    }

    .message-bubble {
        max-width: 85%;
        font-size: 13px;
        padding: 10px 12px;
    }

    .chat-user-name {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .conversations-panel {
        height: 160px;
    }

    .conversations-list {
        max-height: 110px;
    }

    .chat-header {
        padding: 12px;
    }

    .chat-user-pic {
        width: 32px;
        height: 32px;
    }

    .chat-content {
        max-height: calc(100vh - 260px);
        padding: 12px;
    }

    .chat-message {
        margin-bottom: 8px;
    }

    .message-sender {
        font-size: 11px;
        padding: 0 2px;
    }

    .message-bubble {
        max-width: 90%;
        font-size: 12px;
        padding: 8px 10px;
        border-radius: 12px;
    }

    .chat-input {
        padding: 12px;
    }

    .message-form {
        gap: 8px;
    }

    .message-form input {
        font-size: 14px;
        padding: 10px;
    }

    .btn-icon {
        width: 32px;
        height: 32px;
        min-width: 32px;
    }

    .emoji-btn {
        width: 32px;
        height: 32px;
    }

    .conversation-item {
        padding: 12px;
    }

    .conversation-avatar {
        width: 40px;
        height: 40px;
        min-width: 40px;
    }

    .conversation-info h4 {
        font-size: 12px;
    }

    .conversation-info p {
        font-size: 11px;
    }
}

/* ========================================
   MOBILE FIRST RESPONSIVE STYLES
   Clean, modular mobile optimization
   ======================================== */

/* ========================================
   GLOBAL MOBILE RESETS & BASE STYLES
   ======================================== */

@media (max-width: 480px) {

    /* Root mobile adjustments */
    html,
    body {
        font-size: 14px;
        overflow-x: hidden;
        width: 100%;
        position: relative;
        height: 100%;
    }

    /* Reset default spacing */
    * {
        box-sizing: border-box;
    }

    /* Main app structure */
    .app-layout {
        display: flex !important;
        flex-direction: column !important;
        min-height: 100vh;
        min-height: 100dvh;
        overflow: hidden;
    }

    /* ========================================
     SIDEBAR -> BOTTOM NAVIGATION (PREMIUM FLOATING)
     ======================================== */

    .app-sidebar {
        position: fixed !important;
        bottom: 12px !important;
        left: 12px !important;
        right: 12px !important;
        width: calc(100% - 24px) !important;
        height: 72px !important;
        min-height: 72px !important;
        max-height: 72px !important;
        order: 2;
        z-index: 1000 !important;
        overflow: visible !important;

        /* Premium glassmorphic styling */
        background: linear-gradient(135deg,
                rgba(15, 8, 30, 0.92) 0%,
                rgba(25, 15, 45, 0.95) 50%,
                rgba(15, 8, 30, 0.92) 100%) !important;
        backdrop-filter: blur(30px) saturate(200%) !important;
        -webkit-backdrop-filter: blur(30px) saturate(200%) !important;

        /* Rounded floating design */
        border-radius: 24px !important;
        border: 1.5px solid rgba(139, 92, 246, 0.35) !important;

        /* Glow effect */
        box-shadow:
            0 -10px 40px rgba(139, 92, 246, 0.2),
            0 8px 32px rgba(0, 0, 0, 0.4),
            0 0 0 1px rgba(139, 92, 246, 0.15),
            inset 0 1px 0 rgba(255, 255, 255, 0.1),
            inset 0 -1px 0 rgba(0, 0, 0, 0.2) !important;
        padding: 8px 4px !important;
    }

    /* Safe area support for notched phones */
    @supports(padding: max(0px)) {
        .app-sidebar {
            bottom: max(12px, env(safe-area-inset-bottom)) !important;
        }
    }

    /* Hide sidebar when landing page is visible */
    #mainApp.hidden .app-sidebar {
        display: none !important;
        visibility: hidden !important;
        pointer-events: none !important;
    }

    .sidebar-brand {
        display: none !important;
    }

    .sidebar-nav {
        display: flex !important;
        flex-direction: row !important;
        justify-content: space-around !important;
        align-items: center !important;
        width: 100% !important;
        height: 100% !important;
        padding: 0 4px !important;
        margin: 0 !important;
        gap: 2px !important;
    }

    /* Premium compact nav links for floating bottom bar */
    .nav-link {
        flex: 1 !important;
        max-width: 60px !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 8px 6px !important;
        margin: 0 !important;
        min-height: 48px !important;
        border-radius: 14px !important;
        gap: 4px !important;
        position: relative;
        transition: all 0.25s ease !important;
        background: rgba(139, 92, 246, 0.05) !important;
        border: 1px solid transparent !important;
    }

    .nav-link:hover,
    .nav-link:active {
        background: rgba(139, 92, 246, 0.15) !important;
        border-color: rgba(139, 92, 246, 0.2) !important;
    }

    .nav-link.active {
        background: linear-gradient(135deg, rgba(139, 92, 246, 0.3), rgba(236, 72, 153, 0.25)) !important;
        border-color: rgba(139, 92, 246, 0.4) !important;
        box-shadow: 0 0 12px rgba(139, 92, 246, 0.35) !important;
    }

    .nav-icon {
        width: 20px !important;
        height: 20px !important;
        margin: 0 !important;
        transition: all 0.2s ease !important;
        stroke-width: 2 !important;
    }

    .nav-link.active .nav-icon {
        filter: drop-shadow(0 0 4px rgba(139, 92, 246, 0.6)) !important;
        color: #a78bfa !important;
    }

    .nav-text {
        font-size: 9px !important;
        display: block !important;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 52px;
        line-height: 1.1;
        font-weight: 600 !important;
        color: rgba(255, 255, 255, 0.7) !important;
        letter-spacing: 0.3px !important;
    }

    .nav-link.active .nav-text {
        color: #a78bfa !important;
    }

    /* Compact dropdown container */
    .nav-dropdown-container {
        flex: 1 !important;
        max-width: 60px !important;
    }

    .nav-badge {
        font-size: 8px !important;
        padding: 2px 4px !important;
        min-width: 14px !important;
        height: 14px !important;
        position: absolute !important;
        top: 0px !important;
        right: 4px !important;
        border-radius: 7px !important;
        background: linear-gradient(135deg, #ef4444, #f97316) !important;
        box-shadow: 0 2px 6px rgba(239, 68, 68, 0.4) !important;
    }

    .sidebar-footer {
        display: none !important;
    }

    /* ========================================
     STORIES POPUP - MOBILE ENHANCEMENTS
     ======================================== */

    /* Override z-index to ensure popup appears above bottom nav */
    .stories-dropdown:not(.hidden) {
        z-index: 100001 !important;
        padding: 12px 0 !important;
    }

    .dropdown-item {
        padding: 16px 20px !important;
        margin: 0 8px !important;
    }

    .dropdown-text {
        font-size: 14px !important;
    }

    .dropdown-emoji {
        font-size: 18px !important;
    }

    /* ========================================
     MAIN CONTENT AREA
     ======================================== */

    .app-header {
        order: 0;
        width: 100% !important;
        min-height: 50px !important;
        padding: 10px 12px !important;
        gap: 8px !important;
    }

    .header-title {
        font-size: 15px !important;
        font-weight: 700 !important;
    }

    .app-content {
        order: 1;
        flex: 1 !important;
        width: 100% !important;
        padding: 0 !important;
        padding-bottom: 96px !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        -webkit-overflow-scrolling: touch !important;
    }

    .page {
        padding: 12px !important;
        width: 100% !important;
        max-width: 100% !important;
        height: calc(100vh - 64px) !important;
        max-height: calc(100vh - 64px) !important;
        overflow-y: auto !important;
    }

    /* ========================================
     FEED & POST STYLES
     ======================================== */

    .feed-container {
        display: flex !important;
        flex-direction: column !important;
        padding: 0 !important;
        gap: 0 !important;
        flex: 1;
        min-height: 0;
    }

    .feed-filters {
        display: flex !important;
        gap: 6px !important;
        overflow-x: auto !important;
        padding: 12px !important;
        padding-bottom: 8px !important;
        margin: 0 !important;
        flex-shrink: 0;
        scrollbar-width: none;
    }

    .feed-filters::-webkit-scrollbar {
        display: none;
    }

    .filter-btn {
        padding: 6px 12px !important;
        font-size: 11px !important;
        white-space: nowrap;
        flex-shrink: 0;
        height: 32px;
    }

    .feed-content {
        flex: 1;
        display: flex;
        flex-direction: column;
        gap: 12px;
        padding: 12px !important;
        overflow-y: auto;
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
        /* Custom scrollbar styling for mobile */
        scrollbar-width: thin;
        scrollbar-color: rgba(139, 92, 246, 0.5) transparent;
    }

    /* Webkit browsers (Chrome, Safari, Edge) scrollbar styling */
    .feed-content::-webkit-scrollbar {
        width: 6px;
    }

    .feed-content::-webkit-scrollbar-track {
        background: transparent;
    }

    .feed-content::-webkit-scrollbar-thumb {
        background-color: rgba(139, 92, 246, 0.5);
        border-radius: 3px;
        border: 2px solid transparent;
        background-clip: content-box;
    }

    .feed-content::-webkit-scrollbar-thumb:hover {
        background-color: rgba(139, 92, 246, 0.8);
    }

    /* Post Card Component */
    .post-card {
        padding: 1.25rem !important;
        margin-bottom: 10px !important;
    }

    .post-header {
        gap: 8px !important;
        margin-bottom: 12px !important;
    }

    .post-avatar {
        width: 32px !important;
        height: 32px !important;
        min-width: 32px !important;
    }

    .post-author-name {
        font-size: 13px !important;
    }

    .post-date {
        font-size: 10px !important;
    }

    .post-title {
        font-size: 16px !important;
        margin: 8px 0 !important;
    }

    .post-preview {
        font-size: 13px !important;
        margin-bottom: 10px !important;
    }

    .post-meta {
        font-size: 11px !important;
        gap: 8px !important;
        margin-bottom: 10px !important;
    }

    .post-actions {
        display: flex !important;
        gap: 6px !important;
    }

    .post-action-btn {
        padding: 6px 10px !important;
        font-size: 11px !important;
        flex: 1;
        min-width: 60px;
    }

    /* ========================================
     COMPOSE PAGE
     ======================================== */

    .compose-container {
        padding: 0 !important;
    }

    .compose-card {
        padding: 16px !important;
        gap: 12px !important;
    }

    .compose-title {
        font-size: 18px !important;
        margin-bottom: 16px !important;
    }

    .compose-form {
        gap: 16px !important;
    }

    .form-group {
        margin-bottom: 16px !important;
    }

    .form-group label {
        font-size: 13px !important;
        margin-bottom: 6px !important;
    }

    input,
    textarea,
    select {
        padding: 12px 14px !important;
        font-size: 15px !important;
    }

    select {
        padding-right: 40px !important;
        background-size: 18px !important;
        background-position: right 14px center !important;
    }

    textarea {
        min-height: 140px !important;
        line-height: 1.5;
    }

    .compose-actions {
        display: flex !important;
        flex-direction: column !important;
        gap: 10px !important;
        margin-top: 16px !important;
        padding-top: 16px !important;
    }

    .btn-compose {
        padding: 10px 14px !important;
        font-size: 13px !important;
        min-height: 40px !important;
        width: 100% !important;
    }

    /* Hide collaboration buttons on mobile */
    #startCollabBtn,
    #myCollaborationsBtn {
        display: none !important;
    }

    /* ========================================
     EXPLORE PAGE
     ======================================== */

    .explore-container {
        padding: 0 !important;
    }

    .explore-header {
        flex-direction: column !important;
        gap: 12px !important;
        margin-bottom: 16px !important;
    }

    .explore-header h2 {
        font-size: 18px !important;
    }

    .search-container input {
        padding: 12px 14px !important;
        font-size: 15px !important;
    }

    .posts-grid,
    .writers-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }

    .grid-item {
        padding: 14px !important;
    }

    .grid-item h4 {
        font-size: 14px !important;
    }

    .grid-item p {
        font-size: 12px !important;
    }

    .writer-stats {
        font-size: 11px !important;
    }

    .explore-section h3 {
        font-size: 16px !important;
        margin: 20px 0 12px 0 !important;
    }

    /* ========================================
     MESSAGES / CHAT - MODERN REDESIGN
     ======================================== */

    .messages-container {
        flex-direction: column !important;
        height: calc(100dvh - 180px) !important;
        background: linear-gradient(180deg,
                rgba(15, 8, 25, 0.98) 0%,
                rgba(10, 5, 20, 1) 100%) !important;
        border-radius: 20px !important;
        margin: 8px !important;
        overflow: hidden !important;
        border: 1px solid rgba(139, 92, 246, 0.15) !important;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3) !important;
    }

    /* Horizontal scrolling conversation list */
    .conversations-panel {
        width: 100% !important;
        height: auto !important;
        max-height: none !important;
        min-height: 90px !important;
        border-right: none !important;
        border-bottom: 1px solid rgba(139, 92, 246, 0.15) !important;
        flex: 0 0 auto !important;
        background: rgba(139, 92, 246, 0.05) !important;
        padding: 8px 0 !important;
    }

    .conversations-header {
        padding: 10px 16px 6px !important;
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
    }

    .conversations-header h3 {
        font-size: 13px !important;
        font-weight: 700 !important;
        color: rgba(255, 255, 255, 0.9) !important;
    }

    .conversations-list {
        display: flex !important;
        flex-direction: row !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        gap: 10px !important;
        padding: 4px 16px 8px !important;
        max-height: none !important;
        scrollbar-width: none !important;
    }

    .conversations-list::-webkit-scrollbar {
        display: none !important;
    }

    /* Conversation items as circular avatars with name */
    .conversation-item {
        flex-direction: column !important;
        align-items: center !important;
        gap: 6px !important;
        padding: 8px !important;
        min-width: 60px !important;
        max-width: 70px !important;
        border-radius: 16px !important;
        background: transparent !important;
        border: none !important;
        flex-shrink: 0 !important;
        transition: all 0.2s ease !important;
    }

    .conversation-item:hover,
    .conversation-item.active {
        background: rgba(139, 92, 246, 0.15) !important;
    }

    .conversation-avatar {
        width: 44px !important;
        height: 44px !important;
        min-width: 44px !important;
        border-radius: 50% !important;
        border: 2px solid rgba(139, 92, 246, 0.3) !important;
        box-shadow: 0 0 12px rgba(139, 92, 246, 0.2) !important;
    }

    .conversation-item.active .conversation-avatar {
        border-color: #a78bfa !important;
        box-shadow: 0 0 16px rgba(139, 92, 246, 0.5) !important;
    }

    .conversation-info {
        text-align: center !important;
    }

    .conversation-info h4 {
        font-size: 10px !important;
        font-weight: 600 !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        max-width: 60px !important;
    }

    .conversation-info p {
        display: none !important;
    }

    .conversation-time {
        display: none !important;
    }

    /* Chat panel full height */
    .chat-panel {
        flex: 1 !important;
        display: flex !important;
        flex-direction: column !important;
        min-height: 0 !important;
    }

    /* Compact chat header */
    .chat-header {
        padding: 12px 16px !important;
        min-height: 52px !important;
        background: rgba(139, 92, 246, 0.08) !important;
        border-bottom: 1px solid rgba(139, 92, 246, 0.1) !important;
        display: flex !important;
        align-items: center !important;
        gap: 12px !important;
    }

    .chat-user-pic {
        width: 38px !important;
        height: 38px !important;
        border-radius: 50% !important;
        border: 2px solid rgba(139, 92, 246, 0.3) !important;
    }

    .chat-user-name {
        font-size: 15px !important;
        font-weight: 700 !important;
    }

    .chat-user-status {
        font-size: 11px !important;
        color: rgba(255, 255, 255, 0.5) !important;
    }

    /* Messages content area */
    .chat-content {
        flex: 1 !important;
        padding: 16px !important;
        gap: 12px !important;
        overflow-y: auto !important;
        background: transparent !important;
    }

    /* Premium message bubbles */
    .message-bubble {
        max-width: 80% !important;
        font-size: 14px !important;
        padding: 12px 16px !important;
        border-radius: 18px !important;
        line-height: 1.4 !important;
        position: relative !important;
    }

    .message-bubble.sent {
        background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%) !important;
        color: white !important;
        border-bottom-right-radius: 6px !important;
        margin-left: auto !important;
        box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3) !important;
    }

    .message-bubble.received {
        background: rgba(139, 92, 246, 0.12) !important;
        border: 1px solid rgba(139, 92, 246, 0.2) !important;
        border-bottom-left-radius: 6px !important;
        color: rgba(255, 255, 255, 0.9) !important;
    }

    .message-sender {
        font-size: 10px !important;
        font-weight: 600 !important;
        margin-bottom: 4px !important;
        color: rgba(255, 255, 255, 0.6) !important;
    }

    .message-time {
        font-size: 9px !important;
        color: rgba(255, 255, 255, 0.4) !important;
        margin-top: 4px !important;
    }

    /* Floating input bar */
    .chat-input {
        padding: 12px !important;
        background: rgba(139, 92, 246, 0.08) !important;
        border-top: 1px solid rgba(139, 92, 246, 0.15) !important;
    }

    .message-form {
        display: flex !important;
        gap: 10px !important;
        align-items: center !important;
    }

    .message-form input {
        flex: 1 !important;
        padding: 12px 18px !important;
        font-size: 14px !important;
        height: 48px !important;
        border-radius: 24px !important;
        background: rgba(255, 255, 255, 0.06) !important;
        border: 1px solid rgba(139, 92, 246, 0.2) !important;
        color: white !important;
        transition: all 0.2s ease !important;
    }

    .message-form input:focus {
        border-color: rgba(139, 92, 246, 0.5) !important;
        background: rgba(139, 92, 246, 0.1) !important;
        box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1) !important;
    }

    .message-form input::placeholder {
        color: rgba(255, 255, 255, 0.4) !important;
    }

    .btn-icon {
        width: 48px !important;
        height: 48px !important;
        min-width: 48px !important;
        padding: 0 !important;
        border-radius: 50% !important;
        background: linear-gradient(135deg, #8b5cf6 0%, #a855f7 100%) !important;
        border: none !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        box-shadow: 0 4px 16px rgba(139, 92, 246, 0.4) !important;
        transition: all 0.2s ease !important;
    }

    .btn-icon:active {
        transform: scale(0.95) !important;
    }

    .btn-icon svg {
        width: 20px !important;
        height: 20px !important;
        color: white !important;
    }

    /* ========================================
     PROFILE PAGE
     ======================================== */

    .profile-container {
        padding: 0 !important;
        gap: 16px !important;
    }

    .profile-header {
        flex-direction: column !important;
        text-align: center !important;
        gap: 16px !important;
        padding: 16px !important;
    }

    .profile-avatar {
        width: 80px !important;
        height: 80px !important;
        margin: 0 0 12px 0 !important;
    }

    .profile-name {
        font-size: 20px !important;
        margin-bottom: 6px !important;
    }

    .profile-bio {
        font-size: 14px !important;
        margin-bottom: 12px !important;
    }

    .profile-stats {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 12px !important;
        margin: 12px 0 !important;
    }

    .stat-value {
        font-size: 20px !important;
    }

    .stat-label {
        font-size: 10px !important;
    }

    .profile-actions {
        flex-direction: column !important;
        gap: 8px !important;
        width: 100% !important;
    }

    .btn-action {
        width: 100% !important;
        padding: 12px 16px !important;
        font-size: 14px !important;
        min-height: 46px;
    }

    .section-title {
        font-size: 18px !important;
        margin: 16px 0 12px 0 !important;
    }

    .posts-grid {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
    }

    /* Compact trending post cards on mobile */
    .post-card-new {
        padding: 12px !important;
        min-width: unset !important;
    }

    .post-card-header-new {
        margin-bottom: 8px !important;
        gap: 8px !important;
    }

    .post-author-avatar-new {
        width: 32px !important;
        height: 32px !important;
    }

    .post-author-name-new {
        font-size: 13px !important;
    }

    .post-author-date-new {
        font-size: 11px !important;
    }

    .post-type-badge {
        font-size: 9px !important;
        padding: 2px 6px !important;
    }

    .post-title-new {
        font-size: 14px !important;
        margin: 6px 0 !important;
        -webkit-line-clamp: 2 !important;
    }

    .post-content-preview-new {
        font-size: 12px !important;
        margin-bottom: 8px !important;
        -webkit-line-clamp: 2 !important;
        line-height: 1.4 !important;
    }

    .post-images-new {
        max-height: 120px !important;
        margin-bottom: 8px !important;
    }

    .post-image-thumbnail-new {
        height: 60px !important;
    }

    .post-stats-new {
        gap: 8px !important;
    }

    .post-stat-item-new {
        font-size: 11px !important;
    }

    .post-stat-item-new svg {
        width: 12px !important;
        height: 12px !important;
    }

    .badges-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }

    .badge-item {
        padding: 14px !important;
    }

    .badge-icon {
        font-size: 28px !important;
    }

    .badge-name {
        font-size: 12px !important;
    }

    /* ========================================
     MODALS & OVERLAYS
     ======================================== */

    .modal {
        display: none !important;
        padding: 0 !important;
        align-items: flex-end !important;
        height: calc(100% - 60px) !important;
        max-height: calc(100dvh - 60px) !important;
        z-index: 999 !important;
    }

    .modal.active {
        display: flex !important;
    }

    .modal-content {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        max-height: 85dvh !important;
        border-radius: 16px 16px 0 0 !important;
        padding: 20px !important;
        margin: 0 !important;
    }

    .modal-close {
        top: 12px !important;
        right: 12px !important;
        width: 32px !important;
        height: 32px !important;
        font-size: 18px !important;
    }

    /* Safe area support for notched phones */
    @supports(padding: max(0px)) {
        .modal-content {
            padding-bottom: max(20px, env(safe-area-inset-bottom)) !important;
        }
    }

    /* ========================================
     BUTTONS & CONTROLS
     ======================================== */

    .btn-primary,
    .btn-secondary {
        padding: 10px 16px !important;
        font-size: 14px !important;
        min-height: 40px !important;
    }

    .btn-block {
        width: 100% !important;
    }

    /* ========================================
     ADMIN PANEL
     ======================================== */

    .admin-page {
        padding: 0 !important;
    }

    .admin-tabs {
        gap: 6px !important;
        margin-bottom: 16px !important;
        flex-wrap: wrap;
    }

    .admin-tab-btn {
        padding: 10px 12px !important;
        font-size: 12px !important;
        flex: 1;
        min-width: 60px;
    }

    .admin-table-wrapper {
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
    }

    .admin-table {
        font-size: 12px !important;
        min-width: 600px;
    }

    .admin-table th,
    .admin-table td {
        padding: 8px 6px !important;
    }

    .admin-table input,
    .admin-table select {
        font-size: 11px !important;
        padding: 6px 8px !important;
    }

    .admin-btn {
        padding: 6px 10px !important;
        font-size: 11px !important;
    }

    .status-badge {
        padding: 4px 6px !important;
        font-size: 10px !important;
    }

    /* ========================================
     UTILITIES & HELPERS
     ======================================== */

    .hidden-mobile {
        display: none !important;
    }

    .text-center-mobile {
        text-align: center !important;
    }

    .full-width-mobile {
        width: 100% !important;
    }

    .stack-mobile {
        flex-direction: column !important;
    }

    /* Loading states */
    .loader {
        width: 44px !important;
        height: 44px !important;
    }

    .loader-spinner {
        width: 44px !important;
        height: 44px !important;
        border-width: 3px !important;
    }

    /* Toast notifications */
    .toast {
        font-size: 14px !important;
        padding: 12px 16px !important;
        bottom: 80px !important;
        left: 12px !important;
        right: 12px !important;
    }

    /* Hide scrollbars but keep functionality */
    .feed-filters,
    .conversations-list {
        -ms-overflow-style: none;
        scrollbar-width: none;
    }

    .feed-filters::-webkit-scrollbar,
    .conversations-list::-webkit-scrollbar {
        display: none;
    }
}

/* ========================================
   BOTTOM NAV FORCE FOR ALL MOBILE/TABLET
   ======================================== */

@media (max-width: 900px) {
    .app-sidebar {
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        height: 60px !important;
        z-index: 1000 !important;
        padding-bottom: env(safe-area-inset-bottom) !important;
    }

    .app-content {
        padding-bottom: calc(65px + env(safe-area-inset-bottom)) !important;
    }
}

/* ========================================
   EXTRA SMALL DEVICES & LANDSCAPE FIXES
   ======================================== */

/* Very small phones */
@media (max-width: 380px) {
    .app-sidebar {
        height: 55px !important;
        min-height: 55px !important;
        max-height: 55px !important;
    }

    .app-content {
        padding-bottom: 60px !important;
    }

    .nav-link {
        padding: 2px 1px !important;
        min-height: 40px !important;
    }

    .nav-icon {
        width: 18px !important;
        height: 18px !important;
    }

    .nav-text {
        font-size: 8px !important;
        max-width: 45px;
    }
}

/* Landscape mode */
@media (max-width: 900px) and (orientation: landscape) {
    .app-sidebar {
        height: 50px !important;
        min-height: 50px !important;
        max-height: 50px !important;
    }

    .app-content {
        padding-bottom: 55px !important;
    }

    .nav-text {
        display: none !important;
    }

    .nav-link {
        gap: 0 !important;
    }
}

/* Tall screens optimization */
@media (max-height: 700px) and (max-width: 900px) {
    .app-sidebar {
        height: 55px !important;
        min-height: 55px !important;
        max-height: 55px !important;
    }

    .app-content {
        padding-bottom: 60px !important;
    }
}

/* Safe area support for notches and home indicators */
@supports(padding: max(0px)) {
    @media (max-width: 900px) {
        .app-sidebar {
            padding-left: env(safe-area-inset-left) !important;
            padding-right: env(safe-area-inset-right) !important;
        }
    }
}

/* ========================================
   COMPOSE BUTTONS FIX FOR DESKTOP
   ======================================== */

/* Ensure mobile styles don't override desktop compose buttons */
@media (min-width: 769px) {
    .compose-actions {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 1.5rem !important;
        padding-top: 2rem !important;
    }

    .btn-compose {
        padding: 1.125rem 2rem !important;
        font-size: 1.125rem !important;
        min-height: 60px !important;
    }
}

/* Mobile-specific adjustments for compose buttons */
@media (max-width: 768px) {
    .compose-actions {
        grid-template-columns: 1fr !important;
        gap: 0.875rem !important;
    }

    .btn-compose {
        padding: 10px 14px !important;
        font-size: 14px !important;
        min-height: 42px !important;
    }
}

/* ========================================
   TABLET OPTIMIZATIONS (481px - 768px)
   ======================================== */

@media (min-width: 481px) and (max-width: 768px) {

    /* Compact sidebar */
    .app-sidebar {
        width: 80px !important;
        padding: 16px 0 !important;
    }

    .sidebar-brand {
        padding: 0 8px 16px 8px !important;
    }

    .brand-text {
        display: none !important;
    }

    .sidebar-nav {
        flex-direction: column !important;
        padding: 0 !important;
        gap: 8px !important;
    }

    .nav-link {
        flex-direction: column !important;
        padding: 10px 6px !important;
        gap: 6px !important;
    }

    .nav-text {
        font-size: 10px !important;
        display: block !important;
    }

    /* Main content adjustments */
    .app-header {
        padding: 12px 20px !important;
    }

    .app-content {
        padding: 16px !important;
    }

    /* Grid layouts */
    .posts-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)) !important;
        gap: 16px !important;
    }

    .writers-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)) !important;
        gap: 16px !important;
    }

    /* Modal sizing */
    .modal-content {
        max-width: 500px !important;
        max-height: 80vh !important;
        border-radius: 12px !important;
        margin: auto !important;
    }

    /* Button sizing */
    .btn-primary,
    .btn-secondary {
        padding: 10px 18px !important;
        font-size: 14px !important;
    }

    /* ========================================
     NOTIFICATION ICON & BADGE (MOBILE)
     ======================================== */

    .nav-badge {
        width: 18px !important;
        height: 18px !important;
        font-size: 10px !important;
        min-width: 18px !important;
    }

    #notificationBadge {
        position: absolute;
        top: -5px;
        right: -5px;
        width: 20px;
        height: 20px;
        font-size: 10px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* ========================================
     NOTIFICATIONS PAGE (MOBILE)
     ======================================== */

    #notificationsPage {
        padding-bottom: 80px !important;
    }

    .page-header {
        padding: 16px !important;
    }

    .page-header h2 {
        font-size: 20px !important;
        margin: 0 !important;
    }

    .notifications-container {
        max-width: none !important;
        padding: 0 !important;
    }

    #notificationsList {
        padding: 0 !important;
    }

    .notification-item {
        padding: 12px !important;
        margin: 0 !important;
        gap: 10px !important;
        border-radius: 0 !important;
        flex-wrap: wrap !important;
    }

    .notification-item>div:first-child {
        font-size: 20px !important;
    }

    .notification-item>div:nth-child(2) {
        flex: 1 !important;
        min-width: 100% !important;
    }

    .notification-item button {
        font-size: 12px !important;
        padding: 8px 12px !important;
        flex: 0 1 auto !important;
    }

    .empty-state {
        padding: 40px 20px !important;
    }

    .empty-state>div {
        font-size: 36px !important;
    }

    /* ========================================
     COLLABORATION EDITOR (MOBILE)
     ======================================== */

    #collaborationPage {
        padding-bottom: 80px !important;
    }

    .collab-editor-container {
        height: auto !important;
        overflow-y: auto !important;
    }

    .collab-editor-container>div:first-child {
        padding: 12px !important;
        flex-direction: column !important;
        gap: 12px !important;
    }

    .collab-editor-container>div:first-child>div:first-child {
        width: 100% !important;
    }

    .collab-editor-container>div:first-child>div:last-child {
        display: flex !important;
        gap: 8px !important;
        flex-direction: row !important;
    }

    .collab-editor-container>div:last-child {
        flex-direction: column !important;
        gap: 12px !important;
        padding: 12px !important;
        width: 100% !important;
    }

    #collabContent {
        min-height: 300px !important;
        padding: 12px !important;
        font-size: 14px !important;
        line-height: 1.6 !important;
    }

    .collab-editor-container>div:last-child>div:nth-child(1),
    .collab-editor-container>div:last-child>div:nth-child(2) {
        width: 100% !important;
    }

    .collab-editor-container>div:last-child h4 {
        font-size: 13px !important;
        margin: 0 0 8px 0 !important;
    }

    #collabActiveUsersList {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 8px !important;
    }

    #collabActiveUsersList>div {
        padding: 8px !important;
        font-size: 12px !important;
    }

    #collabActiveUsersList img {
        width: 24px !important;
        height: 24px !important;
    }

    #collabChanges {
        font-size: 11px !important;
        line-height: 1.5 !important;
    }

    /* ========================================
     SHARE BUTTONS (MOBILE)
     ======================================== */

    .post-share-section {
        margin: 12px 0 !important;
        padding: 12px !important;
        display: flex !important;
        gap: 8px !important;
        flex-wrap: wrap !important;
    }

    .post-share-section button {
        flex: 1 !important;
        min-width: 120px !important;
        padding: 10px 12px !important;
        font-size: 12px !important;
    }

    /* ========================================
     POST MODAL (MOBILE)
     ======================================== */

    .post-detail-modal {
        max-height: 85vh !important;
        max-width: 100% !important;
        margin: 0 !important;
        border-radius: 12px 12px 0 0 !important;
        width: 100% !important;
    }

    .post-detail {
        padding: 16px !important;
    }

    .post-header {
        padding-bottom: 12px !important;
        margin-bottom: 12px !important;
    }

    .post-content h2 {
        font-size: 18px !important;
        margin-bottom: 12px !important;
    }

    .post-stats {
        flex-wrap: wrap !important;
        gap: 12px !important;
        font-size: 12px !important;
    }

    .rating-section label {
        font-size: 12px !important;
    }

    #starRating {
        gap: 6px !important;
    }

    .star svg {
        width: 16px !important;
        height: 16px !important;
    }

    #ratingComment {
        font-size: 14px !important;
        min-height: 80px !important;
        padding: 10px !important;
    }

    #submitRatingBtn {
        width: 100% !important;
        padding: 12px !important;
        font-size: 14px !important;
    }

    .ratings-comments-section {
        padding-top: 16px !important;
    }

    .ratings-comments-section h4 {
        font-size: 14px !important;
        margin-bottom: 12px !important;
    }

    #ratingsCommentsList {
        max-height: 250px !important;
    }

    .collaborators-section {
        padding-top: 16px !important;
    }

    .collaborators-section h4 {
        font-size: 14px !important;
    }

    .collaborator-item {
        padding: 8px !important;
        font-size: 12px !important;
        gap: 8px !important;
    }

    .collaborator-item img {
        width: 24px !important;
        height: 24px !important;
    }

    /* ========================================
     COLLABORATION INVITE MODAL (MOBILE)
     ======================================== */

    #collabInviteModal .modal-content {
        max-width: 95% !important;
        width: 95% !important;
        max-height: 80vh !important;
        padding: 16px !important;
        border-radius: 12px !important;
    }

    #collabInviteModal h2 {
        font-size: 18px !important;
        margin-bottom: 12px !important;
    }

    #collabInviteModal p {
        font-size: 13px !important;
        margin-bottom: 16px !important;
    }

    #collabUsernameInput {
        width: 100% !important;
        padding: 12px !important;
        font-size: 14px !important;
        height: auto !important;
        min-height: 44px !important;
    }

    #collabInviteModal .modal-content>div:last-child {
        flex-direction: column !important;
        gap: 12px !important;
        margin-top: 16px !important;
    }

    #collabInviteModal button {
        width: 100% !important;
        padding: 12px !important;
        font-size: 14px !important;
        min-height: 44px !important;
    }

    /* ========================================
     COLLABORATION BUTTONS (MOBILE)
     ======================================== */

    .compose-actions {
        flex-wrap: wrap !important;
        gap: 8px !important;
    }

    #startCollabBtn {
        width: 100% !important;
        padding: 12px !important;
        font-size: 13px !important;
        min-height: 44px !important;
    }

    .btn-compose {
        flex: 1 !important;
        min-width: 100px !important;
        padding: 10px 8px !important;
        font-size: 12px !important;
        min-height: 44px !important;
    }

    /* Button alignment on mobile */
    .compose-actions button:nth-child(1) {
        flex: 1 !important;
    }

    .compose-actions button:nth-child(2) {
        flex: 1 !important;
    }

    .compose-actions button:nth-child(3) {
        flex: 0 1 auto !important;
    }

    /* ========================================
     MODAL GENERAL MOBILE FIXES
     ======================================== */

    .modal {
        overflow-y: auto !important;
        overflow-x: hidden !important;
    }

    .modal-content {
        max-height: 90vh !important;
        overflow-y: auto !important;
        scrollbar-width: thin !important;
    }

    .modal-close {
        width: 32px !important;
        height: 32px !important;
        font-size: 24px !important;
        top: 8px !important;
        right: 8px !important;
    }

    /* ========================================
     TOUCH OPTIMIZATIONS
     ======================================== */

    /* Increase touch target sizes */
    button {
        min-height: 44px !important;
        min-width: 44px !important;
    }

    /* Prevent zoom on input focus (iOS) */
    input,
    textarea,
    select {
        font-size: 16px !important;
    }

    /* Remove 300ms tap delay on buttons */
    button {
        touch-action: manipulation;
    }

    /* Optimize textarea for mobile */
    textarea {
        resize: vertical !important;
        -webkit-appearance: none;
        appearance: none;
    }

    /* Better spacing for touch interactions */
    .nav-link {
        min-height: 50px !important;
        min-width: 50px !important;
    }

    /* ========================================
     VERTICAL SPLIT LAYOUT FIX (MOBILE)
     ======================================== */

    /* Stack sidebar items properly */
    .nav-link {
        padding: 6px 4px !important;
    }

    .nav-link span {
        display: block !important;
    }

    /* Ensure notification badge is visible */
    .nav-link {
        position: relative !important;
    }

    .nav-badge {
        position: absolute !important;
        top: -4px !important;
        right: -4px !important;
        z-index: 10 !important;
    }

    /* ========================================
     LANDSCAPE MODE OPTIMIZATIONS
     ======================================== */

    @media (max-width: 900px) and (orientation: landscape) {
        .app-sidebar {
            height: 50px !important;
        }

        .nav-text {
            display: none !important;
        }

        .nav-icon {
            width: 18px !important;
            height: 18px !important;
        }

        #collabContent {
            min-height: 200px !important;
        }

        .post-detail-modal {
            max-height: 90vh !important;
        }
    }

    /* ========================================
     TABLET OPTIMIZATIONS (600px - 900px)
     ======================================== */

    @media (min-width: 481px) and (max-width: 900px) {
        .post-share-section button {
            flex: 0 1 calc(50% - 6px) !important;
        }

        .compose-actions {
            display: grid !important;
            grid-template-columns: 1fr 1fr !important;
            gap: 12px !important;
        }

        #startCollabBtn {
            grid-column: 1 / -1 !important;
        }

        .notification-item {
            flex-direction: column !important;
        }

        #collabActiveUsersList {
            grid-template-columns: 1fr 1fr 1fr !important;
        }

        .modal-content {
            width: 90% !important;
            max-height: 85vh !important;
        }
    }

    /* ========================================
     PROFILE PAGE OVERFLOW FIXES (MOBILE)
     ======================================== */

    .profile-wrapper {
        width: 100% !important;
        overflow-x: hidden !important;
        padding: 0 !important;
    }

    .profile-header-new {
        width: 100% !important;
        overflow: hidden !important;
    }

    .profile-header-bg {
        height: 120px !important;
        width: 100% !important;
    }

    .profile-header-content {
        display: flex !important;
        flex-direction: row !important;
        align-items: flex-start !important;
        padding: 0 16px !important;
        gap: 12px !important;
        flex-wrap: wrap !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important;
    }

    .profile-pic-container {
        width: 60px !important;
        height: 60px !important;
        margin-top: -30px !important;
        flex-shrink: 0;
    }

    .profile-pic-large {
        width: 60px !important;
        height: 60px !important;
        border: 3px solid var(--bg-primary) !important;
    }

    .profile-header-info {
        flex: 1 !important;
        min-width: 0 !important;
    }

    #profileName {
        font-size: 18px !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
        margin-bottom: 4px !important;
    }

    #profileBio {
        font-size: 12px !important;
        line-height: 1.4 !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
        margin-bottom: 8px !important;
    }

    .profile-stats-row {
        width: 100% !important;
        display: grid !important;
        grid-template-columns: 1fr 1fr 1fr !important;
        gap: 12px !important;
        margin-top: 12px !important;
    }

    .stat-box {
        padding: 12px !important;
        text-align: center !important;
        font-size: 11px !important;
    }

    .stat-number {
        font-size: 16px !important;
        font-weight: 600 !important;
        line-height: 1.2 !important;
    }

    .stat-name {
        font-size: 10px !important;
        margin-top: 4px !important;
        display: block !important;
    }

    .profile-header-actions {
        width: 100% !important;
        display: flex !important;
        gap: 8px !important;
        flex-wrap: wrap !important;
        padding: 0 16px !important;
        margin: 12px 0 !important;
    }

    .profile-header-actions button {
        flex: 1 !important;
        min-width: 80px !important;
        padding: 10px 8px !important;
        font-size: 12px !important;
        min-height: 40px !important;
    }

    .profile-tabs {
        width: 100% !important;
        border-top: 1px solid var(--bg-tertiary) !important;
        padding: 0 !important;
        margin-top: 16px !important;
        overflow-x: auto !important;
        scrollbar-width: none !important;
    }

    .profile-tabs::-webkit-scrollbar {
        display: none !important;
    }

    .profile-tab-btn {
        padding: 12px 16px !important;
        font-size: 12px !important;
        white-space: nowrap !important;
        border-bottom: 2px solid transparent !important;
    }

    .profile-content {
        width: 100% !important;
        padding: 16px !important;
        overflow-x: hidden !important;
    }

    .profile-content-new {
        width: 100% !important;
        padding: 0 !important;
        overflow-x: hidden !important;
    }

    .profile-section-new {
        width: 100% !important;
        padding: 16px !important;
        overflow-x: hidden !important;
    }

    .section-header {
        width: 100% !important;
        margin-bottom: 16px !important;
    }

    .section-header h2 {
        font-size: 16px !important;
        margin: 0 0 4px 0 !important;
    }

    .section-header p {
        font-size: 12px !important;
        color: var(--text-secondary) !important;
        margin: 0 !important;
    }

    .posts-grid-new {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 12px !important;
        width: 100% !important;
        overflow-x: hidden !important;
    }

    .badges-grid-new {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
        width: 100% !important;
        overflow-x: hidden !important;
    }

    .posts-grid {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 12px !important;
        width: 100% !important;
    }

    .post-card {
        width: 100% !important;
        padding: 12px !important;
        overflow: hidden !important;
    }

    .post-card-title {
        font-size: 14px !important;
        font-weight: 600 !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        margin-bottom: 8px !important;
    }

    .post-card-content {
        font-size: 12px !important;
        line-height: 1.4 !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
    }

    /* ========================================
     EXPLORE PAGE OVERFLOW FIXES (MOBILE)
     ======================================== */

    #explorePage {
        width: 100% !important;
        overflow-x: hidden !important;
        padding-bottom: 80px !important;
    }

    .explore-header {
        padding: 16px !important;
        gap: 12px !important;
    }

    .explore-header h2 {
        font-size: 20px !important;
        margin: 0 !important;
        white-space: normal !important;
    }

    .search-box {
        width: 100% !important;
        position: relative !important;
    }

    .search-box input {
        width: 100% !important;
        padding: 10px 36px 10px 12px !important;
        font-size: 14px !important;
        border: 1px solid rgba(139, 92, 246, 0.3) !important;
        border-radius: 8px !important;
    }

    .search-icon {
        position: absolute !important;
        right: 12px !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
    }

    .explore-content {
        padding: 16px !important;
        width: 100% !important;
        overflow-x: hidden !important;
    }

    .explore-section {
        margin-bottom: 24px !important;
        width: 100% !important;
    }

    .explore-section h3 {
        font-size: 16px !important;
        margin: 0 0 12px 0 !important;
        font-weight: 600 !important;
    }

    .posts-grid,
    .users-grid,
    .writers-grid {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 12px !important;
        width: 100% !important;
    }

    .post-item,
    .user-item,
    .writer-item {
        width: 100% !important;
        padding: 12px !important;
        overflow: hidden !important;
    }

    .post-item-title {
        font-size: 14px !important;
        font-weight: 600 !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        margin-bottom: 8px !important;
    }

    .post-item-author,
    .post-item-date {
        font-size: 11px !important;
        color: var(--text-secondary) !important;
    }

    .user-item-info,
    .writer-item-info {
        flex: 1 !important;
        min-width: 0 !important;
    }

    .user-item-name,
    .writer-item-name {
        font-size: 14px !important;
        font-weight: 600 !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    .user-item-bio,
    .writer-item-bio {
        font-size: 11px !important;
        color: var(--text-secondary) !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 1 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
        margin-top: 4px !important;
    }

    /* ========================================
     ADMIN PAGE OVERFLOW FIXES (MOBILE)
     ======================================== */

    #adminPage {
        width: 100% !important;
        overflow-x: hidden !important;
        padding: 16px !important;
        padding-bottom: 80px !important;
    }

    .admin-page {
        width: 100% !important;
    }

    .admin-header {
        margin-bottom: 20px !important;
    }

    .admin-header h1 {
        font-size: 20px !important;
        margin: 0 !important;
    }

    .admin-tabs {
        display: flex !important;
        gap: 8px !important;
        overflow-x: auto !important;
        scrollbar-width: none !important;
        margin-bottom: 20px !important;
        padding-bottom: 12px !important;
        border-bottom: 1px solid var(--bg-tertiary) !important;
    }

    .admin-tabs::-webkit-scrollbar {
        display: none !important;
    }

    .admin-tab-btn {
        padding: 8px 12px !important;
        font-size: 12px !important;
        white-space: nowrap !important;
        flex-shrink: 0;
    }

    .admin-tab-content {
        width: 100% !important;
    }

    .admin-section {
        margin-bottom: 24px !important;
    }

    .admin-section h2 {
        font-size: 16px !important;
        margin: 0 0 16px 0 !important;
    }

    .admin-table-wrapper {
        width: 100% !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        scrollbar-width: thin !important;
        margin-bottom: 16px !important;
    }

    .admin-table {
        width: 100% !important;
        font-size: 11px !important;
        border-collapse: collapse !important;
    }

    .admin-table th,
    .admin-table td {
        padding: 10px 8px !important;
        text-align: left !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    .admin-table th {
        background: var(--bg-secondary) !important;
        font-weight: 600 !important;
    }

    .admin-table td {
        border-bottom: 1px solid var(--bg-tertiary) !important;
    }

    .admin-table input,
    .admin-table select,
    .admin-table button {
        width: 100% !important;
        padding: 6px 4px !important;
        font-size: 11px !important;
        min-height: 32px !important;
    }

    .admin-form {
        width: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 12px !important;
    }

    .admin-form-group {
        width: 100% !important;
        display: flex !important;
        flex-direction: column !important;
    }

    .admin-form-group label {
        font-size: 12px !important;
        font-weight: 600 !important;
        margin-bottom: 6px !important;
    }

    .admin-form-group input,
    .admin-form-group select,
    .admin-form-group textarea {
        width: 100% !important;
        padding: 10px 8px !important;
        font-size: 14px !important;
        border: 1px solid rgba(139, 92, 246, 0.3) !important;
        border-radius: 6px !important;
        min-height: 40px !important;
    }

    .admin-btn-group {
        display: flex !important;
        gap: 8px !important;
        margin-top: 12px !important;
        flex-wrap: wrap !important;
    }

    .admin-btn-group button {
        flex: 1 !important;
        min-width: 80px !important;
        padding: 10px 8px !important;
        font-size: 12px !important;
        min-height: 40px !important;
    }

    /* ========================================
     HEADER OPTIMIZATION (MOBILE)
     ======================================== */

    .app-header {
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        padding: 12px 16px !important;
        height: auto !important;
        min-height: 50px !important;
    }

    .header-brand {
        display: flex !important;
        align-items: center !important;
        gap: 8px !important;
    }

    .brand-icon-mobile {
        font-size: 20px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .brand-name-mobile {
        font-size: 16px !important;
        font-weight: 700 !important;
        letter-spacing: 0.5px !important;
        white-space: nowrap !important;
    }

    .header-title {
        display: none !important;
    }

    /* Show app name on mobile, hide on desktop */
    @media (min-width: 481px) {

        .brand-icon-mobile,
        .brand-name-mobile {
            display: none !important;
        }

        .header-title {
            display: block !important;
            font-size: 16px !important;
            font-weight: 600 !important;
        }
    }

    /* ========================================
     TABLET SPECIFIC FIXES (600px - 900px)
     ======================================== */

    @media (min-width: 481px) and (max-width: 900px) {

        .posts-grid,
        .users-grid,
        .writers-grid {
            grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)) !important;
        }

        .profile-stats-row {
            grid-template-columns: repeat(3, 1fr) !important;
        }

        .admin-table {
            font-size: 12px !important;
        }

        .admin-table th,
        .admin-table td {
            padding: 12px !important;
        }

        .search-box input {
            font-size: 15px !important;
        }

        .explore-header h2 {
            font-size: 22px !important;
        }

        .profile-stats-row {
            width: 100% !important;
        }
    }
}

/* Ensure header brand shows on tablets/wider mobile screens */
@media (max-width: 768px) {
    .header-brand {
        display: flex !important;
        align-items: center !important;
        gap: 8px !important;
    }

    .brand-icon-mobile {
        font-size: 20px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .brand-name-mobile {
        font-size: 16px !important;
        font-weight: 700 !important;
        background: linear-gradient(135deg, #fff 0%, #a78bfa 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }
}

/* ===== CONFESSIONS PAGE - MODERN REDESIGN ===== */

:root {
    --crush-primary: #ff6b9d;
    --crush-secondary: #c44569;
    --crush-accent: #ffa502;
    --crush-bg: #0f0f23;
    --crush-card-bg: #1a1a3e;
    --crush-border: #2a2a5e;
    --crush-text: #ffffff;
    --crush-text-secondary: #b0b0d0;
    --crush-success: #4ade80;
    --crush-danger: #ff4757;
}

/* ===== MAIN CONTAINER ===== */
.secret-crush-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
    background: var(--crush-bg);
    min-height: 100vh;
}

/* ===== HERO SECTION ===== */
.crush-hero-section {
    position: relative;
    padding: 60px 30px;
    overflow: hidden;
    border-bottom: 1px solid var(--crush-border);
}

.crush-hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.crush-gradient-blob {
    position: absolute;
    border-radius: 50%;
    opacity: 0.1;
}

.crush-blob-1 {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, var(--crush-primary), var(--crush-secondary));
    top: -100px;
    right: -100px;
    animation: crushFloat 6s ease-in-out infinite;
}

.crush-blob-2 {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, var(--crush-accent), var(--crush-primary));
    bottom: -80px;
    left: -80px;
    animation: crushFloat 8s ease-in-out infinite reverse;
}

@keyframes crushFloat {

    0%,
    100% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(30px, -30px);
    }
}

.crush-hero-content {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
}

.crush-title-wrapper {
    flex: 1;
}

.crush-main-title {
    font-size: 56px;
    font-weight: 800;
    margin: 0 0 16px 0;
    background: linear-gradient(135deg, var(--crush-primary), var(--crush-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -2px;
}

.crush-subtitle {
    font-size: 18px;
    color: var(--crush-text-secondary);
    margin: 0;
    max-width: 400px;
    line-height: 1.6;
}

.crush-btn-share {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    background: linear-gradient(135deg, var(--crush-primary), var(--crush-secondary));
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(255, 107, 157, 0.3);
    white-space: nowrap;
}

.crush-btn-share:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(255, 107, 157, 0.4);
}

.crush-btn-share:active {
    transform: translateY(0);
}

.crush-btn-icon {
    width: 20px;
    height: 20px;
    stroke-width: 2.5;
}

/* ===== CONTROLS SECTION ===== */
.crush-controls-section {
    padding: 30px;
    background: var(--crush-card-bg);
    border-bottom: 1px solid var(--crush-border);
}

/* Search Box */
.crush-search-wrapper {
    margin-bottom: 24px;
}

.crush-search-box {
    display: flex;
    align-items: center;
    background: var(--crush-bg);
    border: 1.5px solid var(--crush-border);
    border-radius: 50px;
    padding: 12px 20px;
    transition: all 0.3s ease;
}

.crush-search-box:focus-within {
    border-color: var(--crush-primary);
    box-shadow: 0 0 0 3px rgba(255, 107, 157, 0.1);
}

.crush-search-icon {
    width: 20px;
    height: 20px;
    color: var(--crush-text-secondary);
    margin-right: 12px;
    flex-shrink: 0;
}

.crush-search-input {
    flex: 1;
    background: none;
    border: none;
    color: var(--crush-text);
    font-size: 16px;
    outline: none;
}

.crush-search-input::placeholder {
    color: var(--crush-text-secondary);
}

/* Filter Tabs */
.crush-filter-tabs {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
    overflow-x: auto;
    padding-bottom: 8px;
}

.crush-filter-tabs::-webkit-scrollbar {
    height: 4px;
}

.crush-filter-tabs::-webkit-scrollbar-track {
    background: transparent;
}

.crush-filter-tabs::-webkit-scrollbar-thumb {
    background: var(--crush-border);
    border-radius: 2px;
}

.crush-filter-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: var(--crush-bg);
    border: 1.5px solid var(--crush-border);
    border-radius: 30px;
    color: var(--crush-text-secondary);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.crush-filter-btn:hover {
    border-color: var(--crush-primary);
    color: var(--crush-primary);
}

.crush-filter-btn.active {
    background: linear-gradient(135deg, var(--crush-primary), var(--crush-secondary));
    border-color: transparent;
    color: white;
}

.crush-filter-emoji {
    font-size: 16px;
}

.crush-filter-text {
    font-weight: 600;
}

/* Categories Filter */
.crush-categories-wrapper {
    display: flex;
    justify-content: flex-start;
}

.crush-categories-scroll {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 8px;
    width: 100%;
}

.crush-categories-scroll::-webkit-scrollbar {
    height: 4px;
}

.crush-categories-scroll::-webkit-scrollbar-track {
    background: transparent;
}

.crush-categories-scroll::-webkit-scrollbar-thumb {
    background: var(--crush-border);
    border-radius: 2px;
}

.crush-category-tag {
    padding: 8px 16px;
    background: var(--crush-bg);
    border: 1.5px solid var(--crush-border);
    border-radius: 25px;
    color: var(--crush-text-secondary);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.crush-category-tag:hover {
    border-color: var(--crush-primary);
    color: var(--crush-primary);
}

.crush-category-tag.active {
    background: var(--crush-primary);
    border-color: var(--crush-primary);
    color: white;
}

/* ===== FEED CONTAINER ===== */
.crush-feed-container {
    padding: 40px 30px;
}

.secret-crush-feed {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
    margin-bottom: 30px;
}

/* ===== STORY CARD ===== */
.story-card {
    background: var(--crush-card-bg);
    border: 1px solid var(--crush-border);
    border-radius: 16px;
    padding: 24px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 16px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.story-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--crush-primary), var(--crush-secondary), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.story-card:hover {
    border-color: var(--crush-primary);
    box-shadow: 0 12px 40px rgba(255, 107, 157, 0.15);
    transform: translateY(-4px);
}

.story-card:hover::before {
    opacity: 1;
}

/* Story Header */
.story-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}

.story-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    flex: 1;
}

.story-author {
    font-size: 13px;
    color: var(--crush-primary);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    background: rgba(255, 107, 157, 0.1);
    border-radius: 8px;
}

.story-date {
    font-size: 12px;
    color: var(--crush-text-secondary);
    font-weight: 500;
}

.story-category-tag {
    background: rgba(255, 107, 157, 0.15);
    color: var(--crush-primary);
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.story-header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.story-views {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    color: var(--crush-text-secondary);
    font-weight: 500;
}

.story-delete-btn {
    background: rgba(255, 71, 87, 0.15);
    border: 1px solid rgba(255, 71, 87, 0.3);
    font-size: 16px;
    cursor: pointer;
    padding: 6px 10px;
    opacity: 0.9;
    transition: all 0.2s ease;
    color: var(--crush-danger);
    border-radius: 6px;
}

.story-delete-btn:hover {
    opacity: 1;
    background: rgba(255, 71, 87, 0.3);
    border-color: var(--crush-danger);
    transform: scale(1.1);
}

/* Story Content */
.story-content {
    font-size: 15px;
    line-height: 1.6;
    color: var(--crush-text);
    word-wrap: break-word;
    white-space: pre-wrap;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Story Reactions */
.story-reactions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid var(--crush-border);
}

.reaction-btn {
    flex: 1;
    min-width: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 12px;
    background: var(--crush-bg);
    border: 1px solid var(--crush-border);
    border-radius: 12px;
    color: var(--crush-text-secondary);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.reaction-btn:hover {
    border-color: currentColor;
    color: var(--crush-text);
}

.reaction-btn.active {
    background: var(--crush-primary);
    border-color: var(--crush-primary);
    color: white;
}

.reaction-btn.love {
    color: #ff6b9d;
}

.reaction-btn.love.active {
    background: #ff6b9d;
}

.reaction-btn.relate {
    color: #4ade80;
}

.reaction-btn.relate.active {
    background: #4ade80;
}

.reaction-btn.curious {
    color: #ffa502;
}

.reaction-btn.curious.active {
    background: #ffa502;
}

.reaction-count {
    font-weight: 700;
    background: rgba(255, 255, 255, 0.25);
    color: white;
    padding: 2px 6px;
    border-radius: 8px;
    min-width: 24px;
    text-align: center;
    display: inline-block;
}

.reaction-btn:not(.active) .reaction-count {
    color: currentColor;
    background: rgba(255, 255, 255, 0.1);
}

.story-view-btn {
    width: 100%;
    padding: 10px 16px;
    background: linear-gradient(135deg, rgba(255, 107, 157, 0.1), rgba(196, 69, 105, 0.1));
    border: 1px solid var(--crush-primary);
    border-radius: 12px;
    color: var(--crush-primary);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.story-view-btn:hover {
    background: var(--crush-primary);
    color: white;
}

/* Empty State */
.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 80px 40px;
    color: var(--crush-text-secondary);
}

.empty-state-icon {
    font-size: 64px;
    margin-bottom: 16px;
    display: block;
}

.empty-state p {
    font-size: 16px;
    margin: 0;
}

/* ===== LOAD MORE BUTTON ===== */
.crush-load-more-wrapper {
    display: flex;
    justify-content: center;
    padding: 40px 30px;
}

.crush-btn-load-more {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    background: var(--crush-card-bg);
    border: 1.5px solid var(--crush-border);
    color: var(--crush-text);
    border-radius: 50px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.crush-btn-load-more:hover {
    border-color: var(--crush-primary);
    color: var(--crush-primary);
}

.crush-btn-load-more svg {
    width: 18px;
    height: 18px;
}

/* ===== MODALS ===== */
.crush-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    animation: crushModalFadeIn 0.3s ease;
}

.crush-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes crushModalFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.crush-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    z-index: -1;
}

.crush-modal-content {
    position: relative;
    background: var(--crush-card-bg);
    border: 1px solid var(--crush-border);
    border-radius: 20px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 40px;
    animation: crushModalSlideUp 0.3s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

@keyframes crushModalSlideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.crush-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: var(--crush-text-secondary);
    cursor: pointer;
    padding: 8px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.crush-modal-close:hover {
    color: var(--crush-primary);
    transform: rotate(90deg);
}

.crush-modal-close svg {
    width: 24px;
    height: 24px;
}

.crush-modal-header {
    margin-bottom: 30px;
    text-align: center;
}

.crush-modal-header h2 {
    font-size: 28px;
    margin: 0 0 8px 0;
    background: linear-gradient(135deg, var(--crush-primary), var(--crush-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.crush-modal-header p {
    color: var(--crush-text-secondary);
    margin: 0;
    font-size: 14px;
}

/* Form Styles */
.crush-modal-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.crush-form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.crush-form-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--crush-text);
}

.crush-optional {
    color: var(--crush-text-secondary);
    font-weight: 400;
    font-size: 12px;
}

.crush-form-select,
.crush-form-textarea {
    background: var(--crush-bg);
    border: 1.5px solid var(--crush-border);
    border-radius: 12px;
    padding: 12px 16px;
    color: var(--crush-text);
    font-size: 14px;
    font-family: inherit;
    transition: all 0.3s ease;
}

.crush-form-select:focus,
.crush-form-textarea:focus {
    outline: none;
    border-color: var(--crush-primary);
    box-shadow: 0 0 0 3px rgba(255, 107, 157, 0.1);
}

.crush-form-select {
    cursor: pointer;
    padding: 12px 16px;
}

.crush-form-select option {
    background: var(--crush-bg);
    color: var(--crush-text);
}

.crush-form-textarea {
    resize: vertical;
    min-height: 120px;
}

.crush-char-counter {
    font-size: 12px;
    color: var(--crush-text-secondary);
    text-align: right;
}

.crush-btn-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 32px;
    background: linear-gradient(135deg, var(--crush-primary), var(--crush-secondary));
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(255, 107, 157, 0.3);
    margin-top: 10px;
}

.crush-btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(255, 107, 157, 0.4);
}

.crush-btn-submit:active {
    transform: translateY(0);
}

.crush-btn-submit svg {
    width: 18px;
    height: 18px;
}

/* Publication Mode Options */
.crush-mode-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 12px;
    margin-top: 8px;
}

.crush-mode-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border: 1.5px solid var(--crush-border);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(26, 26, 62, 0.5);
}

.crush-mode-option:hover {
    border-color: var(--crush-primary);
    background: rgba(255, 107, 157, 0.1);
}

.crush-mode-option input[type="radio"] {
    cursor: pointer;
    accent-color: var(--crush-primary);
}

.crush-mode-option input[type="radio"]:checked+.crush-mode-icon+.crush-mode-text {
    color: var(--crush-primary);
}

.crush-mode-option input[type="radio"]:checked {
    accent-color: var(--crush-primary);
}

.crush-mode-option:has(input[type="radio"]:checked) {
    border-color: var(--crush-primary);
    background: rgba(255, 107, 157, 0.15);
}

.crush-mode-icon {
    font-size: 24px;
    min-width: 24px;
}

.crush-mode-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    color: var(--crush-text);
    transition: color 0.3s ease;
}

.crush-mode-text strong {
    font-size: 14px;
    font-weight: 600;
}

.crush-mode-text small {
    font-size: 12px;
    color: var(--crush-text-secondary);
}

.crush-form-input {
    background: var(--crush-bg);
    border: 1.5px solid var(--crush-border);
    border-radius: 12px;
    padding: 12px 16px;
    color: var(--crush-text);
    font-size: 14px;
    font-family: inherit;
    transition: all 0.3s ease;
}

.crush-form-input:focus {
    outline: none;
    border-color: var(--crush-primary);
    box-shadow: 0 0 0 3px rgba(255, 107, 157, 0.1);
}

.crush-form-hint {
    font-size: 12px;
    color: var(--crush-text-secondary);
    margin-top: 4px;
}

/* Story Detail Modal */
.crush-story-detail-modal {
    max-width: 600px;
    padding: 30px;
}

/* ===== RESPONSIVE DESIGN ===== */

/* Tablet (768px - 1024px) */
@media (max-width: 1024px) {
    .crush-main-title {
        font-size: 42px;
    }

    .crush-hero-section {
        padding: 50px 24px;
    }

    .crush-hero-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 30px;
    }

    .secret-crush-feed {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }

    .crush-controls-section {
        padding: 24px;
    }

    .crush-feed-container {
        padding: 30px 24px;
    }

    .crush-blob-1 {
        width: 300px;
        height: 300px;
    }

    .crush-blob-2 {
        width: 200px;
        height: 200px;
    }
}

/* Mobile (max 768px) */
@media (max-width: 768px) {
    :root {
        --crush-gap: 12px;
    }

    .crush-hero-section {
        padding: 40px 16px;
        border-bottom: 1px solid var(--crush-border);
    }

    .crush-main-title {
        font-size: 32px;
        margin-bottom: 12px;
    }

    .crush-subtitle {
        font-size: 14px;
        max-width: 100%;
    }

    .crush-hero-content {
        flex-direction: column;
        align-items: stretch;
        gap: 20px;
    }

    .crush-btn-share {
        width: 100%;
        justify-content: center;
    }

    .crush-controls-section {
        padding: 16px;
    }

    .crush-search-wrapper {
        margin-bottom: 16px;
    }

    .crush-filter-tabs {
        gap: 8px;
        margin-bottom: 16px;
    }

    .crush-filter-btn {
        padding: 8px 14px;
        font-size: 12px;
    }

    .crush-filter-emoji {
        font-size: 14px;
    }

    .crush-categories-scroll {
        gap: 8px;
    }

    .crush-category-tag {
        padding: 6px 12px;
        font-size: 12px;
    }

    .secret-crush-feed {
        grid-template-columns: 1fr;
        gap: 16px;
        margin-bottom: 20px;
    }

    .crush-feed-container {
        padding: 20px 16px;
    }

    .story-card {
        padding: 16px;
        gap: 12px;
    }

    .story-header {
        flex-direction: column;
    }

    .story-reactions {
        gap: 8px;
        padding-top: 12px;
        margin-top: auto;
    }

    .reaction-btn {
        min-width: 60px;
        padding: 6px 10px;
        font-size: 12px;
        flex: auto;
    }

    .story-view-btn {
        padding: 8px 12px;
        font-size: 13px;
    }

    .crush-load-more-wrapper {
        padding: 24px 16px;
    }

    .crush-btn-load-more {
        width: 100%;
        justify-content: center;
        padding: 12px 24px;
    }

    .crush-modal-content {
        width: 95%;
        max-height: 85vh;
        padding: 24px;
        border-radius: 16px;
    }

    .crush-modal-header h2 {
        font-size: 22px;
    }

    .crush-modal-header p {
        font-size: 13px;
    }

    .crush-modal-form {
        gap: 16px;
    }

    .crush-form-group {
        gap: 6px;
    }

    .crush-form-label {
        font-size: 13px;
    }

    .crush-form-select,
    .crush-form-textarea {
        font-size: 14px;
        padding: 10px 12px;
    }

    .crush-form-textarea {
        min-height: 100px;
    }

    .crush-btn-submit {
        padding: 12px 24px;
        font-size: 14px;
    }

    /* Hide text labels on filters on very small screens */
    @media (max-width: 480px) {
        .crush-filter-text {
            display: none;
        }

        .crush-filter-btn {
            padding: 8px;
        }

        .story-content {
            -webkit-line-clamp: 3;
        }

        .crush-modal-content {
            padding: 20px;
        }

        .crush-story-detail-modal {
            padding: 20px;
        }
    }

    /* Very small phones */
    @media (max-width: 380px) {
        .crush-main-title {
            font-size: 28px;
        }

        .crush-subtitle {
            font-size: 13px;
        }

        .crush-modal-header h2 {
            font-size: 20px;
        }

        .reaction-btn {
            min-width: 50px;
        }
    }
}

/* Landscape mobile */
@media (max-height: 600px) and (max-width: 768px) {
    .crush-hero-section {
        padding: 24px 16px;
    }

    .crush-main-title {
        font-size: 28px;
        margin-bottom: 8px;
    }

    .crush-subtitle {
        font-size: 13px;
    }

    .crush-hero-content {
        gap: 12px;
    }
}

/* ===== SCROLLBAR STYLING ===== */
.secret-crush-feed::-webkit-scrollbar,
.crush-categories-scroll::-webkit-scrollbar,
.crush-filter-tabs::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

.secret-crush-feed::-webkit-scrollbar-track,
.crush-categories-scroll::-webkit-scrollbar-track,
.crush-filter-tabs::-webkit-scrollbar-track {
    background: var(--crush-border);
    border-radius: 3px;
}

.secret-crush-feed::-webkit-scrollbar-thumb,
.crush-categories-scroll::-webkit-scrollbar-thumb,
.crush-filter-tabs::-webkit-scrollbar-thumb {
    background: var(--crush-primary);
    border-radius: 3px;
}

/* ===== ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Dark mode (already default) */
@media (prefers-color-scheme: dark) {
    .crush-form-select option {
        background-color: var(--crush-bg);
        color: var(--crush-text);
    }
}

/* ========== Bottles (Messages in a Bottle) - New Modern Design ========== */

.bottles-page-new {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    min-height: calc(100vh - 80px);
}

/* Header Section */
.bottles-header-new {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 30px;
    margin-bottom: 50px;
    padding: 40px 30px;
    background: linear-gradient(135deg, rgba(30, 176, 192, 0.1), rgba(102, 126, 234, 0.1));
    border-radius: 20px;
    border: 2px solid rgba(30, 176, 192, 0.2);
    transition: all 0.3s ease;
}

.bottles-header-new:hover {
    border-color: rgba(30, 176, 192, 0.4);
    background: linear-gradient(135deg, rgba(30, 176, 192, 0.15), rgba(102, 126, 234, 0.15));
}

.bottles-header-content h1 {
    font-size: 36px;
    font-weight: 700;
    margin: 0 0 10px 0;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

.bottles-header-content p {
    font-size: 16px;
    color: var(--text-secondary);
    margin: 0;
    font-style: italic;
    line-height: 1.5;
}

/* Write Button */
.bottles-write-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: linear-gradient(135deg, #1eb0c0 0%, #30b0c0 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    box-shadow: 0 4px 15px rgba(30, 176, 192, 0.3);
}

.bottles-write-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(30, 176, 192, 0.4);
}

.bottles-write-btn:active {
    transform: translateY(0);
}

.bottles-write-btn svg {
    width: 18px;
    height: 18px;
}

/* Feed Container */
.bottles-feed-container {
    position: relative;
    min-height: 200px;
}

/* Feed Grid */
.bottles-feed-grid {
    display: grid;
    gap: 30px;
    margin-bottom: 40px;
}

/* Bottle Card Styles */
.bottle-card {
    background: linear-gradient(135deg, #e8f5f7 0%, #d4f1f4 100%);
    border: 1px solid rgba(30, 176, 192, 0.2);
    border-radius: 12px;
    padding: 20px;
    max-width: 100%;
    box-shadow: 0 4px 12px rgba(30, 176, 192, 0.1);
    transition: all 0.2s ease;
}

.bottle-card:hover {
    box-shadow: 0 8px 20px rgba(30, 176, 192, 0.15);
    transform: translateY(-2px);
}

/* Card Top - Header with avatar and delete */
.bottle-card-top {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(30, 176, 192, 0.1);
}

.bottle-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #1eb0c0;
    flex-shrink: 0;
}

.bottle-header-info {
    flex: 1;
    min-width: 0;
}

.bottle-sender {
    font-weight: 600;
    font-size: 14px;
    color: var(--text-primary);
    margin: 0;
}

.bottle-time {
    font-size: 12px;
    color: var(--text-secondary);
    margin: 2px 0 0 0;
}

.bottle-delete {
    background: rgba(255, 59, 48, 0.1);
    color: #ff3b30;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    padding: 0;
    flex-shrink: 0;
}

.bottle-delete:hover {
    background: rgba(255, 59, 48, 0.2);
}

/* Message Content */
.bottle-message {
    font-size: 15px;
    line-height: 1.6;
    color: #333;
    margin: 16px 0;
    white-space: pre-wrap;
    word-wrap: break-word;
    font-family: 'Georgia', serif;
}

/* Stats */
.bottle-stats {
    font-size: 13px;
    color: var(--text-secondary);
    margin: 12px 0;
    padding: 8px 0;
    border-top: 1px solid rgba(30, 176, 192, 0.1);
}

/* Actions */
.bottle-actions {
    display: flex;
    gap: 10px;
    margin-top: 12px;
}

.bottle-btn-reply {
    flex: 1;
    padding: 10px 16px;
    background: linear-gradient(135deg, #1eb0c0 0%, #30b0c0 100%);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.bottle-btn-reply:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(30, 176, 192, 0.3);
}

.bottle-btn-reply:active {
    transform: translateY(0);
}

/* Loading State */
.bottles-loading {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary);
}

.bottles-loading.hidden {
    display: none;
}

.spinner {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 4px solid rgba(30, 176, 192, 0.2);
    border-top-color: #1eb0c0;
    border-radius: 50%;
    animation: spin-animation 1s linear infinite;
    margin-bottom: 20px;
}

@keyframes spin-animation {
    to {
        transform: rotate(360deg);
    }
}

/* Empty State */
.bottles-empty {
    text-align: center;
    padding: 80px 20px;
    color: var(--text-secondary);
}

.bottles-empty.hidden {
    display: none;
}

.empty-icon {
    font-size: 60px;
    margin-bottom: 20px;
    opacity: 0.6;
}

.bottles-empty h3 {
    font-size: 20px;
    margin: 0 0 10px 0;
    color: var(--text-primary);
    font-weight: 600;
}

.bottles-empty p {
    margin: 0;
    font-size: 15px;
    color: var(--text-secondary);
}

/* ========== MODAL STYLES ========== */

.modal-overlay-new {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay-new.hidden {
    display: none !important;
    opacity: 0;
    pointer-events: none;
}

.modal-overlay-new.active {
    display: flex !important;
    opacity: 1;
    pointer-events: auto;
}

.modal-new {
    background: var(--bg-secondary);
    border: 1px solid rgba(30, 176, 192, 0.2);
    border-radius: 16px;
    padding: 0;
    position: relative;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modal-slide-in 0.3s ease;
}

@keyframes modal-slide-in {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(20px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.bottles-modal {
    display: flex;
    flex-direction: column;
}

.modal-header-new {
    padding: 25px 30px;
    border-bottom: 1px solid rgba(30, 176, 192, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header-new h2 {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
}

.modal-close-new {
    background: none;
    border: none;
    font-size: 28px;
    color: var(--text-secondary);
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    padding: 0;
}

.modal-close-new:hover {
    color: var(--text-primary);
    transform: rotate(90deg);
}

/* Form Styles */
.bottles-form-new {
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-field.full-width {
    grid-column: 1 / -1;
}

.form-field label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-field textarea {
    padding: 12px 14px;
    border: 1px solid rgba(30, 176, 192, 0.3);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    font-family: 'Georgia', serif;
    font-size: 14px;
    transition: all 0.2s ease;
    resize: vertical;
    min-height: 140px;
    line-height: 1.6;
}

.form-field textarea::placeholder {
    color: var(--text-secondary);
}

.form-field textarea:focus {
    outline: none;
    border-color: #1eb0c0;
    background: rgba(30, 176, 192, 0.1);
    box-shadow: 0 0 0 3px rgba(30, 176, 192, 0.1);
}

.char-count {
    font-size: 12px;
    color: var(--text-secondary);
    text-align: right;
    margin-top: 4px;
}

.char-count.warning {
    color: #ffa500;
    font-weight: 600;
}

.char-count.error {
    color: #ff6b6b;
    font-weight: 600;
}

/* Form Actions */
.form-actions {
    display: flex;
    gap: 12px;
    margin-top: 10px;
    border-top: 1px solid rgba(30, 176, 192, 0.1);
    padding-top: 20px;
}

.btn-cancel,
.btn-submit {
    flex: 1;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-cancel {
    background: rgba(30, 176, 192, 0.1);
    color: var(--text-primary);
}

.btn-cancel:hover {
    background: rgba(30, 176, 192, 0.15);
}

.btn-submit {
    background: linear-gradient(135deg, #1eb0c0 0%, #30b0c0 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(30, 176, 192, 0.3);
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(30, 176, 192, 0.4);
}

.btn-submit:active {
    transform: translateY(0);
}

.btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* ========== RESPONSIVE ========== */

@media (max-width: 768px) {
    .bottles-page-new {
        padding: 15px;
    }

    .bottles-header-new {
        flex-direction: column;
        gap: 20px;
        padding: 30px 20px;
    }

    .bottles-header-content h1 {
        font-size: 28px;
    }

    .bottles-write-btn {
        width: 100%;
        justify-content: center;
    }

    .bottle-card {
        padding: 24px;
        max-width: 100%;
    }

    .bottle-card-content {
        font-size: 15px;
        line-height: 1.6;
    }

    .bottles-feed-grid {
        gap: 20px;
    }

    .modal-new {
        max-width: 95%;
    }

    .modal-header-new {
        padding: 20px;
    }

    .bottles-form-new {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .bottles-page-new {
        padding: 10px;
    }

    .bottles-header-new {
        padding: 20px 15px;
    }

    .bottles-header-content h1 {
        font-size: 24px;
    }

    .bottles-header-content p {
        font-size: 14px;
    }

    .bottles-write-btn {
        padding: 10px 16px;
        font-size: 13px;
    }

    .bottle-card {
        padding: 20px;
        margin: 0;
    }

    .bottle-card-content {
        font-size: 14px;
    }

    .bottle-card-title {
        font-size: 16px;
    }

    .form-actions {
        flex-direction: column;
    }

    .btn-cancel,
    .btn-submit {
        width: 100%;
    }

    .modal-new {
        max-width: 100%;
        border-radius: 12px;
    }

    .modal-header-new {
        padding: 15px;
    }

    .modal-header-new h2 {
        font-size: 18px;
    }

    .bottles-form-new {
        padding: 15px;
        gap: 15px;
    }

    .form-field textarea {
        min-height: 120px;
    }
}

/* Modern UI Redesign - Stories Popup & Enhanced Styling */

/* Stories Dropdown Container */
.nav-dropdown-container {
    position: relative;
    display: flex;
    align-items: center;
}

/* Stories Toggle Button */
.stories-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
    transition: all 0.3s ease;
}

.stories-toggle.active {
    color: var(--primary-color, #8b5cf6);
}

/* Stories Popup Modal - Centered on Screen */
.stories-dropdown {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    background: rgba(15, 5, 25, 0.95);
    backdrop-filter: blur(40px) saturate(200%);
    -webkit-backdrop-filter: blur(40px) saturate(200%);
    border: 2px solid rgba(139, 92, 246, 0.3);
    border-radius: 24px;
    box-shadow:
        0 25px 80px rgba(0, 0, 0, 0.6),
        0 0 60px rgba(139, 92, 246, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    min-width: 280px;
    max-width: 320px;
    z-index: 99999;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    padding: 16px 0;
}

/* Popup visible state */
.stories-dropdown:not(.hidden) {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.stories-dropdown.hidden {
    display: block !important;
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, -50%) scale(0.9);
    pointer-events: none;
}

/* Popup Items - Premium Style */
.dropdown-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 24px;
    margin: 0 12px;
    border-radius: 12px;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: all 0.25s ease;
    border-bottom: none;
    background: transparent;
}

.dropdown-item:hover {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(236, 72, 153, 0.15));
    transform: translateX(4px);
    color: white;
}

.dropdown-item:active {
    background: rgba(139, 92, 246, 0.25);
    transform: translateX(4px) scale(0.98);
}

.dropdown-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    color: #a78bfa;
    stroke: currentColor;
    filter: drop-shadow(0 0 6px rgba(139, 92, 246, 0.4));
}

.dropdown-text {
    flex: 1;
    font-size: 15px;
    font-weight: 600;
    color: inherit;
}

.dropdown-emoji {
    font-size: 16px;
    flex-shrink: 0;
}


/* ===== BOTTLES REDESIGN ===== */

/* Modern Bottle Card - Confessions Style */
.bottle-card {
    background: linear-gradient(135deg, #fff5e6 0%, #ffe8cc 100%);
    border: 2px solid rgba(255, 107, 107, 0.2);
    border-radius: 16px;
    padding: 32px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(255, 107, 107, 0.12);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.bottle-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 107, 107, 0.05) 0%, transparent 70%);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px) translateX(0px);
    }

    50% {
        transform: translateY(-10px) translateX(10px);
    }
}

.bottle-card:hover {
    box-shadow: 0 16px 48px rgba(255, 107, 107, 0.2);
    transform: translateY(-8px);
    border-color: rgba(255, 107, 107, 0.4);
}

.bottle-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(255, 107, 107, 0.1);
}

.bottle-icon {
    font-size: 28px;
    flex-shrink: 0;
}

.bottle-sender-info {
    flex: 1;
}

.bottle-sender-name {
    font-weight: 600;
    color: #ff6b6b;
    font-size: 0.95rem;
}

.bottle-sender-time {
    font-size: 0.8rem;
    color: #999;
    margin-top: 3px;
}

.bottle-message {
    font-size: 1rem;
    line-height: 1.6;
    color: #444;
    margin: 20px 0;
    padding: 15px;
    background: rgba(255, 107, 107, 0.05);
    border-left: 4px solid #ff6b6b;
    border-radius: 8px;
    position: relative;
    z-index: 2;
}

.bottle-status-badge {
    display: inline-block;
    padding: 6px 12px;
    background: linear-gradient(135deg, #ff6b6b 0%, #ff8c5f 100%);
    color: white;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    position: relative;
    z-index: 2;
}

.bottle-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    position: relative;
    z-index: 2;
    flex-wrap: wrap;
}

.bottle-action-btn {
    flex: 1;
    min-width: 120px;
    padding: 10px 14px;
    background: linear-gradient(135deg, #ff6b6b 0%, #ff8c5f 100%);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.2s ease;
}

.bottle-action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.3);
}

/* ===== CONFESSIONS REDESIGN ===== */

/* Modern Confession Card */
.confession-card {
    background: linear-gradient(135deg, #fff5e6 0%, #ffe8cc 100%);
    border: 2px solid rgba(255, 107, 107, 0.2);
    border-radius: 16px;
    padding: 32px;
    position: relative;
    box-shadow: 0 8px 32px rgba(255, 107, 107, 0.12);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.confession-card:hover {
    box-shadow: 0 16px 48px rgba(255, 107, 107, 0.2);
    transform: translateY(-8px);
    border-color: rgba(255, 107, 107, 0.4);
}

.confession-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(255, 107, 107, 0.1);
}

.confession-title {
    font-weight: 700;
    color: #ff6b6b;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.confession-mode {
    display: inline-block;
    padding: 4px 10px;
    background: rgba(255, 107, 107, 0.1);
    color: #ff6b6b;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 600;
}

.confession-content {
    font-size: 1.02rem;
    line-height: 1.8;
    color: #444;
    margin: 20px 0;
    padding: 15px;
    background: rgba(255, 255, 255, 0.6);
    border-left: 4px solid #ff6b6b;
    border-radius: 8px;
}

.confession-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 18px;
    padding-top: 15px;
    border-top: 2px solid rgba(255, 107, 107, 0.1);
    font-size: 0.85rem;
    color: #888;
}

.confession-stats {
    display: flex;
    gap: 15px;
}

.confession-stat {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Page Headers - Modern */
.bottles-header,
.confessions-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 30px 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
    border-radius: 16px;
}

.bottles-header h2,
.confessions-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0 0 12px 0;
    font-family: 'Georgia', serif;
}

.bottles-header p,
.confessions-header p {
    font-size: 1rem;
    color: #666;
    margin: 0;
    font-style: italic;
}

/* Create Button - Modern */
.create-bottle-btn,
.create-confession-btn {
    display: block;
    margin: 30px auto;
    padding: 14px 32px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.4);
    letter-spacing: 0.5px;
}

.create-bottle-btn:hover,
.create-confession-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(102, 126, 234, 0.5);
}

.create-bottle-btn:active,
.create-confession-btn:active {
    transform: translateY(-1px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .stories-dropdown {
        min-width: 240px;
    }

    .dropdown-item {
        padding: 14px 16px;
    }

    .dropdown-item:hover {
        padding-left: 20px;
    }

    .bottle-card,
    .confession-card {
        padding: 20px;
        border-radius: 12px;
    }

    .bottles-header h2,
    .confessions-header h2 {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .stories-dropdown {
        min-width: 200px;
        left: -80px;
    }

    .bottle-card,
    .confession-card {
        padding: 16px;
        margin: 0 5px;
    }

    .bottles-header h2,
    .confessions-header h2 {
        font-size: 1.5rem;
    }

    .bottles-header p,
    .confessions-header p {
        font-size: 0.9rem;
    }
}

/* Landing Page Redesign - No Animations */

:root {
    --landing-bg: #0a0e27;
    --landing-surface: #0f1438;
    --landing-border: rgba(139, 92, 246, 0.1);
    --landing-text: #e5e7eb;
}

.landing-page {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--landing-bg);
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    z-index: 10;
}

.landing-page.hidden {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    z-index: -100 !important;
    position: fixed !important;
    top: -9999px !important;
}

/* Background Grid */
.landing-bg-grid {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        linear-gradient(0deg, transparent 24%, rgba(139, 92, 246, 0.05) 25%, rgba(139, 92, 246, 0.05) 26%, transparent 27%, transparent 74%, rgba(139, 92, 246, 0.05) 75%, rgba(139, 92, 246, 0.05) 76%, transparent 77%, transparent),
        linear-gradient(90deg, transparent 24%, rgba(139, 92, 246, 0.05) 25%, rgba(139, 92, 246, 0.05) 26%, transparent 27%, transparent 74%, rgba(139, 92, 246, 0.05) 75%, rgba(139, 92, 246, 0.05) 76%, transparent 77%, transparent);
    background-size: 50px 50px;
    pointer-events: none;
    z-index: 1;
}

/* Background Blurs */
.landing-bg-blur {
    position: fixed;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.3;
    pointer-events: none;
    z-index: 0;
}

.blur-1 {
    top: -10%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: linear-gradient(135deg, #8b5cf6, #ec4899);
}

.blur-2 {
    bottom: -5%;
    left: -5%;
    width: 500px;
    height: 500px;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
}

/* Navigation */
.landing-nav {
    position: relative;
    z-index: 20;
    backdrop-filter: blur(10px);
    background: rgba(10, 14, 39, 0.8);
    border-bottom: 1px solid var(--landing-border);
    padding: 16px 0;
    sticky: top;
}

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 24px;
    font-weight: 800;
    color: var(--landing-text);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.logo-icon {
    font-size: 28px;
}

.nav-buttons {
    display: flex;
    gap: 16px;
    align-items: center;
}

.nav-btn {
    padding: 10px 20px;
    background: transparent;
    border: 1px solid var(--landing-border);
    color: var(--landing-text);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.nav-btn:hover {
    background: rgba(139, 92, 246, 0.1);
    border-color: rgba(139, 92, 246, 0.3);
}

.nav-btn-primary {
    background: linear-gradient(135deg, #8b5cf6, #ec4899);
    border-color: transparent;
    color: white;
}

.nav-btn-primary:hover {
    background: linear-gradient(135deg, #a78bfa, #f472b6);
}

/* Landing Content */
.landing-content {
    flex: 1;
    position: relative;
    z-index: 10;
    overflow-y: auto;
}

.content-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 40px;
}

/* Hero Section */
.hero-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    margin-bottom: 120px;
}

.hero-text {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.hero-headline {
    font-size: 56px;
    font-weight: 900;
    line-height: 1.2;
    color: var(--landing-text);
    letter-spacing: -1px;
}

.gradient-text {
    background: linear-gradient(135deg, #8b5cf6, #ec4899, #3b82f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 18px;
    line-height: 1.6;
    color: rgba(229, 231, 235, 0.7);
    max-width: 500px;
}

.hero-cta {
    display: flex;
    gap: 16px;
    margin-top: 8px;
}

.btn {
    padding: 14px 32px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-primary-lg {
    background: linear-gradient(135deg, #8b5cf6, #ec4899);
    color: white;
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.3);
}

.btn-primary-lg:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(139, 92, 246, 0.4);
}

.btn-secondary-lg {
    background: transparent;
    color: var(--landing-text);
    border: 1px solid var(--landing-border);
}

.btn-secondary-lg:hover {
    background: rgba(139, 92, 246, 0.1);
    border-color: rgba(139, 92, 246, 0.3);
}

.btn-primary-xl {
    padding: 16px 40px;
    font-size: 18px;
}

/* Hero Visual */
.hero-visual {
    display: flex;
    align-items: center;
    justify-content: center;
}

.visual-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    width: 100%;
}

.visual-item {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(236, 72, 153, 0.05));
    border: 1px solid var(--landing-border);
    border-radius: 16px;
    padding: 40px 24px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.item-icon {
    font-size: 48px;
}

.item-label {
    color: var(--landing-text);
    font-size: 16px;
    font-weight: 600;
}

/* Features Section */
.features-section {
    margin-bottom: 120px;
}

.section-title {
    font-size: 40px;
    font-weight: 800;
    color: var(--landing-text);
    text-align: center;
    margin-bottom: 60px;
    letter-spacing: -0.5px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.feature-card {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.08), rgba(236, 72, 153, 0.03));
    border: 1px solid var(--landing-border);
    border-radius: 16px;
    padding: 40px 32px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    transition: all 0.3s ease;
}

.feature-card:hover {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.12), rgba(236, 72, 153, 0.08));
    border-color: rgba(139, 92, 246, 0.2);
    transform: translateY(-4px);
}

.feature-icon {
    font-size: 40px;
}

.feature-card h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--landing-text);
    margin: 0;
}

.feature-card p {
    font-size: 14px;
    color: rgba(229, 231, 235, 0.7);
    margin: 0;
    line-height: 1.6;
}

/* Stats Section */
.stats-section {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    margin-bottom: 120px;
    padding: 60px 40px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(236, 72, 153, 0.05));
    border: 1px solid var(--landing-border);
    border-radius: 20px;
}

.stat-card {
    text-align: center;
}

.stat-number {
    font-size: 48px;
    font-weight: 900;
    background: linear-gradient(135deg, #8b5cf6, #ec4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 12px;
}

.stat-label {
    font-size: 14px;
    color: rgba(229, 231, 235, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.15), rgba(236, 72, 153, 0.1));
    border: 1px solid var(--landing-border);
    border-radius: 20px;
    padding: 80px 40px;
    text-align: center;
    margin-bottom: 80px;
}

.cta-section h2 {
    font-size: 44px;
    font-weight: 800;
    color: var(--landing-text);
    margin: 0 0 16px 0;
    letter-spacing: -0.5px;
}

.cta-section p {
    font-size: 18px;
    color: rgba(229, 231, 235, 0.7);
    margin: 0 0 32px 0;
}

/* Footer */
.landing-footer {
    background: rgba(10, 14, 39, 0.8);
    border-top: 1px solid var(--landing-border);
    padding: 24px;
    text-align: center;
    color: rgba(229, 231, 235, 0.5);
    font-size: 14px;
    position: relative;
    z-index: 20;
}

.landing-footer a {
    color: #8b5cf6;
    text-decoration: none;
    transition: color 0.2s ease;
}

.landing-footer a:hover {
    color: #a78bfa;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .content-inner {
        padding: 60px 30px;
    }

    .hero-section {
        grid-template-columns: 1fr;
        gap: 40px;
        margin-bottom: 80px;
    }

    .hero-headline {
        font-size: 44px;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .stats-section {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
        padding: 40px 30px;
    }

    .feature-card {
        padding: 32px 24px;
    }
}

@media (max-width: 768px) {
    .nav-inner {
        padding: 0 20px;
    }

    .content-inner {
        padding: 40px 20px;
    }

    .hero-section {
        margin-bottom: 60px;
    }

    .hero-headline {
        font-size: 32px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .hero-cta {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        text-align: center;
    }

    .section-title {
        font-size: 28px;
        margin-bottom: 40px;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .stats-section {
        grid-template-columns: repeat(2, 1fr);
        padding: 30px 20px;
    }

    .cta-section {
        padding: 50px 20px;
        margin-bottom: 60px;
    }

    .cta-section h2 {
        font-size: 28px;
    }

    .cta-section p {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 18px;
    }

    .nav-buttons {
        gap: 8px;
    }

    .nav-btn {
        padding: 8px 16px;
        font-size: 12px;
    }

    .hero-headline {
        font-size: 24px;
    }

    .hero-subtitle {
        font-size: 14px;
    }

    .section-title {
        font-size: 22px;
    }

    .stat-number {
        font-size: 32px;
    }

    .stats-section {
        grid-template-columns: 1fr;
    }

    .visual-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== AUTH MODAL STYLES ===== */
.auth-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.auth-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.auth-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 40px;
    width: 90%;
    max-width: 420px;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
}

.auth-modal.active {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.auth-modal .modal-close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: var(--text-primary);
    font-size: 24px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.auth-modal .modal-close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.auth-modal-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-modal-header h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
    background: linear-gradient(135deg, var(--primary-light), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.auth-modal-header p {
    color: var(--text-secondary);
    font-size: 14px;
}

.auth-modal-form .form-group {
    margin-bottom: 20px;
}

.auth-modal-form label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-primary);
    font-weight: 500;
    font-size: 14px;
}

.auth-modal-form input {
    width: 100%;
    padding: 14px 16px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 15px;
    transition: all 0.2s ease;
}

.auth-modal-form input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.15);
}

.auth-modal-form input::placeholder {
    color: var(--text-tertiary);
}

.auth-modal-footer {
    text-align: center;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.auth-modal-footer p {
    color: var(--text-secondary);
    font-size: 14px;
}

.auth-modal-footer a {
    color: var(--primary-light);
    text-decoration: none;
    font-weight: 600;
}

.auth-modal-footer a:hover {
    text-decoration: underline;
}

/* ===== MOBILE LOGOUT BUTTON ===== */
.mobile-logout-btn {
    display: none;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 8px;
    padding: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.mobile-logout-btn svg {
    width: 20px;
    height: 20px;
    stroke: #ef4444;
}

.mobile-logout-btn:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: #ef4444;
}

@media (max-width: 768px) {
    .mobile-logout-btn {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .app-header {
        justify-content: space-between;
    }
}

/* BOOTSTRAP SCROLL FIX FOR MOBILE */
@media (max-width: 768px) {

    /* Ensure body and html take full height but allow internal scrolling */
    html,
    body {
        height: 100%;
        overflow: hidden;
        /* Prevent body scroll, handle inside #app */
    }

    #app {
        height: 100%;
        overflow: hidden;
        display: flex;
        flex-direction: column;
    }

    .main-app {
        flex: 1;
        overflow: hidden;
        /* Contain scrollable areas */
        display: flex;
        flex-direction: column;
    }

    /* Content area should fill available space */
    .content {
        flex: 1;
        height: 100%;
        overflow: hidden;
        /* Scroll is handled by .page */
        position: relative;
    }

    /* Individual pages must be scrollable */
    .page {
        height: 100%;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch;
        /* Smooth scroll on iOS */
        padding-bottom: 80px !important;
        /* Space for bottom nav */
    }

    /* Ensure feed container scrolls if it's the main scroller */
    .feed-container {
        overflow-y: visible !important;
        /* Let the page handle scroll */
        height: auto !important;
    }

    /* Fix sidebar/bottom nav z-index */
    .sidebar {
        z-index: 1000;
    }
}

/* ===== MOBILE BOTTOM NAVIGATION REDESIGN ===== */
.mobile-bottom-nav {
    display: none;
    /* Hidden on desktop */
}

@media (max-width: 768px) {

    /* Hide legacy sidebar */
    .sidebar,
    .app-sidebar {
        display: none !important;
    }

    /* Show bottom nav */
    .mobile-bottom-nav {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 70px;
        background: rgba(15, 1, 24, 0.95);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        z-index: 9999;
        justify-content: space-around;
        align-items: center;
        padding-bottom: env(safe-area-inset-bottom);
        box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.3);
    }

    /* Nav Items */
    .mobile-nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        color: var(--text-secondary);
        text-decoration: none;
        font-size: 10px;
        /* Base size */
        font-weight: 500;
        flex: 1;
        height: 100%;
        transition: all 0.2s ease;
    }

    .mobile-nav-item span {
        font-size: 10px !important;
        /* Force consistent size */
        line-height: 1.2;
        display: block;
    }

    .mobile-nav-item svg {
        width: 24px;
        height: 24px;
        margin-bottom: 4px;
        stroke-width: 2px;
        transition: all 0.2s ease;
    }

    /* Landing Page Improvements */
    .landing-page {
        /* Ensure it covers everything and doesn't flicker on scroll */
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        overflow-y: auto;
        overflow-x: hidden;
        z-index: 99999;
        background: transparent;
        -webkit-overflow-scrolling: touch;
    }

    .landing-background {
        position: fixed;
        inset: 0;
        z-index: -1;
        transform: translateZ(0);
        /* Hardware acceleration */
    }

    .mobile-nav-item.active {
        color: var(--primary-light);
    }

    .mobile-nav-item.active svg {
        stroke: var(--primary-color);
        fill: rgba(139, 92, 246, 0.1);
        transform: translateY(-2px);
    }

    /* FAB Container (Center Button) */
    .mobile-nav-fab-container {
        position: relative;
        top: -25px;
        width: 60px;
        height: 60px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .mobile-nav-fab {
        width: 56px;
        height: 56px;
        border-radius: 50%;
        background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
        border: 4px solid var(--bg-primary);
        /* Blend with background */
        color: white;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4);
        cursor: pointer;
        transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    }

    .mobile-nav-fab svg {
        width: 28px;
        height: 28px;
        stroke-width: 2.5px;
    }

    .mobile-nav-fab:active {
        transform: scale(0.95);
    }

    /* Badges */
    .icon-container {
        position: relative;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .mobile-badge {
        position: absolute;
        top: -2px;
        right: -6px;
        background: var(--accent-color);
        color: white;
        font-size: 9px;
        font-weight: 700;
        min-width: 14px;
        height: 14px;
        border-radius: 7px;
        display: flex;
        align-items: center;
        justify-content: center;
        border: 2px solid var(--bg-primary);
    }

    .mobile-badge.hidden {
        display: none;
    }

    /* Adjust page container to prevent content hiding behind nav */
    .app-content {
        padding-bottom: 90px !important;
    }

    /* Ensure modals are z-index higher than nav */
    .modal {
        z-index: 10000 !important;
    }

    /* Fix scrolling for specific pages on mobile */
    #composePage,
    #messagesPage {
        overflow-y: auto !important;
        height: 100% !important;
        padding-bottom: 90px !important;
        -webkit-overflow-scrolling: touch;
    }

    /* Ensure textarea in compose Page is scrollable */
    .compose-card {
        height: auto !important;
        min-height: 100%;
        margin-bottom: 20px;
    }

    /* Fix Messages Page Layout on Mobile */
    .messages-container {
        height: auto !important;
        min-height: 100%;
        display: flex;
        flex-direction: column;
    }

    .conversations-sidebar {
        height: auto !important;
        max-height: 300px;
        /* Limit height of conversation list on mobile so chat is visible */
        overflow-y: auto;
    }

    .chat-area {
        height: 60vh !important;
        /* Fixed height for chat area on mobile */
        overflow-y: hidden;
        /* Header fixed */
        display: flex;
        flex-direction: column;
    }

    .messages-list {
        flex: 1;
        overflow-y: auto !important;
        height: 100%;
    }

    /* Header Action Buttons */
    .header-actions {
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .header-actions .mobile-logout-btn {
        display: flex !important;
        /* Force show on mobile */
        align-items: center;
        justify-content: center;
        background: transparent;
        border: none;
        padding: 8px;
        color: var(--text-secondary);
        width: 40px;
        /* Fixed width for consistency */
        height: 40px;
        /* Fixed height for consistency */
        border-radius: 50%;
        /* Circle shape */
    }

    .header-actions .mobile-logout-btn svg {
        width: 24px;
        height: 24px;
        stroke-width: 2px;
    }

    .header-actions .mobile-logout-btn:active {
        background: rgba(255, 255, 255, 0.1);
    }
}

/* Desktop Styles for Header Actions */
@media (min-width: 769px) {
    #mobileChatBtn {
        display: none !important;
    }
}

/* Bottle Card Styles */
.bottle-card {
    background: rgba(26, 13, 46, 0.85);
    /* Darker background */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    color: var(--text-primary);
    transition: transform 0.2s, box-shadow 0.2s;
    position: relative;
    /* Ensure delete button positioning works if absolute */
}

.bottle-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.2);
}

.bottle-card-top {
    display: flex;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.bottle-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 12px;
    border: 2px solid var(--primary-color);
}

.bottle-header-info {
    flex: 1;
}

.bottle-sender {
    font-weight: 600;
    font-size: 15px;
    color: var(--text-primary);
}

.bottle-time {
    font-size: 12px;
    color: var(--text-secondary);
}

.bottle-message {
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-primary);
    margin-bottom: 16px;
    white-space: pre-wrap;
}

.bottle-delete {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 24px;
    cursor: pointer;
    padding: 4px 8px;
    line-height: 1;
    border-radius: 4px;
    transition: all 0.2s;
    position: relative;
    z-index: 100;
    /* Ensure it is top-most clickable */
}

.bottle-delete:hover {
    color: var(--danger-color);
    background: rgba(239, 68, 68, 0.1);
}

.bottle-stats {
    font-size: 12px;
    color: var(--text-tertiary);
    font-style: italic;
    text-align: right;
}

/* Loading Screen */
/* Loading Screen */
.initial-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, #1a0d2e 0%, #0f0518 100%);
    z-index: 100000;
    /* Highest capability */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: opacity 0.8s ease-out, visibility 0.8s;
    overflow: hidden;
}

.initial-loader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* Decorative Rings */
.loader-decoration {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loader-ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.05);
    animation: rotateRing 10s linear infinite;
}

.ring-1 {
    width: 300px;
    height: 300px;
    border-top-color: rgba(192, 192, 192, 0.3);
    border-bottom-color: rgba(192, 192, 192, 0.1);
    animation-duration: 8s;
}

.ring-2 {
    width: 450px;
    height: 450px;
    border-left-color: rgba(139, 92, 246, 0.2);
    border-right-color: rgba(139, 92, 246, 0.1);
    animation-direction: reverse;
    animation-duration: 12s;
}

.loader-orb {
    position: absolute;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.1) 0%, transparent 70%);
    filter: blur(20px);
    animation: pulseOrb 3s ease-in-out infinite;
}

.loader-text {
    font-family: 'Dancing Script', 'Pacifico', cursive;
    /* Cursive font */
    font-size: 6rem;
    font-weight: 700;
    /* Animated Silver Gradient Background */
    background: linear-gradient(to bottom,
            #ffffff 0%,
            #e0e0e0 20%,
            #a0a0a0 50%,
            #e0e0e0 80%,
            #ffffff 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shineSilver 3s linear infinite, smoothFloat 3s ease-in-out infinite;
    position: relative;
    z-index: 2;
    text-shadow: 0 0 30px rgba(255, 255, 255, 0.2);
    margin-bottom: 10px;
}

.loader-description {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 300;
    opacity: 0;
    animation: fadeInUp 1s ease-out 0.5s forwards;
    position: relative;
    z-index: 2;
}

/* Sparkles for Loader */
.loader-content {
    position: relative;
    text-align: center;
    z-index: 10;
}

.loader-content::before,
.loader-content::after {
    content: '✦';
    position: absolute;
    color: #fff;
    font-size: 1.5rem;
    opacity: 0;
    animation: sparkleFade 3s infinite;
    text-shadow: 0 0 10px #fff;
}

.loader-content::before {
    top: -10px;
    right: -20px;
    animation-delay: 0.2s;
    font-size: 2rem;
}

.loader-content::after {
    bottom: 20px;
    left: -30px;
    animation-delay: 1.2s;
}

.loader-spinner {
    display: none;
    /* Text only as requested */
}

/* Animations */
@keyframes rotateRing {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes pulseOrb {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.5;
    }

    50% {
        transform: scale(1.2);
        opacity: 0.8;
    }
}

@keyframes shineSilver {
    to {
        background-position: 200% center;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes gradientFlow {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

@keyframes smoothFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes sparkleFade {

    0%,
    100% {
        opacity: 0;
        transform: scale(0.5) rotate(0deg);
    }

    50% {
        opacity: 1;
        transform: scale(1.2) rotate(15deg);
    }
}

@keyframes pulseLoader {

    0%,
    100% {
        opacity: 0.8;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.05);
    }
}

/* Mobile Flicker Fixes */
html,
body {
    background-color: var(--bg-primary) !important;
    /* Prevent white flash */
    overflow-x: hidden;
    /* Prevent horizontal scroll causing repaint */
}

/* Optimize landing page for mobile */
@media (max-width: 768px) {

    /* ============================================
       SMOOTH GPU-OPTIMIZED EMOJI ANIMATIONS
       ============================================ */
    /* Replace jittery animations with smooth GPU-only translateY */
    @keyframes smoothFloat {

        0%,
        100% {
            transform: translateY(0);
        }

        50% {
            transform: translateY(-8px);
        }
    }

    @keyframes gentlePulse {

        0%,
        100% {
            opacity: 1;
        }

        50% {
            opacity: 0.7;
        }
    }

    /* Apply smooth animations to emoji elements */
    .card-emoji,
    .float-emoji,
    .info-emoji,
    .card-icon-large,
    .feature-icon-box {
        animation: smoothFloat 3s ease-in-out infinite !important;
        transform: translateY(0) !important;
        will-change: transform !important;
        backface-visibility: hidden !important;
        -webkit-backface-visibility: hidden !important;
    }

    /* Static elements - no animation needed */
    .dropdown-emoji,
    .logo-icon,
    .badge-dot {
        animation: gentlePulse 2s ease-in-out infinite !important;
        transform: none !important;
    }

    /* Float cards - smooth subtle movement */
    .float-card,
    .float-item,
    .float-1,
    .float-2,
    .float-3 {
        animation: smoothFloat 4s ease-in-out infinite !important;
        backface-visibility: hidden !important;
        -webkit-backface-visibility: hidden !important;
    }

    /* Stagger the float animations */
    .float-1 {
        animation-delay: 0s !important;
    }

    .float-2 {
        animation-delay: 0.5s !important;
    }

    .float-3 {
        animation-delay: 1s !important;
    }

    /* Visual card - smooth entrance only */
    .visual-card {
        animation: none !important;
        transform: translateZ(0) !important;
    }

    /* ============================================
       BACKGROUND OPTIMIZATIONS
       ============================================ */
    .landing-background {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        will-change: transform;
        transform: translateZ(0);
        z-index: 0;
    }

    /* Reduce complexity of blurred elements */
    .bg-blob,
    .gradient-blob,
    .visual-gradient-blob,
    .floating-spark,
    .glow-element {
        animation: gentlePulse 4s ease-in-out infinite !important;
        opacity: 0.3 !important;
        transform: translateZ(0) !important;
        will-change: opacity !important;
    }

    /* Disable heavy gradient animations */
    .animated-gradient {
        animation: none !important;
    }

    /* ============================================
       FIX: AUTH MODAL VISIBILITY ON MOBILE
       ============================================ */
    /* CRITICAL: Landing page should NOT be fixed - it blocks modals! */
    .landing-page {
        position: relative !important;
        min-height: 100vh;
        min-height: 100dvh;
        overflow-x: hidden;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    /* Ensure landing content has lower z-index */
    .landing-hero {
        position: relative;
        z-index: 5 !important;
    }

    .hero-content {
        position: relative;
        z-index: 5 !important;
    }

    .hero-visual {
        position: relative;
        z-index: 4 !important;
    }

    .features-section {
        position: relative;
        z-index: 3 !important;
    }

    /* Auth modal overlay - must cover everything */
    .auth-modal-overlay {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        width: 100vw !important;
        height: 100vh !important;
        z-index: 99999 !important;
        background: rgba(0, 0, 0, 0.8) !important;
        backdrop-filter: blur(10px) !important;
        -webkit-backdrop-filter: blur(10px) !important;
    }

    /* Auth modal - centered and visible */
    .auth-modal {
        position: fixed !important;
        top: 50% !important;
        left: 50% !important;
        transform: translate(-50%, -50%) !important;
        width: 90% !important;
        max-width: 400px !important;
        max-height: 85vh !important;
        overflow-y: auto !important;
        z-index: 100000 !important;
        padding: 24px 20px !important;
        border-radius: 16px !important;
        background: linear-gradient(135deg, #1a1a2e, #16213e) !important;
        border: 1px solid rgba(139, 92, 246, 0.3) !important;
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5) !important;
    }

    /* Ensure active state shows the modal */
    .auth-modal.active {
        display: block !important;
    }

    .auth-modal-overlay.active {
        display: block !important;
    }

    /* Fix modal header on mobile */
    .auth-modal-header h2 {
        font-size: 22px !important;
        margin-bottom: 6px !important;
    }

    .auth-modal-header p {
        font-size: 13px !important;
        margin-bottom: 20px !important;
    }

    /* Fix form inputs on mobile */
    .auth-modal-form input {
        padding: 12px 14px !important;
        font-size: 16px !important;
        /* Prevents zoom on iOS */
    }

    /* Close button positioning */
    .modal-close-btn {
        position: absolute !important;
        top: 12px !important;
        right: 12px !important;
        z-index: 100001 !important;
    }

    /* ============================================
       LOADER FIXES
       ============================================ */
    .loader-text {
        animation: gentlePulse 2s ease-in-out infinite !important;
        transform: none !important;
    }

    .loader-content::before,
    .loader-content::after {
        animation: gentlePulse 2s ease-in-out infinite !important;
    }
}

/* Disable specific intense animations globally if needed */
@media (prefers-reduced-motion: reduce) {

    .card-emoji,
    .float-emoji,
    .info-emoji,
    .card-icon-large,
    .feature-icon-box,
    .float-card,
    .float-item {
        animation: none !important;
    }
}

/* Sidebar hide on mobile - must be outside media query closing brace */
@media (max-width: 768px) {

    .sidebar,
    .app-sidebar {
        display: none !important;
    }
}