:root {
    /* Tech Forward Neon Palette */
    --bg-main: #0a0a0a;
    --bg-gradient: linear-gradient(135deg, #0a0a0a 0%, #1a0a2e 100%);
    --surface: rgba(26, 10, 46, 0.6);
    --surface-light: rgba(0, 255, 136, 0.05);
    --primary: #00ff88; /* Neon Green */
    --primary-glow: rgba(0, 255, 136, 0.5);
    --primary-text: #000000;
    --text-main: #00ff88;
    --text-muted: rgba(0, 255, 136, 0.6);
    --border: rgba(0, 255, 136, 0.2);
    --border-hover: #00ff88;
    --card-shadow: 0 8px 32px rgba(0, 0, 0, 0.8);
    --font: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --card-bg: #111111;
    --navbar-height: 72px;
}


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font);
    background: var(--bg-main);
    background-image: var(--bg-gradient);
    background-attachment: fixed;
    color: var(--text-main);
    -webkit-font-smoothing: antialiased;
    transition: background 0.3s ease, color 0.3s ease;
}


/* Header */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(20px);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 2px solid var(--primary);
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.2);
    gap: 20px;
}


.nav-left,
.nav-links,
.nav-right {
    display: flex;
    align-items: center;
    gap: 20px;
    white-space: nowrap;
}

.logo-text {
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: -1px;
    text-transform: lowercase;
    background: linear-gradient(135deg, var(--primary) 0%, #0ea5e9 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 5px rgba(0, 255, 136, 0.3));
    transition: all 0.3s ease;
}

.logo-text:hover {
    filter: drop-shadow(0 0 10px var(--primary-glow));
    transform: translateY(-1px);
}

.nav-link-btn {
    background: none;
    border: none;
    color: var(--primary);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.2s;
    font-family: var(--font);
}

.nav-link-btn:hover {
    color: var(--primary);
    text-shadow: 0 0 10px var(--primary-glow);
}

.nav-center {
    flex: 1;
    max-width: 500px;
}

.top-search-bar {
    display: flex;
    align-items: center;
    background: var(--surface-light);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 6px 14px;
    transition: all 0.3s ease;
    gap: 8px;
}

.nav-icon-btn {
    background: none;
    border: none;
    color: var(--primary);
    cursor: pointer;
    font-size: 1.1rem;
    padding: 4px 8px;
    border-left: 1px solid var(--border);
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-icon-btn:hover {
    color: var(--primary);
    text-shadow: 0 0 10px var(--primary-glow);
    transform: scale(1.1);
}


.top-search-bar:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 10px var(--primary-glow);
}

.top-search-bar i {
    color: var(--primary);
    font-size: 14px;
    margin-right: 12px;
    text-shadow: 0 0 5px var(--primary-glow);
}


#searchInput {
    border: none;
    background: transparent;
    width: 100%;
    outline: none;
    color: var(--text-main);
    font-size: 14px;
    font-family: var(--font);
}

.nav-link {
    color: var(--primary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-link:hover {
    color: var(--primary);
    text-shadow: 0 0 10px var(--primary-glow);
}


/* Navigation Icon Links (Saved) */
.nav-icon-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    color: var(--primary);
    transition: all 0.2s;
    user-select: none;
}

.nav-icon-link i {
    font-size: 1.1rem;
    text-shadow: 0 0 8px var(--primary-glow);
}

.nav-icon-link span {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-icon-link:hover {
    color: var(--primary);
    transform: translateY(-1px);
    filter: drop-shadow(0 0 5px var(--primary-glow));
}

.nav-icon-link.active {
    color: var(--primary);
    filter: drop-shadow(0 0 8px var(--primary-glow));
}


@media (max-width: 900px) {
    .nav-links {
        display: none;
    }
    
    #btnSubmitPoseMobile:not(.hidden) {
        display: flex !important;
    }
}

@media (min-width: 901px) {
    #btnSubmitPoseMobile {
        display: none !important;
    }
}

@media (max-width: 600px) {
    .nav-icon-link span {
        display: none; /* Hide 'Saved' text on small mobile */
    }
}


.btn-signup {
    background: var(--primary);
    color: var(--primary-text);
    text-decoration: none;
    padding: 8px 18px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 500;
    transition: opacity 0.2s;
}

.btn-signup:hover {
    opacity: 0.85;
}

/* Filters Row (Compressed) */
.filter-scroll {
    overflow-x: auto;
    padding: 10px 24px;
    border-bottom: 1px solid var(--border);
    background: rgba(10, 10, 10, 0.6);
    backdrop-filter: blur(15px);
    position: sticky;
    top: 72px;
    z-index: 100;
}


/* Filter Drawer (Sidebar) */
.filter-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    max-width: 380px;
    height: 100vh;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(30px);
    z-index: 3000;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.8);
    display: flex;
    flex-direction: column;
    border-left: 1px solid var(--primary);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.filter-drawer.hidden {
    transform: translateX(100%);
    display: flex !important; /* Keep displayed for animation state */
    pointer-events: none;
    opacity: 0;
}

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

.drawer-header h3 {
    margin: 0;
    font-size: 1.25rem;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    text-shadow: 0 0 10px var(--primary-glow);
}

.drawer-close {
    background: none;
    border: none;
    color: var(--primary);
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
}

.drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.drawer-section h4 {
    margin: 0 0 16px 0;
    font-size: 0.9rem;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 1px;
}

.drawer-filter-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.drawer-footer {
    padding: 24px;
    border-top: 1px solid var(--border);
    display: flex;
    gap: 12px;
}

.btn-clear-filters, .btn-apply-filters {
    flex: 1;
    padding: 12px;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    text-transform: uppercase;
    transition: all 0.2s;
}

.btn-clear-filters {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-muted);
}

.btn-apply-filters {
    background: var(--primary);
    border: 1px solid var(--primary);
    color: var(--primary-text);
}

.btn-apply-filters:hover {
    box-shadow: 0 0 15px var(--primary-glow);
}



.filter-scroll::-webkit-scrollbar {
    display: none;
}

.filter-container {
    display: flex;
    gap: 12px;
    align-items: center;
    width: 100%;
    position: relative;
}

.filter-container .nav-icon-btn,
.filter-container .nav-icon-link {
    padding: 8px 12px;
    border-radius: 4px;
    border: 1px solid var(--border);
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: var(--primary);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 38px;
    flex-shrink: 0;
    z-index: 10;
}

#btnToggleFilters {
    position: sticky;
    left: 0;
}

#btnSavedPoses {
    position: sticky;
    right: 0;
    margin-left: auto;
}

.filter-container .nav-icon-btn:hover,
.filter-container .nav-icon-link:hover {
    border-color: var(--primary);
    background: rgba(0, 255, 136, 0.1);
    box-shadow: 0 0 10px var(--primary-glow);
}

.filter-container .nav-icon-link.active {
    background: var(--primary);
    color: var(--primary-text);
    border-color: var(--primary);
    box-shadow: 0 0 15px var(--primary-glow);
}

.filter-container .nav-icon-link span {
    font-size: 11px;
    font-weight: 700;
    margin-left: 8px;
    text-transform: uppercase;
}

.filter-btn {
    padding: 8px 16px;
    border-radius: 4px;
    border: 1px solid var(--border);
    background: var(--surface-light);
    color: var(--primary);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-btn:hover {
    border-color: var(--primary);
    background: rgba(0, 255, 136, 0.1);
    box-shadow: 0 0 10px var(--primary-glow);
}


.filter-btn.difficulty-btn {
    border-radius: 20px;
    padding: 6px 14px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-btn.difficulty-btn.beginner { border-color: #22c55e; color: #22c55e; }
.filter-btn.difficulty-btn.beginner.active { background: #22c55e; color: white; }

.filter-btn.difficulty-btn.intermediate { border-color: #eab308; color: #eab308; }
.filter-btn.difficulty-btn.intermediate.active { background: #eab308; color: white; }

.filter-btn.difficulty-btn.advanced { border-color: #ef4444; color: #ef4444; }
.filter-btn.difficulty-btn.advanced.active { background: #ef4444; color: white; }

.filter-btn.active {
    background: var(--primary);
    color: var(--primary-text);
    border-color: var(--primary);
    box-shadow: 0 0 15px var(--primary-glow);
    text-shadow: 0 0 5px rgba(0,0,0,0.5);
}


/* Masonry Grid — Pinterest/Unsplash style */
.poses-grid {
    column-count: 2;
    column-gap: 0px;
    padding: 0px;
    max-width: 1400px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .poses-grid {
        column-count: 3;
    }
}

@media (min-width: 1024px) {
    .poses-grid {
        column-count: 4;
    }
}

.pose-card {
    break-inside: avoid;
    overflow: hidden;
    cursor: pointer;
    background: var(--card-bg);
    position: relative;
    display: inline-block;
    width: 100%;
    margin: 0;
    padding: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.pose-card:hover {
    transform: scale(1.02);
    z-index: 10;
    border-color: var(--primary);
    box-shadow: 0 8px 25px rgba(0, 255, 136, 0.2);
}


.image-container {
    width: 100%;
    background: var(--card-bg);
    line-height: 0; /* Remove gap below inline images */
}

.image-container img {
    width: 100%;
    height: auto; /* Natural aspect ratio — no cropping */
    display: block;
    object-fit: cover;
    object-position: top center;
    padding: 0px;
}


/* Difficulty Badges on Cards */
.difficulty-badge {
    position: absolute;
    bottom: 12px;
    left: 12px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(0,0,0,0.3);
    z-index: 5;
}

.difficulty-badge.beginner { background: #22c55e; }
.difficulty-badge.intermediate { background: #eab308; }
.difficulty-badge.advanced { background: #ef4444; }

.difficulty-label {
    position: absolute;
    bottom: 10px;
    left: 28px;
    font-size: 10px;
    font-weight: 600;
    color: white;
    text-shadow: 0 1px 2px rgba(0,0,0,0.8);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.pose-card:hover .difficulty-label {
    opacity: 1;
}

/* Removed old heavy gradient text overlay */
.pose-info {
    display: none;
}

.pose-category {
    display: none;
}

.pose-card.hidden {
    display: none;
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 20000; /* Higher than onboarding overlay (9999) */
    display: flex;
    flex-direction: column;
    visibility: visible;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.modal.hidden {
    visibility: hidden;
    opacity: 0;
}

@media (max-width: 768px) {
    .modal {
        background: #000;
    }
    .modal-bg {
        background: #000;
        opacity: 1;
    }
    .modal-header {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        background: linear-gradient(to bottom, rgba(0,0,0,0.8), transparent);
        z-index: 2010;
        padding: 16px 20px;
    }
    .modal-header .btn-back, 
    .modal-header .modal-title,
    .modal-header .btn-edit {
        color: #fff;
    }
    .modal-content {
        max-width: none;
        background: #000;
    }
    .modal-image-wrapper {
        padding: 0;
    }
    .modal-footer {
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
        z-index: 2010;
        padding: 40px 20px 20px 20px;
        color: #fff;
    }
    .modal-footer i {
        color: #fff;
    }
}

/* Pose Mode Specifics */
.pose-mode-counter {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 12px;
    color: white;
    font-weight: 600;
    pointer-events: none;
    z-index: 2020;
    transition: opacity 0.3s;
}

.pose-mode-counter.left { left: 20px; }
.pose-mode-counter.right { right: 20px; }

.pose-indicator {
    position: fixed;
    bottom: 85px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255,255,255,0.1);
    color: #fff;
    padding: 6px 16px;
    border-radius: 100px;
    font-size: 11px;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-weight: 700;
    z-index: 2020;
    pointer-events: none;
    display: none;
}

@media (max-width: 768px) {
    .pose-indicator {
        display: block;
    }
}

.modal-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    background: var(--bg-main);
    opacity: 0.98;
}

.modal-content {
    position: relative;
    z-index: 2001;
    display: flex;
    flex-direction: column;
    height: 100%;
    max-width: 1000px;
    margin: 0 auto;
    width: 100%;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px;
}

.btn-back,
.btn-edit {
    background: none;
    border: none;
    font-size: 14px;
    color: var(--text-main);
    cursor: pointer;
    font-weight: 500;
    font-family: var(--font);
    transition: color 0.2s;
}

.btn-back:hover,
.btn-edit:hover {
    color: var(--text-muted);
}

.btn-back i {
    margin-right: 8px;
}

.modal-title {
    font-weight: 600;
    font-size: 16px;
    text-align: center;
    color: var(--text-main);
    letter-spacing: 0.5px;
}

.modal-image-wrapper {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    cursor: grab;
    padding: 20px;
}

.modal-image-wrapper:active {
    cursor: grabbing;
}

#modalImg {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.modal-footer {
    display: flex;
    justify-content: center;
    gap: 30px;
    align-items: center;
    padding: 20px 24px 40px 24px;
}

.modal-footer i {
    font-size: 20px;
    color: var(--text-main);
    cursor: pointer;
    transition: color 0.2s, transform 0.2s;
}

.modal-footer i:hover {
    color: var(--text-muted);
    transform: scale(1.1);
}

/* Gender Filters */
.gender-filter-scroll {
    padding-top: 8px;
    padding-bottom: 12px;
}

.gender-filter-container .filter-btn {
    font-size: 12px;
    padding: 6px 14px;
}

/* Auth Modal */
.auth-modal {
    justify-content: center;
    align-items: center;
    padding: 24px;
}

#authModalBg {
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.auth-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    width: 100%;
    max-width: 420px;
    position: relative;
    z-index: 2001;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

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

.auth-header h3 {
    font-size: 16px;
    font-weight: 600;
}

.btn-close {
    background: none;
    border: none;
    font-size: 18px;
    color: var(--text-muted);
    cursor: pointer;
    transition: color 0.2s;
}

.btn-close:hover {
    color: var(--text-main);
}

.auth-body {
    padding: 32px;
}

.auth-desc {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.input-group {
    display: flex;
    align-items: center;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 12px 14px;
    margin-bottom: 16px;
    transition: border-color 0.2s;
}

.input-group:focus-within {
    border-color: var(--primary);
}

.input-group i {
    color: var(--text-muted);
    margin-right: 12px;
    font-size: 14px;
}

.input-group input {
    border: none;
    background: transparent;
    width: 100%;
    outline: none;
    color: var(--text-main);
    font-size: 14px;
    font-family: var(--font);
}

.btn-primary {
    background: var(--primary);
    color: var(--primary-text);
    border: 1px solid var(--primary);
    width: 100%;
    padding: 12px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    font-family: var(--font);
    transition: opacity 0.2s;
}

.btn-primary:hover {
    opacity: 0.85;
}

.btn-outline {
    background: transparent;
    color: var(--text-main);
    border: 1px solid var(--border);
    width: 100%;
    padding: 12px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    font-family: var(--font);
    transition: all 0.2s ease;
}

.btn-outline:hover {
    background: rgba(0, 0, 0, 0.03);
    border-color: var(--text-main);
}

@media (prefers-color-scheme: dark) {
    .btn-outline:hover {
        background: rgba(255, 255, 255, 0.05);
    }
}

.btn-text {
    background: none;
    border: none;
    width: 100%;
    padding: 10px;
    color: var(--text-main);
    font-size: 13px;
    cursor: pointer;
    margin-top: 10px;
    font-family: var(--font);
    text-decoration: underline;
}

/* Paywall Banner */
.paywall-banner {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    background: linear-gradient(to bottom, transparent, var(--bg-main) 40%, var(--bg-main) 100%);
    text-align: center;
    margin-top: -100px;
    position: relative;
    z-index: 10;
}

.paywall-banner h4 {
    font-size: 20px;
    margin-bottom: 12px;
    font-weight: 600;
}

.paywall-banner p {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.paywall-banner button {
    background: var(--primary);
    color: var(--primary-text);
    border: none;
    padding: 12px 28px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
}

/* Modal Tags styling */
.modal-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0 40px 20px 40px;
    justify-content: center;
}

.pill-tag {
    background: var(--surface-light);
    border: 1px solid var(--border);
    color: var(--primary);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
}

.pill-tag:hover {
    border-color: var(--primary);
    box-shadow: 0 0 10px var(--primary-glow);
    transform: scale(1.05);
}


.hidden {
    display: none !important;
}

/* Share Menu Styles */
.share-menu {
    position: absolute;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid var(--primary);
    border-radius: 12px;
    padding: 16px;
    width: 260px;
    z-index: 2100;
    box-shadow: 0 0 30px rgba(0, 255, 136, 0.2);
    animation: menuFadeIn 0.2s ease-out;
}

@media (max-width: 768px) {
    .share-menu {
        bottom: 100px;
        width: 90%;
        max-width: 320px;
        background: #050505; /* Blacker theme for mobile mode */
        border-color: var(--primary);
        color: var(--primary);
    }
}


.share-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    font-size: 14px;
    font-weight: 600;
}

.share-menu-header button {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 16px;
}

.share-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.share-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: background 0.2s;
}

.share-item:hover {
    background: rgba(0,0,0,0.05);
}

@media (max-width: 768px) {
    .share-item:hover {
        background: rgba(255,255,255,0.1);
    }
}

.share-item i {
    font-size: 20px;
}

.share-item span {
    font-size: 10px;
    font-weight: 500;
    color: var(--text-main);
}

@media (max-width: 768px) {
    .share-item span {
        color: #fff;
    }
}

/* Footer Styling */
.app-footer {
    background: rgba(10, 10, 10, 0.7);
    backdrop-filter: blur(20px);
    border-top: 1px solid var(--border);
    padding: 30px 24px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 20px;
}

.footer-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
}

.footer-link {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-link:hover {
    color: var(--primary);
    text-shadow: 0 0 8px var(--primary-glow);
}

.footer-sep {
    color: var(--border);
    font-size: 14px;
    opacity: 0.5;
}

.footer-copy {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.3);
    letter-spacing: 0.5px;
}

/* Secondary Overlays */
.drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(40px);
    z-index: 5000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.drawer-overlay.hidden {
    opacity: 0;
    visibility: hidden;
    transform: translateY(100%);
}

.overlay-content {
    position: relative;
    width: 100%;
    max-width: 850px;
    padding: 40px;
    max-height: 90vh;
    overflow-y: auto;
}

.overlay-close {
    position: absolute;
    top: 20px;
    right: 30px;
    background: none;
    border: none;
    color: var(--primary);
    font-size: 2.5rem;
    cursor: pointer;
    transition: transform 0.3s;
}

.overlay-close:hover {
    transform: rotate(90deg) scale(1.1);
}

.onboarding-content h2 {
    font-family: 'Syne', sans-serif;
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #fff 0%, var(--primary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.neon-title {
    font-family: 'Outfit', sans-serif;
    font-size: 3rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 24px;
    text-align: center;
    text-shadow: 0 0 20px var(--primary-glow);
    letter-spacing: -1px;
}

.section-desc {
    text-align: center;
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* About Grid */
.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.about-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    padding: 30px;
    border-radius: 16px;
    text-align: center;
    transition: all 0.3s;
}

.about-card:hover {
    border-color: var(--primary);
    background: rgba(0, 255, 136, 0.05);
    transform: translateY(-5px);
}

.about-card i {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 20px;
    filter: drop-shadow(0 0 10px var(--primary-glow));
}

.about-card h3 {
    margin-bottom: 12px;
    font-size: 1.25rem;
}

.about-card p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
}

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

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

@media (max-width: 600px) {
    .form-row { grid-template-columns: 1fr; }
    .neon-title { font-size: 2rem; }
}

.neon-form .input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.neon-form label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    font-weight: 600;
}

.neon-form .input-wrapper {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 12px 18px;
    transition: all 0.3s;
}

.neon-form .input-wrapper:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 15px var(--primary-glow);
    background: rgba(0, 255, 136, 0.02);
}

.neon-form i {
    color: var(--primary);
    margin-right: 15px;
    font-size: 1rem;
}

.neon-form input, .neon-form textarea {
    background: none;
    border: none;
    width: 100%;
    color: #fff;
    font-family: var(--font);
    font-size: 1rem;
    outline: none;
}

.btn-primary .btn-text {
    flex: 1;
}

.btn-primary i {
    margin-left: 10px;
    font-size: 1rem;
    color: inherit;
}

.success-alert {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: rgba(0, 255, 136, 0.1);
    border: 1px solid var(--primary);
    padding: 16px;
    border-radius: 12px;
    color: var(--primary);
    font-weight: 600;
    margin-top: 20px;
    animation: fadeIn 0.4s ease;
}

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

@media (max-width: 600px) {
    .modal-content {
        height: 100%;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .modal-header {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        z-index: 2100;
        background: linear-gradient(to bottom, rgba(10, 10, 10, 0.8), transparent);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        padding: 16px 20px;
    }

    .modal-image-wrapper {
        padding: 0 !important;
        background: #000;
        height: 100vh;
        width: 100vw;
    }

    #modalImg {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

    .modal-footer {
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 2100;
        background: linear-gradient(to top, rgba(10, 10, 10, 0.85), transparent);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        padding: 20px 20px 40px 20px;
        gap: 40px;
    }

    .modal-tags {
        position: absolute;
        bottom: 100px;
        left: 0;
        right: 0;
        padding: 0 20px;
        z-index: 2090;
        justify-content: center;
        mask-image: linear-gradient(to right, transparent, white 20%, white 80%, transparent);
        -webkit-mask-image: linear-gradient(to right, transparent, white 20%, white 80%, transparent);
    }
    
    .pose-indicator {
        bottom: 15px;
        font-size: 10px;
        opacity: 0.6;
    }
}

@keyframes menuFadeIn {
    from { opacity: 0; transform: translate(-50%, 10px); }
    to { opacity: 1; transform: translate(-50%, 0); }
}

/* ============== SKELETON LOADING ============== */
.skeleton {
    background: linear-gradient(
        90deg, 
        rgba(255, 255, 255, 0.03) 25%, 
        rgba(255, 255, 255, 0.08) 50%, 
        rgba(255, 255, 255, 0.03) 75%
    );
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.5s infinite linear;
    border-radius: 4px;
}

@keyframes skeleton-shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.skeleton-card {
    aspect-ratio: 4 / 5;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    padding: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.skeleton-img {
    flex: 1;
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
}

.skeleton-footer {
    height: 48px;
    width: 100%;
    background: rgba(255, 255, 255, 0.02);
    display: flex;
    align-items: center;
    padding: 0 12px;
}

.skeleton-text {
    height: 12px;
    width: 60%;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

/* User Submission Upload Styles */
.drop-zone.dragover {
    border-color: var(--primary) !important;
    background: rgba(0, 255, 136, 0.1) !important;
    box-shadow: 0 0 20px var(--primary-glow);
}

.upload-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 12px;
}

.upload-preview-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 4/5;
    border: 1px solid var(--border);
}

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

.remove-user-preview {
    position: absolute;
    top: 5px;
    right: 5px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    transition: background 0.2s;
}

.remove-user-preview:hover {
    background: #ff4d4d;
}

/* Auth Card Scrollability Fix */
.auth-card {
    max-height: 90vh;
    overflow-y: auto;
    margin: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--primary) transparent;
}

.auth-card::-webkit-scrollbar {
    width: 6px;
}

.auth-card::-webkit-scrollbar-thumb {
    background-color: var(--primary);
    border-radius: 10px;
}

/* PROFILE DRAWER STYLES */
.profile-drawer-content {
    width: 100% !important;
    max-width: 320px !important;
    right: 0;
    left: auto !important;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100vh;
    border-radius: 0 !important;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
    background: rgba(14, 14, 21, 0.95) !important;
    backdrop-filter: blur(20px);
    border-left: 1px solid rgba(0, 255, 136, 0.2);
    display: flex;
    flex-direction: column;
}

.drawer-overlay:not(.hidden) .profile-drawer-content {
    transform: translateX(0);
}

.profile-header {
    padding: 60px 20px 20px;
    text-align: center;
}

.profile-avatar {
    width: 80px;
    height: 80px;
    background: rgba(0, 255, 136, 0.1);
    border: 2px solid var(--primary);
    border-radius: 50%;
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: var(--primary);
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.3);
}

.profile-info h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.25rem;
    margin-bottom: 5px;
    color: var(--text-main);
}

.profile-info p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.drawer-menu-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 136, 0.3), transparent);
    margin: 20px 0;
}

.drawer-nav {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 0 15px;
}

.drawer-nav-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 15px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
    color: var(--text-main);
    user-select: none;
}

.drawer-nav-item:hover {
    background: rgba(0, 255, 136, 0.08);
    color: var(--primary);
    transform: translateX(5px);
}

.drawer-nav-item i {
    font-size: 1.1rem;
    width: 20px;
}

.drawer-footer-actions {
    margin-top: auto;
    padding: 40px 15px 40px;
}

.btn-logout-drawer {
    width: 100%;
    padding: 12px;
    border: 1px solid rgba(239, 68, 68, 0.3);
    background: rgba(239, 68, 68, 0.05);
    color: #ef4444;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.2s;
    font-family: var(--font);
}

.btn-logout-drawer:hover {
    background: #ef4444;
    color: white;
}

/* ACCOUNT DETAILS MODAL */
.profile-details-card {
    max-width: 400px;
    padding: 20px;
}

.detail-row {
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 10px;
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-row label {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 5px;
}

.detail-row span {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    color: var(--primary);
    font-size: 1rem;
    word-break: break-all;
}

/* PWA Install Popup */
.pwa-popup {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(120px);
    z-index: 50000;
    width: 92%;
    max-width: 400px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.pwa-popup:not(.hidden) {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
    visibility: visible;
}

.pwa-popup-content {
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid var(--primary);
    border-radius: 24px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 20px var(--primary-glow);
}

.pwa-icon img {
    width: 70px;
    height: 70px;
    border-radius: 16px;
    border: 1px solid var(--border);
    box-shadow: 0 0 20px var(--primary-glow);
    background: var(--bg-main);
}

.pwa-text h3 {
    color: var(--primary);
    font-size: 1.2rem;
    margin-bottom: 6px;
    font-family: 'Outfit', sans-serif;
    letter-spacing: 0.5px;
}

.pwa-text p {
    color: #a1a1aa;
    font-size: 0.95rem;
    line-height: 1.5;
}

.pwa-actions {
    display: flex;
    gap: 12px;
    width: 100%;
    margin-top: 8px;
}

.btn-pwa-primary, .btn-pwa-secondary {
    flex: 1;
    padding: 14px;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    font-size: 0.95rem;
    transition: all 0.2s;
    font-family: var(--font);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-pwa-primary {
    background: var(--primary);
    color: #000;
    border: none;
    box-shadow: 0 0 15px var(--primary-glow);
}

.btn-pwa-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 25px var(--primary-glow);
}

.btn-pwa-secondary {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-pwa-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
}