* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #667eea;
    --secondary-color: #764ba2;
    --text-color: #262626;
    --light-text: #999;
    --bg-light: #fafafa;
    --border-color: #dbdbdb;
    --danger-color: #e74c3c;
    --success-color: #27ae60;
    --warning-color: #f39c12;
    --info-color: #3498db;
    --status-online: #31a24c;
    --status-offline: #999;
    --status-away: #f39c12;
    --status-dnd: #e74c3c;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: var(--bg-light);
    color: var(--text-color);
    line-height: 1.6;
}

/* Common Classes */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
}

.btn-outline {
    border: 2px solid var(--border-color);
    background-color: transparent;
    color: var(--text-color);
}

.btn-outline:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-block {
    width: 100%;
    max-width: 350px;
    display: block;
    margin: 0 auto;
}

.btn-sm {
    padding: 5px 15px;
    font-size: 12px;
}

.alert {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-danger {
    background-color: #fde5e5;
    color: var(--danger-color);
    border-left: 4px solid var(--danger-color);
}

.alert-success {
    background-color: #e8f8f5;
    color: var(--success-color);
    border-left: 4px solid var(--success-color);
}

/* Forms */
.form-group {
    margin-bottom: 15px;
    width: 100%;
}

.form-group input,
.form-group textarea {
    width: 100%;
    max-width: 350px;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.3s;
    display: block;
    margin: 0 auto;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.text-center {
    text-align: center;
}

/* Auth Pages */
.auth-page {
    background: #fff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.auth-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
    max-width: 1000px;
    min-height: 600px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.page-footer {
    text-align: center;
    padding: 20px 40px;
    color: #999;
    font-size: 12px;
    border-top: 1px solid var(--border-color);
    width: 100%;
    background: white;
    margin-top: 20px;
    border-radius: 0 0 10px 10px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.1);
}

.auth-sidebar {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.carousel-container {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-slide.active {
    opacity: 1;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: white;
    padding: 40px 30px;
    text-align: center;
    z-index: 2;
}

.carousel-overlay h2 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 10px;
}

.carousel-overlay p {
    font-size: 14px;
    opacity: 0.9;
}

.carousel-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background: white;
    width: 30px;
    border-radius: 5px;
}

.auth-form-container {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.auth-container {
    width: 100%;
    max-width: 350px;
    margin: 0 auto;
}

.auth-card {
    background: transparent;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
    text-align: center;
}

.auth-card form {
    width: 100%;
}

.auth-card .logo {
    font-size: 32px;
    font-weight: bold;
    text-align: center;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 10px;
}

.auth-card .tagline {
    text-align: center;
    color: var(--light-text);
    margin-bottom: 30px;
    font-size: 14px;
}

.auth-card a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.auth-card a:hover {
    text-decoration: underline;
}

/* Account Type Selector */
.account-type-selector {
    margin: 25px 0;
}

.selector-label {
    display: block;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text-color);
    font-size: 14px;
}

.account-type-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 20px;
    max-width: 350px;
    margin-left: auto;
    margin-right: auto;
}

.account-card {
    position: relative;
    padding: 20px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    cursor: pointer;
    text-align: center;
    transition: all 0.3s ease;
    background: white;
}

.account-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
    transform: translateY(-2px);
}

.account-card input[type="radio"]:checked + label {
    border-color: var(--primary-color);
    background: rgba(102, 126, 234, 0.05);
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.2);
}

/* Fix for radio button selection */
input[type="radio"]:checked + .account-card {
    border-color: var(--primary-color);
    background: rgba(102, 126, 234, 0.05);
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.2);
}

input[type="radio"]:checked + .account-card .card-icon {
    color: var(--primary-color);
}

input[type="radio"]:checked + .account-card::before {
    content: '✓';
    position: absolute;
    top: -8px;
    right: -8px;
    width: 24px;
    height: 24px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}

.card-icon {
    font-size: 32px;
    margin-bottom: 10px;
    color: #999;
    transition: color 0.3s ease;
}

.card-title {
    font-weight: 600;
    font-size: 15px;
    margin-bottom: 8px;
    color: var(--text-color);
}

.card-description {
    font-size: 12px;
    color: #777;
    line-height: 1.6;
    text-align: left;
}

.card-description p {
    margin: 4px 0;
}

.divider {
    text-align: center;
    color: #999;
    margin: 20px 0;
    font-size: 14px;
    position: relative;
}

.divider::before,
.divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 45%;
    height: 1px;
    background: #ddd;
}

.divider::before {
    left: 0;
}

.divider::after {
    right: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .auth-wrapper {
        grid-template-columns: 1fr;
        min-height: auto;
        border-radius: 0;
        box-shadow: none;
    }
    
    .auth-sidebar {
        display: none;
    }
    
    .auth-form-container {
        padding: 20px 0;
        width: 100%;
    }
    
    .auth-page {
        min-height: auto;
        padding: 0;
    }
    
    .auth-container {
        max-width: 100%;
        margin: 0 auto;
        padding: 30px 20px;
    }
    
    .auth-card .logo {
        font-size: 28px;
        margin-bottom: 15px;
    }
    
    .auth-card .tagline {
        margin-bottom: 25px;
        font-size: 13px;
    }
    
    /* Mobile account type selector */
    .account-type-options {
        grid-template-columns: 1fr;
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }
    
    .account-card {
        padding: 15px;
    }
    
    .card-icon {
        font-size: 28px;
    }
    
    .form-group {
        margin-bottom: 18px;
        width: 100%;
    }
    
    .form-group input,
    .form-group textarea {
        width: 100%;
        max-width: 100%;
        padding: 14px;
        font-size: 16px;
        min-height: 44px;
    }
    
    .page-footer {
        border-radius: 0;
        max-width: 100%;
        box-shadow: none;
    }
    
    .btn-block {
        width: 100%;
        max-width: 100%;
        padding: 14px 16px;
        font-size: 16px;
        min-height: 48px;
    }
    
    .text-center {
        font-size: 13px;
    }
    
    .divider {
        margin: 25px 0;
        font-size: 13px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 18px;
    }
}

/* App Layout */
.app-wrapper {
    display: grid;
    grid-template-columns: 260px 1fr 300px;
    min-height: 100vh;
    gap: 0;
}

@media (max-width: 1024px) {
    .app-wrapper {
        grid-template-columns: 200px 1fr 250px;
    }
}

@media (max-width: 768px) {
    .app-wrapper {
        grid-template-columns: 1fr;
        grid-template-rows: auto 1fr auto;
        gap: 0;
        background: #fafafa;
    }
}

.sidebar {
    background: white;
    border-right: 1px solid var(--border-color);
    padding: 20px;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    width: 100%;
}

@media (max-width: 768px) {
    .sidebar {
        position: fixed !important;
        bottom: 0 !important;
        top: auto !important;
        left: 0;
        right: 0;
        width: 100%;
        height: 60px !important;
        border-right: none;
        border-top: 1px solid #e5e5e5;
        padding: 0 !important;
        z-index: 1000;
        background: white;
        overflow: hidden !important;
        box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.06);
        scrollbar-width: none !important;
        -ms-overflow-style: none !important;
        clip-path: none;
        max-height: 60px;
        display: flex;
        align-items: center;
    }

    .sidebar .nav-brand {
        display: none !important;
    }

    .sidebar::-webkit-scrollbar {
        display: none !important;
        width: 0 !important;
        height: 0 !important;
    }
}


/* ============================================================ */
/* UNIFIED LOGO STYLING - DESKTOP, TABLET, MOBILE */
/* ============================================================ */

.nav-brand {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin: 0;
    padding: 0;
    height: 100%;
    width: 100%;
}

.logo-image {
    height: auto;
    width: auto;
    max-width: 100%;
    display: block;
    object-fit: fill;
    margin: 2px;
    padding: 2px;
}

.logo-text {
    display: none;
}

/* Show/hide based on logo type class output by getLogoHTML 
    color: var(--primary-color);
    -webkit-background-clip: initial;
    -webkit-text-fill-color: initial;
*/
.logo-type-text .logo-text {
    display: block;
    font-size: 20px;
    font-weight: 700;    
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.logo-type-text .logo-image {
    display: none !important;
}

/* Adjust text logo sizes per breakpoint */
@media (min-width: 769px) {
    .logo-type-text .logo-text {
        font-size: 22px;
    }
}

@media (max-width: 768px) {
    body > .nav-brand.logo-type-text .logo-text,
    .logo-type-text .logo-text {
        font-size: 18px;
    }
}
.logo-type-image .logo-image {
    display: block !important;
}
.logo-type-image .logo-text {
    display: none !important;
}

/* ============================================================ */
/* DESKTOP VIEW (>768px) - Logo in sidebar */
/* ============================================================ */
@media (min-width: 769px) {
    .nav-brand {
        position: static !important;
        top: auto;
        left: auto;
        right: auto;
        width: 100%;
        height: auto;
        background: transparent;
        border: none;
        box-shadow: none;
        z-index: auto;
        padding: 0;
        margin-bottom: 20px;
        padding: 10px 0;
        display: flex !important;
    }

    .logo-container {
        width: 100%;
        height: auto;
    }

    .logo-image {
        height: 85px;
        width: 200px;
        max-width: 100%;
    }

    /* Desktop: hide external top header (used on mobile) and ensure sidebar logo is visible */
    body > .nav-brand {
        display: none !important;
    }

    .sidebar .nav-brand {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 10px 0 !important;
    }
}

/* ============================================================ */
/* TABLET & MOBILE (<= 768px) - Logo at fixed top, hide in sidebar */
/* ============================================================ */
@media (max-width: 768px) {
    /* Hide the nav-brand inside the sidebar on mobile/tablet */
    .sidebar .nav-brand {
        display: none !important;
    }
    
    /* Show the external nav-brand at top */
    body > .nav-brand {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        height: 60px !important;
        background: white !important;
        border-bottom: 1px solid #e5e5e5 !important;
        z-index: 1001 !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06) !important;
        padding: 0 15px !important;
        box-sizing: border-box !important;
        margin: 0 !important;
        display: flex !important;
    }

    body > .nav-brand .logo-container {
        width: auto;
        height: 60px;
    }

    body > .nav-brand .logo-image {
        height: 64px;
        width: 185px;
        max-width: 100%;
    }
}



.nav-menu {
    list-style: none;
    margin-bottom: 15px;
}

.nav-menu li {
    margin-bottom: 15px;
}

.nav-menu a {
    display: block;
    padding: 12px 15px;
    color: var(--text-color);
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s;
}

@media (max-width: 768px) {
    .nav-menu-wrapper {
        position: relative;
        height: 60px;
        width: 100%;
        overflow: hidden !important;
        flex: 1;
        display: flex;
        align-items: center;
    }

    .nav-menu {
        display: flex;
        align-items: center;
        list-style: none;
        gap: 0;
        height: 60px;
        margin: 0;
        padding: 0 0 18px 0 !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
        position: relative;
        width: 100%;
        /* Hide scrollbar for all browsers */
        scrollbar-width: none !important;
        -ms-overflow-style: none !important;
    }

    /* Hide scrollbar for Chrome, Safari, Opera */
    .nav-menu::-webkit-scrollbar {
        display: none !important;
        width: 0 !important;
        height: 0 !important;
        background: transparent !important;
    }

    .nav-menu::-webkit-scrollbar-track {
        display: none !important;
        background: transparent !important;
    }

    .nav-menu::-webkit-scrollbar-thumb {
        display: none !important;
        background: transparent !important;
    }

    .nav-menu li {
        margin-bottom: 0;
        flex: 0 0 auto;
        min-width: 60px;
        height: 60px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .nav-menu a {
        padding: 8px 5px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 100%;
        height: 100%;
        border-radius: 0;
        text-decoration: none;
        color: #262626;
        transition: all 0.2s ease;
        gap: 0;
    }

    .nav-menu a i {
        font-size: 24px;
        display: block;
        color: #262626;
        transition: color 0.2s ease;
    }

    .nav-menu a span {
        display: none;
    }

    .nav-menu a:hover i {
        color: #000;
        transform: scale(1.1);
    }

    .nav-menu a.active i {
        color: var(--primary-color);
        font-weight: 900;
    }
}

.nav-menu a:hover,
.nav-menu a.active {
    background-color: var(--bg-light);
    color: var(--primary-color);
    font-weight: 500;
}

/* Mobile Navigation Scroll Buttons */
@media (max-width: 768px) {
    .sidebar {
        position: relative;
    }

    .nav-scroll-btn {
        position: absolute;
        top: 0;
        bottom: 0;
        width: 40px;
        background: white;
        border: none;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        color: var(--primary-color);
        font-size: 18px;
        z-index: 10;
        border-top: 1px solid #e5e5e5;
        transition: all 0.2s ease;
        padding: 0;
        box-shadow: inset 0 0 8px rgba(0, 0, 0, 0.05);
    }

    .nav-scroll-btn:active {
        background: #f5f5f5;
    }

    

    .nav-scroll-btn:disabled {
        opacity: 0.3;
        cursor: not-allowed;
    }

    .nav-menu-wrapper {
        position: relative;
        height: 60px;
        width: 100%;
    }
}

/* Nav Brand - Fixed at top for mobile only */
.nav-brand {
    display: block;
    margin-bottom: 20px;
}

/* Navigation Badge Styling */
.nav-badge {
    display: inline-block;
    position: relative;
    margin-left: 6px;
    padding: 2px 6px;
    background: var(--danger-color);
    color: white;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
    min-width: 20px;
    text-align: center;
    animation: pulse-badge 2s infinite;
}

/* Hide badge when display is set to none by JavaScript */
.nav-badge[style*="display: none"] {
    display: none !important;
}

@keyframes pulse-badge {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.15);
    }
}

.nav-badge:empty {
    display: none !important;
}

/* Main Content */
.main-content {
    background-color: white;
    overflow-y: auto;
    overflow-x: hidden;
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

@media (max-width: 768px) {
    .main-content {
        padding-bottom: 70px;
        padding-top: 80px;
        width: 100%;
        overflow-y: auto;
        background: #fafafa;
    }
}

.app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    background: white;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    width: 100%;
    box-sizing: border-box;
    /* allow dropdowns (search results) to overflow the header */
    overflow: visible;
}

.search-box {
    flex: 1;
    position: relative;
}

.search-box input {
    width: 100%;
    max-width: 250px;
    padding: 10px 15px;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    font-size: 13px;
}

#search-results {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    border: 1px solid var(--border-color);
    border-top: none;
    border-radius: 0 0 5px 5px;
    max-height: 300px;
    overflow-y: auto;
    width: 250px;
    display: none;
    z-index: 1102;
}

#search-results.active {
    display: block;
}

.search-result-item {
    padding: 12px 15px;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
}

.search-results-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    border: 1px solid var(--border-color);
    border-top: none;
    border-radius: 0 0 5px 5px;
    max-height: 300px;
    overflow-y: auto;
    width: 250px;
    display: none;
    z-index: 1102;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.search-results-title {
    padding: 10px 15px;
    font-size: 12px;
    font-weight: 600;
    color: var(--light-text);
    background-color: var(--bg-light);
    border-bottom: 1px solid var(--border-color);
}

.search-result-item:hover {
    background-color: var(--bg-light);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-info {
    font-size: 14px;
    color: var(--text-color);
    font-weight: 500;
}

.avatar {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    object-fit: cover;
}

.small-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

/* Feed Container */
.feed-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
}

@media (max-width: 768px) {
    .feed-container {
        max-width: 100%;
        padding: 8px 0;
    }
}

@media (max-width: 768px) {
    .feed-container {
        max-width: 100%;
        padding: 8px 0;
    }
}

/* Create Post Card */
.create-post-card {
    background: white;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.post-composer {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 15px;
    width: 100%;
    overflow: hidden;
    box-sizing: border-box;
}

.post-composer textarea {
    flex: 1;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-family: inherit;
    resize: vertical;
    min-height: 50px;
    width: 100%;
    max-width: 100%;
    overflow-y: auto;
}

.post-footer {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.post-actions-buttons {
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 15px 0;
    margin: 0 15px;
    justify-content: center;
}

.post-action-btn {
    padding: 11px 16px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.post-action-btn:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
}

.post-action-btn i {
    font-size: 16px;
}

.post-actions-buttons .file-input-label {
    cursor: pointer;
    color: white;
    font-size: 14px;
    transition: all 0.3s ease;
    padding: 8px 16px;
    background-color: var(--primary-color);
    border: none;
    border-radius: 5px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    white-space: nowrap;
}

.post-actions-buttons .file-input-label:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
}

.post-actions-buttons .file-input-label input[type="file"] {
    display: none;
}

/* Post Card */
.post-card {
    background: white;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    margin-bottom: 20px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    width: 100%;
    box-sizing: border-box;
}

/* Advertisement Card Styles */
.ad-card {
    background: white;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    margin-bottom: 20px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    width: 100%;
    box-sizing: border-box;
}

.ad-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    background: #f8f8f8;
    border-bottom: 1px solid #e5e5e5;
}

.ad-badge {
    font-size: 12px;
    color: #999;
    font-weight: 500;
}

.ad-close-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: #999;
    font-size: 18px;
    padding: 0;
    transition: color 0.2s ease;
}

.ad-close-btn:hover {
    color: #262626;
}

.ad-link {
    display: flex;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.ad-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
    background: #f5f5f5;
}

.ad-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ad-content {
    padding: 15px;
}

.ad-content h3 {
    margin: 0 0 8px 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-color);
}

.ad-content p {
    margin: 0;
    font-size: 13px;
    color: #666;
}

.ad-link:hover .ad-image img {
    opacity: 0.9;
}

/* Ad Type Variations */
.ad-card.ad-type-banner {
    margin-bottom: 20px;
}

.ad-card.ad-type-banner .ad-image {
    height: 150px;
}

.ad-card.ad-type-banner .ad-content {
    padding: 10px 15px;
}

.ad-card.ad-type-banner h3 {
    font-size: 14px;
}

.ad-card.ad-type-banner p {
    font-size: 12px;
}

.ad-card.ad-type-feed {
    margin-bottom: 20px;
}

.ad-card.ad-type-sponsored-post {
    margin-bottom: 20px;
}

.ad-card.ad-type-reel-overlay {
    position: absolute;
    bottom: 10px;
    left: 10px;
    right: 10px;
    width: auto;
    margin: 0;
}

.ad-card.ad-type-reel-overlay .ad-image {
    display: none;
}

.ad-card.ad-type-reel-overlay .ad-content {
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 10px 15px;
    border-radius: 8px;
}

.ad-card.ad-type-reel-overlay .ad-content h3 {
    color: white;
    margin: 0 0 5px 0;
    font-size: 14px;
}

.ad-card.ad-type-reel-overlay .ad-content p {
    color: #ddd;
    margin: 0;
    font-size: 12px;
}

.ad-card.ad-type-reel-overlay .ad-header {
    display: none;
}

@media (max-width: 768px) {
    .ad-card {
        border-radius: 0;
        margin-bottom: 8px;
        border-left: none;
        border-right: none;
        box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
    }
    
    .ad-image {
        height: 200px;
    }
}

@media (max-width: 768px) {
    .post-card {
        border-radius: 0;
        margin-bottom: 8px;
        border-left: none;
        border-right: none;
        box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
    }
}

.post-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid #e5e5e5;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.post-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.post-author h4 {
    margin: 0;
    font-size: 14px;
}

.post-author a {
    color: var(--text-color);
    text-decoration: none;
}

.post-author a:hover {
    color: var(--primary-color);
}

.post-author small {
    color: var(--light-text);
    display: block;
    font-size: 12px;
}

.post-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
    background: var(--bg-light);
}

.post-image:not([src]), 
.post-image[src=""] {
    display: none;
}

/* Image Gallery for Multiple Images */
/* Single post image - also clickable */
.post-image {
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.post-image:hover {
    transform: scale(1.02);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

.post-image:active {
    transform: scale(0.98);
}

/* Multiple Images Container */
.post-images-container {
    width: 100%;
    position: relative;
    background: var(--bg-light);
    overflow: hidden;
    border-radius: 8px;
}

.post-images-container .post-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
}

/* Add badge for multiple images */
.post-images-container:has(.post-image:nth-child(n+2)) {
    --has-multiple: true;
}

.post-images-container .post-image:nth-child(n+2) {
    display: none;
}

/* Mobile/Tablet - Increase image height for better aspect ratio */
@media (max-width: 768px) {
    .post-image {
        width: 100%;
        height: 500px;
        object-fit: cover;
        display: block;
    }
    
    .post-images-container .post-image {
        width: 100%;
        height: 500px;
        object-fit: cover;
        display: block;
    }
}

/* Desktop - Standard image height */
@media (min-width: 769px) {
    .post-image {
        width: 100%;
        height: 400px;
        object-fit: cover;
        display: block;
    }
    
    .post-images-container .post-image {
        width: 100%;
        height: 400px;
        object-fit: cover;
        display: block;
    }
}


.post-images-container:has(.post-image:nth-child(n+2))::before {
    content: '';
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    z-index: 10;
    pointer-events: none;
    width: auto;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.post-images-container:has(.post-image:nth-child(2)):before {
    content: '📷 2 images';
}

.post-images-container:has(.post-image:nth-child(3)):before {
    content: '📷 3 images';
}

.post-images-container:has(.post-image:nth-child(4)):before {
    content: '📷 4 images';
}

.post-images-container:has(.post-image:nth-child(5)):before {
    content: '📷 5+ images';
}

.image-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    gap: 8px;
    margin: 10px 15px;
    padding: 10px 0;
    width: calc(100% - 30px);
    max-width: 100%;
    box-sizing: border-box;
}

.image-preview-item {
    position: relative;
    width: 80px;
    height: 80px;
    border-radius: 4px;
    overflow: hidden;
}

.image-preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-preview-item .remove-image {
    position: absolute;
    top: 2px;
    right: 2px;
    background: rgba(0,0,0,0.7);
    color: white;
    border: none;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    cursor: pointer;
    font-size: 12px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-preview-item .remove-image:hover {
    background: rgba(0,0,0,0.9);
}

.post-content {
    padding: 15px;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.post-content p {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
}

.post-stats {
    padding: 10px 15px;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    font-size: 12px;
    color: var(--light-text);
}

.post-stats span {
    margin-right: 20px;
}

.post-actions {
    display: flex;
    gap: 0;
    padding: 10px;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.action-btn {
    flex: 1;
    padding: 10px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 13px;
    color: var(--light-text);
    transition: all 0.3s;
    border-radius: 0;
}

.action-btn:hover {
    color: var(--primary-color);
}

.action-btn.active {
    color: var(--danger-color);
}

.comments-section {
    padding: 15px;
    border-top: 1px solid var(--border-color);
    background: var(--bg-light);
}

.comments-list {
    max-height: 350px;
    overflow-y: auto;
    margin-bottom: 15px;
}

.comment-item {
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 13px;
    display: flex;
    gap: 10px;
}

.comment-item:last-child {
    border-bottom: none;
}

.comment-avatar {
    flex-shrink: 0;
}

.comment-avatar img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.comment-content {
    flex: 1;
}

.comment-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.comment-header strong {
    font-weight: 600;
    color: var(--text-color);
    font-size: 13px;
}

.comment-header small {
    color: var(--light-text);
    font-size: 12px;
}

.comment-text {
    margin: 6px 0;
    color: var(--text-color);
    word-break: break-word;
    line-height: 1.4;
}

.comment-time {
    color: var(--light-text);
    font-size: 12px;
    display: block;
}

.comment-loading,
.no-comments,
.comment-error {
    text-align: center;
    padding: 20px;
    color: var(--light-text);
    font-size: 13px;
}

.comment-error {
    color: var(--danger-color);
}

.comment-form {
    display: flex;
    gap: 8px;
    padding-top: 12px;
    border-top: 1px solid var(--border-color);
    align-items: center;
}

.comment-input {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 13px;
    font-family: inherit;
    transition: all 0.2s ease;
}

.comment-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.1);
}

.post-comment-input-wrapper {
    display: flex;
    gap: 13px;
    align-items: center;
    flex: 1;
    position: relative;
}

.comment-form button {
    padding: 8px 16px;
    font-size: 12px;
    white-space: nowrap;
    flex-shrink: 0;
    border: none;
    background: transparent;
    cursor: pointer;
}

.comment-form button[type="button"] {
    padding: 8px 10px !important;
    font-size: 18px !important;
    background: #f0f0f0 !important;
    border: 1px solid #ddd !important;
    width: auto !important;
    min-width: 36px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 36px !important;
    visibility: visible !important;
}

.comment-form button[type="button"]:hover {
    background: #e0e0e0 !important;
    border-color: #999 !important;
}

.comment-form button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

#load-more {
    width: 100%;
    margin-top: 20px;
}

/* Right Sidebar */
.right-sidebar {
    background: var(--bg-light);
    padding: 20px;
    border-left: 1px solid var(--border-color);
    overflow-y: auto;
    width: 280px;
    flex-shrink: 0;
    max-height: calc(100vh - 80px);
    position: sticky;
    top: 0;
}

@media (max-width: 768px) {
    .right-sidebar {
        display: none;
    }
}

.suggestions-card {
    background: white;
    border-radius: 8px;
    padding: 20px;
    border: 1px solid var(--border-color);
}

.suggestions-card h3 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 15px;
}

.suggestions-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.suggestion-item {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 12px;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: all 0.3s ease;
}

.suggestion-item:hover {
    background: #fff;
    border-color: var(--primary-color);
}

.suggestion-header {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.suggestion-header .small-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.suggestion-info {
    flex: 1;
    min-width: 0;
}

.suggestion-info strong {
    display: block;
    font-size: 13px;
    color: #000;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.suggestion-info small {
    display: block;
    font-size: 12px;
    color: #666;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.suggestion-bio {
    font-size: 12px;
    color: #666;
    line-height: 1.4;
    max-height: 40px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.suggestion-stats {
    font-size: 11px;
    color: #999;
    display: flex;
    justify-content: space-between;
}

.follow-btn-suggestion {
    width: 100%;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 6px;
    padding: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.follow-btn-suggestion:hover:not(:disabled) {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.follow-btn-suggestion:disabled {
    background: #ddd;
    cursor: not-allowed;
}

/* Profile Page */
.profile-header {
    background: white;
}

.cover-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.profile-info-section {
    display: flex;
    gap: 30px;
    padding: 30px;
    position: relative;
}

.profile-photo {
    flex-shrink: 0;
}

.profile-pic {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.profile-details {
    flex: 1;
}

.profile-details h1 {
    font-size: 32px;
    margin-bottom: 5px;
}

.username {
    color: var(--light-text);
    font-size: 14px;
    margin-bottom: 15px;
}

.bio {
    margin-bottom: 10px;
    font-size: 14px;
}

.location,
.website {
    font-size: 13px;
    color: var(--light-text);
    margin-bottom: 5px;
}

.website a {
    color: var(--primary-color);
    text-decoration: none;
}

.profile-stats {
    display: flex;
    gap: 30px;
    margin: 20px 0;
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-count {
    font-weight: 600;
    font-size: 18px;
}

.stat-label {
    font-size: 12px;
    color: var(--light-text);
}

.profile-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.profile-actions .btn {
    padding: 8px 20px;
}

/* Posts Grid */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    padding: 20px;
}

.post-grid-item {
    position: relative;
    overflow: hidden;
    border-radius: 5px;
    aspect-ratio: 1;
    cursor: pointer;
}

.post-grid-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.post-grid-item:hover img {
    transform: scale(1.05);
}

.post-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: space-around;
    align-items: center;
    color: white;
    opacity: 0;
    transition: opacity 0.3s;
}

.post-grid-item:hover .post-overlay {
    opacity: 1;
}

.no-posts {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px;
    color: var(--light-text);
}

/* Messages Page */
.messages-container {
    display: flex;
    height: calc(100vh - 60px);
}

.conversations-list {
    width: 300px;
    border-right: 1px solid var(--border-color);
    overflow-y: auto;
    padding: 15px;
}

.conversations-list h2 {
    font-size: 20px;
    margin-bottom: 15px;
}

.conversation-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.conversation-item:hover {
    background-color: var(--bg-light);
}

.conversation-info {
    flex: 1;
    min-width: 0;
}

.conversation-info h4 {
    margin: 0;
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.conversation-info p {
    margin: 5px 0 0;
    font-size: 12px;
    color: var(--light-text);
}

.chat-window {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.chat-header {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    border-bottom: 1px solid var(--border-color);
}

.back-btn {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
}

.messages-list {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.message {
    display: flex;
    max-width: 70%;
}

.message.sent {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.message-bubble {
    background: var(--bg-light);
    padding: 12px 15px;
    border-radius: 15px;
    font-size: 13px;
    word-wrap: break-word;
    max-width: 300px;
}

.message.sent .message-bubble {
    background: var(--primary-color);
    color: white;
}

.message-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    margin-top: 5px;
}

.message-time {
    font-size: 11px;
    color: var(--light-text);
    margin-top: 5px;
    display: block;
}

.message.received {
    align-items: flex-start;
}

.message.received .message-time {
    text-align: left;
    margin-left: 5px;
}

.message.sent {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.message.sent .message-time {
    text-align: right;
    margin-right: 5px;
}

.message-input-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 15px;
    border-top: 1px solid var(--border-color);
}

.message-input-wrapper {
    display: flex;
    gap: 10px;
    align-items: center;
}

#message-input {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    font-size: 13px;
}

.message-input-wrapper .file-input-label {
    cursor: pointer;
    font-size: 18px;
    padding: 8px 12px;
    border-radius: 50%;
    background-color: var(--bg-light);
    transition: background-color 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.message-input-wrapper .file-input-label:hover {
    background-color: #f0f0f0;
}

.file-preview {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.file-preview-item {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px;
    background-color: var(--bg-light);
    border-radius: 5px;
    max-width: 150px;
}

.remove-file-btn {
    background: none;
    border: none;
    color: var(--danger-color);
    cursor: pointer;
    padding: 0;
    font-size: 12px;
}

.remove-file-btn:hover {
    text-decoration: underline;
}

.message-attachment {
    max-width: 200px;
    border-radius: 5px;
    margin-top: 8px;
}

.message-file {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 12px;
    display: inline-block;
    padding: 5px 10px;
    background-color: var(--bg-light);
    border-radius: 5px;
    margin-top: 5px;
}

.message-file:hover {
    text-decoration: underline;
}

/* Users Grid (Explore) */
.users-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    padding: 20px;
}

.user-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    text-align: center;
    transition: transform 0.3s;
}

.user-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.user-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.user-card h4 {
    margin: 15px 0 5px;
}

.user-card p {
    font-size: 13px;
    color: var(--light-text);
    margin-bottom: 15px;
}

.user-card-actions {
    display: flex;
    gap: 10px;
    padding: 15px;
}

.user-card-actions button,
.user-card-actions a {
    flex: 1;
    padding: 8px;
    font-size: 12px;
}

/* Notifications */
.notifications-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
}

.notifications-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.notification-item {
    display: flex;
    gap: 12px;
    padding: 15px;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    transition: background-color 0.3s;
}

.notification-item:hover {
    background-color: var(--bg-light);
}

.notification-content {
    flex: 1;
}

.notification-content p {
    margin: 0;
    font-size: 14px;
}

.notification-content small {
    color: var(--light-text);
}

.no-notifications {
    text-align: center;
    padding: 40px 20px;
    color: var(--light-text);
}

.no-messages {
    text-align: center;
    padding: 40px 20px;
    color: var(--light-text);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .feed-container-wrapper {
        gap: 15px;
        padding: 0 15px;
    }
    
    .right-sidebar {
        width: 250px;
    }
    
    .posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .feed-container-wrapper {
        flex-direction: column;
        gap: 0;
        padding: 0;
        max-width: 100%;
    }
    
    .right-sidebar {
        display: none;
    }
    
    .posts-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .feed-container {
        padding: 8px 0;
    }

    .search-box {
        flex: 1;
        position: relative;
    }

    .search-box input {
        width: 100%;
        max-width: 100%;
        padding: 8px 12px;
        border: 1px solid #e5e5e5;
        border-radius: 20px;
        font-size: 13px;
        background: #f5f5f5;
    }

    .search-box input:focus {
        background: white;
        border-color: #262626;
    }

    .header-actions {
        display: flex;
        gap: 8px;
        align-items: center;
    }

    .user-info {
        display: none;
    }

    .avatar {
        width: 32px;
        height: 32px;
        border-radius: 50%;
        object-fit: cover;
        border: 1px solid #e5e5e5;
    }

    .profile-info-section {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .messages-container {
        flex-direction: column;
    }

    .conversations-list {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #e5e5e5;
        max-height: 200px;
    }

    .users-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .form-row {
        grid-template-columns: 1fr;
    }
}



    .main-content {
        padding-bottom: 70px;
        padding-top: 50px;
    }

    .feed-container {
        padding: 8px;
        max-width: 100%;
        margin: 0;
    }

    .post-card {
        border-left: none;
        border-right: none;
        border-radius: 0;
        margin-bottom: 8px;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    }

    .posts-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    /* explore.php due to this streching
    .users-grid {
        grid-template-columns: 1fr;
    } */

    .profile-pic {
        width: 100px;
        height: 100px;
    }

    .profile-stats {
        gap: 15px;
    }

    .app-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 40px;
        background: white;
        padding: 15px 15px 15px 15px;
    }

    .search-box {
        flex: 1;
        position: relative;
    }

    .search-box input {
        width: 100%;
        max-width: 100%;
        padding: 8px 12px;
        border: 1px solid #e5e5e5;
        border-radius: 20px;
        font-size: 13px;
        background: #f5f5f5;
    }

    .create-post-card {
        border-radius: 0;
        margin-bottom: 0;
        border-left: none;
        border-right: none;
        box-shadow: none;
        border-bottom: 1px solid #e5e5e5;
    }

    .nav-menu {
        gap: 0;
    }

    .nav-menu li {
        flex: 1;
    }

    .nav-menu a {
        padding: 8px 3px;
        font-size: 16px;
    }

    .nav-menu a i {
        font-size: 22px;
    }

    .stories-container {
        padding: 10px 8px;
        gap: 10px;
    }

    .story-item {
        min-width: 70px;
    }
}
/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    backdrop-filter: blur(4px);
}

.edit-profile-modal {
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    max-width: 500px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    padding: 24px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    background: white;
    z-index: 10;
}

.modal-header h2 {
    font-size: 22px;
    font-weight: 600;
    color: var(--text-color);
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--light-text);
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.modal-close:hover {
    color: var(--text-color);
    transform: scale(1.1);
}

.edit-profile-form {
    padding: 24px;
}

.profile-pic-section {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    padding: 20px;
    background: var(--bg-light);
    border-radius: 10px;
}

.pic-preview-wrapper {
    position: relative;
    flex-shrink: 0;
}

.pic-preview {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.pic-upload-label {
    position: absolute;
    bottom: 0;
    right: 0;
    background: var(--primary-color);
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.pic-upload-label:hover {
    background: var(--secondary-color);
    transform: scale(1.1);
}

.pic-info h4 {
    margin: 0 0 5px 0;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-color);
}

.pic-info p {
    margin: 0;
    font-size: 13px;
    color: var(--light-text);
}

.cover-pic-section {
    margin-bottom: 30px;
}

.cover-preview-wrapper {
    position: relative;
    height: 200px;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.cover-preview {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.cover-upload-label {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(102, 126, 234, 0.95);
    color: white;
    padding: 8px 16px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 13px;
    font-weight: 500;
}

.cover-upload-label:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

.form-section {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-color);
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-family: inherit;
    font-size: 14px;
    color: var(--text-color);
    transition: all 0.2s ease;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-textarea {
    resize: vertical;
    min-height: 100px;
}

.char-count {
    font-size: 12px;
    color: var(--light-text);
    margin-top: 6px;
    text-align: right;
}

.input-icon {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon svg {
    position: absolute;
    left: 14px;
    color: var(--light-text);
    pointer-events: none;
}

.input-icon .form-input {
    padding-left: 40px;
}

.form-row-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.modal-actions {
    display: flex;
    gap: 12px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

/* ===== IMAGE LIGHTBOX WITH ZOOM ===== */
#image-lightbox {
    position: fixed !important;
    inset: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: rgba(0, 0, 0, 0.95) !important;
    display: none !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    z-index: 99999 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
}

#image-lightbox[style*="display: flex"],
#image-lightbox[style*="display:flex"],
#image-lightbox.lightbox-visible {
    display: flex !important;
}

.lightbox-overlay {
    position: fixed !important;
    inset: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: rgba(0, 0, 0, 0.95) !important;
    display: none !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    z-index: 99999 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
}

.lightbox-overlay[style*="display: flex"],
.lightbox-overlay[style*="display:flex"],
.lightbox-overlay.lightbox-visible {
    display: flex !important;
}

.lightbox-overlay[style] {
    display: flex !important;
}

.lightbox-container {
    position: relative !important;
    width: 90% !important;
    height: 90% !important;
    max-width: 1000px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
}

.lightbox-image-wrapper {
    position: relative !important;
    width: 100% !important;
    height: 100% !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    overflow: hidden !important;
    border-radius: 8px !important;
    background: rgba(0, 0, 0, 0.5) !important;
}

.lightbox-image {
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: contain !important;
    cursor: grab !important;
    user-select: none !important;
    transition: transform 0.3s ease !important;
}

.lightbox-image:active {
    cursor: grabbing;
}

/* Image counter */
.lightbox-counter {
    position: absolute;
    bottom: 15px;
    left: 15px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
}

/* Controls (Zoom buttons) */
.lightbox-controls {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    background: rgba(0, 0, 0, 0.7);
    padding: 10px;
    border-radius: 30px;
    z-index: 10001;
}

.lightbox-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.lightbox-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.1);
}

.lightbox-btn:active {
    transform: scale(0.95);
}

/* Navigation arrows */
.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10001;
}

.lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-50%) scale(1.1);
}

.lightbox-nav:active {
    transform: translateY(-50%) scale(0.95);
}

.lightbox-nav-prev {
    left: 20px;
}

.lightbox-nav-next {
    right: 20px;
}

/* Close button */
.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10001;
}

.lightbox-close:hover {
    background: rgba(255, 50, 50, 0.3);
    border-color: rgba(255, 100, 100, 0.5);
    transform: scale(1.15) rotate(90deg);
}

.lightbox-close:active {
    transform: scale(1.05) rotate(90deg);
}

/* Responsive design for lightbox */
@media (max-width: 768px) {
    .lightbox-nav {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
    
    .lightbox-nav-prev {
        left: 10px;
    }
    
    .lightbox-nav-next {
        right: 10px;
    }
    
    .lightbox-close {
        width: 40px;
        height: 40px;
        font-size: 20px;
        top: 10px;
        right: 10px;
    }
    
    .lightbox-controls {
        bottom: 10px;
        padding: 8px;
        gap: 5px;
    }
    
    .lightbox-btn {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }
    
    .lightbox-counter {
        bottom: 60px;
        left: 10px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .lightbox-container {
        width: 95%;
        height: 95%;
    }
    
    .lightbox-btn {
        width: 32px;
        height: 32px;
        font-size: 13px;
    }
}
.btn-secondary {
    background-color: var(--bg-light);
    color: var(--text-color);
    border: 1px solid var(--border-color);
    flex: 1;
}

.btn-secondary:hover {
    background-color: #f0f0f0;
    border-color: var(--text-color);
}

.modal-actions .btn-primary {
    flex: 1;
}

/* Scrollbar Styling */
.edit-profile-modal::-webkit-scrollbar {
    width: 8px;
}

.edit-profile-modal::-webkit-scrollbar-track {
    background: transparent;
}

.edit-profile-modal::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

.edit-profile-modal::-webkit-scrollbar-thumb:hover {
    background: var(--light-text);
}

@media (max-width: 600px) {
    .edit-profile-modal {
        width: 95%;
        max-height: 90vh;
    }

    .modal-header {
        padding: 18px;
    }

    .edit-profile-form {
        padding: 18px;
    }
}

/* ===== PHRASE LEARNING CAROUSEL ===== */
.page-title {
    margin-bottom: 30px;
}

.page-title h1 {
    font-size: 28px;
    margin-bottom: 5px;
    color: var(--text-color);
}

.page-title p {
    color: var(--light-text);
    font-size: 14px;
}

.learn-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Filter Section */
.filter-section {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    justify-content: center;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 20px;
    border: 2px solid var(--border-color);
    background: white;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 500;
    color: var(--text-color);
    transition: all 0.3s ease;
}

.filter-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.filter-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Carousel Container */
.carousel-container {
    position: relative;
    background: white;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 40px;
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.carousel-wrapper {
    overflow: hidden;
    width: 100%;
    border-radius: 8px;
}

.carousel-track {
    display: flex;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    gap: 20px;
}

/* Carousel Cards */
.carousel-card {
    flex: 0 0 100%;
    display: flex !important;
    flex-direction: column;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    padding: 40px;
    color: white;
    min-height: 350px;
    justify-content: space-between;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.carousel-card:nth-child(even) {
    background: linear-gradient(135deg, #764ba2 0%, #f093fb 100%);
    box-shadow: 0 10px 30px rgba(118, 75, 162, 0.3);
}

.carousel-card:nth-child(3n) {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    box-shadow: 0 10px 30px rgba(79, 172, 254, 0.3);
}

.card-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 30px;
}

.card-english, .card-equivalent {
    flex: 1;
}

.card-english .label, .card-equivalent .label {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.8;
    margin-bottom: 8px;
}

.card-english h2, .card-equivalent h2 {
    font-size: 28px;
    margin: 0;
    font-weight: 600;
}

.card-arrow {
    font-size: 32px;
    font-weight: bold;
    opacity: 0.8;
    min-width: fit-content;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    padding: 15px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.card-category {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.9;
    background: rgba(255, 255, 255, 0.1);
    padding: 4px 10px;
    border-radius: 12px;
}

.card-difficulty {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.2);
}

.difficulty-easy {
    background: rgba(39, 174, 96, 0.3);
}

.difficulty-medium {
    background: rgba(230, 126, 34, 0.3);
}

.difficulty-hard {
    background: rgba(231, 76, 60, 0.3);
}

.card-description {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 14px;
    opacity: 0.9;
    line-height: 1.5;
}

.card-description p {
    margin: 0;
}

/* Carousel Navigation */
.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary-color);
    border: none;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 100;
}

.carousel-nav:hover:not(:disabled) {
    background: var(--secondary-color);
    transform: translateY(-50%) scale(1.1);
}

.carousel-nav:active {
    transform: translateY(-50%) scale(0.95);
}

.carousel-nav-prev {
    left: -70px;
}

.carousel-nav-next {
    right: -70px;
}

/* Stats Section */
.carousel-stats {
    text-align: center;
    margin: 30px 0;
}

.carousel-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    font-size: 14px;
    color: var(--text-color);
}

.progress-bar {
    flex-grow: 1;
    max-width: 300px;
    height: 4px;
    background: var(--border-color);
    border-radius: 2px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transition: width 0.4s ease;
}

/* Tips Section */
.tips-section {
    background: #f0f7ff;
    border-left: 4px solid var(--primary-color);
    padding: 20px;
    border-radius: 8px;
    margin-top: 40px;
}

.tips-section h3 {
    margin-top: 0;
    color: var(--text-color);
    font-size: 16px;
}

.tips-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tips-section li {
    padding: 8px 0;
    color: var(--text-color);
    font-size: 14px;
}

.tips-section li:before {
    content: '';
    display: inline;
}

/* Progress Stats (Right Sidebar) */
.progress-stats {
    padding: 15px 0;
}

.progress-stats p {
    margin: 10px 0;
    font-size: 13px;
    color: var(--text-color);
}

.progress-stats strong {
    color: var(--primary-color);
}

/* Responsive Carousel */
@media (max-width: 768px) {
    .carousel-container {
        padding: 20px;
    }

    .carousel-card {
        min-height: 300px;
        padding: 25px;
    }

    .card-content {
        flex-direction: column;
        gap: 20px;
    }

    .card-english h2, .card-equivalent h2 {
        font-size: 22px;
    }

    .card-arrow {
        transform: rotate(90deg);
        font-size: 24px;
    }

    .carousel-nav {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }

    .carousel-nav-prev {
        left: 10px;
    }

    .carousel-nav-next {
        right: 10px;
    }

    .filter-section {
        gap: 8px;
    }

    .filter-btn {
        padding: 8px 15px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .carousel-container {
        padding: 15px;
    }

    .carousel-card {
        min-height: 280px;
        padding: 20px;
    }

    .card-english h2, .card-equivalent h2 {
        font-size: 18px;
    }

    .card-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .carousel-nav {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .page-title h1 {
        font-size: 22px;
    }

    /* Fix message input form on mobile */
    .messages-container {
        display: flex;
        flex-direction: column;
        height: 100%;
        width: 100%;
    }

    .conversations-list {
        flex: 1;
        overflow-y: auto;
        width: 100%;
    }

    .messages-list {
        width: 100%;
        overflow-y: auto;
        flex: 1;
        /* ensure content above fixed input and bottom nav */
        margin-bottom: 140px; /* input (approx 70px) + nav (60px) + spacing */
    }

    .file-preview {
        width: 100%;
    }

    .message-input-form {
        /* Fixed above the bottom navigation on mobile */
        position: fixed;
        left: 0;
        right: 0;
        bottom: 60px; /* height of the bottom nav */
        display: flex !important;
        flex-direction: row !important;
        align-items: center;
        gap: 8px;
        padding: 10px;
        background: white;
        border-top: 1px solid var(--border-color);
        width: 100%;
        box-sizing: border-box;
        flex-shrink: 0;
        z-index: 1002;
    }

    .message-input-wrapper {
        display: flex !important;
        flex: 1;
        gap: 5px;
        align-items: center;
        width: 100%;
    }

    #message-input {
        flex: 1;
        padding: 8px 12px;
        font-size: 12px;
        min-width: 0;
    }

    .message-input-form .btn-primary {
        padding: 8px 15px;
        font-size: 12px;
        min-width: 70px;
        white-space: nowrap;
        flex-shrink: 0;
    }

    .message-input-form .emoji-picker-toggle,
    .message-input-form .file-input-label {
        flex-shrink: 0;
        font-size: 16px;
        padding: 6px 8px;
    }

    .profile-pic-section {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .form-row-2col {
        grid-template-columns: 1fr;
    }

    .modal-actions {
        flex-direction: column;
    }

    .modal-actions .btn {
        width: 100%;
    }
}

/* ========== REELS STYLING ========== */

/* Reels Header */
.reels-header {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 20px;
}

.reels-header h2 {
    margin: 0;
    font-size: 24px;
}

.reels-header .btn {
    white-space: nowrap;
    flex-shrink: 0;
    padding: 8px 16px;
    font-size: 13px;
}

/* Reels Grid */
.reels-feed-container {
    max-width: 800px;
    margin: 0 auto;
}

@media (max-width: 1024px) {
    .reels-feed-container {
        max-width: 700px;
    }
}

@media (max-width: 768px) {
    .reels-feed-container {
        max-width: 100%;
    }
}

.reels-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Reel Card - Similar to Post Card */
.reel-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
}

.reel-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid var(--border-color);
    width: 550px;
}

.btn-follow-reel {
    padding: 8px 16px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-follow-reel:hover {
    background: var(--primary-color-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-follow-reel:active {
    transform: translateY(0);
}

.btn-follow-reel.following {
    background: transparent;
    color: var(--light-text);
    border: 1px solid var(--border-color);
}

.btn-follow-reel.following:hover {
    background: var(--bg-secondary);
}

.reel-card-author {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}

.reel-card-author:hover {
    opacity: 0.8;
}

.reel-card-avatar,
.reel-author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.reel-card-info h4 {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-color);
}

.reel-card-info small {
    color: var(--light-text);
    display: block;
    font-size: 12px;
    margin-top: 2px;
}

/* Video Container */
.reel-video-container {
    position: relative;
    width: 100%;
    background: #000;
    aspect-ratio: 9 / 16;
    max-height: 600px;
}

.reel-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    background: #000;
}

/* Video Overlay Actions */
.reel-video-overlay-actions {
    position: absolute;
    right: 12px;
    bottom: 60px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 10;
}

.reel-overlay-action-btn {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.25) 0%, rgba(255, 255, 255, 0.10) 100%);
    border: 1.5px solid rgba(255, 255, 255, 0.35);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(12px);
    font-size: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.reel-overlay-action-btn:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.35) 0%, rgba(255, 255, 255, 0.20) 100%);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-4px) scale(1.08);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.reel-overlay-action-btn:active {
    transform: translateY(-2px) scale(0.98);
}

.reel-overlay-action-btn .action-icon {
    font-size: 24px;
    display: block;
    transition: transform 0.3s ease;
}

.reel-overlay-action-btn:hover .action-icon {
    transform: scale(1.15);
}

.reel-overlay-action-btn .action-count {
    font-size: 12px;
    display: block;
    line-height: 1;
    font-weight: 600;
    opacity: 0.9;
}

/* Reel Caption */
.reel-caption-container {
    padding: 15px;
    border-top: 1px solid var(--border-color);
}


.reel-caption {
    font-size: 14px;
    line-height: 1.5;
    color: var(--text-color);
    margin: 0 0 10px 0;
}

/* Reel Actions (Like, Comment, Share) */
/* Video Controls */
.reel-video-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: linear-gradient(to top, rgba(0,0,0,0.4), transparent);
    opacity: 0;
    transition: opacity 0.2s;
}

.reel-video-container:hover .reel-video-controls {
    opacity: 1;
}

.reel-progress-bar {
    flex: 1;
    height: 3px;
    background: rgba(255,255,255,0.3);
    border-radius: 2px;
    cursor: pointer;
}

.reel-progress-bar-fill {
    height: 100%;
    background: white;
    border-radius: 2px;
    width: 0%;
}

.reel-control-btn {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 12px;
    transition: transform 0.2s;
}

.reel-control-btn:hover {
    transform: scale(1.1);
}



/* Reels Upload Modal */
.reel-upload-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    padding: 20px;
    backdrop-filter: blur(5px);
}

.reel-upload-content {
    background: white;
    border-radius: 16px;
    width: 100%;
    max-width: 500px;
    padding: 30px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reel-upload-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
}

.upload-video-area {
    border: 2px dashed var(--border-color);
    border-radius: 8px;
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    margin-bottom: 20px;
}

.upload-video-area:hover {
    border-color: var(--primary-color);
    background: rgba(0,149,255,0.05);
}

.upload-video-area i {
    font-size: 48px;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.upload-video-text {
    font-size: 14px;
    color: var(--light-text);
}

#reel-video-input {
    display: none;
}

.reel-caption-input {
    width: 100%;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 12px;
    font-size: 14px;
    margin-bottom: 20px;
    font-family: inherit;
}

.reel-upload-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.reel-upload-actions .btn {
    padding: 10px 20px;
}

/* ========== REEL CAMERA MODAL ========== */
.reel-camera-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.95);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1001;
    padding: 20px;
    backdrop-filter: blur(5px);
}

.reel-camera-content {
    background: white;
    border-radius: 16px;
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 30px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    animation: slideUp 0.3s ease;
}

.reel-camera-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
    text-align: center;
}

.camera-preview-section {
    position: relative;
    width: 100%;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 20px;
}

.camera-video {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    display: block;
}

.camera-controls {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    z-index: 10;
    width: 90%;
}

.camera-filters-container {
    display: flex;
    align-items: center;
    gap: 4px;
    width: 100%;
    max-width: 100%;
    transition: all 0.3s ease;
}

.camera-filters-container.hidden {
    display: none;
}

.camera-filters-section {
    display: flex;
    gap: 6px;
    background: transparent;
    padding: 8px 4px;
    border-radius: 8px;
    backdrop-filter: none;
    overflow-x: auto;
    scroll-behavior: smooth;
    flex: 1;
    /* Hide scrollbar but keep scrolling functional */
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.camera-filters-section::-webkit-scrollbar {
    display: none;
}

.filter-scroll-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid transparent;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
    font-size: 14px;
    padding: 0;
}

.filter-scroll-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.filter-scroll-btn:active {
    background: rgba(255, 255, 255, 0.4);
}

.filter-btn {
    padding: 5px 10px;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid transparent;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    font-size: 11px;
    font-weight: 500;
    transition: all 0.3s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.filter-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.filter-btn.active {
    background: var(--primary-color);
    border-color: white;
}

.filter-toggle-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid transparent;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
    font-size: 16px;
    padding: 0;
}

.filter-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.filter-toggle-btn:active {
    background: rgba(255, 255, 255, 0.4);
}

.filter-btn.active {
    background: var(--primary-color);
    border-color: white;
}

.camera-btn {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    border: 3px solid white;
    background: transparent;
    color: white;
    font-size: 28px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: none;
}

.camera-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.05);
}

.camera-btn.recording {
    background: rgba(255, 0, 0, 0.3);
    border-color: white;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(255, 0, 0, 0.2);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(255, 0, 0, 0);
    }
}

.camera-buttons-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.recording-timer {
    color: white;
    font-size: 18px;
    font-weight: bold;
    min-width: 60px;
    text-align: center;
    font-family: 'Courier New', monospace;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.camera-device-switcher {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 10;
}

.camera-device-select {
    padding: 8px 12px;
    border: none;
    border-radius: 8px;
    background: rgba(255,255,255,0.9);
    color: #000;
    cursor: pointer;
    font-size: 13px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.camera-device-select:hover {
    background: white;
}

.camera-switch-btn {
    padding: 8px 12px;
    border: 2px solid white;
    border-radius: 8px;
    background: rgba(255,255,255,0.2);
    color: white;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.camera-switch-btn:hover {
    background: rgba(255,255,255,0.3);
    transform: scale(1.1);
}

.camera-switch-btn:active {
    background: rgba(255,255,255,0.4);
    transform: scale(0.95);
}

.video-preview-section {
    width: 100%;
    margin-bottom: 20px;
}

.preview-video {
    width: 100%;
    height: auto;
    background: #000;
    border-radius: 12px;
    margin-bottom: 15px;
}

.camera-caption-input {
    width: 100%;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 12px;
    font-size: 14px;
    margin-bottom: 15px;
    font-family: inherit;
}

.camera-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.camera-actions .btn {
    padding: 10px 20px;
}

.camera-modal-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
}

.reel-header-actions {
    display: flex;
    gap: 10px;
}

/* ========== POST CAMERA MODAL ========== */
.post-camera-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.95);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1001;
    padding: 20px;
    backdrop-filter: blur(5px);
}

.post-camera-content {
    background: white;
    border-radius: 16px;
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 30px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    animation: slideUp 0.3s ease;
}

.post-camera-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
    text-align: center;
}

.camera-capture-btn {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    border: 3px solid white;
    background: transparent;
    color: white;
    font-size: 28px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: none;
    margin-top: 8px;
}

.camera-capture-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.05);
}

.camera-capture-btn:active {
    background: rgba(255, 255, 255, 0.15);
}

.photo-preview-section {
    width: 100%;
    margin-bottom: 20px;
}

.preview-canvas {
    width: 100%;
    height: auto;
    background: #000;
    border-radius: 12px;
    margin-bottom: 15px;
}

.photo-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.photo-actions .btn {
    padding: 10px 20px;
}

/* ========== REEL COMMENTS MODAL ========== */
.reel-comments-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.8);
    display: flex;
    justify-content: flex-end;
    z-index: 1000;
    padding: 0;
    backdrop-filter: blur(5px);
}

.reel-comments-content {
    background: white;
    width: 100%;
    max-width: 400px;
    height: 100%;
    display: flex;
    flex-direction: column;
    animation: slideInRight 0.3s ease;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.reel-comments-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
}

.reel-comments-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.reel-comments-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-color);
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.reel-comments-close:hover {
    color: var(--primary-color);
}

.reel-comments-list {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.reel-comment-item {
    display: flex;
    gap: 12px;
}

.reel-comment-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.reel-comment-content {
    flex: 1;
}

.reel-comment-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.reel-comment-author {
    font-weight: 600;
    font-size: 13px;
    margin: 0;
    color: var(--text-color);
}

.reel-comment-time {
    font-size: 12px;
    color: var(--light-text);
    margin: 0;
}

.reel-comment-text {
    font-size: 13px;
    color: var(--text-color);
    margin: 0;
    word-wrap: break-word;
    line-height: 1.4;
}

.reel-comments-input-section {
    padding: 15px 20px;
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 10px;
    align-items: flex-end;
}

.reel-comment-input-wrapper {
    display: flex;
    gap: 8px;
    align-items: center;
    flex: 1;
    position: relative;
}

.reel-comment-input {
    flex: 1;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 10px 15px;
    font-size: 14px;
    font-family: inherit;
    outline: none;
    transition: all 0.2s;
}

.reel-comment-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(0,149,255,0.1);
}

.reel-comment-submit-btn {
    background: var(--primary-color);
    border: none;
    color: white;
    padding: 10px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
    font-size: 13px;
    transition: all 0.2s;
}

.reel-comment-submit-btn:hover {
    background: #0085cc;
    transform: scale(1.05);
}

/* Responsive */
@media (max-width: 768px) {
    .reel-actions {
        bottom: 120px;
        right: 10px;
    }
    
    .reel-overlay {
        padding: 15px;
    }
    
    .reel-caption {
        margin-bottom: 100px;
        font-size: 13px;
    }
    
    .reel-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .btn-follow-reel {
        align-self: flex-start;
    }
    
    .reel-volume-slider {
        top: auto;
        bottom: 140px;
        width: 35px;
        height: 100px;
    }
    
    /* Mobile responsive for reel cards */
    .reels-feed-container {
        padding: 15px;
    }
    
    .reels-grid {
        grid-template-columns: 1fr;
    }
    
    .reel-card {
        margin: 0 auto;
        max-width: 100%;
    }
    
    .reel-card-header {
        padding: 12px;
    }
    
    .reel-card-author {
        gap: 8px;
    }
    
    .reel-author-avatar {
        width: 36px;
        height: 36px;
        border-radius: 50%;
        object-fit: cover;
        flex-shrink: 0;
    }
    
    .reel-author-info p {
        font-size: 13px;
    }
    
    .reel-overlay-action-btn {
        width: 45px;
        height: 45px;
    }
    
    .reel-overlay-action-btn .action-icon {
        font-size: 20px;
    }
    
    .reel-overlay-action-btn .action-count {
        font-size: 11px;
    }
    
    /* Mobile responsive for comments modal */
    .reel-comments-content {
        max-width: 100%;
    }
    
    .reel-comments-header {
        padding: 15px;
    }
    
    .reel-comment-input {
        padding: 8px 12px;
        font-size: 13px;
    }
    
    .reel-comment-submit-btn {
        padding: 8px 15px;
    }
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    pointer-events: none;
}

.toast {
    background-color: white;
    border-radius: 8px;
    padding: 16px 20px;
    margin-bottom: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 12px;
    pointer-events: auto;
    animation: slideInRight 0.3s ease-out;
    min-width: 300px;
    border-left: 4px solid var(--primary-color);
}

.toast.success {
    border-left-color: var(--success-color);
}

.toast.success .toast-icon {
    color: var(--success-color);
}

.toast.error {
    border-left-color: var(--danger-color);
}

.toast.error .toast-icon {
    color: var(--danger-color);
}

.toast-icon {
    font-size: 20px;
    font-weight: bold;
}

.toast-content {
    flex: 1;
    color: var(--text-color);
    font-size: 14px;
}

.toast-close {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--light-text);
    font-size: 18px;
    padding: 0;
    line-height: 1;
}

.toast-close:hover {
    color: var(--text-color);
}

@keyframes slideInRight {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(400px);
        opacity: 0;
    }
}

.toast.removing {
    animation: slideOutRight 0.3s ease-in forwards;
}

@media (max-width: 600px) {
    .toast-container {
        top: 10px;
        right: 10px;
        left: 10px;
    }

    .toast {
        min-width: auto;
        width: 100%;
    }
}

/* User Status Text */
.user-status-text {
    display: block;
    color: var(--light-text);
    font-size: 11px;
    margin-top: 3px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Status System Styles */
/* Status Indicator Badge */
.status-indicator {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-left: 6px;
    border: 2px solid white;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.1);
}

.status-indicator.online {
    background-color: var(--status-online);
}

.status-indicator.offline {
    background-color: var(--status-offline);
}

.status-indicator.away {
    background-color: var(--status-away);
}

.status-indicator.dnd {
    background-color: var(--status-dnd);
}

/* Status Badge on Profile */
.profile-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: white;
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    margin-top: 8px;
    border: 1px solid var(--border-color);
}

.profile-status-badge .status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.profile-status-badge.online .status-dot {
    background-color: var(--status-online);
}

.profile-status-badge.offline .status-dot {
    background-color: var(--status-offline);
}

.profile-status-badge.away .status-dot {
    background-color: var(--status-away);
}

.profile-status-badge.dnd .status-dot {
    background-color: var(--status-dnd);
}

/* Status Update Modal */
.status-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.status-modal.active {
    display: flex;
}

.status-modal-content {
    background-color: white;
    border-radius: 12px;
    padding: 30px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.status-modal-header {
    margin-bottom: 20px;
}

.status-modal-header h2 {
    font-size: 20px;
    color: var(--text-color);
}

.status-modal-header p {
    color: var(--light-text);
    font-size: 13px;
    margin-top: 5px;
}

/* Status Options */
.status-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 20px;
}

.status-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: white;
}

.status-option:hover {
    border-color: var(--primary-color);
    background-color: #f9f9f9;
}

.status-option.active {
    border-color: var(--primary-color);
    background-color: #f0f4ff;
}

.status-option input[type="radio"] {
    display: none;
}

.status-option-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
}

.status-option.online .status-option-dot {
    background-color: var(--status-online);
}

.status-option.offline .status-option-dot {
    background-color: var(--status-offline);
}

.status-option.away .status-option-dot {
    background-color: var(--status-away);
}

.status-option.dnd .status-option-dot {
    background-color: var(--status-dnd);
}

.status-option-label {
    font-weight: 500;
    color: var(--text-color);
    font-size: 14px;
}

/* Status Message Input */
.status-message-group {
    margin-bottom: 20px;
}

.status-message-group label {
    display: block;
    font-weight: 500;
    color: var(--text-color);
    margin-bottom: 8px;
    font-size: 14px;
}

.status-message-input {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
    min-height: 60px;
}

.status-message-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.status-message-count {
    font-size: 12px;
    color: var(--light-text);
    margin-top: 5px;
}

/* Status Modal Buttons */
.status-modal-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.status-modal-buttons .btn {
    padding: 10px 20px;
    font-size: 14px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.status-modal-buttons .btn-cancel {
    background-color: var(--border-color);
    color: var(--text-color);
}

.status-modal-buttons .btn-cancel:hover {
    background-color: #c4c4c4;
}

.status-modal-buttons .btn-save {
    background-color: var(--primary-color);
    color: white;
}

.status-modal-buttons .btn-save:hover {
    background-color: var(--secondary-color);
}

/* Status on Profile Card */
.user-card-status {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    font-size: 12px;
    color: var(--light-text);
}

.user-card-status .status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.user-card-status.online {
    color: var(--status-online);
}

.user-card-status.offline {
    color: var(--status-offline);
}

.user-card-status.away {
    color: var(--status-away);
}

.user-card-status.dnd {
    color: var(--status-dnd);
}

/* Status on Avatar */
.avatar-with-status {
    position: relative;
}

.avatar-status-badge {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.avatar-status-badge.online {
    background-color: var(--status-online);
}

.avatar-status-badge.offline {
    background-color: var(--status-offline);
}

.avatar-status-badge.away {
    background-color: var(--status-away);
}

.avatar-status-badge.dnd {
    background-color: var(--status-dnd);
}

/* Status Change Button */
.btn-change-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background-color: white;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-color);
    transition: all 0.3s ease;
}

.btn-change-status:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-change-status .status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

/* Status List Item */
.status-list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px;
    border-radius: 6px;
    background-color: #f9f9f9;
    margin-bottom: 8px;
}

.status-list-item-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.status-list-item-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.status-list-item-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.status-list-item-name {
    font-weight: 500;
    color: var(--text-color);
    font-size: 14px;
}

.status-list-item-message {
    color: var(--light-text);
    font-size: 12px;
}

/* Responsive Status */
@media (max-width: 600px) {
    .status-modal-content {
        width: 90%;
        padding: 20px;
    }

    .status-options {
        grid-template-columns: 1fr;
    }

    .status-modal-buttons {
        grid-template-columns: 1fr;
    }

    .profile-status-badge {
        margin-top: 12px;
    }
}

/* ========== STORIES STYLES ========== */

.stories-container {
    display: flex;
    flex-direction: row;
    gap: 12px;
    margin-bottom: 20px;
    padding: 18px 25px;
    background: linear-gradient(135deg, #ffffff 0%, #fafafa 100%);
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    align-items: center;
    white-space: nowrap;
    min-height: 140px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    position: relative;
}

/* Gradient overlay for smooth edges */
.stories-container::before {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 40px;
    background: linear-gradient(to right, transparent 0%, rgba(255, 255, 255, 0.8) 100%);
    pointer-events: none;
    border-radius: 0 12px 12px 0;
    z-index: 5;
}

@media (max-width: 768px) {
    .stories-container {
        border-radius: 0;
        border-left: none;
        border-right: none;
        box-shadow: none;
        border-bottom: 1px solid #e5e5e5;
        gap: 8px;
        padding: 12px 15px;
        min-height: 130px;
    }
    
    .stories-container::before {
        display: none;
    }
}

.stories-container::-webkit-scrollbar {
    height: 6px;
}

.stories-container::-webkit-scrollbar-track {
    background: transparent;
    border-radius: 3px;
}

.stories-container::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: 3px;
}

.stories-container::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    box-shadow: 0 0 5px rgba(102, 126, 234, 0.3);
}

.story-item {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    gap: 10px;
    min-width: 95px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
    white-space: normal;
    user-select: none;
    padding: 8px;
    border-radius: 10px;
    position: relative;
}

.story-item:hover {
    transform: translateY(-3px) scale(1.05);
    background: rgba(102, 126, 234, 0.05);
}

.story-avatar {
    position: relative;
    width: 75px;
    height: 75px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--bg-light);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.story-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #fff;
    transition: all 0.3s ease;
    box-shadow: 0 0 0 2px #ccc;
}

.story-item:hover .story-avatar {
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.25);
    transform: scale(1.02);
}

.story-item:hover .story-avatar img {
    box-shadow: 0 0 0 3px var(--primary-color);
    border-color: white;
}

.story-item.viewed .story-avatar img {
    box-shadow: 0 0 0 2px #999;
    opacity: 0.8;
}

.story-item.unviewed .story-avatar {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
}

.story-item.unviewed .story-avatar img {
    border: 3px solid white;
    box-shadow: 0 0 0 2px;
    box-shadow: 0 0 0 2px var(--primary-color), inset 0 0 0 2px var(--primary-color);
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    background-clip: padding-box;
}

.story-add-button {
    position: absolute;
    bottom: -8px;
    right: -8px;
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: bold;
    border: 3px solid white;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.story-add-button:hover {
    transform: scale(1.15) rotate(90deg);
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.4);
}

.story-item p {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-color);
    text-align: center;
    line-height: 1.3;
    max-width: 90px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    transition: color 0.3s ease;
}

.story-item:hover p {
    color: var(--primary-color);
    font-weight: 600;
}

.story-item p {
    font-size: 12px;
    text-align: center;
    color: var(--text-color);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 90px;
    width: 100%;
}

.story-item.add-story .story-avatar img {
    border: 2px dashed var(--primary-color);
}

/* Story Upload Modal */
.story-upload-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.story-upload-content {
    background: white;
    border-radius: 12px;
    padding: 24px;
    width: 90%;
    max-width: 400px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-height: 90vh;
    overflow-y: auto;
}

.story-upload-content h3 {
    font-size: 18px;
    color: var(--text-color);
}

.upload-story-area {
    border: 2px dashed var(--primary-color);
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #f9f9f9;
}

.upload-story-area:hover {
    background: #f0f0f0;
    border-color: var(--secondary-color);
}

.upload-story-area p:first-child {
    font-size: 14px;
    color: var(--text-color);
    margin-top: 10px;
}

.upload-story-area p:last-child {
    font-size: 12px;
    color: var(--light-text);
    margin-top: 8px;
}

#story-input {
    display: none;
}

#story-caption {
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 10px;
    font-family: inherit;
    font-size: 14px;
    resize: vertical;
}

.story-upload-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

/* Story Viewer Modal */
.story-viewer-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.story-viewer-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.3);
    color: white;
    border: none;
    font-size: 28px;
    cursor: pointer;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
    z-index: 2001;
}

.story-viewer-close:hover {
    background: rgba(255, 255, 255, 0.5);
}

.story-viewer-container {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

#story-viewer-content {
    max-width: 500px;
    max-height: 90vh;
    border-radius: 12px;
    overflow: hidden;
    background: black;
}

#story-viewer-content img,
#story-viewer-content video {
    width: 100%;
    height: auto;
    display: block;
}

.story-viewer-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    padding: 12px;
    z-index: 1999;
}

.story-progress-bar {
    height: 3px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    overflow: hidden;
}

.story-progress-bar::after {
    content: '';
    display: block;
    height: 100%;
    background: white;
    width: 0%;
    animation: storyProgress 5s ease forwards;
}

@keyframes storyProgress {
    from {
        width: 0%;
    }
    to {
        width: 100%;
    }
}

.story-viewer-actions {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    transform: translateY(-50%);
    z-index: 1999;
}

.story-nav-btn {
    background: rgba(255, 255, 255, 0.3);
    color: white;
    border: none;
    font-size: 24px;
    cursor: pointer;
    padding: 10px 15px;
    border-radius: 4px;
    transition: background 0.3s ease;
}

.story-nav-btn:hover {
    background: rgba(255, 255, 255, 0.5);
}

/* Responsive */
@media (max-width: 768px) {
    .stories-container {
        gap: 10px;
        padding: 10px;
    }

    .story-item {
        min-width: 65px;
    }

    .story-avatar {
        width: 60px;
        height: 60px;
    }

    .story-upload-content {
        width: 95%;
        max-width: 100%;
    }

    #story-viewer-content {
        max-width: 100%;
    }

    .story-viewer-modal {
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
    }
}

/* ========== STORY INTERACTIONS ========== */

.story-interactions {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    display: flex;
    gap: 12px;
    align-items: center;
    z-index: 1999;
}

.story-like-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    border-radius: 20px;
    padding: 8px 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.story-like-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

.story-like-btn.liked {
    background: rgba(255, 100, 130, 0.5);
}

.like-icon {
    font-size: 16px;
    transition: transform 0.3s ease;
}

.story-like-btn.liked .like-icon {
    animation: heartBeat 0.3s ease;
}

@keyframes heartBeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

.like-count {
    font-size: 13px;
    font-weight: 500;
}

.story-comments-section {
    position: relative;
    flex: 1;
}

.story-comment-toggle {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    border-radius: 20px;
    padding: 8px 15px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    gap: 6px;
}

.story-comment-toggle:hover {
    background: rgba(255, 255, 255, 0.3);
}

.story-comments-panel {
    position: absolute;
    bottom: 50px;
    left: 0;
    background: white;
    border-radius: 12px;
    width: 280px;
    max-height: 400px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    z-index: 2000;
}

.story-comments-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    border-bottom: 1px solid var(--border-color);
}

.story-comments-header h4 {
    font-size: 14px;
    color: var(--text-color);
    margin: 0;
}

.close-comments {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 18px;
    color: var(--light-text);
    transition: color 0.3s ease;
}

.close-comments:hover {
    color: var(--text-color);
}

.story-comments-list {
    flex: 1;
    overflow-y: auto;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.story-comments-list::-webkit-scrollbar {
    width: 4px;
}

.story-comments-list::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.story-comments-list::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 2px;
}

.story-comment-item {
    display: flex;
    gap: 8px;
}

.story-comment-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.story-comment-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.story-comment-header {
    display: flex;
    align-items: center;
    gap: 6px;
}

.story-comment-author {
    font-weight: 600;
    font-size: 12px;
    color: var(--text-color);
}

.story-comment-text {
    font-size: 13px;
    color: var(--text-color);
    word-break: break-word;
}

.story-comment-input-section {
    display: flex;
    gap: 8px;
    padding: 12px;
    border-top: 1px solid var(--border-color);
    background: var(--bg-light);
    border-radius: 0 0 12px 12px;
}

.story-comment-input {
    flex: 1;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 8px 12px;
    font-size: 13px;
    font-family: inherit;
    outline: none;
    transition: border-color 0.3s ease;
}

.story-comment-input:focus {
    border-color: var(--primary-color);
}

.comment-submit-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 20px;
    padding: 8px 12px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    transition: background 0.3s ease;
}

.comment-submit-btn:hover {
    background: var(--secondary-color);
}

@media (max-width: 768px) {
    .stories-container {
        flex-direction: row;
        justify-content: flex-start;
        padding: 12px 15px;
        gap: 12px;
        overflow-x: auto;
        overflow-y: hidden;
        white-space: nowrap;
    }

    .story-item {
        min-width: 80px;
        flex-shrink: 0;
        white-space: normal;
    }

    .story-avatar {
        width: 65px;
        height: 65px;
    }

    .story-item p {
        max-width: 80px;
        font-size: 11px;
    }

    .story-interactions {
        bottom: 12px;
        left: 12px;
        right: 12px;
        gap: 8px;
    }

    .story-comments-panel {
        width: 100%;
        max-width: calc(100vw - 40px);
    }
}

/* ===== EMOJI & GIF PICKER ===== */
.composer-input-wrapper,
.comment-input-wrapper {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 1;
    position: relative;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
}

.comment-input-wrapper .comment-input {
    flex: 1;
}

.composer-input-wrapper textarea {
    flex: 1;
}

.composer-input-wrapper {
    margin-bottom: 0;
}

.emoji-picker-toggle,
.emoji-picker-toggle-comment {
    background: #f0f0f0 !important;
    border: 1px solid #ddd !important;
    font-size: 18px !important;
    cursor: pointer !important;
    padding: 8px 10px !important;
    transition: all 0.2s ease !important;
    flex-shrink: 0 !important;
    display: inline-block !important;
    width: auto !important;
    height: auto !important;
    min-width: 36px !important;
    line-height: 1 !important;
    margin: 0 !important;
    border-radius: 6px !important;
}

.emoji-picker-toggle:hover,
.emoji-picker-toggle-comment:hover {
    background: #e0e0e0 !important;
    border-color: #999 !important;
    transform: scale(1.1) !important;
}

.emoji-picker-container {
    position: fixed;
    width: 280px;
    max-width: 90vw;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 10000;
    display: none;
    max-height: 400px;
    overflow: hidden;
    flex-direction: column;
}

.emoji-picker-tabs {
    display: flex;
    gap: 0;
    padding: 8px;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-light);
    overflow-x: auto;
}

.emoji-tab-btn {
    background: none;
    border: none;
    font-size: 18px;
    padding: 8px 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
    border-radius: 6px;
}

.emoji-tab-btn:hover {
    background: rgba(102, 126, 234, 0.1);
}

.emoji-tab-btn.active {
    background: rgba(102, 126, 234, 0.2);
    border-bottom: 2px solid var(--primary-color);
}

.emoji-picker-content {
    overflow-y: auto;
    flex: 1;
    max-height: 320px;
}

.emoji-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 4px;
    padding: 8px;
}

.emoji-btn {
    background: none;
    border: none;
    font-size: 28px;
    padding: 8px;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease;
    border-radius: 6px;
}

.emoji-btn:hover {
    background: rgba(102, 126, 234, 0.1);
    transform: scale(1.2);
}

.gif-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
    padding: 8px;
}

.gif-btn {
    background: none;
    border: 1px solid var(--border-color);
    padding: 4px;
    cursor: pointer;
    border-radius: 6px;
    overflow: hidden;
    transition: all 0.2s ease;
    height: 120px;
}

.gif-btn img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.2s ease;
}

.gif-btn:hover {
    border-color: var(--primary-color);
    background: rgba(102, 126, 234, 0.05);
}

.gif-btn:hover img {
    transform: scale(1.05);
}

/* Responsive emoji picker */
@media (max-width: 768px) {
    .emoji-picker-toggle,
    .emoji-picker-toggle-comment {
        display: none !important;
    }
    
    .emoji-picker-container {
        display: none !important;
    }
    
    .emoji-grid {
        grid-template-columns: repeat(5, 1fr);
    }
    
    .emoji-btn {
        font-size: 24px;
        padding: 6px;
    }
}

/* ========== SETTINGS PAGE ========== */

.settings-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 30px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.settings-header {
    margin-bottom: 40px;
    text-align: center;
    border-bottom: 2px solid var(--light-bg);
    padding-bottom: 30px;
}

.settings-header h1 {
    font-size: 32px;
    margin-bottom: 10px;
    color: var(--text-color);
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.settings-header h1 i {
    color: var(--primary-color);
    font-size: 28px;
}

.settings-header p {
    color: var(--light-text);
    font-size: 15px;
    margin: 0;
}

/* Settings Tabs */
.settings-tabs {
    display: flex;
    gap: 8px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 40px;
    overflow-x: auto;
    flex-wrap: wrap;
}

.settings-tab-btn {
    padding: 14px 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 15px;
    color: var(--light-text);
    font-weight: 600;
    border-bottom: 3px solid transparent;
    margin-bottom: -1px;
    transition: all 0.3s ease;
    white-space: nowrap;
    position: relative;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 8px;
}

.settings-tab-btn:hover {
    color: var(--text-color);
    background: rgba(102, 126, 234, 0.05);
    border-bottom-color: var(--primary-color);
}

.settings-tab-btn.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

/* Settings Tab Content */
.settings-tab-content {
    display: none;
}

.settings-tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Settings Section */
.settings-section {
    margin-bottom: 40px;
    padding: 30px;
    background: var(--light-bg);
    border-radius: 12px;
    border-left: 4px solid var(--primary-color);
}

.settings-section:last-child {
    margin-bottom: 0;
}

.settings-section h2 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.settings-section h2 i {
    color: var(--primary-color);
    font-size: 20px;
}

/* Settings Groups */
.settings-group {
    margin-bottom: 20px;
    padding-bottom: 0;
    border-bottom: none;
}

.settings-group:last-child {
    margin-bottom: 0;
}

.settings-group label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 8px;
    display: block;
}

.settings-group label span {
    color: var(--primary-color);
}

.settings-group input[type="text"],
.settings-group input[type="email"],
.settings-group input[type="password"],
.settings-group select,
.settings-group textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    background: white;
    color: var(--text-color);
    transition: all 0.3s ease;
}

.settings-group input[type="text"]:focus,
.settings-group input[type="email"]:focus,
.settings-group input[type="password"]:focus,
.settings-group select:focus,
.settings-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.15);
    background: white;
}

.settings-group textarea {
    resize: vertical;
    min-height: 100px;
}

.setting-value {
    font-size: 15px;
    color: var(--text-color);
    margin: 0;
    padding: 8px 0;
    font-weight: 500;
}

.setting-description {
    font-size: 13px;
    color: var(--light-text);
    margin-top: 6px;
}

/* Settings Form */
.settings-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Radio & Checkbox */
.settings-group input[type="radio"],
.settings-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary-color);
    cursor: pointer;
    margin-right: 10px;
}

.settings-group label:has(input[type="radio"]),
.settings-group label:has(input[type="checkbox"]) {
    display: flex;
    align-items: center;
    font-weight: 500;
    cursor: pointer;
    margin-bottom: 12px;
}

/* Button Styling */
.btn {
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: #5568d3;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--border-color);
    color: var(--text-color);
}

.btn-outline:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: rgba(102, 126, 234, 0.05);
}

.btn-danger {
    background: #f44336;
    color: white;
}

.btn-danger:hover {
    background: #d32f2f;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(244, 67, 54, 0.3);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 13px;
}
    gap: 12px;
    margin-top: 25px;
    padding-top: 25px;
    border-top: 1px solid var(--border-color);
}

.settings-actions .btn {
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 500;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    z-index: 5;
}

.settings-actions .btn-primary {
    background: var(--primary-color);
    color: white;
    flex: 0 0 auto;
}

.settings-actions .btn-primary:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

.settings-actions .btn-secondary {
    background: var(--bg-light);
    color: var(--text-color);
    border: 1px solid var(--border-color);
}

.settings-actions .btn-secondary:hover {
    background: #f0f0f0;
    border-color: var(--text-color);
}

.settings-actions .btn-danger {
    background: var(--danger-color);
    color: white;
}

.settings-actions .btn-danger:hover {
    background: #c0392b;
}

/* Alert Box in Settings */
.settings-alert {
    padding: 12px 15px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 14px;
    border-left: 4px solid;
}

.settings-alert.success {
    background: #e8f8f5;
    color: var(--success-color);
    border-left-color: var(--success-color);
}

.settings-alert.error {
    background: #fde5e5;
    color: var(--danger-color);
    border-left-color: var(--danger-color);
}

.settings-alert.info {
    background: #f0f7ff;
    color: var(--info-color);
    border-left-color: var(--info-color);
}

/* Dangerous Action Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    backdrop-filter: blur(4px);
}

.delete-account-modal {
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    max-width: 420px;
    width: 90%;
    padding: 30px;
    animation: slideUp 0.3s ease-out;
}

.modal-header h2 {
    font-size: 20px;
    color: var(--danger-color);
    margin: 0 0 10px 0;
}

.modal-body {
    margin: 20px 0;
    color: var(--text-color);
    font-size: 14px;
    line-height: 1.6;
}

.modal-body p {
    margin: 10px 0;
}

.modal-footer {
    display: flex;
    gap: 12px;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.modal-footer .btn {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.modal-footer .btn-secondary {
    background: var(--bg-light);
    color: var(--text-color);
}

.modal-footer .btn-secondary:hover {
    background: #f0f0f0;
}

.modal-footer .btn-danger {
    background: var(--danger-color);
    color: white;
}

.modal-footer .btn-danger:hover {
    background: #c0392b;
}

/* Responsive Settings */
@media (max-width: 768px) {
    .settings-container {
        padding: 15px;
        margin: 15px;
        border-radius: 0;
        box-shadow: none;
    }

    .settings-tabs {
        flex-wrap: wrap;
        margin-bottom: 20px;
    }

    .settings-tab {
        padding: 12px 16px;
        font-size: 14px;
    }

    .settings-form-row {
        margin-bottom: 18px;
    }

    .settings-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .settings-actions {
        flex-direction: column;
        gap: 10px;
    }

    .settings-actions .btn {
        width: 100%;
    }

    .delete-account-modal {
        width: 95%;
        max-width: 100%;
        padding: 24px;
    }

    .modal-footer {
        flex-direction: column;
        gap: 10px;
    }

    .modal-footer .btn {
        width: 100%;
    }
}

/* ========== DARK MODE THEME ========== */

body.dark-mode {
    --bg-light: #1a1a1a;
    --text-color: #e0e0e0;
    --border-color: #333333;
    --light-text: #b0b0b0;
    background-color: #121212;
    color: #e0e0e0;
}

body.dark-mode .sidebar {
    background: #1e1e1e;
    border-right-color: #333333;
}

body.dark-mode .nav-menu a {
    color: #e0e0e0;
}

body.dark-mode .nav-menu a:hover,
body.dark-mode .nav-menu a.active {
    background-color: #2a2a2a;
    color: #667eea;
}

body.dark-mode .main-content {
    background-color: #121212;
}

body.dark-mode .app-header {
    background: #1e1e1e;
    border-bottom-color: #333333;
}

body.dark-mode .search-box input {
    background: #2a2a2a;
    border-color: #333333;
    color: #e0e0e0;
}

body.dark-mode .search-box input::placeholder {
    color: #808080;
}

body.dark-mode #search-results {
    background: #1e1e1e;
    border-color: #333333;
}

body.dark-mode .search-result-item {
    border-bottom-color: #333333;
    background: #1e1e1e;
}

body.dark-mode .search-result-item:hover {
    background-color: #2a2a2a;
}

body.dark-mode .avatar {
    border-color: #333333;
}

body.dark-mode .right-sidebar {
    background: #1a1a1a;
    border-left-color: #333333;
}

body.dark-mode .suggestions-card {
    background: #1e1e1e;
    border-color: #333333;
}

body.dark-mode .suggestion-item {
    background: #2a2a2a;
    border-color: #333333;
}

body.dark-mode .suggestion-item:hover {
    background: #333333;
    border-color: #667eea;
}

body.dark-mode .create-post-card {
    background: #1e1e1e;
    border-color: #333333;
}

body.dark-mode .post-card {
    background: #1e1e1e;
    border-color: #333333;
}

body.dark-mode .post-header {
    border-bottom-color: #333333;
}

body.dark-mode .post-author a {
    color: #e0e0e0;
}

body.dark-mode .post-author a:hover {
    color: #667eea;
}

body.dark-mode .post-stats {
    border-top-color: #333333;
    border-bottom-color: #333333;
}

body.dark-mode .comments-section {
    background: #2a2a2a;
    border-top-color: #333333;
}

body.dark-mode .comment-item {
    border-bottom-color: #333333;
}

body.dark-mode .comment-form {
    border-top-color: #333333;
}

body.dark-mode .comment-input {
    background: #2a2a2a;
    border-color: #333333;
    color: #e0e0e0;
}

body.dark-mode .comment-input::placeholder {
    color: #808080;
}

body.dark-mode .comment-input:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
}

body.dark-mode .stories-container {
    background: #1e1e1e;
    border-color: #333333;
}

body.dark-mode .story-avatar img {
    border-color: #555555;
}

body.dark-mode .carousel-card {
    background: linear-gradient(135deg, #2a2a4a 0%, #3a2a5a 100%);
}

body.dark-mode .carousel-card:nth-child(even) {
    background: linear-gradient(135deg, #3a2a5a 0%, #4a3a6a 100%);
}

body.dark-mode .carousel-card:nth-child(3n) {
    background: linear-gradient(135deg, #2a4a5a 0%, #2a5a7a 100%);
}

body.dark-mode .settings-container {
    background: #2a2a2a;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

body.dark-mode .settings-header {
    border-bottom-color: #3a3a3a;
}

body.dark-mode .settings-header h1 {
    color: #e0e0e0;
}

body.dark-mode .settings-header p {
    color: #b0b0b0;
}

body.dark-mode .settings-tab-btn {
    color: #b0b0b0;
}

body.dark-mode .settings-tab-btn:hover {
    color: #e0e0e0;
    background: rgba(102, 126, 234, 0.1);
}

body.dark-mode .settings-tab-btn.active {
    color: #667eea;
    border-bottom-color: #667eea;
}

body.dark-mode .settings-section {
    background: #3a3a3a;
    border-left-color: #667eea;
}

body.dark-mode .settings-section h2 {
    color: #e0e0e0;
}

body.dark-mode .settings-group label {
    color: #e0e0e0;
}

body.dark-mode .settings-group input[type="text"],
body.dark-mode .settings-group input[type="email"],
body.dark-mode .settings-group input[type="password"],
body.dark-mode .settings-group select,
body.dark-mode .settings-group textarea {
    background: #2a2a2a;
    border-color: #4a4a4a;
    color: #e0e0e0;
}

body.dark-mode .settings-group input[type="text"]:focus,
body.dark-mode .settings-group input[type="email"]:focus,
body.dark-mode .settings-group input[type="password"]:focus,
body.dark-mode .settings-group select:focus,
body.dark-mode .settings-group textarea:focus {
    border-color: #667eea;
    background: #1e1e1e;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
}

body.dark-mode .setting-value {
    color: #e0e0e0;
}

body.dark-mode .setting-description {
    color: #b0b0b0;
}

body.dark-mode .btn-outline {
    border-color: #4a4a4a;
    color: #e0e0e0;
}

body.dark-mode .btn-outline:hover {
    border-color: #667eea;
    color: #667eea;
    background: rgba(102, 126, 234, 0.1);
}
}

body.dark-mode .settings-form-row input,
body.dark-mode .settings-form-row select,
body.dark-mode .settings-form-row textarea {
    background: #2a2a2a;
    border-color: #333333;
    color: #e0e0e0;
}

body.dark-mode .settings-form-row input::placeholder,
body.dark-mode .settings-form-row select::placeholder,
body.dark-mode .settings-form-row textarea::placeholder {
    color: #808080;
}

body.dark-mode .settings-form-row input:focus,
body.dark-mode .settings-form-row select:focus,
body.dark-mode .settings-form-row textarea:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
}

body.dark-mode .modal-overlay {
    background: rgba(0, 0, 0, 0.8);
}

body.dark-mode .delete-account-modal {
    background: #1e1e1e;
    color: #e0e0e0;
}

body.dark-mode .modal-header h2 {
    color: #ff6b6b;
}

body.dark-mode .modal-body {
    color: #e0e0e0;
}

body.dark-mode .modal-footer {
    border-top-color: #333333;
}

body.dark-mode .modal-footer .btn-secondary {
    background: #2a2a2a;
    color: #e0e0e0;
    border-color: #333333;
}

body.dark-mode .modal-footer .btn-secondary:hover {
    background: #333333;
    border-color: #666666;
}

body.dark-mode .modal-footer .btn-danger {
    background: #c0392b;
}

body.dark-mode .modal-footer .btn-danger:hover {
    background: #a93226;
}

body.dark-mode .user-card {
    background: #1e1e1e;
    border-color: #333333;
}

body.dark-mode .users-grid {
    background: #121212;
}

body.dark-mode .messages-container {
    background: #121212;
}

body.dark-mode .conversations-list {
    background: #1e1e1e;
    border-right-color: #333333;
}

body.dark-mode .conversation-item {
    color: #e0e0e0;
}

body.dark-mode .conversation-item:hover {
    background-color: #2a2a2a;
}

body.dark-mode .chat-window {
    background: #121212;
}

body.dark-mode .chat-header {
    background: #1e1e1e;
    border-bottom-color: #333333;
}

body.dark-mode .messages-list {
    background: #121212;
}

body.dark-mode .message-bubble {
    background: #2a2a2a;
    color: #e0e0e0;
}

body.dark-mode .message-input-form {
    background: #1e1e1e;
    border-top-color: #333333;
}

body.dark-mode #message-input {
    background: #2a2a2a;
    border-color: #333333;
    color: #e0e0e0;
}

body.dark-mode #message-input::placeholder {
    color: #808080;
}

body.dark-mode .reel-card {
    background: #1e1e1e;
    border-color: #333333;
}

body.dark-mode .reel-card-header {
    border-bottom-color: #333333;
}

body.dark-mode .profile-info-section {
    background: #1e1e1e;
}

body.dark-mode .profile-details h1 {
    color: #e0e0e0;
}

body.dark-mode .username {
    color: #b0b0b0;
}

body.dark-mode .bio {
    color: #e0e0e0;
}

body.dark-mode .location,
body.dark-mode .website {
    color: #b0b0b0;
}

body.dark-mode .profile-actions {
    background: #1e1e1e;
}

body.dark-mode .posts-grid {
    background: #121212;
}

/* Enhanced Logout Confirmation Modal */
.logout-confirm-modal {
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 420px;
    width: 90%;
    padding: 40px 32px;
    text-align: center;
    animation: slideUp 0.3s ease-out;
}

.logout-confirm-modal .modal-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    margin: 0 auto 24px;
    background: rgba(244, 67, 54, 0.1);
    color: #f44336;
}

.logout-confirm-modal .modal-icon.warning {
    background: rgba(255, 152, 0, 0.1);
    color: #ff9800;
}

.logout-confirm-modal h2 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-color);
    margin: 0 0 12px 0;
    letter-spacing: -0.5px;
}

.logout-confirm-modal .modal-description {
    font-size: 14px;
    color: var(--light-text);
    margin: 0 0 20px 0;
    line-height: 1.5;
}

.logout-confirm-modal .modal-warning {
    background: rgba(255, 152, 0, 0.08);
    border-left: 4px solid #ff9800;
    padding: 12px 16px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 20px 0 24px 0;
    font-size: 13px;
    color: #ff6f00;
}

.logout-confirm-modal .modal-warning i {
    flex-shrink: 0;
    font-size: 16px;
}

.logout-confirm-modal .modal-actions {
    display: flex;
    gap: 12px;
    margin-top: 28px;
}

.logout-confirm-modal .btn {
    flex: 1;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.logout-confirm-modal .btn-outline {
    background: var(--light-bg);
    border: 1px solid var(--border-color);
    color: var(--text-color);
}

.logout-confirm-modal .btn-outline:hover {
    background: var(--bg-color);
    border-color: var(--primary-color);
}

.logout-confirm-modal .btn-danger {
    background: #f44336;
    color: white;
    border: none;
}

.logout-confirm-modal .btn-danger:hover {
    background: #d32f2f;
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(244, 67, 54, 0.3);
}

.logout-confirm-modal .btn-lg {
    padding: 12px 20px;
    font-size: 15px;
}

/* Dark Mode - Logout Modal */
body.dark-mode .logout-confirm-modal {
    background: #2a2a2a;
}

body.dark-mode .logout-confirm-modal .modal-icon {
    background: rgba(244, 67, 54, 0.15);
}

body.dark-mode .logout-confirm-modal .modal-warning {
    background: rgba(255, 152, 0, 0.12);
    color: #ffb74d;
}

body.dark-mode .logout-confirm-modal .btn-outline {
    background: #3a3a3a;
    border-color: #4a4a4a;
    color: #e0e0e0;
}

body.dark-mode .logout-confirm-modal .btn-outline:hover {
    background: #4a4a4a;
    border-color: var(--primary-color);
}

/* Enhanced Delete Account Modal */
.delete-account-modal {
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 420px;
    width: 90%;
    padding: 40px 32px;
    text-align: center;
    animation: slideUp 0.3s ease-out;
}

.delete-account-modal .modal-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    margin: 0 auto 24px;
    background: rgba(244, 67, 54, 0.1);
    color: #f44336;
}

.delete-account-modal .modal-icon.danger {
    background: rgba(244, 67, 54, 0.15);
    color: #d32f2f;
}

.delete-account-modal h2 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-color);
    margin: 0 0 12px 0;
    letter-spacing: -0.5px;
}

.delete-account-modal .modal-description {
    font-size: 14px;
    color: var(--light-text);
    margin: 0 0 20px 0;
    line-height: 1.5;
}

.delete-account-modal .modal-warning {
    background: rgba(244, 67, 54, 0.08);
    border-left: 4px solid #f44336;
    padding: 12px 16px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 20px 0 24px 0;
    font-size: 13px;
    color: #c62828;
}

.delete-account-modal .modal-warning i {
    flex-shrink: 0;
    font-size: 16px;
}

.delete-account-form {
    text-align: left;
}

.delete-account-form .settings-group {
    margin-bottom: 20px;
}

.delete-account-form .form-control {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    color: var(--text-color);
    background: var(--light-bg);
    transition: all 0.2s ease;
}

.delete-account-form .form-control:focus {
    outline: none;
    border-color: #f44336;
    background: var(--bg-color);
    box-shadow: 0 0 0 3px rgba(244, 67, 54, 0.1);
}

.delete-account-modal .modal-actions {
    display: flex;
    gap: 12px;
    margin-top: 28px;
}

.delete-account-modal .btn {
    flex: 1;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.delete-account-modal .btn-outline {
    background: var(--light-bg);
    border: 1px solid var(--border-color);
    color: var(--text-color);
}

.delete-account-modal .btn-outline:hover {
    background: var(--bg-color);
    border-color: var(--primary-color);
}

.delete-account-modal .btn-danger {
    background: #f44336;
    color: white;
    border: none;
}

.delete-account-modal .btn-danger:hover {
    background: #d32f2f;
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(244, 67, 54, 0.3);
}

.delete-account-modal .btn-lg {
    padding: 12px 20px;
    font-size: 15px;
}

/* Dark Mode - Delete Account Modal */
body.dark-mode .delete-account-modal {
    background: #2a2a2a;
}

body.dark-mode .delete-account-modal .modal-icon {
    background: rgba(244, 67, 54, 0.15);
}

body.dark-mode .delete-account-modal .modal-warning {
    background: rgba(244, 67, 54, 0.12);
    color: #ff5252;
}

body.dark-mode .delete-account-form .form-control {
    background: #3a3a3a;
    border-color: #4a4a4a;
    color: #e0e0e0;
}

body.dark-mode .delete-account-form .form-control:focus {
    border-color: #f44336;
    background: #2a2a2a;
    box-shadow: 0 0 0 3px rgba(244, 67, 54, 0.15);
}

body.dark-mode .delete-account-modal .btn-outline {
    background: #3a3a3a;
    border-color: #4a4a4a;
    color: #e0e0e0;
}

body.dark-mode .delete-account-modal .btn-outline:hover {
    background: #4a4a4a;
    border-color: var(--primary-color);
}

/* Dark Mode Toggle Button */
.btn-toggle {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    background: var(--light-bg);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    color: var(--text-color);
    transition: all 0.3s ease;
}

.btn-toggle:hover {
    border-color: var(--primary-color);
    background: rgba(102, 126, 234, 0.05);
}

.btn-toggle.active {
    background: rgba(102, 126, 234, 0.15);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-toggle .toggle-icon {
    font-size: 18px;
}

.btn-toggle .toggle-label {
    min-width: 30px;
    text-align: center;
}

/* Theme Selector */
.theme-selector {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    padding: 15px;
    background: var(--light-bg);
    border-radius: 12px;
}

.theme-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 12px 18px;
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    font-size: 13px;
    color: var(--text-color);
    transition: all 0.3s ease;
    min-width: 90px;
}

.theme-option:hover {
    border-color: var(--primary-color);
    background: rgba(102, 126, 234, 0.05);
    transform: translateY(-2px);
}

.theme-option.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: transparent;
    color: white;
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.3);
}

.theme-option .theme-icon {
    font-size: 20px;
}

.theme-option .theme-name {
    font-size: 12px;
}

body.dark-mode .btn-toggle {
    background: #3a3a3a;
    border-color: #4a4a4a;
    color: #e0e0e0;
}

body.dark-mode .btn-toggle:hover {
    border-color: #667eea;
    background: rgba(102, 126, 234, 0.1);
}

body.dark-mode .btn-toggle.active {
    background: rgba(102, 126, 234, 0.2);
    border-color: #667eea;
    color: #667eea;
}

/* Icon styling for dark mode */
body.dark-mode i {
    color: inherit;
}

body.dark-mode .settings-header h1 i {
    color: #667eea;
}

body.dark-mode .settings-section h2 i {
    color: #667eea;
}

body.dark-mode .settings-tab-btn i {
    color: inherit;
}

body.dark-mode .btn i {
    color: inherit;
}

body.dark-mode .btn-danger i {
    color: white;
}

/* Mobile/Tablet Dark Mode Icon Fix */
@media (max-width: 768px) {
    body.dark-mode i {
        color: #e0e0e0;
    }
    
    body.dark-mode .settings-header h1 i {
        color: #667eea;
    }
    
    body.dark-mode .settings-section h2 i {
        color: #667eea;
    }
    
    body.dark-mode .settings-tab-btn i {
        color: #e0e0e0;
    }
    
    body.dark-mode .settings-tab-btn.active i {
        color: #667eea;
    }
    
    body.dark-mode .btn i {
        color: inherit;
    }
    
    body.dark-mode .btn-primary i {
        color: white;
    }
    
    body.dark-mode .btn-danger i {
        color: white;
    }
    
    body.dark-mode .btn-outline i {
        color: #e0e0e0;
    }

    /* Modern Mode Icon Fix for Tablet */
    body.modern-mode i {
        color: #e0e0e0;
    }
    
    body.modern-mode .settings-header h1 i {
        color: #667eea;
    }
    
    body.modern-mode .settings-section h2 i {
        color: #667eea;
    }
    
    body.modern-mode .settings-tab-btn i {
        color: #e0e0e0;
    }
    
    body.modern-mode .settings-tab-btn.active i {
        color: #667eea;
    }
    
    body.modern-mode .btn i {
        color: inherit;
    }
    
    body.modern-mode .btn-primary i {
        color: white;
    }
    
    body.modern-mode .btn-danger i {
        color: white;
    }
    
    body.modern-mode .btn-outline i {
        color: #e0e0e0;
    }
}

@media (max-width: 480px) {
    body.dark-mode i {
        color: #e0e0e0;
    }
    
    body.dark-mode .settings-header h1 i {
        color: #667eea;
    }
    
    body.dark-mode .settings-section h2 i {
        color: #667eea;
    }
    
    body.dark-mode .settings-tab-btn i {
        color: #e0e0e0;
    }
    
    body.dark-mode .settings-tab-btn.active i {
        color: #667eea;
    }

    /* Modern Mode Icon Fix for Mobile */
    body.modern-mode i {
        color: #e0e0e0;
    }
    
    body.modern-mode .settings-header h1 i {
        color: #667eea;
    }
    
    body.modern-mode .settings-section h2 i {
        color: #667eea;
    }
    
    body.modern-mode .settings-tab-btn i {
        color: #e0e0e0;
    }
    
    body.modern-mode .settings-tab-btn.active i {
        color: #667eea;
    }
}

/* ===== MODERN MODE THEME ===== */
body.modern-mode {
    background: linear-gradient(135deg, #0f0f1e 0%, #1a1a3e 100%);
    color: #e0e0e0;
}

body.modern-mode * {
    --light-bg: #1a2347;
    --bg-color: #0f0f1e;
    --text-color: #e0e0e0;
    --light-text: #9ca3af;
    --border-color: #2d3a5c;
    --primary-color: #667eea;
}

body.modern-mode .app-wrapper {
    background: linear-gradient(135deg, #0f0f1e 0%, #1a1a3e 100%);
}

body.modern-mode .sidebar {
    background: rgba(26, 35, 71, 0.95);
    border-right: 1px solid rgba(102, 126, 234, 0.2);
}

body.modern-mode .app-header {
    background: rgba(15, 15, 30, 0.8);
    border-bottom: 1px solid rgba(102, 126, 234, 0.2);
    backdrop-filter: blur(10px);
}

body.modern-mode .main-content {
    background: transparent;
}

body.modern-mode .settings-container {
    background: rgba(26, 35, 71, 0.8);
    box-shadow: 0 8px 32px rgba(102, 126, 234, 0.15);
    border: 1px solid rgba(102, 126, 234, 0.2);
    backdrop-filter: blur(10px);
}

body.modern-mode .settings-section {
    background: rgba(45, 58, 92, 0.6);
    border-left-color: #667eea;
    border: 1px solid rgba(102, 126, 234, 0.15);
}

body.modern-mode .settings-group input,
body.modern-mode .settings-group select,
body.modern-mode .settings-group textarea {
    background: rgba(15, 15, 30, 0.8);
    border: 1px solid rgba(102, 126, 234, 0.2);
    color: #e0e0e0;
}

body.modern-mode .settings-group input:focus,
body.modern-mode .settings-group select:focus,
body.modern-mode .settings-group textarea:focus {
    border-color: #667eea;
    background: rgba(15, 15, 30, 0.95);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
}

body.modern-mode .btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

body.modern-mode .btn-primary:hover {
    background: linear-gradient(135deg, #5568d3 0%, #6a3f95 100%);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

body.modern-mode .btn-outline {
    background: transparent;
    border: 1px solid rgba(102, 126, 234, 0.3);
    color: #e0e0e0;
}

body.modern-mode .btn-outline:hover {
    background: rgba(102, 126, 234, 0.1);
    border-color: #667eea;
}

body.modern-mode .theme-option {
    background: rgba(45, 58, 92, 0.6);
    border: 1px solid rgba(102, 126, 234, 0.2);
    color: #e0e0e0;
}

body.modern-mode .theme-option:hover {
    background: rgba(102, 126, 234, 0.1);
    border-color: #667eea;
}

body.modern-mode .theme-option.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.4);
}

body.modern-mode .modal-overlay {
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
}

body.modern-mode .logout-confirm-modal,
body.modern-mode .delete-account-modal {
    background: rgba(26, 35, 71, 0.95);
    border: 1px solid rgba(102, 126, 234, 0.2);
}

body.modern-mode .logout-confirm-modal .modal-warning,
body.modern-mode .delete-account-modal .modal-warning {
    background: rgba(255, 152, 0, 0.1);
    border-left-color: #667eea;
    color: #ffb74d;
}

body.modern-mode .right-sidebar {
    background: rgba(26, 35, 71, 0.8);
    border-left-color: rgba(102, 126, 234, 0.2);
}

body.modern-mode .suggestions-card {
    background: rgba(45, 58, 92, 0.6);
    border: 1px solid rgba(102, 126, 234, 0.2);
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.1);
}

body.modern-mode .suggestions-card h3 {
    color: #e0e0e0;
}

body.modern-mode .suggestion-item {
    background: rgba(15, 15, 30, 0.8);
    border: 1px solid rgba(102, 126, 234, 0.15);
    color: #e0e0e0;
}

body.modern-mode .suggestion-item:hover {
    background: rgba(102, 126, 234, 0.1);
    border-color: #667eea;
}

body.modern-mode .suggestion-item img {
    border-color: rgba(102, 126, 234, 0.3);
}

body.modern-mode .suggestion-item .user-name {
    color: #e0e0e0;
}

body.modern-mode .suggestion-item .user-handle {
    color: #9ca3af;
}

body.modern-mode .suggestion-item .btn-follow {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: white;
}

body.modern-mode .suggestion-item .btn-follow:hover {
    background: linear-gradient(135deg, #5568d3 0%, #6a3f95 100%);
}

/* ===== VIBRANT THEME (Pink & Sky Blue) ===== */
body.vibrant-mode {
    background: linear-gradient(135deg, #fff5f7 0%, #e0f7ff 100%);
    color: #1a1a2e;
}

body.vibrant-mode * {
    --light-bg: #fff0f5;
    --bg-color: #fffafb;
    --text-color: #1a1a2e;
    --light-text: #6b7280;
    --border-color: #ffb3d9;
    --primary-color: #ff1493;
}

body.vibrant-mode .app-wrapper {
    background: linear-gradient(135deg, #fff5f7 0%, #e0f7ff 100%);
}

body.vibrant-mode .sidebar {
    background: linear-gradient(180deg, #fff0f5 0%, #f0f8ff 100%);
    border-right: 2px solid #ffb3d9;
}

body.vibrant-mode .app-header {
    background: linear-gradient(90deg, #ffe0ed 0%, #e0f7ff 100%);
    border-bottom: 2px solid #ffb3d9;
}

body.vibrant-mode .main-content {
    background: transparent;
}

body.vibrant-mode .settings-container {
    background: linear-gradient(135deg, #fff5f7 0%, #f0f8ff 100%);
    box-shadow: 0 8px 32px rgba(255, 20, 147, 0.1);
    border: 2px solid #ffb3d9;
}

body.vibrant-mode .settings-section {
    background: rgba(255, 240, 245, 0.8);
    border-left: 4px solid #ff1493;
    border: 2px solid #ffb3d9;
}

body.vibrant-mode .settings-group input,
body.vibrant-mode .settings-group select,
body.vibrant-mode .settings-group textarea {
    background: #ffffff;
    border: 2px solid #ffb3d9;
    color: #1a1a2e;
}

body.vibrant-mode .settings-group input:focus,
body.vibrant-mode .settings-group select:focus,
body.vibrant-mode .settings-group textarea:focus {
    border-color: #ff1493;
    background: #fff9fc;
    box-shadow: 0 0 0 3px rgba(255, 20, 147, 0.15);
}

body.vibrant-mode .btn-primary {
    background: linear-gradient(135deg, #ff1493 0%, #00bfff 100%);
    color: white;
}

body.vibrant-mode .btn-primary:hover {
    background: linear-gradient(135deg, #ff0080 0%, #0099cc 100%);
    box-shadow: 0 8px 20px rgba(255, 20, 147, 0.3);
}

body.vibrant-mode .btn-outline {
    background: transparent;
    border: 2px solid #ff1493;
    color: #ff1493;
}

body.vibrant-mode .btn-outline:hover {
    background: rgba(255, 20, 147, 0.1);
    border-color: #ff1493;
}

body.vibrant-mode .nav-menu a {
    color: #1a1a2e;
}

body.vibrant-mode .nav-menu a:hover,
body.vibrant-mode .nav-menu a.active {
    color: #ff1493;
    background: rgba(255, 20, 147, 0.1);
}

body.vibrant-mode .suggestion-item {
    background: #ffffff;
    border: 2px solid #ffb3d9;
    color: #1a1a2e;
}

body.vibrant-mode .suggestion-item:hover {
    background: #fff9fc;
    border-color: #ff1493;
    box-shadow: 0 4px 12px rgba(255, 20, 147, 0.2);
}

body.vibrant-mode .suggestion-item .user-name {
    color: #1a1a2e;
}

body.vibrant-mode .suggestion-item .user-handle {
    color: #6b7280;
}

body.vibrant-mode .suggestion-item .btn-follow {
    background: linear-gradient(135deg, #ff1493 0%, #00bfff 100%);
    border: none;
    color: white;
}

body.vibrant-mode .suggestion-item .btn-follow:hover {
    background: linear-gradient(135deg, #ff0080 0%, #0099cc 100%);
}

body.vibrant-mode .post-card {
    background: #ffffff;
    border: 1px solid #ffb3d9;
    color: #1a1a2e;
}

body.vibrant-mode .post-header {
    border-bottom: 1px solid #ffb3d9;
}

body.vibrant-mode .create-post-card {
    background: linear-gradient(135deg, #fff0f5 0%, #f0f8ff 100%);
    border: 2px solid #ffb3d9;
}

body.vibrant-mode a {
    color: #ff1493;
}

body.vibrant-mode a:hover {
    color: #ff0080;
}

body.vibrant-mode .search-box input {
    background: #ffffff;
    border: 2px solid #ffb3d9;
    color: #1a1a2e;
}

body.vibrant-mode .search-box input:focus {
    border-color: #ff1493;
    box-shadow: 0 0 0 3px rgba(255, 20, 147, 0.15);
}

/* ===== EDIT PROFILE PAGE ===== */
.edit-profile-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 30px 20px;
}

.page-title {
    margin-bottom: 30px;
}

.page-title h1 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.page-title p {
    font-size: 14px;
    color: var(--light-text);
}

/* Alert Messages */
.alert {
    padding: 16px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    font-weight: 500;
    animation: slideDown 0.3s ease-out;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

@keyframes slideDown {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Edit Profile Form */
.edit-profile-full-form {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.edit-section {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.edit-section:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.section-title {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--bg-light);
}

.section-title h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title h3 i {
    color: var(--primary-color);
    font-size: 20px;
}

.section-title p {
    font-size: 13px;
    color: var(--light-text);
}

/* Profile Picture Upload */
.profile-picture-section {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
}

.profile-pic-upload-area {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: center;
}

.pic-preview-wrapper.large {
    position: relative;
    width: 180px;
    height: 180px;
    margin: 0 auto;
}

.pic-preview-large {
    width: 100%;
    height: 100%;
    border-radius: 12px;
    object-fit: cover;
    border: 3px solid white;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.pic-upload-label-large {
    position: absolute;
    bottom: -10px;
    right: -10px;
    background: var(--primary-color);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
    border: 3px solid white;
    font-size: 24px;
}

.pic-upload-label-large span {
    font-size: 10px;
    display: block;
    text-align: center;
}

.pic-upload-label-large:hover {
    background: var(--secondary-color);
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(118, 75, 162, 0.4);
}

.pic-upload-info h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-color);
}

.pic-upload-info p {
    font-size: 13px;
    color: var(--light-text);
    margin-bottom: 8px;
}

.file-requirements {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #27ae60;
    font-size: 12px;
}

.file-requirements i {
    color: #27ae60;
}

.upload-status {
    margin-top: 10px;
    font-size: 13px;
    font-weight: 500;
}

/* Cover Picture Upload */
.cover-pic-upload-area {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.cover-preview-wrapper-large {
    position: relative;
    width: 100%;
    height: 250px;
    border-radius: 10px;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.cover-preview-large {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cover-upload-label-large {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 20px 30px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    font-size: 18px;
}

.cover-upload-label-large span {
    font-size: 14px;
    font-weight: 500;
}

.cover-upload-label-large:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: translate(-50%, -50%) scale(1.1);
}

.cover-upload-info h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-color);
}

.cover-upload-info p {
    font-size: 13px;
    color: var(--light-text);
    margin-bottom: 8px;
}

/* Form Groups */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-color);
}

.input-wrapper {
    position: relative;
}

.input-wrapper.icon-input {
    display: flex;
    align-items: center;
    gap: 0;
}

.input-wrapper.icon-input i {
    position: absolute;
    left: 12px;
    color: var(--light-text);
    font-size: 16px;
    pointer-events: none;
}

.input-wrapper.icon-input .form-input {
    padding-left: 40px;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    transition: all 0.2s ease;
    background: white;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-input:disabled {
    background: var(--bg-light);
    color: var(--light-text);
    cursor: not-allowed;
}

.form-textarea {
    resize: vertical;
    min-height: 100px;
    max-height: 200px;
}

.input-note {
    display: block;
    font-size: 12px;
    color: var(--light-text);
    margin-top: 5px;
    font-style: italic;
}

/* Text Area with Character Count */
.textarea-wrapper {
    position: relative;
}

.char-count-large {
    display: flex;
    justify-content: flex-end;
    font-size: 12px;
    color: var(--light-text);
    margin-top: 6px;
    font-weight: 500;
}

.char-count-large .max-chars {
    color: var(--light-text);
}

/* Form Rows */
.form-row-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* Bio Section */
.bio-section {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.03) 0%, rgba(118, 75, 162, 0.03) 100%);
}

/* Location Section */
.location-section {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.03) 0%, rgba(118, 75, 162, 0.03) 100%);
}

/* Action Buttons */
.edit-profile-actions {
    display: flex;
    gap: 15px;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid var(--bg-light);
    justify-content: center;
}

.btn-primary,
.btn-secondary {
    /*flex: 1;*/
    padding: 12px 18px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    border: none;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background: white;
    color: var(--text-color);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--bg-light);
    border-color: var(--text-color);
}

/* Toast Notification */
.toast-notification {
    position: fixed;
    bottom: 30px;
    right: 30px;
    padding: 16px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    display: none;
    animation: slideIn 0.3s ease-out;
    z-index: 3000;
    max-width: 400px;
}

.toast-notification.toast-success {
    background: var(--success-color);
    color: white;
}

.toast-notification.toast-error {
    background: var(--danger-color);
    color: white;
}

.toast-notification.toast-info {
    background: var(--info-color);
    color: white;
}

@keyframes slideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .edit-profile-container {
        padding: 20px 15px;
    }

    .edit-section {
        padding: 20px;
    }

    .profile-pic-upload-area {
        grid-template-columns: 1fr;
    }

    .form-row-2col {
        grid-template-columns: 1fr;
    }

    .edit-profile-actions {
        flex-direction: row;
        justify-content: center;
        gap: 10px;
    }

    .btn-primary,
    .btn-secondary {
        width: auto;
        flex: 0 1 auto;
    }

    .page-title h1 {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .edit-section {
        padding: 16px;
    }

    .section-title h3 {
        font-size: 16px;
    }

    .pic-preview-wrapper.large {
        width: 140px;
        height: 140px;
    }

    .cover-preview-wrapper-large {
        height: 180px;
    }

    .toast-notification {
        bottom: 20px;
        right: 20px;
        max-width: calc(100% - 40px);
    }
}

/* Dark Mode Support */
body.dark-mode .edit-section {
    background: #262626;
    border-color: #404040;
}

body.dark-mode .section-title {
    border-bottom-color: #404040;
}

body.dark-mode .form-input,
body.dark-mode .form-textarea {
    background: #363636;
    border-color: #404040;
    color: #e0e0e0;
}

body.dark-mode .form-input:focus,
body.dark-mode .form-textarea:focus {
    border-color: var(--primary-color);
}

body.dark-mode .form-label,
body.dark-mode .section-title h3 {
    color: #e0e0e0;
}

body.dark-mode .input-note,
body.dark-mode .pic-upload-info p,
body.dark-mode .cover-upload-info p,
body.dark-mode .page-title p,
body.dark-mode .section-title p {
    color: #a0a0a0;
}

body.dark-mode .page-title h1 {
    color: #e0e0e0;
}

/* Modern Mode Support */
body.modern-mode .edit-section {
    background: rgba(26, 26, 50, 0.8);
    border: 1px solid rgba(102, 126, 234, 0.2);
}

body.modern-mode .section-title {
    border-bottom-color: rgba(102, 126, 234, 0.2);
}

body.modern-mode .form-input,
body.modern-mode .form-textarea {
    background: rgba(30, 30, 55, 0.6);
    border-color: rgba(102, 126, 234, 0.3);
    color: #e0e0e0;
}

body.modern-mode .form-input:focus,
body.modern-mode .form-textarea:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
}

body.modern-mode .form-label,
body.modern-mode .section-title h3 {
    color: #e0e0e0;
}

body.modern-mode .input-note,
body.modern-mode .pic-upload-info p,
body.modern-mode .cover-upload-info p,
body.modern-mode .page-title p,
body.modern-mode .section-title p {
    color: #9ca3af;
}

body.modern-mode .page-title h1 {
    color: #e0e0e0;
}

body.modern-mode .btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

body.modern-mode .btn-secondary {
    background: rgba(30, 30, 55, 0.6);
    border-color: rgba(102, 126, 234, 0.3);
    color: #e0e0e0;
}
/* ========== GRADIENT MODE THEME ========== */
/* Gradient theme with hot pink → purple → cyan colors */
body.gradient-mode {
    --bg-light: #0a0a1a;
    --bg-primary: #1a1a2e;
    --text-color: #ffffff;
    --border-color: #333366;
    --light-text: #d0d0e0;
    background: linear-gradient(135deg, #0a0a1a 0%, #1a1a3e 50%, #0a2a3a 100%);
    color: #ffffff;
}

body.gradient-mode * {
    --primary-color: #ff006e;
    --secondary-color: #00d9ff;
    --accent-color: #9d4edd;
}

body.gradient-mode .sidebar {
    background: rgba(10, 10, 26, 0.95);
    border-right: 2px solid #ff006e;
    box-shadow: inset 0 0 20px rgba(255, 0, 110, 0.1);
}

body.gradient-mode .nav-menu a {
    color: #d0d0e0;
    transition: all 0.3s ease;
}

body.gradient-mode .nav-menu a:hover,
body.gradient-mode .nav-menu a.active {
    color: #00d9ff;
    border-left: 4px solid #ff006e;
    background: rgba(255, 0, 110, 0.1);
    padding-left: 12px;
}

body.gradient-mode .main-content {
    background: linear-gradient(to bottom, rgba(26, 26, 62, 0.5), rgba(10, 42, 58, 0.5));
}

body.gradient-mode .app-header {
    background: linear-gradient(90deg, #ff006e 0%, #9d4edd 50%, #00d9ff 100%);
    color: #ffffff;
    box-shadow: 0 4px 20px rgba(255, 0, 110, 0.3);
}

body.gradient-mode .app-header .search-box input {
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(0, 217, 255, 0.4);
    color: #ffffff;
    backdrop-filter: blur(10px);
}

body.gradient-mode .app-header .search-box input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

body.gradient-mode #search-results {
    background: rgba(10, 10, 26, 0.98);
    border: 1px solid #ff006e;
    box-shadow: 0 0 20px rgba(255, 0, 110, 0.3);
}

body.gradient-mode .search-result-item {
    border-bottom: 1px solid rgba(255, 0, 110, 0.2);
    color: #d0d0e0;
}

body.gradient-mode .search-result-item:hover {
    background: rgba(255, 0, 110, 0.15);
}

body.gradient-mode .create-post-card {
    background: linear-gradient(135deg, rgba(26, 26, 62, 0.8), rgba(10, 42, 58, 0.8));
    border: 2px solid rgba(255, 0, 110, 0.3);
    backdrop-filter: blur(10px);
}

body.gradient-mode .post-card {
    background: linear-gradient(135deg, rgba(26, 26, 62, 0.6), rgba(10, 42, 58, 0.6));
    border-left: 4px solid #ff006e;
    box-shadow: 0 0 20px rgba(255, 0, 110, 0.15);
}

body.gradient-mode .post-header {
    border-bottom: 1px solid rgba(0, 217, 255, 0.3);
}

body.gradient-mode .post-author a {
    color: #00d9ff;
    font-weight: 600;
}

body.gradient-mode .post-actions button {
    color: #d0d0e0;
    transition: all 0.3s ease;
}

body.gradient-mode .post-actions button:hover {
    color: #ff006e;
    transform: scale(1.1);
}

body.gradient-mode .right-sidebar {
    background: rgba(10, 10, 26, 0.9);
    border-left: 2px solid #00d9ff;
}

body.gradient-mode .suggestions-card {
    background: linear-gradient(135deg, rgba(157, 78, 221, 0.2), rgba(0, 217, 255, 0.1));
    border: 1px solid #ff006e;
}

body.gradient-mode .suggestion-item {
    border-bottom: 1px solid rgba(255, 0, 110, 0.2);
}

body.gradient-mode .suggestion-item:hover {
    background: rgba(255, 0, 110, 0.1);
}

body.gradient-mode .btn-primary {
    background: linear-gradient(90deg, #ff006e 0%, #9d4edd 50%, #00d9ff 100%);
    border: none;
    color: #ffffff;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 0 15px rgba(255, 0, 110, 0.3);
}

body.gradient-mode .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 25px rgba(255, 0, 110, 0.5), 0 0 15px rgba(0, 217, 255, 0.3);
}

body.gradient-mode .btn-outline {
    border: 2px solid #ff006e;
    color: #ff006e;
    background: transparent;
    transition: all 0.3s ease;
}

body.gradient-mode .btn-outline:hover {
    background: rgba(255, 0, 110, 0.1);
    color: #00d9ff;
    border-color: #00d9ff;
}

body.gradient-mode .badge {
    background: linear-gradient(90deg, #ff006e 0%, #9d4edd 100%);
    color: #ffffff;
}

body.gradient-mode input[type="text"],
body.gradient-mode input[type="email"],
body.gradient-mode input[type="password"],
body.gradient-mode textarea,
body.gradient-mode select {
    background: rgba(26, 26, 62, 0.6);
    border: 2px solid rgba(255, 0, 110, 0.3);
    color: #ffffff;
    transition: all 0.3s ease;
}

body.gradient-mode input[type="text"]:focus,
body.gradient-mode input[type="email"]:focus,
body.gradient-mode input[type="password"]:focus,
body.gradient-mode textarea:focus,
body.gradient-mode select:focus {
    border-color: #00d9ff;
    box-shadow: 0 0 15px rgba(0, 217, 255, 0.3), inset 0 0 10px rgba(255, 0, 110, 0.1);
    outline: none;
}

body.gradient-mode .form-label {
    color: #d0d0e0;
    font-weight: 500;
}

body.gradient-mode .avatar {
    border: 3px solid #ff006e;
    box-shadow: 0 0 15px rgba(255, 0, 110, 0.3);
}

body.gradient-mode .avatar:hover {
    box-shadow: 0 0 20px rgba(0, 217, 255, 0.4);
}

body.gradient-mode .settings-container {
    background: linear-gradient(135deg, rgba(10, 10, 26, 0.8), rgba(10, 42, 58, 0.8));
}

body.gradient-mode .settings-section {
    background: linear-gradient(135deg, rgba(26, 26, 62, 0.6), rgba(10, 42, 58, 0.6));
    border-left: 4px solid #ff006e;
    border: 1px solid rgba(255, 0, 110, 0.3);
}

body.gradient-mode .settings-section h2 {
    color: #00d9ff;
    border-bottom: 2px solid #ff006e;
    padding-bottom: 10px;
}

body.gradient-mode .theme-option {
    background: linear-gradient(135deg, rgba(26, 26, 62, 0.5), rgba(10, 42, 58, 0.5));
    border: 2px solid rgba(255, 0, 110, 0.3);
    color: #d0d0e0;
    transition: all 0.3s ease;
}

body.gradient-mode .theme-option:hover {
    border-color: #00d9ff;
    box-shadow: 0 0 15px rgba(0, 217, 255, 0.3);
}

body.gradient-mode .theme-option.active {
    background: linear-gradient(90deg, #ff006e 0%, #9d4edd 50%, #00d9ff 100%);
    border-color: transparent;
    color: #ffffff;
    box-shadow: 0 0 20px rgba(255, 0, 110, 0.5);
}

body.gradient-mode .modal {
    background: linear-gradient(135deg, rgba(10, 10, 26, 0.95), rgba(10, 42, 58, 0.95));
    border: 1px solid #ff006e;
}

body.gradient-mode .modal-header {
    background: linear-gradient(90deg, #ff006e 0%, #9d4edd 50%, #00d9ff 100%);
    color: #ffffff;
}

body.gradient-mode .message-item {
    border-left: 4px solid #ff006e;
    background: rgba(26, 26, 62, 0.5);
}

body.gradient-mode .message-item:hover {
    background: rgba(26, 26, 62, 0.7);
    box-shadow: 0 0 15px rgba(255, 0, 110, 0.2);
}

body.gradient-mode .reel-item {
    border: 2px solid #ff006e;
    box-shadow: 0 0 20px rgba(255, 0, 110, 0.2);
}

body.gradient-mode .reel-item:hover {
    box-shadow: 0 0 30px rgba(0, 217, 255, 0.3), 0 0 20px rgba(255, 0, 110, 0.3);
    transform: scale(1.02);
}

/* ========== ROYAL MODE THEME ========== */
/* Royal theme with hot pink #ff1493 and purple #7175E6 */
body.royal-mode {
    --bg-light: #1a1a2e;
    --bg-primary: #0f0f1e;
    --text-color: #ffffff;
    --border-color: #2a1a3a;
    --light-text: #d0d0e0;
    background: linear-gradient(135deg, #0f0f1e 0%, #1a0f2e 100%);
    color: #ffffff;
}

body.royal-mode * {
    --primary-color: #ff1493;
    --secondary-color: #7175E6;
    --accent-color: #ff1493;
}

body.royal-mode .sidebar {
    background: rgba(15, 15, 30, 0.95);
    border-right: 2px solid #ff1493;
    box-shadow: inset 0 0 20px rgba(255, 20, 147, 0.1);
}

body.royal-mode .nav-menu a {
    color: #d0d0e0;
    transition: all 0.3s ease;
}

body.royal-mode .nav-menu a:hover,
body.royal-mode .nav-menu a.active {
    color: #7175E6;
    border-left: 4px solid #ff1493;
    background: rgba(255, 20, 147, 0.1);
    padding-left: 12px;
}

body.royal-mode .main-content {
    background: linear-gradient(to bottom, rgba(26, 15, 46, 0.5), rgba(15, 15, 30, 0.5));
}

body.royal-mode .app-header {
    background: linear-gradient(90deg, #ff1493 0%, #7175E6 100%);
    color: #ffffff;
    box-shadow: 0 4px 20px rgba(255, 20, 147, 0.3);
}

body.royal-mode .app-header .search-box input {
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(113, 117, 230, 0.4);
    color: #ffffff;
    backdrop-filter: blur(10px);
}

body.royal-mode .app-header .search-box input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

body.royal-mode #search-results {
    background: rgba(15, 15, 30, 0.98);
    border: 1px solid #ff1493;
    box-shadow: 0 0 20px rgba(255, 20, 147, 0.3);
}

body.royal-mode .search-result-item {
    border-bottom: 1px solid rgba(255, 20, 147, 0.2);
    color: #d0d0e0;
}

body.royal-mode .search-result-item:hover {
    background: rgba(255, 20, 147, 0.15);
}

body.royal-mode .create-post-card {
    background: linear-gradient(135deg, rgba(26, 15, 46, 0.8), rgba(15, 15, 30, 0.8));
    border: 2px solid rgba(255, 20, 147, 0.3);
    backdrop-filter: blur(10px);
}

body.royal-mode .post-card {
    background: linear-gradient(135deg, rgba(26, 15, 46, 0.6), rgba(15, 15, 30, 0.6));
    border-left: 4px solid #ff1493;
    box-shadow: 0 0 20px rgba(255, 20, 147, 0.15);
}

body.royal-mode .post-header {
    border-bottom: 1px solid rgba(113, 117, 230, 0.3);
}

body.royal-mode .post-author a {
    color: #7175E6;
    font-weight: 600;
}

body.royal-mode .post-actions button {
    color: #d0d0e0;
    transition: all 0.3s ease;
}

body.royal-mode .post-actions button:hover {
    color: #ff1493;
    transform: scale(1.1);
}

body.royal-mode .right-sidebar {
    background: rgba(15, 15, 30, 0.9);
    border-left: 2px solid #7175E6;
}

body.royal-mode .suggestions-card {
    background: linear-gradient(135deg, rgba(113, 117, 230, 0.2), rgba(255, 20, 147, 0.1));
    border: 1px solid #ff1493;
}

body.royal-mode .suggestion-item {
    border-bottom: 1px solid rgba(255, 20, 147, 0.2);
}

body.royal-mode .suggestion-item:hover {
    background: rgba(255, 20, 147, 0.1);
}

body.royal-mode .btn-primary {
    background: linear-gradient(90deg, #ff1493 0%, #7175E6 100%);
    border: none;
    color: #ffffff;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 0 15px rgba(255, 20, 147, 0.3);
}

body.royal-mode .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 25px rgba(255, 20, 147, 0.5), 0 0 15px rgba(113, 117, 230, 0.3);
}

body.royal-mode .btn-outline {
    border: 2px solid #ff1493;
    color: #ff1493;
    background: transparent;
    transition: all 0.3s ease;
}

body.royal-mode .btn-outline:hover {
    background: rgba(255, 20, 147, 0.1);
    color: #7175E6;
    border-color: #7175E6;
}

body.royal-mode .badge {
    background: linear-gradient(90deg, #ff1493 0%, #7175E6 100%);
    color: #ffffff;
}

body.royal-mode input[type="text"],
body.royal-mode input[type="email"],
body.royal-mode input[type="password"],
body.royal-mode textarea,
body.royal-mode select {
    background: rgba(26, 15, 46, 0.6);
    border: 2px solid rgba(255, 20, 147, 0.3);
    color: #ffffff;
    transition: all 0.3s ease;
}

body.royal-mode input[type="text"]:focus,
body.royal-mode input[type="email"]:focus,
body.royal-mode input[type="password"]:focus,
body.royal-mode textarea:focus,
body.royal-mode select:focus {
    border-color: #7175E6;
    box-shadow: 0 0 15px rgba(113, 117, 230, 0.3), inset 0 0 10px rgba(255, 20, 147, 0.1);
    outline: none;
}

body.royal-mode .form-label {
    color: #d0d0e0;
    font-weight: 500;
}

body.royal-mode .avatar {
    border: 3px solid #ff1493;
    box-shadow: 0 0 15px rgba(255, 20, 147, 0.3);
}

body.royal-mode .avatar:hover {
    box-shadow: 0 0 20px rgba(113, 117, 230, 0.4);
}

body.royal-mode .settings-container {
    background: linear-gradient(135deg, rgba(15, 15, 30, 0.8), rgba(26, 15, 46, 0.8));
}

body.royal-mode .settings-section {
    background: linear-gradient(135deg, rgba(26, 15, 46, 0.6), rgba(15, 15, 30, 0.6));
    border-left: 4px solid #ff1493;
    border: 1px solid rgba(255, 20, 147, 0.3);
}

body.royal-mode .settings-section h2 {
    color: #7175E6;
    border-bottom: 2px solid #ff1493;
    padding-bottom: 10px;
}

body.royal-mode .theme-option {
    background: linear-gradient(135deg, rgba(26, 15, 46, 0.5), rgba(15, 15, 30, 0.5));
    border: 2px solid rgba(255, 20, 147, 0.3);
    color: #d0d0e0;
    transition: all 0.3s ease;
}

body.royal-mode .theme-option:hover {
    border-color: #7175E6;
    box-shadow: 0 0 15px rgba(113, 117, 230, 0.3);
}

body.royal-mode .theme-option.active {
    background: linear-gradient(90deg, #ff1493 0%, #7175E6 100%);
    border-color: transparent;
    color: #ffffff;
    box-shadow: 0 0 20px rgba(255, 20, 147, 0.5);
}

body.royal-mode .modal {
    background: linear-gradient(135deg, rgba(15, 15, 30, 0.95), rgba(26, 15, 46, 0.95));
    border: 1px solid #ff1493;
}

body.royal-mode .modal-header {
    background: linear-gradient(90deg, #ff1493 0%, #7175E6 100%);
    color: #ffffff;
}

body.royal-mode .message-item {
    border-left: 4px solid #ff1493;
    background: rgba(26, 15, 46, 0.5);
}

body.royal-mode .message-item:hover {
    background: rgba(26, 15, 46, 0.7);
    box-shadow: 0 0 15px rgba(255, 20, 147, 0.2);
}

body.royal-mode .reel-item {
    border: 2px solid #ff1493;
    box-shadow: 0 0 20px rgba(255, 20, 147, 0.2);
}

body.royal-mode .reel-item:hover {
    box-shadow: 0 0 30px rgba(113, 117, 230, 0.3), 0 0 20px rgba(255, 20, 147, 0.3);
    transform: scale(1.02);
}
