/* HolyDream - Simple White Theme */

/* CSS Variables for consistent theming */
:root {
    --primary-color: #ffffff;
    --secondary-color: #f8fafc;
    --accent-color: #1e293b;
    --text-primary: #1e3a8a;
    --text-secondary: #3b82f6;
    --border-color: #e2e8f0;
    --shadow-light: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-large: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    
    /* Semantic colors for consistent UI states */
    --success-color: #22c55e;
    --error-color: #ef4444;
    --warning-color: #f59e0b;
    --info-color: #3b82f6;
    --danger-color: #dc2626;
    --muted-color: #64748b;
    
    /* Form element specific colors for better contrast */
    --form-text-color: #0f172a;
    --form-bg-color: #ffffff;
    --form-placeholder-color: #6b7280;

    --select-text-color: #ffffff;
    
    /* Button text colors for different backgrounds */
    --btn-text-primary: #ffffff;
    --btn-text-secondary: #374151;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--primary-color);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.875rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1rem;
    
}

/* Layout Components */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}
.container-settings {
    max-width: 982px;
}
.section {
    padding: 1rem 0;
}

/* Button Styles */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 44px;
    white-space: nowrap;
}

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

.btn-primary {
    background: linear-gradient(135deg, #64748b, #475569);
    color: var(--btn-text-primary);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #475569, #64748b);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-secondary {
    background: var(--secondary-color);
    color: var(--accent-color);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    border-color: var(--muted-color);
    transform: translateY(-1px);
    box-shadow: var(--shadow-light);
}

/* Subtle button for less prominent actions */
.btn-subtle {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid transparent;
    padding: 0.5rem 1rem;
}

.btn-subtle:hover {
    background: var(--secondary-color);
    color: var(--text-primary);
    border-color: var(--border-color);
}

/* Ghost button for minimal emphasis */
.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

.btn-ghost:hover {
    background: var(--secondary-color);
    color: var(--text-primary);
    border-color: var(--muted-color);
}

.btn-warning {
    background: #f59e0b;
    color: var(--primary-color);
}

.btn-warning:hover {
    background: #d97706;
}

.btn-danger {
    background: #dc2626;
    color: var(--primary-color);
}

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

.btn-outline {
    background: transparent;
    color: var(--text-secondary);
    border: 2px solid var(--border-color);
}

.btn-outline:hover {
    background: var(--secondary-color);
    color: var(--text-primary);
}

.full-width {
    width: 100%;
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    min-height: 36px;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.125rem;
    min-height: 52px;
}

/* Creative Return Button */
.creative-return-section {
    margin-bottom: 2rem;
    display: flex;
    justify-content: flex-start;
    animation: slideInFromLeft 0.8s ease-out;
}

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

.creative-return-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
   
    background-size: 200% 200%;
    color: white;
    padding: 12px 24px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.3);
    animation: gradientShift 3s ease-in-out infinite;
}

@keyframes gradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

.creative-return-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(99, 102, 241, 0.4);
    text-decoration: none;
    color: white;
}

.creative-return-btn .btn-content {
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
    z-index: 2;
}

.creative-return-btn .btn-text {
    transition: all 0.3s ease;
}

.creative-return-btn .btn-sparkle {
    font-size: 16px;
    animation: sparkle 2s ease-in-out infinite;
    margin-left: 4px;
}

@keyframes sparkle {
    0%, 100% {
        opacity: 0.7;
        transform: scale(1) rotate(0deg);
    }
    50% {
        opacity: 1;
        transform: scale(1.2) rotate(180deg);
    }
}

.creative-return-btn .btn-hover-effect {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.creative-return-btn:hover .btn-hover-effect {
    left: 100%;
}

.creative-return-btn:hover .btn-sparkle {
    animation-duration: 0.5s;
}

/* Responsive adjustments for creative button */
@media (max-width: 768px) {
    .creative-return-section {
        margin-bottom: 1.5rem;
    }
    
    .creative-return-btn {
        padding: 10px 20px;
        font-size: 13px;
    }
    
    .creative-return-btn .btn-sparkle {
        font-size: 14px;
    }
}

/* Navigation */
.navbar {
    background: var(--primary-color);
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-light);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    display: flex;
    align-items: center;
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
}

.logo-icon {
    margin-right: 0.5rem;
    color: var(--accent-color);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    color: var(--text-primary);
}

.nav-link {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--text-primary);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* ====== ENHANCED NAVIGATION STYLES ====== */

/* Navigation base styles */
.nav {
    background: var(--primary-color);
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-light);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.nav-brand {
    display: flex;
    align-items: center;
}

.brand-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--text-primary);
    font-family: 'Playfair Display', serif;
    font-size: 1rem;
    font-weight: 700;
}

.brand-link i {
    margin-right: 0.5rem;
    color: var(--accent-color);
    font-size: 1.75rem;
}

.brand-text {
    background: linear-gradient(135deg, var(--accent-color), #475569);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--text-primary);
    background: var(--secondary-color);
}

.nav-link.active {
    color: var(--text-primary);
    background: rgba(30, 41, 59, 0.05);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -1rem;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 2px;
    background: var(--accent-color);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.nav-action-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.125rem;
    padding: 0.5rem;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.nav-action-btn:hover {
    color: var(--text-primary);
    background: var(--secondary-color);
}

.notification-badge {
    position: absolute;
    top: 0.25rem;
    right: 0.25rem;
    background: #ef4444;
    color: white;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

/* ====== MODERN USER MENU STYLES ====== */
[x-cloak] { display: none !important; }

.user-menu {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* User Avatar Button */
.user-avatar {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: linear-gradient(135deg, #f8fafc, #ffffff);
    border: 2px solid transparent;
    border-radius: 50px;
    padding: 0.375rem 1rem 0.375rem 0.375rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
}

.user-avatar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.05), rgba(71, 85, 105, 0.02));
    border-radius: inherit;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.user-avatar:hover::before {
    opacity: 1;
}

.user-avatar:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-color: rgba(30, 41, 59, 0.1);
}

.user-avatar:active {
    transform: translateY(0);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Avatar Image */
.avatar-img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.user-avatar:hover .avatar-img {
    border-color: rgba(30, 41, 59, 0.2);
    transform: scale(1.05);
}

/* User Name */
.user-avatar span {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.875rem;
    letter-spacing: 0.025em;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Chevron Icon */
.user-avatar i[data-lucide="chevron-down"] {
    width: 16px;
    height: 16px;
    color: var(--text-secondary);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-left: 0.25rem;
}

.user-avatar:hover i[data-lucide="chevron-down"] {
    color: var(--text-primary);
    transform: rotate(180deg);
}

/* FontAwesome chevron icon */
.user-avatar .fa-chevron-down {
    color: var(--text-secondary);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-left: 0.25rem;
    font-size: 0.875rem;
}

.user-avatar:hover .fa-chevron-down,
.user-avatar.active .fa-chevron-down {
    color: var(--text-primary);
}

.user-avatar .fa-chevron-down.rotate-180 {
    transform: rotate(180deg);
}

/* User Dropdown */
.user-dropdown {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    background: rgba(255, 255, 255, 0.95);

 
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: 16px;
    box-shadow: 
        0 20px 25px -5px rgba(0, 0, 0, 0.1),
        0 10px 10px -5px rgba(0, 0, 0, 0.04),
        0 0 0 1px rgba(255, 255, 255, 0.05);
    min-width: 280px;
    padding: 0.75rem;
    z-index: 1001;
    opacity: 0;
    transform: translateY(-10px) scale(0.95);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.user-dropdown[x-show="true"],
.user-dropdown:not([style*="display: none"]) {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Dropdown Header */
.dropdown-header {
    padding: 1rem;
    border-bottom: 1px solid rgba(226, 232, 240, 0.6);
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, rgba(248, 250, 252, 0.8), rgba(255, 255, 255, 0.4));
    border-radius: 12px;
}

.user-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.user-name {
    font-weight: 700;
    color: var(--text-primary);
    font-size: 1rem;
    letter-spacing: 0.025em;
}

.user-email {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Dropdown Menu Items */
.dropdown-menu {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 0.875rem 1rem;
    color: var(--text-secondary);
    text-decoration: none;
    border: none;
    background: none;
    border-radius: 12px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    width: 100%;
    text-align: left;
    position: relative;
    overflow: hidden;
}

.dropdown-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.05), rgba(71, 85, 105, 0.02));
    border-radius: inherit;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.dropdown-item:hover::before {
    opacity: 1;
}

.dropdown-item:hover {
    color: var(--primary-color);
    transform: translateX(4px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.dropdown-item:active {
    transform: translateX(2px) scale(0.98);
}

.dropdown-item i {
    width: 18px;
    height: 18px;
    color: inherit;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.dropdown-item:hover i {
    transform: scale(1.1);
}

/* Logout Button Special Styling */
.dropdown-item.logout {
    margin-top: 0.5rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(226, 232, 240, 0.6);
    color: var(--error-color);
}

.dropdown-item.logout::before {
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.05), rgba(239, 68, 68, 0.02));
}

.dropdown-item.logout:hover {
    color: var(--danger-color);
    background: rgba(220, 38, 38, 0.05);
}

.dropdown-item.logout i {
    color: inherit;
}

/* Notification Badge for User Menu */
.user-menu .notification-dot {
    position: absolute;
    top: 0.25rem;
    right: 0.75rem;
    width: 8px;
    height: 8px;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    border: 2px solid white;
    border-radius: 50%;
    animation: pulse-notification 2s infinite;
}

@keyframes pulse-notification {
    0%, 70%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    35% {
        transform: scale(1.2);
        opacity: 0.8;
    }
}

/* Mobile Responsive Adjustments */
@media (max-width: 768px) {
    .user-avatar {
        padding: 0.25rem 0.75rem 0.25rem 0.25rem;
        gap: 0.5rem;
    }
    
    .user-avatar span {
        display: none;
    }
    
    .avatar-img {
        width: 36px;
        height: 36px;
    }
    
    .user-dropdown {
        right: -1rem;
        left: -1rem;
        min-width: auto;
        width: calc(100vw - 2rem);
        max-width: 320px;
        margin: 0 auto;
    }
}

@media (max-width: 480px) {
    .user-dropdown {
        right: -2rem;
        left: -2rem;
        width: calc(100vw - 1rem);
    }
}

/* Enhanced Create Button */
.btn.btn-primary {
    background: linear-gradient(135deg, #64748b, #475569);
    color: var(--btn-text-primary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn.btn-primary:hover {
    background: linear-gradient(135deg, #475569, #64748b);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn.btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

/* Enhanced Mobile Navigation */
@media (max-width: 1024px) {
    .nav-links {
        gap: 1.5rem;
    }
    
    .user-avatar span {
        max-width: 100px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .nav-actions .auth-buttons {
        gap: 0.25rem;
    }
    
    .nav-actions .btn {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }
}

/* Dark Mode Support (Optional) */
@media (prefers-color-scheme: dark) {
    :root {
        --primary-color: #0f172a;
        --secondary-color: #1e293b;
        --accent-color: #f8fafc;
        --text-primary: #f8fafc;
        --text-secondary: #cbd5e1;
        --border-color: #334155;
        
        /* Dark mode semantic colors */
        --success-color: #10b981;
        --error-color: #f87171;
        --warning-color: #fbbf24;
        --info-color: #60a5fa;
        --danger-color: #ef4444;
        --muted-color: #94a3b8;
        
        /* Dark mode form colors for better contrast */
        --form-text-color: #1e293b;
        --form-bg-color: #1e293b;
        --form-placeholder-color: #94a3b8;
        
        /* Button text colors for different backgrounds in dark mode */
        --btn-text-primary: #ffffff;
        --btn-text-secondary: #e2e8f0;
    }
    
    .user-avatar {
        background: linear-gradient(135deg, #1e293b, #334155);
        border-color: rgba(148, 163, 184, 0.2);
    }
    
    .user-dropdown {
        background: rgba(15, 23, 42, 0.95);
        border-color: rgba(51, 65, 85, 0.8);
    }
    
    .dropdown-header {
        background: linear-gradient(135deg, rgba(30, 41, 59, 0.8), rgba(51, 65, 85, 0.4));
    }

    /* Dark mode placeholder styling */
    .form-input::placeholder,
    .form-textarea::placeholder,
    .search-bar input::placeholder {
        color: var(--form-placeholder-color);
        opacity: 0.6;
    }
}

/* Explicit dark theme (data-theme="dark") */
[data-theme="dark"] {
    --primary-color: #0f172a;
    --secondary-color: #1e293b;
    --accent-color: #f8fafc;
    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --border-color: #334155;
    
    /* Dark mode semantic colors */
    --success-color: #10b981;
    --error-color: #f87171;
    --warning-color: #fbbf24;
    --info-color: #60a5fa;
    --danger-color: #ef4444;
    --muted-color: #94a3b8;
    
    /* Dark mode form colors for better contrast */
    --form-text-color: #1e293b;
    --form-bg-color: #1e293b;
    --form-placeholder-color: #94a3b8;
    
    /* Button text colors for different backgrounds in dark mode */
    --btn-text-primary: #ffffff;
    --btn-text-secondary: #e2e8f0;
}

[data-theme="dark"] .user-avatar {
    background: linear-gradient(135deg, #1e293b, #334155);
    border-color: rgba(148, 163, 184, 0.2);
}

[data-theme="dark"] .user-dropdown {
    background: rgba(15, 23, 42, 0.95);
    border-color: rgba(51, 65, 85, 0.8);
}

[data-theme="dark"] .dropdown-header {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.8), rgba(51, 65, 85, 0.4));
}

[data-theme="dark"] .form-input::placeholder,
[data-theme="dark"] .form-textarea::placeholder,
[data-theme="dark"] .search-bar input::placeholder {
    color: var(--text-secondary);
    opacity: 0.6;
}

/* Explicit light theme (data-theme="light") */
[data-theme="light"] {
    --primary-color: #ffffff;
    --secondary-color: #f8fafc;
    --accent-color: #1e293b;
    --text-primary: #1e3a8a;
    --text-secondary: #3b82f6;
    --border-color: #e2e8f0;
    
    /* Light mode semantic colors */
    --success-color: #22c55e;
    --error-color: #ef4444;
    --warning-color: #f59e0b;
    --info-color: #3b82f6;
    --danger-color: #dc2626;
    --muted-color: #64748b;
    
    /* Light mode form colors for better contrast */
    --form-text-color: #0f172a;
     --select-text-color:#ffffff;
    --form-bg-color: #ffffff;
    --form-placeholder-color: #6b7280;
    
    /* Button text colors for different backgrounds in light mode */
    --btn-text-primary: #ffffff;
    --btn-text-secondary: #374151;
}



[data-theme="light"] .form-input::placeholder,
[data-theme="light"] .form-textarea::placeholder,
[data-theme="light"] .search-bar input::placeholder {
    color: var(--text-secondary);
    opacity: 0.7;
}

/* Focus States for Accessibility */
.user-avatar:focus-visible,
.dropdown-item:focus-visible {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

/* Animation for smooth transitions */
.user-menu {
    animation: slideInFromTop 0.3s ease-out;
}

@keyframes slideInFromTop {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
}

.menu-item:hover {
    background: var(--secondary-color);
    color: var(--text-primary);
}

.menu-divider {
    height: 1px;
    background: var(--border-color);
    margin: 0.5rem 0;
}

/* Mobile menu */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.25rem;
    cursor: pointer;
}

.mobile-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--primary-color);
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-medium);
}

.mobile-menu-content {
    padding: 1rem;
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.mobile-nav-link:hover {
    background: var(--secondary-color);
    color: var(--text-primary);
}

.mobile-menu-divider {
    height: 1px;
    background: var(--border-color);
    margin: 0.5rem 0;
}

/* Search bar */
.search-bar {
    padding: 1rem 0;
    border-top: 1px solid var(--border-color);
    background: var(--secondary-color);
}

.search-container {
    position: relative;
    display: flex;
    align-items: center;
    max-width: 500px;
    margin: 0 auto;
    background: var(--primary-color);
    border-radius: 2rem;
    box-shadow: var(--shadow-light);
    overflow: hidden;
}

.search-icon {
    position: absolute;
    left: 1rem;
    color: var(--text-secondary);
    z-index: 1;
    transition: color 0.3s ease;
}

.search-container:focus-within .search-icon {
    color: var(--accent-color);
}

.search-input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.5rem;
    border: 2px solid transparent;
    border-radius: 2rem;
    font-size: 1rem;
    background: var(--primary-color);
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(30, 41, 59, 0.1);
}

.search-btn {
    position: absolute;
    right: 0.25rem;
    background: var(--accent-color);
    color: var(--primary-color);
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 1.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-btn:hover {
    background: #334155;
}

/* Notifications panel */
.notifications-panel {
    position: fixed;
    top: 4rem;
    right: 1rem;
    background: var(--primary-color);
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    box-shadow: var(--shadow-large);
    width: 350px;
    max-height: 400px;
    overflow: hidden;
    z-index: 1002;
}

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

.notifications-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin: 0;
}

.mark-read-btn {
    background: none;
    border: none;
    color: var(--accent-color);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
}

.notifications-content {
    max-height: 300px;
    overflow-y: auto;
}

.notification-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    transition: background 0.3s ease;
}

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

.notification-item.unread {
    background: rgba(30, 41, 59, 0.02);
}

.notification-icon {
    width: 32px;
    height: 32px;
    background: var(--secondary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-color);
    flex-shrink: 0;
}

.notification-content {
    flex: 1;
}

.notification-text {
    font-size: 0.875rem;
    margin: 0;
    color: var(--text-primary);
}

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

.notification-dismiss {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 0.25rem;
    transition: all 0.3s ease;
}

.notification-dismiss:hover {
    background: var(--border-color);
    color: var(--text-primary);
}

.no-notifications {
    padding: 2rem;
    text-align: center;
    color: var(--text-secondary);
}

.no-notifications i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    display: block;
}

/* ====== AUTHENTICATION MODAL STYLES ====== */

.auth-modal {
    background: var(--primary-color);
    border-radius: 1rem;
    padding: 2rem;
    max-width: 450px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-large);
    position: relative;
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-color);
}

.auth-title {
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.auth-subtitle {
    color: var(--text-secondary);
    margin: 0;
}

.auth-tabs {
    display: flex;
    margin-bottom: 1.5rem;
    background: var(--secondary-color);
    border-radius: 0.5rem;
    padding: 0.25rem;
}

.auth-tab {
    flex: 1;
    background: none;
    border: none;
    padding: 0.75rem;
    border-radius: 0.25rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text-secondary);
}

.auth-tab.active {
    background: var(--primary-color);
    color: var(--text-primary);
    box-shadow: var(--shadow-light);
}

.social-auth {
    margin-bottom: 1.5rem;
}

.social-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.875rem;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    background: var(--primary-color);
    color: var(--text-primary);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 0.75rem;
}

.social-btn:hover {
    background: var(--secondary-color);
    border-color: var(--accent-color);
}

.google-btn:hover { border-color: #db4437; }
.facebook-btn:hover { border-color: #4267b2; }
.twitter-btn:hover { border-color: #1da1f2; }

.auth-divider {
    position: relative;
    text-align: center;
    margin: 1.5rem 0;
}

.auth-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--border-color);
}

.auth-divider span {
    background: var(--primary-color);
    padding: 0 1rem;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.auth-form {
    margin-bottom: 1rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.input-group {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 0.875rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    z-index: 1;
}

.input-group .form-input {
    padding-left: 2.75rem;
    color: var(--form-text-color);
}

.password-toggle {
    position: absolute;
    right: 0.875rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
   
    cursor: pointer;
    padding: 0.25rem;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
   
    cursor: pointer;
}
.checkbox-text {
    color: var(--form-text-color);
}
.checkbox {
    appearance: none;
    width: 16px;
    height: 16px;
    border: 1px solid var(--border-color);
    border-radius: 0.25rem;
    position: relative;
    cursor: pointer;
}

.checkbox:checked {
    background: var(--accent-color);
    border-color: var(--accent-color);
}

.checkbox:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 10px;
    font-weight: bold;
}

.checkmark {
    width: 16px;
    height: 16px;
    border: 1px solid var(--border-color);
    border-radius: 0.25rem;
    position: relative;
    transition: all 0.3s ease;
}

.forgot-link {
    color: var(--accent-color);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
}

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

.auth-submit-btn {
    width: 100%;
    background: var(--accent-color);
    color: var(--primary-color);
    border: none;
    padding: 0.875rem;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.auth-submit-btn:hover:not(:disabled) {
    background: #334155;
    transform: translateY(-1px);
}

.auth-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.loading-spinner {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.password-strength {
    margin-top: 0.5rem;
}

.strength-bar {
    height: 4px;
    background: var(--border-color);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 0.25rem;
}

.strength-fill {
    height: 100%;
    transition: all 0.3s ease;
}

.strength-0 { background: #ef4444; width: 20%; }
.strength-1 { background: #f97316; width: 40%; }
.strength-2 { background: #eab308; width: 60%; }
.strength-3 { background: #22c55e; width: 80%; }
.strength-4 { background: #16a34a; width: 100%; }

.strength-text {
    font-size: 0.75rem;
    color: var(--text-primary);
}

.form-error {
    color: var(--error-color);
    font-size: 0.75rem;
    margin-top: 0.25rem;
}

.form-help {
    color: var(--primary-color);
    font-size: 0.75rem;
    margin-top: 0.25rem;
}

.terms-link {
    color: var(--accent-color);
    text-decoration: none;
}

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

.forgot-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.back-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 0.25rem;
    transition: all 0.3s ease;
}

.back-btn:hover {
    background: var(--secondary-color);
    color: var(--text-primary);
}

.auth-success,
.auth-error {
    text-align: center;
    padding: 1.5rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
}

.auth-success {
    background: rgba(34, 197, 94, 0.1);
    color: var(--success-color);
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.auth-error {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger-color);
    border: 1px solid rgba(239, 68, 68, 0.2);
    position: relative;
}

.dismiss-error {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: none;
    border: none;
    color: var(--danger-color);
    cursor: pointer;
    padding: 0.25rem;
}

/* ====== COMMUNITY PAGE STYLES ====== */

.page-header {
    margin-bottom: 2rem;
}

.header-content {
    text-align: center;
    margin-bottom: 2rem;
}

.page-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    margin-top: 100px;
}

.page-title i {
    color: var(--accent-color);
}

.page-description {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

.marketplace-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.stat-card {
  background: var(--primary-color);
    border: 1px solid var(--border-color);
border-radius: 1.75rem;
    padding: 3.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

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

.stat-icon {
    width: 48px;
    height: 48px;
    background: rgba(30, 41, 59, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: var(--accent-color);
    font-size: 1.25rem;
}

.stat-number {
    display: block;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
}

/* Cards Grid for Dreams */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
    padding: 1rem 0;
}

.dream-card {
    background: var(--primary-color);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-light);
}

.dream-card:hover {
    box-shadow: var(--shadow-large);
    transform: translateY(-4px);
}

.dream-card-image {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.dream-card .card-content {
    padding: 1.5rem;
}

.dream-card .card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.dream-card .card-category {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--accent-color);
    opacity: 0.8;
}

.dream-card .card-price {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--accent-color);
}

.dream-card .card-price.free {
    color: var(--success-color);
}

.dream-card .card-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.dream-card .card-description {
    color: var(--text-secondary);
    font-size: 0.875rem;
    line-height: 1.5;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.dream-card .card-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dream-card .like-count {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .cards-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin: 1rem 0;
    }
    
    .dream-card-image {
        height: 150px;
    }
}

/* No dreams message */
.no-dreams-message {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-secondary);
    font-style: italic;
}

.tabs-container {
    margin-bottom: 2rem;
}

.tabs {
    display: flex;
    background: var(--secondary-color);
    border-radius: 0.75rem;
    padding: 0.25rem;
    overflow-x: auto;
}

.tab {
    flex: 1;
    background: none;
    border: none;
    padding: 0.875rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    white-space: nowrap;
}

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

.tab.active {
    background: var(--primary-color);
    color: var(--accent-color);
    box-shadow: var(--shadow-light);
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 2rem;
}

.main-content-area {
    min-height: 500px;
}

.tab-content {
    animation: fadeIn 0.3s ease-out;
}

.filters-section {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-label {
    font-weight: 500;
    color: var(--text-primary);
    font-size: 0.875rem;
}

.filter-select {
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    background: var(--form-bg-color);
    color: var(--select-text-color);
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-select:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(30, 41, 59, 0.1);
}

.filter-select option {
    background: var(--form-bg-color);
    color: var(--select-text-color);
    padding: 0.5rem;
}

.posts-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.post-card {
    background: var(--primary-color);
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.post-card:hover {
    box-shadow: var(--shadow-medium);
    border-color: rgba(30, 41, 59, 0.2);
}

.post-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.post-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

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

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

.author-name {
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    font-size: 0.875rem;
}

.post-timestamp {
    color: var(--text-secondary);
    font-size: 0.75rem;
}

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

.category-tag {
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.category-general { background: rgba(100, 116, 139, 0.1); color: var(--muted-color); }
.category-dreams { background: rgba(139, 92, 246, 0.1); color: #8b5cf6; }
.category-creative { background: rgba(236, 72, 153, 0.1); color: #ec4899; }
.category-marketplace { background: rgba(34, 197, 94, 0.1); color: var(--success-color); }
.category-feedback { background: rgba(249, 115, 22, 0.1); color: var(--warning-color); }

.post-content {
    margin-bottom: 1rem;
}

.post-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.post-excerpt {
    color: var(--text-secondary);
    line-height: 1.5;
}

.post-stats {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.stat-item i {
    font-size: 0.875rem;
}

.post-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.action-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 0.875rem;
    cursor: pointer;
    padding: 0.5rem 0.75rem;
    border-radius: 0.375rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.action-btn:hover {
    background: var(--secondary-color);
    color: var(--text-primary);
}

.groups-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.group-card {
    background: var(--primary-color);
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.group-card:hover {
    box-shadow: var(--shadow-large);
    transform: translateY(-4px);
}

.group-header {
    position: relative;
    height: 120px;
    overflow: hidden;
}

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

.group-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.group-card:hover .group-overlay {
    opacity: 1;
}

.join-btn {
    background: var(--primary-color);
    color: var(--accent-color);
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.join-btn.joined {
    background: var(--accent-color);
    color: var(--primary-color);
}

.group-content {
    padding: 1.5rem;
}

.group-name {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.group-description {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.group-stats {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.group-stats .stat {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    color: var(--text-secondary);
    font-size: 0.75rem;
}

.events-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.event-card {
    background: var(--primary-color);
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    transition: all 0.3s ease;
}

.event-card:hover {
    box-shadow: var(--shadow-medium);
    border-color: rgba(30, 41, 59, 0.2);
}

.event-date {
    text-align: center;
    background: var(--secondary-color);
    border-radius: 0.5rem;
    padding: 1rem;
    min-width: 80px;
}

.date-day {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-color);
    line-height: 1;
}

.date-month {
    font-size: 0.875rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.event-content {
    flex: 1;
}

.event-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.event-description {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.5;
}

.event-details {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.event-time,
.event-location,
.event-attendees {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.event-actions {
    flex-shrink: 0;
}

.attend-btn {
    background: transparent;
    color: var(--accent-color);
    border: 1px solid var(--accent-color);
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.attend-btn:hover {
    background: var(--accent-color);
    color: var(--primary-color);
}

.attend-btn.attending {
    background: var(--accent-color);
    color: var(--primary-color);
}

.members-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
}

.member-card {
    background: var(--primary-color);
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

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

.member-avatar {
    position: relative;
    display: inline-block;
    margin-bottom: 1rem;
}

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

.member-status {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid var(--primary-color);
}

.member-status.online { background: #22c55e; }
.member-status.away { background: #eab308; }
.member-status.offline { background: #6b7280; }

.member-info {
    margin-bottom: 1rem;
}

.member-name {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.member-title {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
}

.member-stats {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.member-stats .stat {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    color: var(--text-secondary);
    font-size: 0.75rem;
}

.member-actions {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}

.follow-btn {
    background: transparent;
    color: var(--accent-color);
    border: 1px solid var(--accent-color);
    padding: 0.375rem 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.follow-btn:hover,
.follow-btn.following {
    background: var(--accent-color);
    color: var(--primary-color);
}

.message-btn {
    background: var(--secondary-color);
    color: var(--text-secondary);
    border: none;
    padding: 0.375rem;
    border-radius: 0.375rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.message-btn:hover {
    background: var(--border-color);
    color: var(--text-primary);
}

/* Sidebar styles */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.sidebar-section {
    background: var(--primary-color);
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    padding: 1.5rem;
}

.sidebar-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.action-button {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--secondary-color);
    color: var(--text-primary);
    border: none;
    padding: 0.875rem;
    border-radius: 0.5rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.action-button:hover {
    background: var(--accent-color);
    color: var(--primary-color);
    transform: translateX(4px);
}

.trending-topics {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.topic-tag {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: var(--secondary-color);
    border-radius: 0.5rem;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.topic-tag:hover {
    background: rgba(30, 41, 59, 0.1);
    transform: translateX(4px);
}

.tag-name {
    font-weight: 500;
    color: var(--accent-color);
}

.tag-count {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.activity-feed {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.activity-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem;
    background: var(--secondary-color);
    border-radius: 0.5rem;
}

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

.activity-content {
    flex: 1;
}

.activity-text {
    font-size: 0.875rem;
    color: var(--text-primary);
    margin: 0;
    line-height: 1.4;
}

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

.popular-groups {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.group-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: var(--secondary-color);
    border-radius: 0.5rem;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.group-item:hover {
    background: rgba(30, 41, 59, 0.1);
    transform: translateX(4px);
}

.group-icon {
    width: 32px;
    height: 32px;
    border-radius: 0.375rem;
    object-fit: cover;
    flex-shrink: 0;
}

.group-details {
    display: flex;
    flex-direction: column;
}

.group-item .group-name {
    font-weight: 500;
    font-size: 0.875rem;
    margin-bottom: 0.125rem;
}

.group-members {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

/* ====== TOAST NOTIFICATIONS ====== */

.toast {
    position: fixed;
    top: 5rem;
    right: 1rem;
    background: var(--primary-color);
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    box-shadow: var(--shadow-large);
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 300px;
    max-width: 400px;
    z-index: 2000;
    animation: slideInRight 0.3s ease-out;
}

.toast-success {
    border-left: 4px solid #22c55e;
}

.toast-error {
    border-left: 4px solid #ef4444;
}

.toast-warning {
    border-left: 4px solid #f59e0b;
}

.toast-info {
    border-left: 4px solid #3b82f6;
}

.toast-content {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
}

.toast-content i {
    font-size: 1.125rem;
}

.toast-success .toast-content i { color: var(--success-color); }
.toast-error .toast-content i { color: var(--error-color); }
.toast-warning .toast-content i { color: var(--warning-color); }
.toast-info .toast-content i { color: var(--info-color); }

.toast-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 0.25rem;
    transition: all 0.3s ease;
}

.toast-close:hover {
    background: var(--secondary-color);
    color: var(--text-primary);
}

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

/* ====== FOOTER STYLES ====== */

.footer {
    background: var(--secondary-color);
    border-top: 1px solid var(--border-color);
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section {
    display: flex;
    flex-direction: column;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.footer-brand .brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-color);
}

.footer-brand-description {
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-style: italic;
    line-height: 1.5;
    margin: 0;
    max-width: 280px;
    text-align: left;
}

.footer-description {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.social-links {
    display: flex;
    gap: 0.75rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--accent-color);
    color: var(--primary-color);
    transform: translateY(-2px);
}

.footer-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.footer-links {
    list-style: inside;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* ====== LINK GROUP STYLING ====== */
.link-group {
    margin-bottom: 1.5rem;
}

.link-group h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    padding: 0;
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 0.5rem;
    display: inline-block;
    position: relative;
}

.link-group h4::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 30%;
    height: 2px;
    
    border-radius: 1px;
}

.link-group ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.link-group li {
    margin: 0;
    padding: 0;
}

.link-group .footer-link {
    display: block;
    padding: 0.5rem 0;
    border-radius: 0.375rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.link-group .footer-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.05), rgba(71, 85, 105, 0.02));
    transition: left 0.3s ease;
}

.link-group .footer-link:hover::before {
    left: 0;
}

.link-group .footer-link:hover {
    color: var(--accent-color);
    transform: translateX(4px);
    background: transparent;
}

/* Social links within link-group */
.link-group .social-links {
    display: flex;
    gap: 0.75rem;
    margin-top: 0.5rem;
    flex-wrap: wrap;
}

.link-group .social-link {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
    border-radius: 50%;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: var(--primary-color);
    position: relative;
    overflow: hidden;
}

.link-group .social-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--accent-color), #475569);
    opacity: 0;
    transition: all 0.3s ease;
    border-radius: inherit;
}

.link-group .social-link:hover::before {
    opacity: 1;
}

.link-group .social-link:hover {
    color: var(--primary-color);
    border-color: var(--accent-color);
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 4px 12px rgba(30, 41, 59, 0.2);
}

.link-group .social-link i {
    position: relative;
    z-index: 1;
    font-size: 0.875rem;
}

/* Responsive adjustments for link groups */
@media (max-width: 768px) {
    .link-group {
        margin-bottom: 2rem;
    }
    
    .link-group h4 {
        font-size: 1.125rem;
    }
    
    .link-group .social-links {
        justify-content: flex-start;
    }
    
    .link-group .social-link {
        width: 40px;
        height: 40px;
    }
}

/* ====== FOOTER LINKS STYLING ====== */

.footer-link {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    position: relative;
    display: inline-block;
}

.footer-link:hover {
    color: var(--text-primary);
    background: var(--secondary-color);
    transform: translateY(-1px);
}

/* Enhanced social links */
.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--border-color);
    border-radius: 50%;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--accent-color);
    color: var(--primary-color);
    transform: translateY(-2px);
}

/* Newsletter button */
.newsletter-btn {
    background: var(--accent-color);
    color: var(--primary-color);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.newsletter-btn:hover {
    background: #334155;
    transform: translateY(-1px);
    box-shadow: var(--shadow-medium);
}

.newsletter-description {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.newsletter-form {
    margin-bottom: 1rem;
}

.newsletter-input-group {
    display: flex;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    overflow: hidden;
}

.newsletter-input {
    flex: 1;
    padding: 0.75rem;
    border: none;
    background: var(--primary-color);
    color: var(--text-primary);
}

.newsletter-input:focus {
    outline: none;
}

.newsletter-btn {
    background: var(--accent-color);
    color: var(--primary-color);
    border: none;
    padding: 0.75rem;
    cursor: pointer;
    transition: background 0.3s ease;
}

.newsletter-btn:hover {
    background: #334155;
}

.newsletter-features {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.feature-item i {
    color: var(--success-color);
    font-size: 0.75rem;
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 2rem;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.copyright {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin: 0;
}

.footer-meta {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.footer-meta-item {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.footer-meta-item i {
    color: var(--accent-color);
}

.footer-badges {
    display: flex;
    gap: 0.5rem;
}

.badge {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.5rem;
    background: var(--primary-color);
    border: 1px solid var(--border-color);
    border-radius: 0.375rem;
    color: var(--text-secondary);
    font-size: 0.75rem;
}

.badge i {
    color: var(--accent-color);
}

/* ====== BACK TO TOP BUTTON ====== */

.back-to-top-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 48px;
    height: 48px;
    background: var(--accent-color);
    color: var(--primary-color);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: var(--shadow-large);
    transition: all 0.3s ease;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.back-to-top-btn:hover {
    background: #334155;
    transform: translateY(-2px);
}

/* ====== BREADCRUMBS ====== */

.breadcrumbs {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    padding: 0.75rem 0;
    font-size: 0.875rem;
}

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

.breadcrumb-item.active {
    color: var(--text-primary);
    font-weight: 500;
}

.breadcrumb-item a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb-item a:hover {
    color: var(--text-primary);
}

.breadcrumb-separator {
    color: var(--border-color);
    font-size: 0.75rem;
}

/* ====== LOADING STATES ====== */

.page-loading {
    overflow: hidden;
}

.page-loading::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
    animation: loadingBar 2s infinite;
    z-index: 9999;
}

@keyframes loadingBar {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100vw); }
}

/* ====== SETTINGS PAGE STYLES ====== */

.page-header {
    background: var(--secondary-color);
    padding: 2rem 0;
    border-bottom: 1px solid var(--border-color);
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.breadcrumb a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: var(--accent-color);
}

.breadcrumb i {
    font-size: 0.75rem;
}

.page-title {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.page-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    text-align: center;
}

.settings-page {
    padding-left: 36rem;
}

.settings-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 2rem;
    align-items: start;
}

.settings-sidebar {
    position: sticky;
    top: 2rem;
}

.settings-nav {
    background: var(--primary-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-light);
}

/* ====== SETTINGS PAGE ENHANCEMENTS ====== */

.settings-nav-item {
    width: 100%;
    padding: 1rem;
    border: none;
    background: none;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-bottom: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.settings-nav-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(30, 41, 59, 0.1), transparent);
    transition: left 0.5s ease;
}

.settings-nav-item:hover::before {
    left: 100%;
}

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

.settings-nav-item:hover {
    background: var(--secondary-color);
    color: var(--text-primary);
    transform: translateX(4px);
}

.settings-nav-item.active {
    background: var(--accent-color);
    color: var(--primary-color);
    transform: translateX(4px);
    box-shadow: 0 2px 8px rgba(30, 41, 59, 0.2);
}

.settings-nav-item.active:hover {
    transform: translateX(4px);
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: 0.75rem;
    border:2px solid rgba(139, 92, 246, 0.1);
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    

}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    outline: none;
    border-color: var(--accent-color);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(30, 41, 59, 0.15);
}

/* Enhanced select styling */
.form-select option {
  
    color: var(--form-text-color);
    padding: 0.5rem;
}

/* Disabled state styling */
.form-select:disabled,
.filter-select:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background: var(--secondary-color);
}

.form-select:disabled option,
.filter-select:disabled option {
    color: var(--text-secondary);
}

.btn {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transition: all 0.3s ease;
    transform: translate(-50%, -50%);
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(30, 41, 59, 0.2);
}

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

.avatar-preview {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--border-color);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.avatar-preview:hover {
    border-color: var(--accent-color);
    transform: scale(1.05);
    box-shadow: 0 4px 16px rgba(30, 41, 59, 0.2);
}

.loading-spinner {
    text-align: center;
    color: var(--text-primary);
    animation: pulse 2s infinite;
}

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

.loading-spinner i {
    color: var(--accent-color);
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.page-fade-in {
    animation: fadeIn 0.6s ease-out;
}

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

.settings-nav-item i {
    width: 20px;
    text-align: center;
}

.settings-content {
    background: var(--primary-color);
   
    box-shadow: var(--shadow-light);
}

.settings-section {
    padding: 2rem;
}

.section-header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.section-header h2 {
    font-size: 1.875rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.section-header p {
    font-size: 1rem;
    color: var(--text-secondary);
    margin: 0;
}

.settings-form {
    max-width: 600px;
}

.form-section {
    margin-bottom: 2rem;
    

}
.avatar-preview-wrapper {
    text-align: center ;
    margin-bottom : 1rem;
}
.form-section:last-child {
 
    border-bottom: none;
}

.form-section h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group {
    margin-bottom: 1.5rem;
    
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    /* color: var(--form-text-color); */
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid rgba(139, 92, 246, 0.1);
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s ease;
        
    
}

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

/* Enhanced select styling */
.form-select option {
  
    color: var(--form-text-color);
    padding: 0.5rem;
}

.avatar-upload {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.avatar-preview {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--border-color);
}

.avatar-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.file-input {
    display: none;
}

.form-actions {
    display: flex;
    gap: 1rem;
    padding-top: 1rem;
   
}

.form-footer {
    margin-top: 1rem;
    padding-top: 1rem;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.form-footer p {
    margin: 0;
    color: var(--text-secondary);
}

.link-button {
    background: none;
    border: none;
    color: var(--accent-color);
    text-decoration: underline;
    cursor: pointer;
    font-size: inherit;
    font-family: inherit;
    padding: 0;
    margin: 0;
    transition: color 0.3s ease;
}

.link-button:hover {
    color: var(--text-primary);
}

.security-option,
.privacy-option,
.privacy-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
}

.security-option:last-child,
.privacy-option:last-child,
.privacy-toggle:last-child {
    border-bottom: none;
}

.security-info,
.privacy-info {
    flex: 1;
}

.security-info h4,
.privacy-info h4 {
    margin-bottom: 0.25rem;
    color: var(--text-primary);
    font-size: 1rem;
}

.security-info p,
.privacy-info p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin: 0;
}

.privacy-settings {
    max-width: 600px;
}

.danger-zone {
    border: 2px solid #fee2e2;
    border-radius: 8px;
    padding: 1.5rem;
    background: #fef2f2;
}

.danger-zone h3 {
    color: var(--danger-color);
    margin-bottom: 1rem;
}

.danger-actions {
    display: flex;
    gap: 1rem;
    flex-direction: row;
}

/* ====== SETTINGS PAGE MOBILE RESPONSIVENESS ====== */

@media (max-width: 768px) {
    /* Mobile navigation improvements */
    .mobile-menu {
        background: var(--primary-color);
        border-top: 1px solid var(--border-color);
        box-shadow: var(--shadow-large);
    }

    .mobile-menu-content {
        padding: 1rem;
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
    }

    .mobile-menu-link {
        padding: 0.75rem 1rem;
        border-radius: 8px;
        color: var(--text-secondary);
        text-decoration: none;
        transition: all 0.3s ease;
        font-weight: 500;
    }

    .mobile-menu-link:hover,
    .mobile-menu-link.active {
        background: var(--accent-color);
        color: var(--primary-color);
        transform: translateX(4px);
    }

    /* Page header mobile improvements */
    .page-header {
        padding: 1.5rem 0;
        background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    }

    .page-header-content {
        text-align: center;
    }

    .page-title {
        font-size: 2rem;
        margin-bottom: 0.5rem;
    }

    .page-subtitle {
        font-size: 0.875rem;
        color: var(--text-secondary);
        max-width: 300px;
      
    }

    .breadcrumb {
        justify-content: center;
        margin-bottom: 1rem;
        font-size: 0.875rem;
    }

    /* Hide desktop sidebar on mobile */
    .desktop-only {
        display: none !important;
    }

    /* Mobile navigation tabs */
    .settings-mobile-nav {
        display: block;
        margin-bottom: 1.5rem;
        background: var(--primary-color);
        border-radius: 12px;
        padding: 0.5rem;
        box-shadow: var(--shadow-light);
        border: 1px solid var(--border-color);
    }

    .settings-nav-tabs {
        display: flex;
        gap: 0.5rem;
        width: 100%;
    }

    .settings-tab-btn {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.25rem;
        padding: 0.75rem 0.5rem;
        border: none;
        background: transparent;
        border-radius: 8px;
        cursor: pointer;
        transition: all 0.3s ease;
        color: var(--text-secondary);
        font-size: 0.875rem;
        font-weight: 500;
    }

    .settings-tab-btn.active {
        background: var(--accent-color);
        color: var(--primary-color);
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(30, 41, 59, 0.2);
    }

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

    .settings-tab-btn i {
        font-size: 1.25rem;
    }

    .tab-text {
        font-size: 0.75rem;
        font-weight: 600;
    }

    .settings-layout {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .settings-content {
        order: 1;
    }

    .settings-section {
        padding: 1.5rem;
        background: var(--primary-color);
        border-radius: 12px;
        box-shadow: var(--shadow-light);
        border: 1px solid var(--border-color);
    }

    .section-header h2 {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }

    .section-header p {
        font-size: 0.875rem;
        color: var(--text-secondary);
    }

    /* Form improvements for mobile */
    .form-section {
        margin-bottom: 2rem;
    }

    .form-section h3 {
        font-size: 1.25rem;
        margin-bottom: 1rem;
        color: var(--text-primary);
        border-bottom: 2px solid var(--border-color);
        padding-bottom: 0.5rem;
    }

    .form-group {
        margin-bottom: 1.5rem;
    }

    .form-group label {
        display: block;
        font-weight: 600;
        /* color: var(--form-text-color); */
        margin-bottom: 0.5rem;
        font-size: 0.875rem;
    }

    .form-input {
        width: 100%;
        padding: 1rem;
        border: 2px solid var(--border-color);
        border-radius: 10px;
        font-size: 1rem;
        transition: all 0.3s ease;
        background: var(--primary-color);
        color: var(--text-primary);
    }

    .form-input:focus {
        outline: none;
        border-color: var(--accent-color);
        box-shadow: 0 0 0 3px rgba(30, 41, 59, 0.1);
        transform: translateY(-1px);
    }

    /* Avatar upload improvements */
    .avatar-upload-container {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
        text-align: center;
    }

    .avatar-preview-wrapper {
        position: relative;
    }

    .avatar-preview {
        width: 100px;
        height: 100px;
        border-radius: 50%;
        object-fit: cover;
        border: 4px solid var(--border-color);
        box-shadow: var(--shadow-medium);
    }

    .avatar-actions {
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
        width: 100%;
        max-width: 280px;
    }

    .upload-btn, .remove-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
        padding: 0.875rem 1.5rem;
        border-radius: 10px;
        font-weight: 600;
        transition: all 0.3s ease;
    }

    .upload-btn {
        background: var(--accent-color);
        color: var(--primary-color);
        border: none;
    }

    .upload-btn:hover {
        background: #334155;
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(30, 41, 59, 0.2);
    }

    .remove-btn {
        background: transparent;
        color: var(--text-secondary);
        border: 2px solid var(--border-color);
    }

    .remove-btn:hover {
        background: #ef4444;
        color: white;
        border-color: #ef4444;
        transform: translateY(-2px);
    }

    .hidden {
        display: none;
    }

    /* Form actions improvements */
    .mobile-form-actions {
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
        margin-top: 2rem;
        padding-top: 1.5rem;
        border-top: 2px solid var(--border-color);
    }

    .save-btn, .reset-btn, .update-password-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
        padding: 1rem 1.5rem;
        border-radius: 10px;
        font-weight: 600;
        font-size: 1rem;
        transition: all 0.3s ease;
        min-height: 50px;
    }

    .save-btn, .update-password-btn {
        background: var(--accent-color);
        color: var(--primary-color);
        border: none;
    }

    .save-btn:hover, .update-password-btn:hover {
        background: #334155;
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(30, 41, 59, 0.2);
    }

    .reset-btn {
        background: transparent;
        color: var(--text-secondary);
        border: 2px solid var(--border-color);
    }

    .reset-btn:hover {
        background: var(--secondary-color);
        color: var(--text-primary);
        transform: translateY(-2px);
    }

    .btn-text {
        display: inline;
    }

    /* Touch-friendly improvements */
    .settings-tab-btn,
    .btn,
    .form-input,
    .mobile-menu-link {
        min-height: 44px; /* iOS accessibility guideline */
        touch-action: manipulation; /* Prevent zoom on tap */
    }

    /* Improved tap targets */
    .settings-tab-btn {
        min-height: 60px;
    }

    .save-btn, .reset-btn, .update-password-btn {
        min-height: 50px;
        font-size: 1rem;
    }

    /* Form input focus improvements for mobile */
    .form-input:focus {
        zoom: 1; /* Prevent iOS zoom */
    }

    /* Disable hover effects on touch devices */
    @media (hover: none) and (pointer: coarse) {
        .settings-tab-btn:hover:not(.active),
        .btn:hover,
        .mobile-menu-link:hover {
            transform: none;
            background: transparent;
        }

        .settings-tab-btn.active,
        .mobile-menu-link.active {
            transform: none;
        }
    }

    /* Password section specific styling */
    .password-section {
        background: var(--secondary-color);
        border: 2px solid var(--border-color);
        border-radius: 12px;
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .settings-mobile-nav {
        margin-bottom: 1rem;
        padding: 0.25rem;
    }

    .settings-tab-btn {
        padding: 0.5rem 0.25rem;
        font-size: 0.8125rem;
    }

    .settings-tab-btn i {
        font-size: 1.125rem;
    }

    .tab-text {
        font-size: 0.6875rem;
    }

    .settings-section {
        padding: 1rem;
        margin: 0 -0.5rem;
        border-radius: 8px;
    }

    .section-header h2 {
        font-size: 1.25rem;
    }

    .form-section h3 {
        font-size: 1.125rem;
    }

    .form-input {
        padding: 0.875rem;
        font-size: 1rem;
    }

    .avatar-preview {
        width: 80px;
        height: 80px;
    }

    .upload-btn, .remove-btn, .save-btn, .reset-btn, .update-password-btn {
        padding: 0.75rem 1rem;
        font-size: 0.875rem;
    }

    .btn-text {
        display: none;
    }

    .mobile-form-actions {
        gap: 0.5rem;
        margin-top: 1.5rem;
        padding-top: 1rem;
    }
}

/* Desktop styles - hide mobile nav */
@media (min-width: 769px) {
    .settings-mobile-nav {
        display: none;
    }

    .desktop-only {
        display: block !important;
    }
}

@media (max-width: 480px) {
    .settings-page {
        padding: 1rem 0;
        margin: 1rem;
    }

    .settings-section {
        padding: 1rem;
    }

    .section-header {
        margin-bottom: 1.5rem;
        padding-bottom: 0.75rem;
    }

    .section-header h2 {
        font-size: 1.25rem;
    }

    .settings-nav {
        flex-direction: column;
        align-items: stretch;
    }

    .settings-nav-item {
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        margin-right: 0;
        margin-bottom: 0;
        border-radius: 0;
    }

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

    .form-group {
        margin-bottom: 1rem;
    }

    .avatar-preview {
        width: 60px;
        height: 60px;
    }
}

/* ====== SORT-OPTIONS, SEARCH-BAR, AND VIEW-TOGGLE ENHANCED STYLES ====== */

/* Sort Options Container */
.sort-options {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.sort-options::before {
    content: 'Sort by:';
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    white-space: nowrap;
}

.sort-select {
    background: var(--form-bg-color);
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 0.75rem 2.5rem 0.75rem 1rem;
    color: var(--form-text-color);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    min-width: 180px;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%231e293b'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 1rem;
    box-shadow: 
        0 4px 15px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.sort-select:hover {
    border-color: rgba(99, 102, 241, 0.3);
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px) scale(1.02);
    box-shadow: 
        0 8px 25px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        0 0 20px rgba(99, 102, 241, 0.2);
}

.sort-select:focus {
    outline: none;
    border-color: rgba(99, 102, 241, 0.5);
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 
        0 0 0 3px rgba(99, 102, 241, 0.1),
        0 8px 25px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* Floating animation for sort select */
.sort-select {
    animation: floatSort 4s ease-in-out infinite;
}

@keyframes floatSort {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-2px); }
}

/* Enhanced Search Bar */
.search-bar {
    position: relative;
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.08);

    border: 2px solid rgba(255, 255, 255, 0.12);
    border-radius: 50px;
    padding: 0.25rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    min-width: 300px;
}

.search-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.03), rgba(217, 70, 239, 0.03));
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.search-bar:hover::before {
    opacity: 1;
}

.search-bar:hover {
    transform: translateY(-2px);
    border-color: rgba(99, 102, 241, 0.3);
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.15),
        0 0 25px rgba(99, 102, 241, 0.2);
}

.search-bar input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 0.875rem 1.25rem;
    color: var(--text-primary);
    font-size: 0.95rem;
    font-weight: 400;
    transition: all 0.3s ease;
}

.search-bar input::placeholder {
    color: var(--form-placeholder-color);
    opacity: 0.7;
    font-style: italic;
}

.search-bar input:focus {
    outline: none;
    color: var(--accent-color);
}

.search-btn {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border: none;
    border-radius: 50px;
    padding: 0.75rem 1.25rem;
    color: var(--btn-text-primary);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    min-width: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.search-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

.search-btn:hover {
    transform: scale(1.05);
    box-shadow: 
        0 8px 25px rgba(99, 102, 241, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.search-btn:hover::before {
    left: 100%;
}

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

/* View Toggle Component */
.view-toggle {
    display: flex;
    background: rgba(255, 255, 255, 0.08);

    border: 2px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    padding: 0.25rem;
    gap: 0.25rem;
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 6px 20px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
        margin-top: 5px;
}

.view-toggle::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05), rgba(217, 70, 239, 0.05));
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.view-toggle:hover::before {
    opacity: 1;
}

.view-toggle button {
    background: transparent;
    border: none;
    padding: 0.75rem;
    border-radius: 8px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    font-size: 1rem;
}

.view-toggle button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    opacity: 0;
    border-radius: 8px;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.view-toggle button:hover {
    color: var(--text-primary);
    transform: translateY(-1px) scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.view-toggle button.active {
    color: var(--btn-text-primary);
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    box-shadow: 
        0 6px 20px rgba(99, 102, 241, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

.view-toggle button.active::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border-radius: 10px;
    z-index: -2;
    animation: pulseGlow 2s ease-in-out infinite;
}

@keyframes pulseGlow {
    0%, 100% { 
        opacity: 0.3;
        transform: scale(1);
    }
    50% { 
        opacity: 0.6;
        transform: scale(1.05);
    }
}

/* Morphing effect for search bar when focused */
.search-bar:focus-within {
    transform: translateY(-2px) scale(1.02);
    border-color: rgba(99, 102, 241, 0.4);
    box-shadow: 
        0 15px 45px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        0 0 30px rgba(99, 102, 241, 0.3);
}

/* Floating animations */
.search-bar {
    animation: floatSearch 5s ease-in-out infinite;
}

.view-toggle {
    animation: floatToggle 4s ease-in-out infinite 1s;
}

@keyframes floatSearch {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}

@keyframes floatToggle {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-2px); }
}

/* Enhanced Category Filters Styles */

/* Category Filters Container */
.category-filters , filter-tabs{
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.05);

    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    margin: 2rem 0;
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    animation: floatCategoryContainer 6s ease-in-out infinite;
}

.category-filters::before , .filter-tabs::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.03), rgba(217, 70, 239, 0.03));
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.category-filters:hover::before  , .filter-tabs:hover::before {
    opacity: 1;
}

.category-filters:hover  , .filter-tabs:hover {
    transform: translateY(-3px);
    border-color: rgba(99, 102, 241, 0.25);
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.15),
        0 0 30px rgba(99, 102, 241, 0.2);
}

/* Category Button Styles */
.category-btn, .filter-tab {
    background: rgba(255, 255, 255, 0.08);

    border: 2px solid rgba(255, 255, 255, 0.12);
    border-radius: 50px;
    padding: 0.75rem 1.5rem;
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    white-space: nowrap;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 
        0 4px 15px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.category-btn::before  , .filter-tab::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
    z-index: 1;
}

.category-btn::after  , .filter-tab::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    opacity: 0;
    border-radius: 50px;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.category-btn:hover  , .filter-tab:hover {
    color: var(--text-primary);
    transform: translateY(-2px) scale(1.03);
    border-color: rgba(99, 102, 241, 0.3);
    box-shadow: 
        0 8px 25px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        0 0 20px rgba(99, 102, 241, 0.2);
}

.category-btn:hover::before  , .filter-tab:hover::before {
    left: 100%;
}

.category-btn:hover::after  , .filter-tab:hover::after   {
    opacity: 0.1;
}

.category-btn:active , .filter-tab:active {
    transform: translateY(-1px) scale(1.01);
}

/* Active Category Button */
.category-btn.active  , .filter-tab.active {
    color: var(--btn-text-primary);
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border-color: rgba(99, 102, 241, 0.5);
    box-shadow: 
        0 8px 25px rgba(99, 102, 241, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        0 0 30px rgba(99, 102, 241, 0.3);
    transform: translateY(-2px);
}

.category-btn.active::before {
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
}

.category-btn.active:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 
        0 12px 35px rgba(99, 102, 241, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        0 0 40px rgba(99, 102, 241, 0.4);
}

/* Floating animations for category buttons */
.category-btn:nth-child(odd) {
    animation: floatCategoryOdd 5s ease-in-out infinite;
}

.category-btn:nth-child(even) {
    animation: floatCategoryEven 4s ease-in-out infinite 0.5s;
}

@keyframes floatCategoryContainer {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

@keyframes floatCategoryOdd {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-2px); }
}

@keyframes floatCategoryEven {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}

/* Shimmer effect for active button */
.category-btn.active {
    position: relative;
    overflow: hidden;
}

.category-btn.active::before {
    animation: shimmerEffect 3s ease-in-out infinite;
}

@keyframes shimmerEffect {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Responsive design for category filters */
@media (max-width: 768px) {
    .category-filters {
        padding: 1rem;
        gap: 0.5rem;
        border-radius: 16px;
    }
    
    .category-btn {
        padding: 0.625rem 1.25rem;
        font-size: 0.8rem;
        min-height: 40px;
    }
}

/* DEBUG: Ensure modal is always visible when needed */
.modal-overlay.force-show,
.modal-overlay[data-show="true"] {
    display: flex !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    z-index: 9999 !important;
}

/* Main modal overlay base styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    display: flex; /* Always flex for Alpine.js x-show */
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    pointer-events: none;
    background: rgba(0, 0, 0, 0.5); /* Fallback background */
}

/* Show modal when active - Multiple show conditions */
.modal-overlay.show,
.modal-overlay[style*="display: block"],
.modal-overlay:not([hidden]),
.modal-overlay[x-show="true"] {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    animation: modalOverlayFadeIn 0.3s ease-out;
}

/* Alpine.js x-show support */
.modal-overlay[x-show] {
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay[x-show][style*="display: none"],
.modal-overlay[x-show="false"],
.modal-overlay[hidden] {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

/* Ensure backdrop is clickable when modal is visible */
.modal-overlay:not([hidden]):not([style*="display: none"]) .modal-backdrop {
    pointer-events: auto;
}

.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.8), rgba(30, 41, 59, 0.7));

    transition: all 0.3s ease;
    cursor: pointer;
}

.modal-content {
    position: relative;
    background: linear-gradient(145deg, #ffffff, #f8fafc);
    border-radius: 16px;
    box-shadow: 
        0 25px 50px -12px rgba(0, 0, 0, 0.25),
        0 0 0 1px rgba(255, 255, 255, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
    width: 100%;
    max-width: 440px;
    max-height: 90vh;
    overflow: hidden;
    z-index: 1001;
    border: 1px solid rgba(226, 232, 240, 0.8);
    animation: modalContentSlideIn 0.3s ease-out;
    transform-origin: center;
}

.modal-content.large {
    max-width: 720px;
    max-height: 85vh;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 2rem 2rem 1.5rem 2rem;
    background: linear-gradient(135deg, #ffffff, #f8fafc);
    border-bottom: 1px solid rgba(226, 232, 240, 0.6);
    position: relative;
}

.modal-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #64748b, #475569, #1e293b);
    border-radius: 16px 16px 0 0;
}

.modal-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    background: linear-gradient(135deg, #1e293b, #475569);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.modal-close {
    background: linear-gradient(135deg, #f8fafc, #e2e8f0);
    border: 1px solid rgba(226, 232, 240, 0.8);
    font-size: 1.25rem;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.75rem;
    border-radius: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    
}

.modal-close:hover {
    background: linear-gradient(135deg, #e2e8f0, #cbd5e1);
    color: var(--text-primary);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.modal-close:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.modal-body {
    padding: 0 2rem 2rem;
    background: linear-gradient(145deg, #ffffff, #f8fafc);
    overflow-y: auto;
    max-height: calc(90vh - 140px);
}

.modal-body::-webkit-scrollbar {
    width: 8px;
}

.modal-body::-webkit-scrollbar-track {
    background: rgba(226, 232, 240, 0.3);
    border-radius: 4px;
}

.modal-body::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #cbd5e1, #94a3b8);
    border-radius: 4px;
}

.modal-body::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #94a3b8, #64748b);
}

/* Modal Animations */
@keyframes modalOverlayFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes modalContentSlideIn {
    from {
        opacity: 0;
        /* transform: scale(0.9) translateY(-20px); */
    }
    to {
        opacity: 1;
        /* transform: scale(1) translateY(0); */
    }
}

/* Auth Form Styles - Enhanced */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    margin-top: 15px;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 600;
    /* color: var(--form-text-color); */
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
}

.form-input {
    padding: 1rem 1.25rem;
    border: 2px solid rgba(226, 232, 240, 0.8);
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    
    box-shadow: 
        inset 0 1px 3px rgba(0, 0, 0, 0.05),
        0 1px 0 rgba(255, 255, 255, 0.6);
    position: relative;
    
}

.form-input:focus {
    outline: none;
    border-color: #64748b;
    box-shadow: 
        0 0 0 4px rgba(100, 116, 139, 0.15),
        inset 0 1px 3px rgba(0, 0, 0, 0.05),
        0 1px 0 rgba(255, 255, 255, 0.6);
    
    transform: translateY(-1px);
}

.form-input::placeholder {
    color: var(--form-placeholder-color);
    opacity: 0.7;
}

.form-input:hover:not(:focus) {
    border-color: rgba(100, 116, 139, 0.5);
    box-shadow: 
        inset 0 1px 3px rgba(0, 0, 0, 0.05),
        0 2px 4px rgba(0, 0, 0, 0.1);
}

/* File input styling */
.form-file  {
    padding: 1rem 1.25rem;
    border: 2px solid rgba(226, 232, 240, 0.8);
    border-radius: 12px;
    font-size: 1rem;
    background-color: var(--primary-color);
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 
        inset 0 1px 3px rgba(0, 0, 0, 0.05),
        0 1px 0 rgba(255, 255, 255, 0.6);
}

.form-file:hover {
    border-color: rgba(100, 116, 139, 0.5);
    box-shadow: 
        inset 0 1px 3px rgba(0, 0, 0, 0.05),
        0 2px 4px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

.form-file:focus {
    outline: none;
    border-color: #64748b;
    box-shadow: 
        0 0 0 4px rgba(100, 116, 139, 0.15),
        inset 0 1px 3px rgba(0, 0, 0, 0.05),
        0 1px 0 rgba(255, 255, 255, 0.6);
    transform: translateY(-1px);
}

.form-file::file-selector-button {
    background-color: var(--accent-color);
    
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    margin-right: 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.form-file::file-selector-button:hover {
    background-color: #334155;
    transform: translateY(-1px);
}

.btn.full-width {
    width: 100%;
    justify-content: center;
    padding: 1rem 1.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 12px;
    box-shadow: 
        0 4px 8px rgba(100, 116, 139, 0.2),
        0 0 0 1px rgba(255, 255, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.btn.full-width:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 6px 12px rgba(100, 116, 139, 0.25),
        0 0 0 1px rgba(255, 255, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn.full-width:active {
    transform: translateY(0);
    box-shadow: 
        0 2px 4px rgba(100, 116, 139, 0.15),
        0 0 0 1px rgba(255, 255, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.auth-footer {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(226, 232, 240, 0.6);
    color: var(--form-text-color);
    
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1.5rem -0.5rem 0;
}

.auth-footer span {
    color: var(--form-text-color);
}

.auth-link {

    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    display: inline-block;
}

.auth-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #64748b, #475569);
    transition: width 0.3s ease;
}

.auth-link:hover {
    color: var(--form-text-color);
    transform: translateY(-1px);
}

.auth-link:hover::after {
    width: 100%;
}

/* Alpine.js Transition Classes - Enhanced */
[x-cloak] {
    display: none !important;
}

/* Ensure modal overlay works with Alpine.js x-show */
.modal-overlay {
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), 
                visibility 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-overlay[style*="display: none"] {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

.modal-overlay:not([style*="display: none"]):not([hidden]) {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
}

/* Fix for Alpine.js transition states */
.modal-overlay[x-show][style*="none"] {
    display: flex !important;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.modal-overlay[x-show]:not([style*="none"]) {
    display: flex !important;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* .modal-overlay[x-show] {
    
    opacity: 0;
}

.modal-overlay[x-show] .modal-content {

    opacity: 0;
}

.modal-overlay[x-show].show {
    opacity: 0;
}

.modal-overlay[x-show].show .modal-content {
    transform: scale(1) translateY(0);
    opacity: 0;
} */

/* Enhanced loading and hover states */
.modal-content:hover {
    box-shadow: 
        0 30px 60px -12px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.modal-backdrop:hover {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.85), rgba(30, 41, 59, 0.75));
}

@media (max-width: 480px) {
    .category-filters {
        padding: 0.75rem;
        margin: 1rem 0;
    }
    
    .category-btn {
        padding: 0.5rem 1rem;
        font-size: 0.75rem;
        min-height: 36px;
    }
    
    .modal-content {
        margin: 1rem;
        max-width: calc(100% - 2rem);
        border-radius: 12px;
        box-shadow: 
            0 20px 40px -12px rgba(0, 0, 0, 0.3),
            0 0 0 1px rgba(255, 255, 255, 0.2),
            inset 0 1px 0 rgba(255, 255, 255, 0.4);
    }
    
    .modal-content.large {
        max-width: calc(100% - 2rem);
        margin: 0.75rem;
    }
    
    .modal-header {
        padding: 1.5rem 1.5rem 1rem 1.5rem;
    }
    
    .modal-header h3 {
        font-size: 1.25rem;
    }
    
    .modal-body {
        padding: 0 1.5rem 1.5rem;
    }
    
    .modal-close {
        width: 40px;
        height: 40px;
        padding: 0.5rem;
        margin-left: 10px;
    }
    
    .auth-footer {
        margin: 1rem -0.25rem 0;
        padding: 1rem;
    }
    
    .form-input {
        padding: 0.875rem 1rem;
    }
    
    .btn.full-width {
        padding: 0.875rem 1.25rem;
        font-size: 1rem;
    }
}

/* User Menu and Authentication Styles */
.user-menu {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-greeting {
    color: var(--text-primary);
    font-weight: 500;
    white-space: nowrap;
}

.auth-buttons {
    display: flex;
    gap: 0.5rem;
}

.mobile-auth-section {
    border-top: 1px solid var(--border-color);
    margin-top: 1rem;
    padding-top: 1rem;
}

.mobile-auth-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.mobile-user-menu {
    text-align: center;
}

.mobile-user-greeting {
    color: var(--text-primary);
    font-weight: 500;
    margin-bottom: 1rem;
    padding: 0.5rem;
    background-color: var(--secondary-color);
    border-radius: 0.5rem;
}

.full-width {
    width: 100%;
}

.mb-2 {
    margin-bottom: 0.5rem;
}

/* Error and success states for form validation */
.form-input.error {
    border-color: #ef4444;
    background-color: #fef2f2;
}

.form-input.success {
    border-color: #10b981;
    background-color: #f0fdf4;
}

.form-error {
    color: var(--error-color);
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.form-success {
    color: var(--success-color);
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* Loading states */
.loading-spinner {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    border: 2px solid #f3f4f6;
    border-radius: 50%;
    border-top-color: #3b82f6;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ====== ENHANCED CREATE POST MODAL STYLES ====== */

.create-post-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1050;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.85), rgba(30, 41, 59, 0.8));
 
    animation: modalOverlayFadeIn 0.3s ease-out;
    color: var(--text-primary);
}

.create-post-modal-content {
    position: relative;
    background: linear-gradient(145deg, #ffffff, #f8fafc);
    border-radius: 20px;
    box-shadow: 
        0 32px 64px -12px rgba(0, 0, 0, 0.25),
        0 0 0 1px rgba(255, 255, 255, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    width: 100%;
    max-width: 600px;
    max-height: 85vh;
    overflow: hidden;
    border: 1px solid rgba(226, 232, 240, 0.6);
    transform-origin: center;
}

.create-post-modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 2rem 2.5rem 1.5rem 2.5rem;
    background: linear-gradient(135deg, #ffffff, #f8fafc);
    border-bottom: 1px solid rgba(226, 232, 240, 0.6);
    position: relative;
}

.create-post-modal-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #64748b, #475569, #1e293b);
    border-radius: 20px 20px 0 0;
}

.modal-header-content {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
}

.modal-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #64748b, #475569);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    
    font-size: 1.25rem;
    box-shadow: 0 4px 12px rgba(100, 116, 139, 0.3);
    flex-shrink: 0;
}

.modal-title-section {
    flex: 1;
}

.modal-title {
    font-size: 1.625rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 0.25rem 0;
    background: linear-gradient(135deg, #1e293b, #475569);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.modal-subtitle {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.4;
}

.modal-subtitle-community {
    font-size: 0.875rem;
    color: var(--text-primary);
    margin: 0;
    line-height: 1.4;
}

.form-input{
    color: var(--form-text-color);
}
.create-post-modal-close {
    background: linear-gradient(135deg, #f8fafc, #e2e8f0);
    border: 1px solid rgba(226, 232, 240, 0.8);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text-secondary);
    font-size: 1.1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    flex-shrink: 0;
    margin-left: 1rem;
}

.create-post-modal-close:hover {
    background: linear-gradient(135deg, #e2e8f0, #cbd5e1);
    color: var(--text-primary);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.create-post-modal-close:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.create-post-modal-body {
    padding: 0 2.5rem 2.5rem 2.5rem;
    background: linear-gradient(145deg, #ffffff, #f8fafc);
    overflow-y: auto;
    max-height: calc(85vh - 140px);
}

.create-post-modal-body::-webkit-scrollbar {
    width: 8px;
}

.create-post-modal-body::-webkit-scrollbar-track {
    background: rgba(226, 232, 240, 0.3);
    border-radius: 4px;
}

.create-post-modal-body::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #cbd5e1, #94a3b8);
    border-radius: 4px;
}

.create-post-modal-body::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #94a3b8, #64748b);
}

.create-post-form {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem 2rem;
    align-items: start;
}

.form-group {
    margin-top: 15px;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group.content-group {
    margin-top: 1rem;
}

.form-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.9rem;
    letter-spacing: 0.025em;
    margin-bottom: 0.25rem;
}

.form-label i {
    color: var(--accent-color);
    font-size: 0.875rem;
    width: 16px;
    text-align: center;
}

.form-input.enhanced,
.form-textarea.enhanced,
.form-select.enhanced {
    padding: 1rem 1.25rem;
    border: 2px solid rgba(226, 232, 240, 0.8);
    border-radius: 12px;
    font-size: 1rem;
    font-family: inherit;
    background: rgba(255, 255, 255, 0.8);
    
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        inset 0 1px 3px rgba(0, 0, 0, 0.05),
        0 1px 0 rgba(255, 255, 255, 0.6);
    position: relative;
}

.form-input.enhanced:focus,
.form-textarea.enhanced:focus,
.form-select.enhanced:focus {
    outline: none;
    border-color: #64748b;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 
        0 0 0 4px rgba(100, 116, 139, 0.15),
        inset 0 1px 3px rgba(0, 0, 0, 0.05),
        0 1px 0 rgba(255, 255, 255, 0.6);
    transform: translateY(-1px);
}

.form-input.enhanced::placeholder,
.form-textarea.enhanced::placeholder {
    color: var(--form-placeholder-color);
    opacity: 0.7;
    font-style: italic;
}

.form-input.enhanced:hover:not(:focus),
.form-textarea.enhanced:hover:not(:focus),
.form-select.enhanced:hover:not(:focus) {
    border-color: rgba(100, 116, 139, 0.5);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 
        inset 0 1px 3px rgba(0, 0, 0, 0.05),
        0 2px 6px rgba(0, 0, 0, 0.08);
}

.form-textarea.enhanced {
    resize: vertical;
    min-height: 140px;
    line-height: 1.6;
    font-family: inherit;
}

.form-select.enhanced {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.75rem center;
    background-repeat: no-repeat;
    background-size: 1.5em 1.5em;
    padding-right: 3rem;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.form-help {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.8rem;
color: var(--primary-color);
    margin-top: 0.5rem;
    line-height: 1.4;
    font-style: italic;
}

.form-help i {
    color: var(--primary-color);
    font-size: 0.75rem;
}

.character-counter {
    text-align: right;
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
    font-weight: 500;
}

.modal-footer-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 1rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(226, 232, 240, 0.6);
}

.cancel-btn {
    background: transparent;
    color: var(--text-secondary);
    border: 2px solid rgba(226, 232, 240, 0.8);
    padding: 0.875rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cancel-btn:hover {
    background: rgba(248, 250, 252, 0.8);
    border-color: rgba(100, 116, 139, 0.4);
    color: var(--text-primary);
    transform: translateY(-1px);
}

.submit-btn {
   
    color: var(--btn-text-primary);
    border: none;
    padding: 0.875rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 
        0 4px 12px rgba(100, 116, 139, 0.25),
        0 0 0 1px rgba(255, 255, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.submit-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #475569, #334155);
    transform: translateY(-2px);
    box-shadow: 
        0 6px 16px rgba(100, 116, 139, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.submit-btn:active:not(:disabled) {
    transform: translateY(0);
    box-shadow: 
        0 2px 6px rgba(100, 116, 139, 0.2),
        0 0 0 1px rgba(255, 255, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background: linear-gradient(135deg, #94a3b8, #64748b);
    box-shadow: none;
    transform: none;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .create-post-modal-overlay {
        padding: 1rem;
    }
    
    .create-post-modal-content {
        max-width: calc(100% - 2rem);
        border-radius: 16px;
    }
    
    .create-post-modal-header {
        padding: 1.5rem 2rem 1.25rem 2rem;
    }
    
    .modal-header-content {
        gap: 0.75rem;
    }
    
    .modal-icon {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }
    
    .modal-title {
        font-size: 1.375rem;
    }
    
    .modal-subtitle {
        font-size: 0.8rem;
    }
    
    .create-post-modal-close {
        width: 36px;
        height: 36px;
        margin-left: 0.5rem;
    }
    
    .create-post-modal-body {
        padding: 0 2rem 2rem 2rem;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
    
    .modal-footer-actions {
        flex-direction: column-reverse;
        gap: 0.75rem;
    }
    
    .cancel-btn,
    .submit-btn {
        width: 100%;
        justify-content: center;
        padding: 1rem 1.5rem;
    }
}

@media (max-width: 480px) {
    .create-post-modal-header {
        padding: 1.25rem 1.5rem 1rem 1.5rem;
    }
    
    .create-post-modal-body {
        padding: 0 1.5rem 1.5rem 1.5rem;
    }
    
    .modal-title {
        font-size: 1.25rem;
    }
    
    .form-input.enhanced,
    .form-textarea.enhanced,
    .form-select.enhanced {
        padding: 0.875rem 1rem;
        font-size: 0.95rem;
    }
}

/* Animation enhancements */
.create-post-modal-content:hover {
    box-shadow: 
        0 36px 72px -12px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

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

/* Focus states for accessibility */
.create-post-modal-close:focus-visible,
.form-input.enhanced:focus-visible,
.form-textarea.enhanced:focus-visible,
.form-select.enhanced:focus-visible,
.cancel-btn:focus-visible,
.submit-btn:focus-visible {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

/* ====== END ENHANCED CREATE POST MODAL STYLES ====== */

/* Heart icon animation for likes */
.fa-heart {
    transition: all 0.2s ease;
}

.fa-heart:hover {
    transform: scale(1.1);
}

.fa-heart.text-red-400 {
    color: var(--error-color) !important;
}
.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.filter-controls {
    margin-top: 5px;
}
.hero{
    margin-top:120px;
}

/* Utility classes for authentication sections */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    text-align: center;
}

@media (max-width: 768px) {
    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .benefits-grid > div {
        padding: 0.5rem !important;
    }
}

/* Text color utilities for white text with opacity */
.text-white\/60 {
    color: rgba(255, 255, 255, 0.6);
}

.text-white\/70 {
    color: rgba(255, 255, 255, 0.7);
}


.cta-section {
    margin-top: 120px;
}

/* ============================================
   Dream Detail Page Styles
   ============================================ */

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loading-spinner {
    text-align: center;
    color: var(--text-primary);
}

.loading-spinner i {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.loading-spinner p {
    font-size: 1.1rem;
    font-weight: 500;
}

/* Discussions Loading Indicator */
.discussions-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 200px;
    padding: 2rem;
}



@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Search Loading Indicator */
.search-container {
    position: relative;
}

.search-loading {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--accent-color);
    font-size: 0.9rem;
}

.search-loading i {
    animation: spin 1s linear infinite;
}

/* Skeleton Loading Cards */
.skeleton-posts {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    width: 100%;
}

.skeleton-post-card {
    background: var(--primary-color);
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    padding: 1.5rem;
    animation: skeleton-pulse 1.5s ease-in-out infinite;
}

.skeleton-post-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.skeleton-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--border-color);
}

.skeleton-author-info {
    flex: 1;
    margin-left: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.skeleton-line {
    height: 12px;
    background: var(--border-color);
    border-radius: 6px;
}

.skeleton-name {
    width: 120px;
}

.skeleton-timestamp {
    width: 80px;
}

.skeleton-category {
    width: 80px;
    height: 24px;
    background: var(--border-color);
    border-radius: 12px;
}

.skeleton-post-content {
    margin-bottom: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.skeleton-title {
    width: 70%;
    height: 16px;
}

.skeleton-excerpt-1 {
    width: 90%;
}

.skeleton-excerpt-2 {
    width: 60%;
}

.skeleton-post-stats {
    display: flex;
    gap: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.skeleton-stat {
    width: 40px;
    height: 12px;
    background: var(--border-color);
    border-radius: 6px;
}

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

/* Breadcrumb */
.breadcrumb-section {
    background: var(--secondary-color);
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.breadcrumb-item:hover {
    color: var(--text-primary);
}

.breadcrumb-item.active {
    color: var(--text-primary);
    font-weight: 500;
}

.breadcrumb-separator {
    color: var(--border-color);
    font-size: 0.8rem;
}

/* Dream Detail Layout */
.dream-detail {
    margin-top: 0;
}

.dream-hero {
    
    padding: 3rem 0;
    border-bottom: 1px solid var(--border-color);
}

.hero-content {
    max-width: 900px;
}

/* Dream Header */
.dream-header {
    margin-bottom: 2.5rem;
}

.dream-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.category-badge {
    background: linear-gradient(135deg, #64748b, #475569);
    color: var(--btn-text-primary);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dream-date {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.featured-badge, .trending-badge {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.5rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

.featured-badge {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: var(--btn-text-primary);
}

.trending-badge {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: var(--btn-text-primary);
}

.dream-title {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.dream-description {
    font-size: 1.25rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 0;
}

/* Author Info */
.author-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    
    border-radius: 16px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-light);
}

.author-avatar .avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid white;
    box-shadow: var(--shadow-medium);
}

.author-details {
    flex: 1;
    text-align: center;
}

.author-name {
    font-size: 1.25rem;
    font-weight: 600;
    margin-top: 25px;
    color: var(--text-primary);
}

.author-bio {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    margin-bottom: 20px;
    margin-top: 10px;
}

.author-stats {
    display: flex;
    gap: 1rem;
    font-size: 0.9rem;
     justify-content: center;
}

.author-stats .stat {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    color: var(--text-secondary);
}

.author-stats .stat i {
    font-size: 0.8rem;
}

/* Content Grid */
.dream-content {
    padding: 3rem 0;
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.content-main {
    min-width: 0; /* Prevent overflow */
}

/* Dream Image */
.dream-image {
    margin-bottom: 3rem;
}

.content-image {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: var(--shadow-medium);
}

/* Dream Story */
.dream-story {
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: linear-gradient(135deg, #64748b, #475569);
    border-radius: 2px;
    margin-top: 0.5rem;
}

.story-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

.story-content p {
    margin-bottom: 1.5rem;
}

.story-content h2, .story-content h3, .story-content h4 {
    color: var(--text-primary);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

/* Tags */
.dream-tags {
    margin-bottom: 3rem;
}

.tags-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    background: var(--secondary-color);
    color: var(--text-primary);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: all 0.2s ease;
}

.tag:hover {
    background: var(--text-primary);
    color: var(--btn-text-primary);
    transform: translateY(-1px);
}

/* Engagement Section */
.engagement-section {
    margin-bottom: 3rem;
    padding: 2rem;
    background: var(--secondary-color);
    border-radius: 16px;
    border: 1px solid var(--border-color);
}

.engagement-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.engagement-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: 1px solid var(--border-color);
    background: var(--primary-color);
    color: var(--text-secondary);
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.engagement-btn:hover {
    background: var(--secondary-color);
    color: var(--text-primary);
    border-color: var(--text-primary);
    transform: translateY(-1px);
    box-shadow: var(--shadow-medium);
}

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

.like-btn.liked {
    background: #ef4444;
    color: var(--btn-text-primary);
    border-color: #ef4444;
}

.like-btn.liked:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.view-count {
    cursor: pointer;
    color: var(--text-primary);
    
}

.view-count:hover {
    color: var(--text-primary);
    
    border-color: var(--border-color);
    transform: none;
    box-shadow: none;
}

/* Comments Section */
.comments-section {
    margin-bottom: 3rem;
}

.comment-count {
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: normal;
}

.comment-form {
    margin-bottom: 2rem;
    padding: 1.5rem;
   
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-light);
}

.comment-input {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

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

.comment-textarea {
    flex: 1;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.75rem;
    font-family: inherit;
    resize: vertical;
    min-height: 80px;
    transition: border-color 0.2s ease;
}

.comment-textarea:focus {
    outline: none;
    border-color: var(--text-primary);
}

.comment-actions {
    display: flex;
    justify-content: flex-end;
}

.comment-item {
    display: flex;
    gap: 1rem;
    padding: 1.5rem;
   
    border-radius: 12px;
    border: 1px solid var(--border-color);
    margin-bottom: 1rem;
}

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

.comment-content {
    flex: 1;
}

.comment-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.commenter-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.comment-date {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.comment-text {
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

.no-comments {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-secondary);
}

.no-comments i {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
    opacity: 0.5;
}

/* Auth Required Comments */
.auth-required-comments {
    margin-bottom: 3rem;
}

.auth-message {
    text-align: center;
    padding: 3rem 2rem;
    background: var(--secondary-color);
    border-radius: 16px;
    border: 1px solid var(--border-color);
}

.auth-message i {
    font-size: 3rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    display: block;
    opacity: 0.7;
}

.auth-message h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.auth-message p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.auth-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Sidebar */
.content-sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.sidebar-card {
   
    border-radius: 16px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    box-shadow: var(--shadow-light);
}

.card-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 15px;
    
}

/* Stats Card */
.stats-grid {
    padding: 1.5rem;
    display: grid;
}



.stat-icon {
    font-size: 1.25rem;
    color: var(--text-primary);
}

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

.stat-value {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Price Card */
.price-info {
    padding: 1.5rem;
    text-align: center;
}

.price-amount {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    display: block;
    margin-bottom: 0.5rem;
}

.price-description {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.purchased-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem;
    background: #10b981;
    color: var(--btn-text-primary);
    border-radius: 20px;
    font-weight: 500;
}

/* Related Dreams */
.related-list {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.related-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    border-radius: 12px;
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.related-item:hover {
    background: var(--secondary-color);
}

.related-image {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.related-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

.related-title {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related-stats {
    display: flex;
    gap: 1rem;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.related-stats span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* Error Section */
.error-section {
    padding: 4rem 0;
}

.error-content {
    text-align: center;
    max-width: 500px;
    margin: 0 auto;
}

.error-icon {
    font-size: 4rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    opacity: 0.7;
}

.error-title {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.error-message {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.error-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Utility Classes for Dream Detail */
.w-full {
    width: 100%;
}

.text-red-500 {
    color: var(--error-color);
}

.fill-current {
    fill: currentColor;
}

.animate-spin {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Dream Detail Responsive Design */
@media (max-width: 1024px) {
    .content-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .content-sidebar {
        order: -1;
    }
    
    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {
    .dream-title {
        font-size: 2.25rem;
    }
    
    .dream-description {
        font-size: 1.1rem;
    }
    
    .author-info {
        flex-direction: column;
        text-align: center;
        align-items: center;
        gap: 1rem;
    }
    
    .author-stats {
        justify-content: center;
    }
    
    .engagement-actions {
        flex-direction: column;
    }
    
    .engagement-btn {
        justify-content: center;
    }
    
    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .comment-input {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .auth-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .auth-actions .btn {
        width: 200px;
    }
}

@media (max-width: 480px) {
    .dream-hero {
        padding: 2rem 0;
    }
    
    .dream-title {
        font-size: 1.75rem;
    }
    
    .dream-description {
        font-size: 1rem;
    }
    
    .dream-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .engagement-section {
        padding: 1rem;
    }
    
    .comment-form, .comment-item {
        padding: 1rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
}

/* ====== CLOUD/SPACE THEMED CARDS ====== */
.card {
    cursor: pointer;
    position: relative;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.15) 0%,
        rgba(255, 255, 255, 0.1) 50%,
        rgba(255, 255, 255, 0.05) 100%
    );

  
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 
        0 8px 32px rgba(31, 38, 135, 0.37),
        0 4px 16px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transform-style: preserve-3d;
    
    /* Cloud-like floating animation */
    animation: cloudFloat 6s ease-in-out infinite;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('../assets/images/thumbnail.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.1;
    border-radius: 25px;
    z-index: -1;
    transition: all 0.4s ease;
}

.card::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, 
        rgba(138, 43, 226, 0.1),
        rgba(0, 191, 255, 0.1),
        rgba(138, 43, 226, 0.1),
        rgba(0, 191, 255, 0.1)
    );
    background-size: 300% 300%;
    border-radius: 27px;
    z-index: -2;
    opacity: 0;
    animation: gradientShift 4s ease infinite;
    transition: opacity 0.4s ease;
}

.card:hover {
    transform: translateY(-15px) rotateX(5deg) rotateY(5deg);
    box-shadow: 
        0 25px 50px rgba(138, 43, 226, 0.25),
        0 15px 35px rgba(0, 191, 255, 0.15),
        0 5px 15px rgba(0, 0, 0, 0.1),
        inset 0 2px 0 rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.4);
}

.card:hover::before {
    opacity: 0.2;
    transform: scale(1.05);
}

.card:hover::after {
    opacity: 1;
}

/* Floating cloud animation */
@keyframes cloudFloat {
    0%, 100% {
        transform: translateY(0px) rotateZ(0deg);
    }
    25% {
        transform: translateY(-5px) rotateZ(0.5deg);
    }
    50% {
        transform: translateY(-8px) rotateZ(0deg);
    }
    75% {
        transform: translateY(-3px) rotateZ(-0.5deg);
    }
}

/* Gradient border animation */
@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.card-content {
    position: relative;
    z-index: 2;
    padding: 1.5rem;
    /* background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.1) 0%,
        rgba(255, 255, 255, 0.05) 100%
    ); */
    border-radius: 20px;
    margin: 5px;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.card-category {
    background: linear-gradient(135deg, rgba(138, 43, 226, 0.8), rgba(0, 191, 255, 0.8));
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(138, 43, 226, 0.3);

}

.card-price {
    background: linear-gradient(135deg, rgba(0, 255, 127, 0.8), rgba(0, 255, 255, 0.8));
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(0, 255, 127, 0.3);

}

.card h3 {
    color: white;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    line-height: 1.3;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    background: linear-gradient(135deg, #ffffff, #e0e7ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.card-description {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1.2rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.card-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.85rem;
    font-weight: 500;
}

.author-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.card-stats {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.card-stats .stat {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.8rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.3rem 0.8rem;
    border-radius: 15px;

    transition: all 0.3s ease;
}

.card-stats .stat:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    transform: translateY(-2px);
}

.card-stats .stat i {
    font-size: 0.7rem;
    opacity: 0.8;
}

/* Card action buttons (edit/delete) */
.card-actions {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    display: flex;
    gap: 0.5rem;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 10;
}

.card:hover .card-actions {
    opacity: 1;
    transform: translateY(0);
}

.action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 50%;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.action-btn.edit {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.9), rgba(37, 99, 235, 0.9));
    color: white;
}

.action-btn.edit:hover {
    background: linear-gradient(135deg, rgba(59, 130, 246, 1), rgba(37, 99, 235, 1));
    transform: scale(1.1);
}

.action-btn.delete {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.9), rgba(220, 38, 38, 0.9));
    color: white;
}

.action-btn.delete:hover {
    background: linear-gradient(135deg, rgba(239, 68, 68, 1), rgba(220, 38, 38, 1));
    transform: scale(1.1);
}

/* Space stars effect for the card grid */
.cards-grid {
    position: relative;
}

.cards-grid::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(2px 2px at 20px 30px, #eee, transparent),
        radial-gradient(2px 2px at 40px 70px, rgba(255, 255, 255, 0.8), transparent),
        radial-gradient(1px 1px at 90px 40px, #fff, transparent),
        radial-gradient(1px 1px at 130px 80px, rgba(255, 255, 255, 0.6), transparent),
        radial-gradient(2px 2px at 160px 30px, #ddd, transparent);
    background-repeat: repeat;
    background-size: 200px 100px;
    animation: sparkle 20s linear infinite;
    pointer-events: none;
    z-index: -10;
    opacity: 0.3;
}

@keyframes sparkle {
    from { transform: translateX(0); }
    to { transform: translateX(-200px); }
}

/* ====== COSMIC LOAD MORE BUTTON ====== */
.load-more {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 3rem 0;
    position: relative;
}

.load-more::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent,
        rgba(138, 43, 226, 0.3),
        rgba(0, 191, 255, 0.5),
        rgba(138, 43, 226, 0.3),
        transparent
    );
    z-index: 1;
}

.load-more .btn {
    position: relative;
    z-index: 2;
    background: linear-gradient(135deg, 
        rgba(138, 43, 226, 0.8) 0%,
        rgba(0, 191, 255, 0.8) 50%,
        rgba(138, 43, 226, 0.8) 100%
    );
    background-size: 200% 200%;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 30px;
    padding: 1rem 2.5rem;
    font-weight: 600;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 
        0 8px 25px rgba(138, 43, 226, 0.4),
        0 4px 15px rgba(0, 191, 255, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
    animation: gradientPulse 3s ease-in-out infinite;

}

.load-more .btn::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, 
        transparent,
        rgba(255, 255, 255, 0.1),
        transparent
    );
    transform: rotate(-45deg);
    transition: all 0.6s ease;
    opacity: 0;
}

.load-more .btn::after {
    content: '✨';
    position: absolute;
    top: 50%;
    right: 1rem;
    transform: translateY(-50%);
    font-size: 1.2rem;
    opacity: 0;
    transition: all 0.3s ease;
    animation: sparkleFloat 2s ease-in-out infinite;
}

.load-more .btn:hover {
    transform: translateY(-5px) scale(1.05);
    background-position: 100% 100%;
    box-shadow: 
        0 15px 40px rgba(138, 43, 226, 0.6),
        0 8px 25px rgba(0, 191, 255, 0.4),
        inset 0 2px 0 rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
}

.load-more .btn:hover::before {
    opacity: 1;
    animation: shimmerSweep 1s ease-in-out;
}

.load-more .btn:hover::after {
    opacity: 1;
    right: 0.5rem;
}

.load-more .btn:active {
    transform: translateY(-2px) scale(1.02);
}

.load-more .btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
    animation: none;
}

/* Gradient pulse animation */
@keyframes gradientPulse {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

/* Shimmer sweep effect */
@keyframes shimmerSweep {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(-45deg);
    }
    100% {
        transform: translateX(200%) translateY(200%) rotate(-45deg);
    }
}

/* Sparkle float animation */
@keyframes sparkleFloat {
    0%, 100% {
        transform: translateY(-50%) scale(1);
    }
    50% {
        transform: translateY(-60%) scale(1.1);
    }
}

/* Loading state animation */
.load-more .btn[data-loading="true"] {
    background: linear-gradient(135deg, 
        rgba(138, 43, 226, 0.6) 0%,
        rgba(0, 191, 255, 0.6) 50%,
        rgba(138, 43, 226, 0.6) 100%
    );
    animation: loadingPulse 1.5s ease-in-out infinite;
}

.load-more .btn[data-loading="true"]::after {
    content: '⭐';
    animation: loadingSpin 1s linear infinite;
}

@keyframes loadingPulse {
    0%, 100% {
        opacity: 0.8;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.02);
    }
}

@keyframes loadingSpin {
    from {
        transform: translateY(-50%) rotate(0deg);
    }
    to {
        transform: translateY(-50%) rotate(360deg);
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .load-more .btn {
        padding: 0.875rem 2rem;
        font-size: 0.9rem;
        letter-spacing: 0.5px;
    }
    
    .load-more .btn::after {
        right: 0.75rem;
        font-size: 1rem;
    }
    
    .load-more .btn:hover::after {
        right: 0.25rem;
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .card {
        border-radius: 20px;
        margin-bottom: 1rem;
    }
    
    .card-content {
        padding: 1.2rem;
        margin: 3px;
    }
    
    .card:hover {
        transform: translateY(-8px);
    }
}

/* ====== COSMIC COMMUNITY CARDS ====== */
.stat-card {
    position: relative;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.15) 0%,
        rgba(255, 255, 255, 0.1) 50%,
        rgba(255, 255, 255, 0.05) 100%
    );

    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 1.5rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 
        0 8px 32px rgba(31, 38, 135, 0.37),
        0 4px 16px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    animation: cloudFloat 6s ease-in-out infinite;
    animation-delay: var(--delay, 0s);
}

.stat-card:nth-child(1) { --delay: 0s; }
.stat-card:nth-child(2) { --delay: 1s; }
.stat-card:nth-child(3) { --delay: 2s; }

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('../assets/images/thumbnail-community.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.08;
    border-radius: 20px;
    z-index: -1;
}

.stat-card:hover {
    transform: translateY(-10px) rotateX(5deg);
    box-shadow: 
        0 20px 40px rgba(138, 43, 226, 0.25),
        0 10px 25px rgba(0, 191, 255, 0.15),
        inset 0 2px 0 rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.4);
}

.post-card, .group-card, .event-card, .member-card {
    position: relative;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.12) 0%,
        rgba(255, 255, 255, 0.08) 50%,
        rgba(255, 255, 255, 0.04) 100%
    );
 

    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 
        0 6px 25px rgba(31, 38, 135, 0.3),
        0 3px 12px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
    animation: cardFloat 8s ease-in-out infinite;
    animation-delay: var(--float-delay, 0s);
}

.post-card:nth-child(1) { --float-delay: 0s; }
.post-card:nth-child(2) { --float-delay: 1.5s; }
.post-card:nth-child(3) { --float-delay: 3s; }

.post-card::before, .group-card::before, .event-card::before, .member-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('../assets/images/thumbnail-community.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.06;
    border-radius: 20px;
    z-index: -1;
}

.post-card:hover, .group-card:hover, .event-card:hover, .member-card:hover {
    transform: translateY(-8px) rotateX(3deg);
    box-shadow: 
        0 15px 35px rgba(138, 43, 226, 0.2),
        0 8px 20px rgba(0, 191, 255, 0.12),
        inset 0 2px 0 rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.35);
}

@keyframes cardFloat {
    0%, 100% {
        transform: translateY(0px) rotateZ(0deg);
    }
    25% {
        transform: translateY(-3px) rotateZ(0.3deg);
    }
    50% {
        transform: translateY(-6px) rotateZ(0deg);
    }
    75% {
        transform: translateY(-2px) rotateZ(-0.3deg);
    }
}

/* ====== COSMIC ACTION BUTTONS ====== */
.action-button {
    position: relative;
    background: linear-gradient(135deg, 
        rgba(138, 43, 226, 0.7) 0%,
        rgba(0, 191, 255, 0.7) 50%,
        rgba(138, 43, 226, 0.7) 100%
    );
    background-size: 200% 200%;
    color: white;
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    border-radius: 25px;
    padding: 0.875rem 1.5rem;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 
        0 6px 20px rgba(138, 43, 226, 0.3),
        0 3px 10px rgba(0, 191, 255, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
    animation: actionButtonPulse 3s ease-in-out infinite;

    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    justify-content: center;
    margin-bottom: 0.75rem;
}

.action-button::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, 
        transparent,
        rgba(255, 255, 255, 0.15),
        transparent
    );
    transform: rotate(-45deg);
    transition: all 0.6s ease;
    opacity: 0;
}

.action-button:hover {
    transform: translateY(-3px) scale(1.02);
    background-position: 100% 100%;
    box-shadow: 
        0 10px 30px rgba(138, 43, 226, 0.5),
        0 6px 20px rgba(0, 191, 255, 0.3),
        inset 0 2px 0 rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
}

.action-button:hover::before {
    opacity: 1;
    animation: shimmerSweep 1s ease-in-out;
}

.action-button:active {
    transform: translateY(-1px) scale(1.01);
}

.action-button.opacity-50 {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    animation: none;
}

@keyframes actionButtonPulse {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

/* Enhanced authentication buttons */
.btn.btn-secondary {
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
  
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 
        0 4px 15px rgba(31, 38, 135, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn.btn-secondary:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, 
        rgba(138, 43, 226, 0.6) 0%,
        rgba(0, 191, 255, 0.6) 100%
    );
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 
        0 8px 25px rgba(138, 43, 226, 0.3),
        0 4px 15px rgba(0, 191, 255, 0.2),
        inset 0 2px 0 rgba(255, 255, 255, 0.3);
}

/* Create post modal button enhancements */
.btn.btn-primary {
    background: linear-gradient(135deg, 
        rgba(138, 43, 226, 0.8) 0%,
        rgba(0, 191, 255, 0.8) 100%
    );
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--btn-text-primary);
    border-radius: 20px;
  
    transition: all 0.3s ease;
}

.btn.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 8px 25px rgba(138, 43, 226, 0.4),
        0 4px 15px rgba(0, 191, 255, 0.3);
}

.btn.btn-outline {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--btn-text-primary);
    border-radius: 20px;

}

.btn.btn-outline:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
}

/* ====== LOADING ANIMATIONS FOR DREAMS PAGE ====== */

/* Pulsing sparkle emoji animation */
.loading-emoji {
    animation: sparkle-pulse 2s ease-in-out infinite;
    display: inline-block;
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.3));
}

@keyframes sparkle-pulse {
    0%, 100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
    25% {
        transform: scale(1.1) rotate(-5deg);
        opacity: 0.8;
    }
    50% {
        transform: scale(1.2) rotate(0deg);
        opacity: 0.9;
        filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.5));
    }
    75% {
        transform: scale(1.1) rotate(5deg);
        opacity: 0.8;
    }
}

/* Typewriter effect for loading text */
.loading-text {
    animation: typewriter 2s steps(15) infinite;
    overflow: hidden;
    white-space: nowrap;
    border-right: 2px solid rgba(255, 255, 255, 0.7);
    display: inline-block;
    max-width: fit-content;
    margin: 0 auto;
}

@keyframes typewriter {
    0%, 90%, 100% {
        width: 100%;
    }
    95% {
        width: 100%;
        border-right-color: transparent;
    }
}

/* Subtle fade animation for subtitle */
.loading-subtitle {
    animation: fade-in-out 3s ease-in-out infinite;
}

@keyframes fade-in-out {
    0%, 100% {
        opacity: 0.6;
    }
    50% {
        opacity: 1;
    }
}

/* Bouncing dots animation */
.loading-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
}

.loading-dots span {
    width: 8px;
    height: 8px;
    background: var(--text-primary);
    border-radius: 50%;
    display: inline-block;
    animation: bounce-dots 1.4s ease-in-out infinite both;
}

.loading-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.loading-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

.loading-dots span:nth-child(3) {
    animation-delay: 0s;
}

@keyframes bounce-dots {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1.2);
        opacity: 1;
    }
}

/* Alternative shimmer effect for loading state */
.loading-shimmer {
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0.1) 0%,
        rgba(255, 255, 255, 0.3) 50%,
        rgba(255, 255, 255, 0.1) 100%
    );
    background-size: 200% 100%;
    animation: shimmer 2s ease-in-out infinite;
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

/* Floating animation for the entire loading container */
.loading-container {
    animation: float-gentle 3s ease-in-out infinite;
}

@keyframes float-gentle {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Animation Section Styles */
.animation-showcase {
    display: grid;
    gap: 3rem;
    margin-top: 3rem;
}

/* Dream Bubbles Animation */
.dream-bubbles-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
    padding: 2rem;
    min-height: 200px;
}

.dream-bubble {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
  
   
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 120px;
    height: 120px;
    color: var(--btn-text-primary);
    animation: float-bubble 4s ease-in-out infinite;
    animation-delay: var(--delay, 0s);
    transition: all 0.3s ease;
    cursor: pointer;
}

.dream-bubble:nth-child(1) { animation-delay: 0s; }
.dream-bubble:nth-child(2) { animation-delay: 1s; }
.dream-bubble:nth-child(3) { animation-delay: 2s; }
.dream-bubble:nth-child(4) { animation-delay: 3s; }

.bubble-delay-0 { animation-delay: 0s; }
.bubble-delay-1 { animation-delay: 1s; }
.bubble-delay-2 { animation-delay: 2s; }
.bubble-delay-3 { animation-delay: 3s; }

.dream-bubble:hover {
    transform: scale(1.1);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.1));
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.dream-bubble i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.dream-bubble span {
    font-size: 0.9rem;
    font-weight: 500;
    text-align: center;
}

@keyframes float-bubble {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    33% {
        transform: translateY(-15px) rotate(2deg);
    }
    66% {
        transform: translateY(-5px) rotate(-2deg);
    }
}

/* Interactive Dream Canvas */
.dream-canvas {
    position: relative;
    background: 
       
        url('../assets/images/main-theme-background.png');
    background-size: auto;
    background-position: center;
    background-repeat: no-repeat;
   
   
    padding: 3rem;
    text-align: center;
    color: var(--btn-text-primary);
    cursor: crosshair;
    overflow: hidden;
    min-height: 300px;
   
   
    transition: all 0.3s ease;

}

.dream-canvas::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../assets/images/main-theme-background.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.3;
    filter: blur(2px);
    z-index: -1;
    animation: dreamCanvasFloat 15s ease-in-out infinite;
}

.dream-canvas::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    
    z-index: 0;
  
}

.dream-canvas .canvas-content {
    position: relative;
    z-index: 1;
}

@keyframes dreamCanvasFloat {
    0%, 100% {
        transform: scale(1) rotate(0deg);
        opacity: 0.3;
    }
    25% {
        transform: scale(1.05) rotate(1deg);
        opacity: 0.2;
    }
    50% {
        transform: scale(1.02) rotate(0deg);
        opacity: 0.35;
    }
    75% {
        transform: scale(1.08) rotate(-1deg);
        opacity: 0.25;
    }
}

@keyframes dreamGradientShift {
    0% {
        background: linear-gradient(
            45deg,
            rgba(96, 165, 250, 0.1) 0%,
            rgba(167, 139, 250, 0.1) 50%,
            rgba(59, 130, 246, 0.1) 100%
        );
    }
    100% {
        background: linear-gradient(
            225deg,
            rgba(167, 139, 250, 0.15) 0%,
            rgba(59, 130, 246, 0.1) 50%,
            rgba(96, 165, 250, 0.1) 100%
        );
    }
}

.canvas-content h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, #60a5fa, #a78bfa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.canvas-content p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 2rem;
}

#magicParticles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.magic-particle {
    position: absolute;
    width: 8px;
    height: 8px;
    background: radial-gradient(circle, rgba(96, 165, 250, 0.8), rgba(167, 139, 250, 0.4));
    border-radius: 50%;
    animation: magic-float 1s ease-out forwards;
    pointer-events: none;
}

.burst-particle {
    position: absolute;
    width: 6px;
    height: 6px;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.9), rgba(255, 165, 0, 0.5));
    border-radius: 50%;
    animation: burst-animate 0.8s ease-out forwards;
    pointer-events: none;
}

@keyframes magic-float {
    0% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
    100% {
        opacity: 0;
        transform: scale(0.5) translateY(-50px);
    }
}

@keyframes burst-animate {
    0% {
        opacity: 1;
        transform: scale(1) rotate(var(--angle, 0deg)) translateX(0);
    }
    100% {
        opacity: 0;
        transform: scale(0.3) rotate(var(--angle, 0deg)) translateX(80px);
    }
}

/* Animated Stats */
.stats-animation {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.animated-stat {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
   
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    color: white;
    transition: all 0.3s ease;
    animation: pulse-glow 3s ease-in-out infinite;
}

.animated-stat:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.08));
}

.stat-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, #60a5fa, #a78bfa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    background: linear-gradient(45deg, #fbbf24, #f59e0b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(96, 165, 250, 0.3);
    }
    50% {
        box-shadow: 0 0 30px rgba(167, 139, 250, 0.5);
    }
}

/* ====== PROFILE PAGE STYLES ====== */

/* Profile Header */
.profile-header {
    background: linear-gradient(135deg, 
        rgba(99, 102, 241, 0.1), 
        rgba(139, 92, 246, 0.05),
        rgba(219, 39, 119, 0.03)
    );
    padding: 2rem 0;
    position: relative;
    overflow: hidden;
}

.profile-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 20"><defs><radialGradient id="g" cx="20" cy="20" r="20"><stop stop-color="rgba(139,92,246,0.3)" offset="0"/><stop stop-color="transparent" offset="1"/></radialGradient></defs><rect width="100" height="20" fill="url(%23g)"/></svg>');
    opacity: 0.4;
    animation: dreamFloat 20s ease-in-out infinite;
}

@keyframes dreamFloat {
    0%, 100% { transform: translateX(-10px) translateY(-5px); }
    50% { transform: translateX(10px) translateY(5px); }
}

.profile-banner {
    background: linear-gradient(135deg, 
        rgba(99, 102, 241, 0.15), 
        rgba(139, 92, 246, 0.1),
        rgba(219, 39, 119, 0.05)
    );
    border-radius: 20px;
    padding: 3rem;
    position: relative;
    
   
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.profile-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 20%, rgba(139, 92, 246, 0.1), transparent 50%),
                radial-gradient(circle at 70% 80%, rgba(219, 39, 119, 0.1), transparent 50%);
    border-radius: 20px;
    pointer-events: none;
}

.profile-info {
    display: flex;
    align-items: center;
    gap: 2rem;
    position: relative;
    z-index: 2;
}

.profile-avatar {
    position: relative;
    flex-shrink: 0;
}

.avatar-lg {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid rgba(255, 255, 255, 0.5);
    box-shadow: 
        0 15px 35px rgba(0, 0, 0, 0.15),
        0 5px 15px rgba(139, 92, 246, 0.3);
    transition: all 0.3s ease;
}

.avatar-lg:hover {
    transform: scale(1.05);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.2),
        0 10px 25px rgba(139, 92, 246, 0.4);
}

.avatar-edit-btn {
    position: absolute;
    bottom: 5px;
    right: 5px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #8b5cf6, #a855f7);
    border: 2px solid white;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.4);
}

.avatar-edit-btn:hover {
    transform: scale(1.1);
    background: linear-gradient(135deg, #7c3aed, #9333ea);
}

.profile-details {
    flex: 1;
}

.profile-name {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #1e3a8a, #3730a3, #7c3aed);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.profile-title {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.profile-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 1rem;
}
.card-author {
    margin-bottom: 10px;
}
.stat {
   text-align: center;
    
    border-radius: 5px;
   
    transition: all 0.3s ease;
    position: relative;
    padding: 2px;
    margin: 2px;
    overflow: hidden;
}

.stat::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(139, 92, 246, 0.1), transparent);
    transform: rotate(-45deg);
    transition: all 0.6s ease;
    opacity: 0;
}

.stat:hover::before {
    opacity: 1;
    animation: shimmer 1.5s ease-in-out infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%) translateY(-100%) rotate(-45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(-45deg); }
}

.stat:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(139, 92, 246, 0.2);
    background: rgba(255, 255, 255, 0.9);
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(135deg, #8b5cf6, #ec4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    z-index: 2;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    z-index: 2;
}

.profile-actions {
    display: flex;
    gap: 1rem;
    flex-direction: column;
    align-items: flex-end;
}

.profile-actions .btn {
    background: rgba(255, 255, 255, 0.9);
    
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--text-primary);
    font-weight: 600;
    padding: 0.875rem 1.5rem;
    border-radius: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.profile-actions .btn:hover {
    background: linear-gradient(135deg, #8b5cf6, #a855f7);
    color: var(--btn-text-primary);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.3);
}

/* Profile Content */
.profile-content {
    padding: 3rem 0;
}

.profile-tabs {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 3rem;
    background: rgba(248, 250, 252, 0.8);
  
   
    border-radius: 16px;
    padding: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.tab-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-weight: 600;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.tab-btn::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: all 0.5s ease;
}

.tab-btn:hover::before {
    left: 100%;
}

.tab-btn.active {
    background: linear-gradient(135deg, #8b5cf6, #a855f7);
    color: var(--btn-text-primary);
    box-shadow: 0 4px 16px rgba(139, 92, 246, 0.3);
    transform: translateY(-2px);
}

.tab-btn i {
    font-size: 1.1rem;
}

/* Tab Content */
.tab-content {
    animation: fadeInUp 0.5s ease-out;
}

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

/* Dreams Grid */
.dreams-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.dream-card {
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.9), 
        rgba(248, 250, 252, 0.8)
    );

    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.08),
        0 1px 8px rgba(0, 0, 0, 0.02);
}

.dream-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(139, 92, 246, 0.05), 
        rgba(236, 72, 153, 0.03)
    );
    opacity: 0;
    transition: all 0.4s ease;
    pointer-events: none;
}

.dream-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 
        0 25px 50px rgba(139, 92, 246, 0.15),
        0 10px 30px rgba(0, 0, 0, 0.1);
}

.dream-card:hover::before {
    opacity: 1;
}

.dream-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.dream-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.4s ease;
}

.dream-card:hover .dream-image img {
    transform: scale(1.1);
}

.dream-actions {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: flex;
    gap: 0.5rem;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.dream-card:hover .dream-actions {
    opacity: 1;
    transform: translateY(0);
}

.action-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    transition: all 0.3s ease;
   
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.action-btn:hover {
    background: linear-gradient(135deg, #8b5cf6, #a855f7);
    color: var(--btn-text-primary);
    transform: scale(1.1);
}

.dream-content {
    padding: 1.5rem;
}

.dream-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    line-height: 1.3;
    background: linear-gradient(135deg, #1e3a8a, #7c3aed);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.dream-description {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.dream-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.dream-category {
    background: linear-gradient(135deg, #8b5cf6, #a855f7);
    color: var(--btn-text-primary);
    padding: 0.375rem 0.875rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dream-date {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.dream-stats {
    display: flex;
    gap: 1rem;
    font-size: 0.875rem;
}

.dream-stats .stat {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    color: var(--text-secondary);
    padding: 0.5rem 0.875rem;
    background: rgba(139, 92, 246, 0.05);
    border-radius: 20px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.dream-stats .stat:hover {
    background: linear-gradient(135deg, #8b5cf6, #a855f7);
    color: var(--btn-text-primary);
    transform: translateY(-2px);
}

.dream-stats .stat i {
    font-size: 0.8rem;
}

/* Collections Grid */
.collections-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.collection-card {
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.9), 
        rgba(248, 250, 252, 0.8)
    );
   
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 2rem;
    text-align: center;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.collection-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(139, 92, 246, 0.1), 
        rgba(236, 72, 153, 0.05)
    );
    opacity: 0;
    transition: all 0.4s ease;
}

.collection-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(139, 92, 246, 0.15);
}

.collection-card:hover::before {
    opacity: 1;
}

.create-collection {
    border: 2px dashed rgba(139, 92, 246, 0.3);
    background: linear-gradient(135deg, 
        rgba(139, 92, 246, 0.05), 
        rgba(236, 72, 153, 0.02)
    );
    cursor: pointer;
}

.create-collection:hover {
    border-color: rgba(139, 92, 246, 0.6);
    background: linear-gradient(135deg, 
        rgba(139, 92, 246, 0.1), 
        rgba(236, 72, 153, 0.05)
    );
}

.create-collection-content {
    position: relative;
    z-index: 2;
}

.create-collection-content i {
    font-size: 3rem;
    background: linear-gradient(135deg, #8b5cf6, #ec4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

.create-collection-content h3 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

/* Activity Feed */
.activity-feed {
    max-width: 800px;
    margin: 0 auto;
}

.activity-item {
    background: rgba(255, 255, 255, 0.7);
   
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 1.5rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.activity-item:hover {
    transform: translateX(8px);
    box-shadow: 0 8px 30px rgba(139, 92, 246, 0.1);
}

.activity-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #8b5cf6, #a855f7);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
    box-shadow: 0 4px 16px rgba(139, 92, 246, 0.3);
}

.activity-content {
    flex: 1;
}

.activity-time {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

/* Analytics Section */
.analytics-section {
    margin-top: 3rem;
    padding: 2rem;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.8), 
        rgba(248, 250, 252, 0.6)
    );
 
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.analytics-section h3 {
    text-align: center;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, #1e3a8a, #7c3aed);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.analytics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}

.analytics-card {
    background: rgba(255, 255, 255, 0.8);
  
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.analytics-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(139, 92, 246, 0.05), transparent);
    transform: rotate(-45deg);
    transition: all 0.6s ease;
    opacity: 0;
}

.analytics-card:hover::before {
    opacity: 1;
    animation: shimmer 1.5s ease-in-out infinite;
}

.analytics-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(139, 92, 246, 0.15);
}

.analytics-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #8b5cf6, #a855f7);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 1rem;
    box-shadow: 0 4px 16px rgba(139, 92, 246, 0.3);
    position: relative;
    z-index: 2;
}

.analytics-info h4 {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
    position: relative;
    z-index: 2;
}

.analytics-number {
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(135deg, #8b5cf6, #ec4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    z-index: 2;
}

/* Settings Section */
.settings-sections {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.settings-section {
   

    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.settings-section h3 {
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--form-text-color);
    font-weight: 600;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 0.875rem 1.125rem;
    border: 2px solid rgba(139, 92, 246, 0.1);
    border-radius: 12px;
    font-family: inherit;
    font-size: 1rem;

    color: var(--form-text-color);
    transition: all 0.3s ease;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: rgba(139, 92, 246, 0.4);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
    background: rgba(255, 255, 255, 0.95);
}

.setting-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem;
    background: rgba(248, 250, 252, 0.5);
    border-radius: 16px;
    margin-bottom: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.setting-item:hover {
    background: rgba(248, 250, 252, 0.8);
    transform: translateX(4px);
}

.setting-info h4 {
    color: var(--text-primary);
    margin-bottom: 0.25rem;
    font-size: 1rem;
    font-weight: 600;
}

.setting-info p {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin: 0;
}

/* Toggle Switch */
.toggle {
    position: relative;
    display: inline-block;
    width: 54px;
    height: 28px;
}

.toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #e2e8f0;
    transition: all 0.4s ease;
    border-radius: 28px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 3px;
    bottom: 3px;
    background: white;
    transition: all 0.4s ease;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.toggle input:checked + .toggle-slider {
    background: linear-gradient(135deg, #8b5cf6, #a855f7);
}

.toggle input:checked + .toggle-slider:before {
    transform: translateX(26px);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .profile-info {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
    
    .profile-actions {
        flex-direction: row;
        justify-content: center;
        align-items: center;
    }
    
    .profile-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}

@media (max-width: 768px) {
    .profile-banner {
        padding: 2rem 1.5rem;
    }
    
    .profile-name {
        font-size: 2rem;
    }
    
    .profile-tabs {
        flex-direction: column;
        gap: 0.25rem;
    }
    
    .tab-btn {
        padding: 0.875rem 1.5rem;
        justify-content: center;
    }
    
    .dreams-grid,
    .collections-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .analytics-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .profile-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .stat {
        padding: 1rem;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .profile-header {
        padding: 1rem 0;
    }
    
    .profile-banner {
        padding: 1.5rem 1rem;
    }
    
    .avatar-lg {
        width: 100px;
        height: 100px;
    }
    
    .profile-name {
        font-size: 1.75rem;
    }
    
    .analytics-grid {
        grid-template-columns: 1fr;
    }
}


@keyframes dreamCanvasAnimateIn {
    0% {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
        filter: blur(5px);
    }
    50% {
        opacity: 0.7;
        transform: translateY(10px) scale(1.02);
        filter: blur(2px);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

@keyframes dreamCanvasBackgroundIn {
    0% {
        opacity: 0;
        transform: scale(1.2);
        filter: blur(10px);
    }
    100% {
        opacity: 0.3;
        transform: scale(1);
        filter: blur(2px);
    }
}

@keyframes dreamCanvasOverlayIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

/* Responsive Design for Animations */
@media (max-width: 768px) {
    .dream-bubbles-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .dream-bubble {
        width: 100px;
        height: 100px;
        padding: 1rem;
    }
    
    .dream-bubble i {
        font-size: 1.5rem;
    }
    
    .dream-bubble span {
        font-size: 0.8rem;
    }
    
    .stats-animation {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .animated-stat {
        padding: 1.5rem;
    }
    
    .stat-icon {
        font-size: 2rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    /* Dream Canvas Responsive */
    .dream-canvas {
        padding: 2rem;
        min-height: 250px;
    }
    
    .dream-canvas::before {
        filter: blur(3px);
        opacity: 0.2;
    }
    
    @keyframes dreamCanvasFloat {
        0%, 100% {
            transform: scale(1) rotate(0deg);
            opacity: 0.2;
        }
        50% {
            transform: scale(1.03) rotate(0deg);
            opacity: 0.25;
        }
    }
}

/* ====== DREAMY STAT LOADING ANIMATION ====== */

/* Loading state for stat numbers */
.stat-number.loading {
    position: relative;
    overflow: hidden;
    min-height: 1.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-number.loading::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(30, 58, 138, 0.1) 20%, 
        rgba(59, 130, 246, 0.15) 50%, 
        rgba(30, 58, 138, 0.1) 80%, 
        transparent 100%);
    animation: shimmer 2s ease-in-out infinite;
}

.sta-number.loading::after {
    content: '';
    position: absolute;
    font-size: 1.2rem;
    animation: dreamy-sparkle 1.5s ease-in-out infinite;
    filter: drop-shadow(0 0 8px rgba(59, 130, 246, 0.3));
}

/* Dreamy sparkle animation */
@keyframes dreamy-sparkle {
    0%, 100% {
        transform: scale(1) rotate(0deg);
        opacity: 0.6;
    }
    25% {
        transform: scale(1.1) rotate(-10deg);
        opacity: 0.8;
    }
    50% {
        transform: scale(1.2) rotate(0deg);
        opacity: 1;
        filter: drop-shadow(0 0 12px rgba(59, 130, 246, 0.5));
    }
    75% {
        transform: scale(1.1) rotate(10deg);
        opacity: 0.8;
    }
}

/* Shimmer effect */
@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }
    50% {
        transform: translateX(0%);
    }
    100% {
        transform: translateX(100%);
    }
}

/* Dreamy loading dots for stat content */
.stat-loading-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.3rem;
    height: 1.75rem;
}

.stat-loading-dots .dot {
    width: 6px;
    height: 6px;
    background: var(--text-secondary);
    border-radius: 50%;
    animation: dreamy-bounce 1.4s ease-in-out infinite both;
    filter: drop-shadow(0 0 4px rgba(59, 130, 246, 0.3));
}

.stat-loading-dots .dot:nth-child(1) {
    animation-delay: -0.32s;
}

.stat-loading-dots .dot:nth-child(2) {
    animation-delay: -0.16s;
}

.stat-loading-dots .dot:nth-child(3) {
    animation-delay: 0s;
}

@keyframes dreamy-bounce {
    0%, 80%, 100% {
        transform: scale(0.8) translateY(0);
        opacity: 0.5;
    }
    40% {
        transform: scale(1.2) translateY(-8px);
        opacity: 1;
        filter: drop-shadow(0 0 8px rgba(59, 130, 246, 0.5));
    }
}

/* Fade in animation for loaded stats */
.stat-number.loaded {
    animation: stat-fade-in 0.8s ease-out;
}

@keyframes stat-fade-in {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(10px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Enhanced loading state for stat cards */
.stat-card.loading .stat-content {
    position: relative;
}

.stat-card.loading .stat-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, 
        rgba(59, 130, 246, 0.05) 0%, 
        rgba(59, 130, 246, 0.1) 50%, 
        rgba(59, 130, 246, 0.05) 100%);
    border-radius: 8px;
    animation: dreamy-glow 2s ease-in-out infinite;
    pointer-events: none;
}

@keyframes dreamy-glow {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        opacity: 0.6;
        transform: scale(1.02);
    }
}

/* ====== STAR ICON ANIMATIONS ====== */

/* Main star animation - sparkle and twinkle effect */
.fas.fa-star {
    animation: star-sparkle 2s ease-in-out infinite;
    filter: drop-shadow(0 0 4px rgba(255, 215, 0, 0.6));
    transition: all 0.3s ease;
}

.fas.fa-star:hover {
    animation: star-glow 0.8s ease-in-out infinite;
    filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.8));
    transform: scale(1.1);
}

/* Sparkle animation - creates a twinkling effect */
@keyframes star-sparkle {
    0%, 100% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
        filter: drop-shadow(0 0 4px rgba(255, 215, 0, 0.6));
    }
    25% {
        opacity: 0.7;
        transform: scale(1.05) rotate(45deg);
        filter: drop-shadow(0 0 6px rgba(255, 215, 0, 0.8));
    }
    50% {
        opacity: 1;
        transform: scale(1.1) rotate(90deg);
        filter: drop-shadow(0 0 8px rgba(255, 215, 0, 1));
    }
    75% {
        opacity: 0.8;
        transform: scale(1.05) rotate(135deg);
        filter: drop-shadow(0 0 6px rgba(255, 215, 0, 0.8));
    }
}

/* Hover glow animation - intense glow on hover */
@keyframes star-glow {
    0%, 100% {
        filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.8));
        text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
    }
    50% {
        filter: drop-shadow(0 0 12px rgba(255, 215, 0, 1));
        text-shadow: 0 0 15px rgba(255, 215, 0, 0.8);
    }
}

/* Alternative pulse animation for specific contexts */
.fas.fa-star.star-pulse {
    animation: star-pulse 1.5s ease-in-out infinite;
}

@keyframes star-pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.8;
        filter: drop-shadow(0 0 10px rgba(255, 215, 0, 1));
    }
}

/* Floating star animation for special emphasis */
.fas.fa-star.star-float {
    animation: star-float 3s ease-in-out infinite;
}

@keyframes star-float {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-5px) scale(1.05);
    }
}

/* Rainbow star animation for premium/special content */
.fas.fa-star.star-rainbow {
    animation: star-rainbow 4s linear infinite;
}

@keyframes star-rainbow {
    0% { color: #ff0000; filter: drop-shadow(0 0 6px #ff0000); }
    16.66% { color: #ff8000; filter: drop-shadow(0 0 6px #ff8000); }
    33.33% { color: #ffff00; filter: drop-shadow(0 0 6px #ffff00); }
    50% { color: #00ff00; filter: drop-shadow(0 0 6px #00ff00); }
    66.66% { color: #0080ff; filter: drop-shadow(0 0 6px #0080ff); }
    83.33% { color: #8000ff; filter: drop-shadow(0 0 6px #8000ff); }
    100% { color: #ff0000; filter: drop-shadow(0 0 6px #ff0000); }
}

/* Star constellation effect for groups of stars */
.star-constellation .fas.fa-star {
    animation: star-constellation 6s ease-in-out infinite;
}

.star-constellation .fas.fa-star:nth-child(1) {
    animation-delay: 0s;
}

.star-constellation .fas.fa-star:nth-child(2) {
    animation-delay: 0.5s;
}

.star-constellation .fas.fa-star:nth-child(3) {
    animation-delay: 1s;
}

.star-constellation .fas.fa-star:nth-child(4) {
    animation-delay: 1.5s;
}

.star-constellation .fas.fa-star:nth-child(5) {
    animation-delay: 2s;
}

@keyframes star-constellation {
    0%, 80%, 100% {
        opacity: 0.3;
        transform: scale(0.8);
    }
    20% {
        opacity: 1;
        transform: scale(1.2);
        filter: drop-shadow(0 0 8px rgba(255, 215, 0, 1));
    }
}

/* Shooting star effect */
.fas.fa-star.shooting-star {
    position: relative;
    animation: shooting-star 2s ease-in-out infinite;
}

.fas.fa-star.shooting-star::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 100%;
    width: 20px;
    height: 1px;
    background: linear-gradient(90deg, rgba(255, 215, 0, 0.8), transparent);
    transform: translateY(-50%);
    opacity: 0;
    animation: shooting-trail 2s ease-in-out infinite;
}

@keyframes shooting-star {
    0%, 90%, 100% {
        transform: translateX(0);
        opacity: 1;
    }
    10%, 80% {
        transform: translateX(10px);
        opacity: 0.8;
    }
}

@keyframes shooting-trail {
    0%, 90%, 100% {
        opacity: 0;
        width: 0;
    }
    10%, 80% {
        opacity: 1;
        width: 20px;
    }
}

/* Reduced motion support for accessibility */
@media (prefers-reduced-motion: reduce) {
    .fas.fa-star {
        animation: none;
        filter: none;
    }
    
    .fas.fa-star:hover {
        animation: none;
        transform: none;
        filter: drop-shadow(0 0 4px rgba(255, 215, 0, 0.6));
    }
}
