/* Global styles */
* {
    box-sizing: border-box;
    outline: none;
    margin: 0;
    padding: 0;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    display: grid;
    grid-template-rows: auto 1fr;
}

/* Success Toast */
.success-toast {
    position: fixed;
    top: 100px;
    right: 2rem;
    background: linear-gradient(135deg, var(--success-green), #059669);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 14px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
    box-shadow: 0 10px 40px rgba(16, 185, 129, 0.4);
    transform: translateX(400px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10001;
}

.success-toast.show {
    transform: translateX(0);
    opacity: 1;
}

.success-toast svg {
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .success-toast {
        right: 1rem;
        left: 1rem;
        top: 80px;
    }
}


/* App layout: floating sidebar + main */
.app-layout {
    display: grid;
    grid-template-columns: 1fr;
    min-height: calc(100vh - 56px);
    padding-left: 120px;
    /* Space for floating sidebar */
}



.user-link {
    text-decoration: none;
}

/* ====================================
   HOME PAGE - MATCHING ONBOARDING
   ==================================== */

:root {
    --primary: #ffd700;
    --bg: #050505;
    --card-bg: rgba(255, 255, 255, 0.05);
    --border: rgba(255, 255, 255, 0.1);
    --text-muted: #888;
    --success-green: #4ade80;
    --error-red: #ff6b6b;
}

body {
    background: var(--bg);
    color: white;
}

.home-content {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

/* ====================================
   CENTER FEED
   ==================================== */

.center-feed {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Post Card */
.post-card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s;
}

.post-card:hover {
    border-color: rgba(255, 215, 0, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* Post Header */
.post-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.25rem 1.5rem;
}

.post-header .avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid var(--primary);
    object-fit: cover;
}

.user-info {
    flex: 1;
}

.user-link {
    text-decoration: none;
    color: white;
    transition: color 0.3s;
}

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

.username {
    font-weight: 700;
    font-size: 1rem;
}

.timestamp {
    display: block;
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

/* Post Media */
.post-media {
    width: 100%;
    max-height: 600px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.3);
}

.post-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Post Content */
.post-content {
    padding: 1.25rem 1.5rem;
}

.caption {
    font-size: 0.95rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    margin: 0 0 1rem 0;
    word-wrap: break-word;
}

.vote-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.vote-count {
    font-weight: 700;
    color: var(--primary);
    font-size: 0.95rem;
}

/* Post Actions */
.post-actions {
    display: flex;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border);
}

.action-btn {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    color: var(--text-muted);
    padding: 0.75rem 1rem;
    border-radius: 12px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-decoration: none;
}

.action-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary);
    color: white;
    transform: translateY(-2px);
}

.action-btn svg {
    width: 16px;
    height: 16px;
}

/* Like Button Active State */
.like-btn.liked {
    background: rgba(255, 107, 107, 0.15);
    border-color: var(--error-red);
    color: var(--error-red);
}

.like-btn.liked svg {
    fill: var(--error-red);
}

/* Save Button Active State */
.save-btn.saved {
    background: rgba(255, 215, 0, 0.15);
    border-color: var(--primary);
    color: var(--primary);
}

.save-btn.saved svg {
    fill: var(--primary);
}

/* Vote Button */
.vote-btn {
    flex: 1.5;
    background: linear-gradient(135deg, var(--primary), #ffa500);
    border: none;
    color: black;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    font-size: 0.875rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
}

.vote-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.4);
}

/* ====================================
   RIGHT PANEL
   ==================================== */

.right-panel {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    position: sticky;
    top: 1rem;
    align-self: start;
    height: fit-content;
}

.panel-section {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 1.5rem;
}

.panel-section h3 {
    font-size: 1.125rem;
    font-weight: 700;
    margin: 0 0 1.25rem 0;
    color: white;
}

/* Contestant Card */
.contestant-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contestant-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s;
}

.contestant-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--primary);
    transform: translateX(4px);
}

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

.contestant-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.contestant-name {
    font-weight: 600;
    color: white;
    font-size: 0.95rem;
}

.contestant-votes {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

/* Contest Card */
.contest-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contest-card {
    padding: 1.25rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s;
}

.contest-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--primary);
    transform: translateY(-2px);
}

.contest-card h4 {
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    color: white;
}

.contest-card p {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin: 0;
}

/* Voter Card */
.voter-list {
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
}

.voter-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.875rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 12px;
}

.rank {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--primary), #ffa500);
    color: black;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 0.875rem;
}

.voter-name {
    flex: 1;
    font-weight: 600;
    color: white;
    font-size: 0.95rem;
}

.voter-votes {
    font-size: 0.875rem;
    color: var(--primary);
    font-weight: 600;
}

/* ====================================
   CTA OVERLAY
   ==================================== */

.cta-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.cta-modal {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: 24px;
    max-width: 500px;
    width: 100%;
    padding: 2.5rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

/* ====================================
   VOTE MODAL
   ==================================== */

.vote-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.vote-modal.show {
    display: flex;
}

.vote-modal-content {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 2.5rem;
    max-width: 450px;
    width: 90%;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: slideUp 0.3s ease;
}

.close-modal {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--border);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-modal:hover {
    background: rgba(255, 107, 107, 0.15);
    border-color: var(--error-red);
    color: var(--error-red);
    transform: rotate(90deg);
}

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

.modal-header svg {
    color: var(--primary);
    margin-bottom: 1rem;
}

.modal-header h3 {
    font-size: 1.75rem;
    font-weight: 900;
    color: white;
    margin: 0 0 0.5rem 0;
}

.modal-subtitle {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin: 0;
}

.vote-details {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.75rem;
    margin-bottom: 1.75rem;
}

.price-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.75rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--border);
}

.price-info .label {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.price-info .value {
    color: white;
    font-size: 1.25rem;
    font-weight: 700;
}

.vote-selector {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
    margin-bottom: 1.75rem;
}

.vote-control {
    width: 48px;
    height: 48px;
    border: 2px solid var(--border);
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    color: white;
}

.vote-control:hover {
    border-color: var(--primary);
    background: rgba(255, 215, 0, 0.15);
    transform: scale(1.1);
}

.vote-control:active {
    transform: scale(0.95);
}

#vote-count {
    width: 90px;
    height: 60px;
    text-align: center;
    font-size: 1.75rem;
    font-weight: 900;
    border: 2px solid var(--border);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.05);
    color: white;
}

#vote-count:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(255, 215, 0, 0.1);
}

.total-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border);
}

.total-label {
    color: white;
    font-size: 1.125rem;
    font-weight: 600;
}

.total-amount {
    color: var(--primary);
    font-size: 2rem;
    font-weight: 900;
}

.btn-pay {
    width: 100%;
    padding: 1.125rem;
    background: linear-gradient(135deg, var(--primary), #ffa500);
    color: black;
    border: none;
    border-radius: 14px;
    font-size: 1.125rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    transition: all 0.3s;
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.3);
}

.btn-pay:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.5);
}

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

/* Loading State */
.btn-pay.loading {
    position: relative;
    color: transparent;
}

.btn-pay.loading::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 24px;
    border: 3px solid rgba(0, 0, 0, 0.3);
    border-top-color: black;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* ====================================
   NO POSTS STATE
   ==================================== */

.center-feed>p {
    text-align: center;
    color: var(--text-muted);
    padding: 3rem;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 20px;
}

/* ====================================
   RESPONSIVE DESIGN
   ==================================== */

@media (max-width: 1024px) {
    .home-content {
        grid-template-columns: 1fr;
    }

    .right-panel {
        display: none;
    }
}

@media (max-width: 768px) {
    .home-content {
        padding: 1rem 0.75rem;
        gap: 1.25rem;
    }

    .post-card {
        border-radius: 16px;
    }

    .post-header {
        padding: 1rem 1.25rem;
    }

    .post-header .avatar {
        width: 40px;
        height: 40px;
    }

    .post-content {
        padding: 1rem 1.25rem;
    }

    .post-actions {
        padding: 0.875rem 1.25rem;
        gap: 0.5rem;
        flex-wrap: wrap;
    }

    .action-btn {
        padding: 0.625rem 0.875rem;
        font-size: 0.8rem;
    }

    .vote-btn {
        flex-basis: 100%;
        order: -1;
    }

    .vote-modal-content {
        padding: 2rem 1.5rem;
    }

    .modal-header h3 {
        font-size: 1.5rem;
    }

    #vote-count {
        width: 80px;
        height: 55px;
        font-size: 1.5rem;
    }

    .total-amount {
        font-size: 1.75rem;
    }
}

@media (max-width: 480px) {
    .post-actions {
        gap: 0.375rem;
    }

    .action-btn {
        flex: 1 1 calc(50% - 0.375rem);
        font-size: 0.75rem;
        padding: 0.5rem 0.625rem;
    }

    .action-btn span {
        display: none;
    }

    .vote-btn {
        flex-basis: 100%;
    }

    .vote-btn span {
        display: inline;
    }

    .vote-modal-content {
        padding: 1.75rem 1.25rem;
        width: 95%;
    }

    .vote-details {
        padding: 1.5rem;
    }

    .vote-selector {
        gap: 1rem;
    }

    .vote-control {
        width: 44px;
        height: 44px;
    }

    #vote-count {
        width: 70px;
        height: 50px;
        font-size: 1.375rem;
    }
}

/* CTA Overlay */
.cta-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.cta-modal {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    max-width: fit-content;
    /* width: 90%; */
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

/* .text-center {
    text-align: center;
}

.mb-1 {
    margin-bottom: 0.25rem;
}

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

.mb-3 {
    margin-bottom: 1rem;
}

.mb-4 {
    margin-bottom: 1.5rem;
}

.mt-1 {
    margin-top: 0.25rem;
}

.mt-2 {
    margin-top: 0.5rem;
}

.mt-3 {
    margin-top: 1rem;
}

.mt-4 {
    margin-top: 1.5rem;
} */

@media (max-width: 720px) {

    /* Mobile layout: header remains on top; sidebar collapses into top-left icons */
    .app-layout {
        grid-template-columns: 1fr;
        padding-left: 0;
        /* Remove padding on mobile */
    }

    /* show search toggle on small screens */
    /* .search-toggle {
        display: inline-block;
    } */
    .search-toggle {
        display: none;
    }

    .mobile-search {
        display: inline-block;
    }

    @media (max-width: 720px) {

        /* Mobile layout: header remains on top; sidebar collapses into top-left icons */
        .app-layout {
            grid-template-columns: 1fr;
        }

        .search-toggle {
            display: none;
        }

        .mobile-search {
            display: inline-block;
        }

        .sidebar {
            position: fixed;
            left: 50%;
            right: auto;
            bottom: max(16px, env(safe-area-inset-bottom));
            top: auto;
            width: auto;
            min-width: 320px;
            height: 72px;
            display: flex;
            align-items: center;
            background: var(--glass-bg-opaque);
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            border: 1px solid var(--glass-border);
            border-radius: 36px;
            box-shadow: var(--glass-shadow), var(--glass-inset-shadow);
            z-index: 45;
            padding: 0 24px;
            margin: 0;
            transform: translateX(-50%);
            /* Safe area padding for modern devices */
            padding-bottom: max(12px, env(safe-area-inset-bottom));
            padding-left: max(24px, env(safe-area-inset-left) + 24px);
            padding-right: max(24px, env(safe-area-inset-right) + 24px);
        }

        .nav-list {
            display: flex;
            gap: 8px;
            padding: 0;
            margin: 0;
            align-items: center;
            width: auto;
            justify-content: center;
            position: relative;
        }

        .nav-item a {
            flex-direction: column;
            padding: 12px 16px;
            color: rgba(255, 255, 255, 0.7);
            border-radius: 20px;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            position: relative;
            min-width: 56px;
            text-decoration: none;
            flex-shrink: 0;
        }

        .nav-item a:hover {
            color: rgba(255, 255, 255, 0.9);
            background: rgba(255, 255, 255, 0.1);
            transform: translateY(-2px) scale(1.05);
        }

        /* Special styling for Create button */
        .nav-item:nth-child(3) a {
            background: var(--create-gradient);
            color: #ffffff;
            box-shadow: var(--create-glow);
            margin: 0 8px;
        }

        .nav-item:nth-child(3) a:hover {
            transform: translateY(-4px) scale(1.08);
            box-shadow: 0 6px 25px rgba(255, 107, 107, 0.5), 0 3px 15px rgba(238, 90, 36, 0.4), 0 0 30px rgba(255, 159, 243, 0.3);
        }

        .nav-item.active a {
            color: #ffffff;
            background: var(--neon-gradient);
            box-shadow: var(--neon-glow);
            animation: bounce 0.6s ease-in-out;
            transform: scale(1.02);
        }

        .nav-item.active a:hover {
            transform: translateY(-4px) scale(1.05);
            box-shadow:
                0 6px 25px rgba(102, 126, 234, 0.5),
                0 3px 15px rgba(118, 75, 162, 0.4),
                0 0 30px rgba(240, 147, 251, 0.3);
        }

        .nav-item.active a:hover {
            transform: translateY(-4px) scale(1.05);
        }

        .nav-item .icon {
            width: 24px;
            height: 24px;
            margin-bottom: 4px;
            transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        }

        .nav-item.active .icon {
            transform: scale(1.1);
            filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.3));
        }

        .nav-item .label {
            display: none;
            font-size: 10px;
            font-weight: 500;
            letter-spacing: 0.025em;
        }

        /* Remove the old active indicator */
        .nav-item.active::after {
            display: none;
        }

        /* Bounce animation for active state */
        @keyframes bounce {

            0%,
            100% {
                transform: translateY(0) scale(1);
            }

            50% {
                transform: translateY(-4px) scale(1.02);
            }
        }

        /* Mobile: overlay the search box so it doesn't push layout */
        .search-box {
            position: absolute;
            left: 4px;
            /* right: 4px; */
            right: auto;
            top: 6px;
            width: auto;
            opacity: 0;
            pointer-events: none;
            transform: translateY(-6px);
            transition: transform 0.22s ease, opacity 0.22s ease;
        }

        /* Mobile: overlay the search box so it doesn't push layout */
        .search-box {
            position: absolute;
            left: 4px;
            /* right: 4px; */
            right: auto;
            top: 6px;
            width: auto;
            opacity: 0;
            pointer-events: none;
            transform: translateY(-6px);
            transition: transform 0.22s ease, opacity 0.22s ease;
        }

        .search-container.active .search-box {
            opacity: 1;
            pointer-events: auto;
            transform: translateY(0);
        }

        /* Ensure page content doesn't hide behind bottom nav */
        main {
            padding-bottom: 112px;
        }
    }

    /* Post Detail Page */
    .post-detail {
        max-width: 600px;
        margin: 0 auto;
        padding: 2rem 1rem;
    }

    .full-post {
        margin-bottom: 2rem;
    }

    .comments-section {
        border-top: 1px solid #e1e5e9;
        padding-top: 2rem;
    }

    .comments-section h3 {
        margin-bottom: 1.5rem;
        font-size: 1.25rem;
        color: #1a202c;
    }

    .comments-list {
        margin-bottom: 2rem;
    }

    .comment-item {
        display: flex;
        gap: 0.75rem;
        margin-bottom: 1.5rem;
        padding-bottom: 1rem;
        border-bottom: 1px solid #f7fafc;
    }

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

    .comment-content {
        flex: 1;
    }

    .comment-author {
        font-weight: 600;
        color: #2d3748;
        margin-bottom: 0.25rem;
    }

    .comment-text {
        margin: 0.5rem 0;
        color: #4a5568;
        line-height: 1.5;
    }

    .comment-time {
        font-size: 0.75rem;
        color: #a0aec0;
    }

    .no-comments {
        text-align: center;
        padding: 3rem 1rem;
        color: #a0aec0;
    }

    .no-comments svg {
        margin-bottom: 1rem;
        opacity: 0.5;
    }

    .comment-form {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }

    .comment-form textarea {
        padding: 0.75rem;
        border: 1px solid #e1e5e9;
        border-radius: 8px;
        resize: vertical;
        min-height: 80px;
        font-family: inherit;
        font-size: 14px;
    }

    .btn-submit {
        align-self: flex-start;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        color: white;
        border: none;
        padding: 0.5rem 1rem;
        border-radius: 6px;
        font-weight: 600;
        cursor: pointer;
        transition: opacity 0.2s ease;
    }

    .btn-submit:hover {
        opacity: 0.9;
    }

    /* Social Modal (Followers/Following) */
    .social-modal {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 1000;
        align-items: center;
        justify-content: center;
    }

    .social-modal-content {
        background: #fff;
        border-radius: 12px;
        width: 90%;
        max-width: 400px;
        max-height: 70vh;
        overflow: hidden;
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    }

    .social-modal-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 1.5rem;
        border-bottom: 1px solid #e1e5e9;
    }

    .social-modal-header h2 {
        margin: 0;
        font-size: 1.25rem;
        font-weight: 600;
        color: #1a202c;
    }

    .social-list {
        max-height: 400px;
        overflow-y: auto;
        padding: 0;
    }

    .social-user-card {
        display: flex;
        align-items: center;
        gap: 1rem;
        padding: 1rem 1.5rem;
        cursor: pointer;
        transition: background 0.2s ease;
        border-bottom: 1px solid #f7fafc;
    }

    .social-user-card:hover {
        background: #f7fafc;
    }

    .social-user-card:last-child {
        border-bottom: none;
    }

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

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

    .social-user-name {
        font-weight: 600;
        color: #1a202c;
        margin-bottom: 0.25rem;
    }

    .social-user-username {
        font-size: 0.875rem;
        color: #718096;
    }

    /* CTA Container */
    /* .cta-container {
        padding: 2rem;
        display: flex;
        justify-content: center;
        align-items: center;
        min-height: 60vh;

    } */

    .user-link {
        text-decoration: none;
    }
}

/* Loading States */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3b82f6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

    100% {
        transform: rotate(360deg);
    }
}

.loading-text {
    margin-top: 1rem;
    color: #6b7280;
    font-size: 0.875rem;
}

.btn-loading {
    position: relative;
    color: transparent !important;
}

.btn-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 16px;
    margin: -8px 0 0 -8px;
    border: 2px solid #ffffff;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.page-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    padding: 2rem;
}

.page-loading .loading-spinner {
    width: 48px;
    height: 48px;
    border-width: 4px;
}

.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

.skeleton-text {
    height: 1rem;
    border-radius: 4px;
    margin: 0.5rem 0;
}

.skeleton-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.skeleton-post {
    padding: 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    margin: 1rem 0;
}

.skeleton-post .skeleton-text:nth-child(1) {
    width: 60%;
}

.skeleton-post .skeleton-text:nth-child(2) {
    width: 80%;
}

.skeleton-post .skeleton-text:nth-child(3) {
    width: 40%;
}



/* ---------------------------------------------------- */
/* profile styling */
/* ---------------------------------------------------- */
/* Face Fame Profile Styles - Matching Onboarding Flow */

:root {
    --primary: #ffd700;
    --bg: #050505;
    --card-bg: rgba(255, 255, 255, 0.05);
    --border: rgba(255, 255, 255, 0.1);
    --text-muted: #888;
    --success-green: #4ade80;
    --error-red: #ff6b6b;
}

body {
    background: var(--bg);
    color: white;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    margin: 0;
    padding: 0;
}

/* User Profile Container */
.user-profile {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

/* Profile Header */
.profile-header {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 2.5rem;
    margin-bottom: 2rem;
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

/* Profile Avatar */
.profile-avatar {
    position: relative;
    flex-shrink: 0;
}

.profile-avatar img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 3px solid var(--primary);
    object-fit: cover;
}

.edit-avatar-btn {
    position: absolute;
    bottom: 0;
    right: 0;
    background: var(--primary);
    color: black;
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.edit-avatar-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 5px 20px rgba(255, 215, 0, 0.3);
}

/* Profile Info */
.profile-info {
    flex: 1;
}

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

.profile-name {
    font-size: 2rem;
    font-weight: 900;
    margin: 0;
    background: linear-gradient(135deg, white, var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.profile-username {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin: 0.5rem 0 1.5rem 0;
}

/* Profile Actions */
.profile-actions {
    display: flex;
    gap: 0.75rem;
}

.edit-btn,
.logout-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--border);
    color: white;
    padding: 0.75rem 1.25rem;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s;
    font-size: 0.9rem;
}

.edit-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--primary);
    transform: translateY(-2px);
}

.logout-btn {
    background: rgba(255, 107, 107, 0.1);
    border-color: rgba(255, 107, 107, 0.3);
    color: var(--error-red);
}

.logout-btn:hover {
    background: rgba(255, 107, 107, 0.15);
    transform: translateY(-2px);
}

/* Profile Stats */
.profile-stats {
    display: flex;
    gap: 2rem;
    margin: 1.5rem 0;
}

.stat {
    display: flex;
    flex-direction: column;
    cursor: pointer;
    transition: transform 0.2s;
}

.stat:hover {
    transform: scale(1.05);
}

.stat-number {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary);
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Status Badge */
.profile-status {
    margin: 1rem 0;
}

.status-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-badge.voter {
    background: rgba(74, 222, 128, 0.1);
    border: 1px solid rgba(74, 222, 128, 0.3);
    color: var(--success-green);
}

.status-badge.contestant {
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid rgba(255, 215, 0, 0.3);
    color: var(--primary);
}

/* Profile DOB */
.profile-dob {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.dob-label {
    margin-right: 0.5rem;
}

/* Profile Content */
.profile-content {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 2rem;
}

.profile-content h2 {
    margin-top: 0;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

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

.grid-post {
    position: relative;
    aspect-ratio: 1;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    transition: all 0.3s;
}

.grid-post:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.2);
    border-color: var(--primary);
}

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

.grid-post-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.8));
    display: flex;
    align-items: flex-end;
    padding: 1rem;
    opacity: 0;
    transition: opacity 0.3s;
}

.grid-post:hover .grid-post-overlay {
    opacity: 1;
}

.grid-post-stats {
    display: flex;
    gap: 1rem;
    color: white;
    font-weight: 600;
}

/* No Posts */
.no-posts {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-muted);
}

.no-posts svg {
    margin-bottom: 1rem;
    opacity: 0.5;
}

.no-posts p {
    margin: 0.5rem 0;
}

/* Modals */
.social-modal,
.edit-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.social-modal-content,
.edit-modal-content {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: 20px;
    width: 100%;
    max-width: 500px;
    max-height: 80vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.social-modal-header,
.edit-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--border);
}

.social-modal-header h2,
.edit-modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
}

.close-modal {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 2rem;
    cursor: pointer;
    transition: color 0.3s;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-modal:hover {
    color: white;
}

/* Social List */
.social-list {
    padding: 1.5rem 2rem;
    overflow-y: auto;
}

.social-user-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s;
    margin-bottom: 0.5rem;
}

.social-user-card:hover {
    background: rgba(255, 255, 255, 0.05);
}

.social-user-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid var(--primary);
    object-fit: cover;
}

.social-user-info {
    flex: 1;
}

.social-user-name {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.social-user-username {
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* Edit Form */
.edit-form {
    padding: 1.5rem 2rem;
}

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

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

.form-group input,
.form-group select {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--border);
    color: white;
    padding: 0.875rem;
    border-radius: 12px;
    width: 100%;
    font-size: 1rem;
    transition: border-color 0.3s;
}

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

.form-group select option {
    background: #1a1a1a;
    color: white;
}

/* Form Actions */
.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.cancel-btn,
.save-btn {
    flex: 1;
    padding: 0.875rem;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    border: 1px solid var(--border);
}

.cancel-btn {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
}

.cancel-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.save-btn {
    background: white;
    color: black;
    border: none;
}

.save-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(255, 215, 0, 0.3);
}

/* CTA Container */
/* .cta-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
} */

/* Responsive Design */
@media (max-width: 768px) {
    .profile-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .profile-name-section {
        flex-direction: column;
        align-items: center;
    }

    .profile-actions {
        flex-direction: column;
        width: 100%;
    }

    .edit-btn,
    .logout-btn {
        width: 100%;
        justify-content: center;
    }

    .profile-stats {
        justify-content: center;
    }

    .posts-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 1rem;
    }

    .form-actions {
        flex-direction: column;
    }
}




/* ------------------------------------------------------- */
/* user profile */
/* -------------------------------------------------- */


/* User Profile Container */
.user-profile {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

/* Profile Header */
.profile-header {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 2.5rem;
    margin-bottom: 2rem;
    display: flex;
    gap: 2rem;
    align-items: center;
}

/* Profile Avatar */
.profile-avatar {
    position: relative;
    flex-shrink: 0;
}

.profile-avatar img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 3px solid var(--primary);
    object-fit: cover;
    box-shadow: 0 8px 32px rgba(255, 215, 0, 0.2);
}

/* Profile Info */
.profile-info {
    flex: 1;
}

.profile-name {
    font-size: 2rem;
    font-weight: 900;
    margin: 0 0 0.5rem 0;
    background: linear-gradient(135deg, white, var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
}

.profile-username {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin: 0 0 1.5rem 0;
    font-weight: 500;
}

/* Profile Stats */
.profile-stats {
    display: flex;
    gap: 2.5rem;
    margin: 1.5rem 0;
}

.stat {
    display: flex;
    flex-direction: column;
    cursor: pointer;
    transition: transform 0.2s;
    position: relative;
}

.stat::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s;
}

.stat:hover::after {
    width: 100%;
}

.stat:hover {
    transform: translateY(-2px);
}

.stat-number {
    font-size: 1.75rem;
    font-weight: 900;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

/* Profile Actions */
.profile-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.profile-btn {
    padding: 0.875rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
}

.profile-btn.primary {
    background: white;
    color: black;
}

.profile-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(255, 215, 0, 0.3);
}

.profile-btn.primary.following {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid var(--border);
}

.profile-btn.primary.following:hover {
    background: rgba(255, 107, 107, 0.1);
    border-color: var(--error-red);
    color: var(--error-red);
}

.profile-btn.secondary {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--border);
    color: white;
}

.profile-btn.secondary:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--primary);
    transform: translateY(-2px);
}

.profile-btn svg {
    width: 16px;
    height: 16px;
}

/* Profile Content */
.profile-content {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 2rem;
}

.profile-content h2 {
    margin-top: 0;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: white;
}

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

.grid-post {
    position: relative;
    aspect-ratio: 1;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.grid-post:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(255, 215, 0, 0.25);
    border-color: var(--primary);
}

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

.grid-post:hover img {
    transform: scale(1.05);
}

.grid-post-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.9));
    display: flex;
    align-items: flex-end;
    padding: 1.25rem;
    opacity: 0;
    transition: opacity 0.3s;
}

.grid-post:hover .grid-post-overlay {
    opacity: 1;
}

.grid-post-stats {
    display: flex;
    gap: 1.5rem;
    color: white;
    font-weight: 600;
    font-size: 0.95rem;
}

.grid-post-stats span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* No Posts */
.no-posts {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-muted);
}

.no-posts svg {
    margin-bottom: 1.5rem;
    opacity: 0.4;
    stroke: var(--text-muted);
}

.no-posts p {
    margin: 0.5rem 0;
    font-size: 1rem;
}

.no-posts p:first-of-type {
    font-size: 1.25rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.6);
}

/* Social Modal */
.social-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.social-modal-content {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: 20px;
    width: 100%;
    max-width: 500px;
    max-height: 80vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

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

.social-modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
}

.close-modal {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 2rem;
    cursor: pointer;
    transition: all 0.3s;
    padding: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}

.close-modal:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
}

/* Social List */
.social-list {
    padding: 1rem;
    overflow-y: auto;
}

.social-list p {
    text-align: center;
    color: var(--text-muted);
    padding: 2rem;
}

.social-user-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s;
    margin-bottom: 0.5rem;
}

.social-user-card:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateX(5px);
}

.social-user-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 2px solid var(--primary);
    object-fit: cover;
    flex-shrink: 0;
}

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

.social-user-name {
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: white;
    font-size: 0.95rem;
}

.social-user-username {
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .profile-header {
        flex-direction: column;
        text-align: center;
        padding: 2rem 1.5rem;
    }

    .profile-avatar img {
        width: 100px;
        height: 100px;
    }

    .profile-info {
        width: 100%;
    }

    .profile-name {
        font-size: 1.75rem;
    }

    .profile-stats {
        justify-content: center;
        gap: 2rem;
    }

    .stat-number {
        font-size: 1.5rem;
    }

    .profile-actions {
        flex-direction: column;
        width: 100%;
    }

    .profile-btn {
        width: 100%;
        justify-content: center;
    }

    .posts-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 1rem;
    }

    .grid-post-overlay {
        padding: 0.875rem;
    }

    .grid-post-stats {
        gap: 1rem;
        font-size: 0.875rem;
    }

    .social-modal-content {
        max-height: 90vh;
    }

    .social-modal-header {
        padding: 1.25rem 1.5rem;
    }

    .social-list {
        padding: 0.75rem;
    }
}

@media (max-width: 480px) {
    .user-profile {
        padding: 1rem 0.75rem;
    }

    .profile-header {
        padding: 1.5rem 1rem;
        margin-bottom: 1.5rem;
    }

    .profile-content {
        padding: 1.5rem 1rem;
    }

    .posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stat-number {
        font-size: 1.25rem;
    }

    .stat-label {
        font-size: 0.75rem;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom Scrollbar */
.social-list::-webkit-scrollbar {
    width: 8px;
}

.social-list::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.social-list::-webkit-scrollbar-thumb {
    background: rgba(255, 215, 0, 0.3);
    border-radius: 10px;
}

.social-list::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 215, 0, 0.5);
}

/* Loading Animation for Images */
.grid-post img {
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Pulse Effect for Follow Button */
@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

.profile-btn.primary:active {
    animation: pulse 0.3s ease;
}


/* ------------------------------------- */
/* header styling */
/* -------------------------- */
/* Face Fame Header/Topbar - Matching Onboarding Flow */

/* ====================================
   TOPBAR / HEADER STYLES
   ==================================== */

.topbar {
    position: sticky;
    top: 0;
    z-index: 999;
    background: rgba(5, 5, 5, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 0.875rem 2rem;
    display: grid;
    grid-template-columns: 200px 1fr 200px;
    align-items: center;
    gap: 2rem;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* Logo */
.topbar-left {
    display: flex;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 900;
    background: linear-gradient(135deg, white, var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
    cursor: pointer;
    transition: transform 0.3s;
}

.logo:hover {
    transform: scale(1.05);
}

/* Center Search Section (Desktop) */
.topbar-center {
    display: flex;
    justify-content: center;
}

.search-container {
    position: relative;
    width: 100%;
    max-width: 600px;
}

.search-box {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
}

.search-icon {
    position: absolute;
    left: 1rem;
    color: var(--text-muted);
    pointer-events: none;
    z-index: 1;
    transition: color 0.3s;
}

.search-box input {
    width: 100%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--border);
    color: white;
    padding: 0.875rem 3rem 0.875rem 3rem;
    border-radius: 14px;
    font-size: 0.95rem;
    transition: all 0.3s;
}

.search-box input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.1);
}

.search-box input:focus+.search-clear,
.search-box.has-value input {
    padding-right: 3rem;
}

.search-box input:focus~.search-icon {
    color: var(--primary);
}

.search-box input::placeholder {
    color: var(--text-muted);
}

/* Hide browser's default clear button */
.search-box input[type="search"]::-webkit-search-cancel-button {
    -webkit-appearance: none;
    appearance: none;
}

.search-clear {
    position: absolute;
    right: 0.75rem;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    transition: all 0.3s;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
}

.search-box.has-value .search-clear {
    display: flex;
    opacity: 1;
    pointer-events: all;
}

.search-clear:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

/* Right Actions */
.topbar-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.75rem;
}

.search-toggle.mobile-search {
    display: none;
}

.icon-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--border);
    color: var(--text-muted);
    border-radius: 12px;
    padding: 0.75rem;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    position: relative;
}

.icon-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--primary);
    color: white;
    transform: translateY(-2px);
}

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

/* Mobile Search Overlay */
.mobile-search-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(5, 5, 5, 0.98);
    backdrop-filter: blur(20px);
    z-index: 9999;
    padding: 1.5rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-search-overlay.active {
    display: flex;
    opacity: 1;
}

.mobile-search-content {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.mobile-search-close {
    align-self: flex-end;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--border);
    color: white;
    border-radius: 12px;
    padding: 0.75rem;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
}

.mobile-search-close:hover {
    background: rgba(255, 107, 107, 0.15);
    border-color: var(--error-red);
    color: var(--error-red);
}

.mobile-search-box {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
}

.mobile-search-box .search-icon {
    position: absolute;
    left: 1.25rem;
    color: var(--text-muted);
    pointer-events: none;
    z-index: 1;
}

.mobile-search-box input {
    width: 100%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--border);
    color: white;
    padding: 1.125rem 3.5rem 1.125rem 3.5rem;
    border-radius: 16px;
    font-size: 1.125rem;
    transition: all 0.3s;
}

.mobile-search-box input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(255, 215, 0, 0.1);
}

.mobile-search-box input::placeholder {
    color: var(--text-muted);
}

.mobile-search-box .search-clear {
    position: absolute;
    right: 1rem;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.625rem;
    border-radius: 10px;
    transition: all 0.3s;
    display: none;
    align-items: center;
    justify-content: center;
}

.mobile-search-box.has-value .search-clear {
    display: flex;
}

.mobile-search-box .search-clear:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

/* Responsive Design */
@media (max-width: 768px) {
    .topbar {
        grid-template-columns: 1fr auto;
        padding: 0.75rem 1rem;
        gap: 1rem;
    }

    .topbar-center {
        display: none;
    }

    .topbar-right {
        gap: 0.5rem;
    }

    .search-toggle.mobile-search {
        display: flex;
        background: rgba(255, 255, 255, 0.08);
        border: 1px solid var(--border);
        color: var(--text-muted);
        border-radius: 12px;
        padding: 0.75rem;
        cursor: pointer;
        transition: all 0.3s;
        width: 44px;
        height: 44px;
        align-items: center;
        justify-content: center;
    }

    .search-toggle.mobile-search:hover {
        background: rgba(255, 255, 255, 0.12);
        border-color: var(--primary);
        color: white;
    }

    .logo {
        font-size: 1.25rem;
    }

    .icon-btn {
        width: 42px;
        height: 42px;
    }
}

@media (max-width: 480px) {
    .topbar {
        padding: 0.625rem 0.75rem;
    }

    .logo {
        font-size: 1.125rem;
    }

    .icon-btn,
    .search-toggle.mobile-search {
        width: 40px;
        height: 40px;
        padding: 0.625rem;
    }

    .icon-btn svg,
    .search-toggle.mobile-search svg {
        width: 18px;
        height: 18px;
    }
}

/* ====================================
   PREMIUM SIDEBAR NAVIGATION
   ==================================== */

:root {
    /* --primary: #ffd700;
    --bg: #050505;
    --card-bg: rgba(255, 255, 255, 0.05);
    --border: rgba(255, 255, 255, 0.1); */
    --text-muted: #888;
    --nav-width-collapsed: 80px;
    --nav-width-expanded: 240px;
}

/* Desktop Sidebar */
.sidebar {
    position: fixed;
    left: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    width: var(--nav-width-collapsed);
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 1rem 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 40;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.sidebar:hover {
    width: var(--nav-width-expanded);
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.4);
}

/* Navigation List */
.nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* Navigation Items */
.nav-item {
    position: relative;
}

.nav-item a {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    margin: 0 0.75rem;
    color: var(--text-muted);
    text-decoration: none;
    border-radius: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.nav-item a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--primary);
    transform: scaleY(0);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 0 3px 3px 0;
}

.nav-item a:hover {
    background: rgba(255, 255, 255, 0.08);
    color: white;
    transform: translateX(4px);
}

.nav-item a:hover::before {
    transform: scaleY(1);
}

/* Active State */
.nav-item.active a {
    background: rgba(255, 215, 0, 0.15);
    color: white;
    border: 1px solid rgba(255, 215, 0, 0.3);
}

.nav-item.active a::before {
    transform: scaleY(1);
}

.nav-item.active .icon svg {
    stroke: var(--primary);
    filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.5));
}

/* Create Button (Special Styling) */
.nav-item.create-item a {
    background: linear-gradient(135deg, var(--primary), #ffa500);
    color: black;
    font-weight: 700;
    margin: 0.5rem 0.75rem;
}

.nav-item.create-item a:hover {
    transform: translateX(4px) scale(1.05);
    box-shadow: 0 8px 24px rgba(255, 215, 0, 0.4);
}

.nav-item.create-item .icon svg {
    stroke: black;
    stroke-width: 3;
}

.nav-item.create-item .label {
    color: black;
}

/* Icon Styling */
.nav-item .icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.nav-item .icon svg {
    width: 100%;
    height: 100%;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-item a:hover .icon svg {
    transform: scale(1.1);
}

/* Label Styling */
.nav-item .label {
    font-size: 0.95rem;
    font-weight: 600;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
}

.sidebar:hover .label {
    opacity: 1;
    transform: translateX(0);
}

/* Notification Badge */
.notification-badge {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: #ff3b30;
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.125rem 0.375rem;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(255, 59, 48, 0.4);
    animation: pulse-badge 2s infinite;
}

@keyframes pulse-badge {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

/* Keyboard Accessibility */
.sidebar:focus-within {
    width: var(--nav-width-expanded);
}

.nav-item a:focus-visible {
    outline: none;
    background: rgba(255, 255, 255, 0.1);
    box-shadow: inset 0 0 0 2px var(--primary);
}

/* ====================================
   MOBILE BOTTOM DOCK
   ==================================== */

@media (max-width: 768px) {
    .sidebar {
        position: fixed;
        left: 50%;
        right: auto;
        bottom: max(1rem, env(safe-area-inset-bottom));
        top: auto;
        width: auto;
        max-width: calc(100% - 2rem);
        height: auto;
        transform: translateX(-50%);
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0.75rem 1.5rem;
        border-radius: 28px;
        padding-bottom: max(0.75rem, env(safe-area-inset-bottom) + 0.75rem);
    }

    .sidebar:hover {
        width: auto;
    }

    .nav-list {
        flex-direction: row;
        gap: 0.25rem;
        align-items: center;
        justify-content: center;
    }

    .nav-item a {
        flex-direction: column;
        padding: 0.75rem 1rem;
        margin: 0;
        min-width: 60px;
        gap: 0.375rem;
    }

    .nav-item a:hover {
        transform: translateY(-4px);
    }

    .nav-item a::before {
        display: none;
    }

    /* Mobile Active State */
    .nav-item.active a {
        background: linear-gradient(135deg, rgba(255, 215, 0, 0.2), rgba(255, 215, 0, 0.1));
        transform: translateY(-4px);
    }

    /* Create Button Mobile */
    .nav-item.create-item a {
        padding: 1rem;
        margin: 0 0.5rem;
        border-radius: 50%;
        min-width: 56px;
        height: 56px;
        box-shadow: 0 4px 16px rgba(255, 215, 0, 0.4);
    }

    .nav-item.create-item a:hover {
        transform: translateY(-6px) scale(1.05);
    }

    .nav-item.create-item .label {
        display: none;
    }

    /* Icon Adjustments */
    .nav-item .icon {
        width: 17px;
        height: 17px;
    }

    /* Labels */
    .nav-item .label {
        display: block;
        font-size: 0.7rem;
        opacity: 1;
        transform: translateX(0);
        font-weight: 600;
        letter-spacing: 0.025em;
    }

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

    .nav-item.create-item .icon {
        width: 18px;
        height: 18px;
    }

    /* Notification Badge Mobile */
    .notification-badge {
        top: 0.375rem;
        right: 0.75rem;
        font-size: 0.625rem;
        padding: 0.125rem 0.3rem;
        min-width: 16px;
    }
}

@media (max-width: 480px) {
    .sidebar {
        padding: 0.625rem 1rem;
        max-width: calc(100% - 1rem);
    }

    .nav-list {
        gap: 0;
    }

    .nav-item a {
        padding: 0.625rem 0.75rem;
        min-width: 54px;
    }

    .nav-item .icon {
        width: 17px;
        height: 17px;
    }

    .nav-item .label {
        font-size: 0.65rem;
    }

    .nav-item.create-item a {
        min-width: 52px;
        height: 52px;
        padding: 0.875rem;
        margin: 0 0.375rem;
    }

    .nav-item.create-item .icon {
        width: 18px;
        height: 18px;
    }
}

/* ====================================
   SMOOTH ANIMATIONS
   ==================================== */

@keyframes slideInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-20px) translateY(-50%);
    }

    to {
        opacity: 1;
        transform: translateX(0) translateY(-50%);
    }
}

@keyframes slideInFromBottom {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

.sidebar {
    animation: slideInFromLeft 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

@media (max-width: 768px) {
    .sidebar {
        animation: slideInFromBottom 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    }
}

/* ====================================
   CUSTOM SCROLLBAR (if needed)
   ==================================== */

.nav-list::-webkit-scrollbar {
    width: 4px;
}

.nav-list::-webkit-scrollbar-track {
    background: transparent;
}

.nav-list::-webkit-scrollbar-thumb {
    background: rgba(255, 215, 0, 0.3);
    border-radius: 10px;
}

.nav-list::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 215, 0, 0.5);
}

/* ====================================
   PROFILE TABS & CONTESTS - ADD TO EXISTING CSS
   ==================================== */

/* Tab Navigation */
.content-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 0.5rem;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.tab-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 0.875rem 1.5rem;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
}

.tab-btn:hover {
    color: white;
    background: rgba(255, 255, 255, 0.05);
}

.tab-btn.active {
    background: linear-gradient(135deg, var(--primary), #ffa500);
    color: black;
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.3);
}

.tab-btn svg {
    width: 20px;
    height: 20px;
}

/* Tab Content */
.tab-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Contests Grid */
.contests-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.contest-card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s;
}

.contest-card:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(255, 215, 0, 0.2);
}

.contest-banner {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.5);
    position: relative;
}

.contest-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.contest-card:hover .contest-banner img {
    transform: scale(1.05);
}

.contest-info {
    padding: 1.5rem;
}

.contest-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
    margin: 0 0 0.5rem 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.contest-category {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin: 0 0 1rem 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.contest-stats {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.contest-stat {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.8);
}

.contest-stat svg {
    color: var(--primary);
}

.contest-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.contest-status {
    padding: 0.375rem 0.875rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.contest-status.active {
    background: rgba(74, 222, 128, 0.15);
    border: 1px solid rgba(74, 222, 128, 0.3);
    color: var(--success-green);
}

.contest-status.ended {
    background: rgba(255, 107, 107, 0.15);
    border: 1px solid rgba(255, 107, 107, 0.3);
    color: var(--error-red);
}

.contest-time {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.contest-time svg {
    color: var(--primary);
}

/* No Content State */
.no-content {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-muted);
}

.no-content svg {
    color: var(--primary);
    opacity: 0.5;
    margin-bottom: 1.5rem;
}

.no-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.5rem;
}

.no-content p {
    font-size: 1rem;
    margin: 0.5rem 0 2rem 0;
}

.create-contest-btn {
    background: linear-gradient(135deg, var(--primary), #ffa500);
    color: black;
    border: none;
    padding: 0.875rem 2rem;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.create-contest-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255, 215, 0, 0.4);
}

.create-contest-btn svg {
    width: 20px;
    height: 20px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .content-tabs {
        max-width: 100%;
        gap: 0.5rem;
        padding: 0.375rem;
    }

    .tab-btn {
        padding: 0.75rem 1rem;
        font-size: 0.875rem;
    }

    .tab-btn svg {
        width: 18px;
        height: 18px;
    }

    .contests-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .contest-banner {
        height: 180px;
    }

    .contest-info {
        padding: 1.25rem;
    }

    .contest-title {
        font-size: 1.125rem;
    }

    .no-content {
        padding: 3rem 1.5rem;
    }

    .no-content h3 {
        font-size: 1.25rem;
    }

    .no-content svg {
        width: 48px;
        height: 48px;
    }
}

@media (max-width: 480px) {
    .content-tabs {
        flex-direction: row;
        padding: 0.25rem;
    }

    .tab-btn {
        flex-direction: column;
        padding: 0.625rem 0.75rem;
        font-size: 0.8rem;
        gap: 0.25rem;
    }

    .tab-btn svg {
        width: 20px;
        height: 20px;
    }

    .contest-banner {
        height: 160px;
    }

    .contest-title {
        font-size: 1rem;
    }

    .contest-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}

/* Additional Profile Stat Update */
.profile-stats .stat:last-child {
    border-right: none;
}


/* Placeholder/Empty styles */
.empty-state-mini {
    padding: 20px;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
    border: 1px dashed var(--border);
    border-radius: 12px;
}

.error-text {
    color: var(--error-red);
    font-size: 0.8rem;
    padding: 10px;
}

/* Hover effect for the dynamic cards */
.contestant-card {
    transition: transform 0.2s ease, background 0.2s ease;
}

.contestant-card:hover {
    background: var(--hover-bg);
    transform: translateX(5px);
}

/* Shimmer specific override for this section */
.shimmer-card {
    pointer-events: none;
    border-bottom: 1px solid var(--border);
}

/* Edit Profile Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    align-items: center;
    justify-content: center;
}

.modal.show {
    display: flex;
}

.modal-content {
    background-color: #fff;
    border-radius: 12px;
    padding: 24px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #eee;
}

.modal-header h2 {
    margin: 0;
    font-size: 20px;
    color: #333;
}

.close-modal {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #666;
    line-height: 1;
    padding: 0;
}

.close-modal:hover {
    color: #333;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: #333;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #6c5ce7;
}

.avatar-preview {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 12px;
}

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

.form-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 20px;
}

.btn-secondary {
    padding: 10px 20px;
    background-color: #f0f0f0;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    color: #333;
}

.btn-secondary:hover {
    background-color: #e0e0e0;
}

.save-btn {
    padding: 10px 24px;
    background-color: #6c5ce7;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
}

.save-btn:hover {
    background-color: #5b4cdb;
}

.save-btn:disabled {
    background-color: #aaa;
    cursor: not-allowed;
}