/* ============================================
   NEW IMAGE WEB 1.0 — Premium Glassmorphism
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --bg-base: #020205;
    --bg-surface: rgba(255, 255, 255, 0.03);
    --bg-surface-hover: rgba(255, 255, 255, 0.07);
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.08);
    --accent: #8b5cf6;
    --accent-glow: rgba(139, 92, 246, 0.25);
    --accent-2: #d946ef;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #475569;
    --card-radius: 24px;
    --transition: 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    --rose-gradient: linear-gradient(135deg, #f43f5e, #fb7185);
    --heart-glow: 0 0 15px rgba(244, 63, 94, 0.5);
}

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

html,
body {
    margin: 0;
    padding: 0;
    width: 100% !important;
    overflow-x: hidden !important;
    /* Definitively kill ghost scrolling */
    background: var(--bg-base);
    color: var(--text-primary);
    line-height: 1.6;
    font-family: 'Inter', sans-serif;
}

body {
    min-height: 100vh;
    background-image:
        radial-gradient(ellipse at 10% 0%, rgba(168, 85, 247, 0.12) 0%, transparent 60%),
        radial-gradient(ellipse at 90% 100%, rgba(236, 72, 153, 0.08) 0%, transparent 60%);
}

/* ==========  CONTAINER  ========== */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==========  NAVBAR  ========== */
.nav-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: 72px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--glass-border);
    background: rgba(10, 10, 15, 0.75);
    backdrop-filter: blur(24px);
    transition: var(--transition);
}

.nav-container {
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 32px;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 24px;
    flex: 0 0 auto;
    /* Don't grow, stay at content size */
}

.nav-middle {
    flex: 1;
    display: flex;
    justify-content: center;
    max-width: 600px;
}

.nav-right {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 20px;
    justify-content: flex-end;
}

.search-bar {
    max-width: 480px;
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 99px;
    display: flex;
    align-items: center;
    padding-right: 4px;
    transition: var(--transition);
}

.search-bar:focus-within {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--accent);
    box-shadow: 0 0 20px var(--accent-glow);
}

.search-bar input {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-primary);
    padding: 10px 20px;
    font-size: 14px;
    outline: none;
}

#search-btn {
    background: transparent;
    border: none;
    padding: 8px 12px;
    cursor: pointer;
    font-size: 16px;
    color: var(--text-secondary);
}

/* Nav Buttons */
#auth-section {
    display: flex;
    align-items: center;
    min-width: 120px;
}

#google-btn-wrapper {
    height: 40px;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

/* Nav Header structure managed by media queries below */


.nav-btn-credits {
    padding: 8px 16px;
    border-radius: 99px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    font-weight: 700;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: var(--transition);
}

.nav-btn-credits:hover {
    border-color: var(--accent);
    background: var(--bg-surface-hover);
}

.nav-btn-upload {
    padding: 9px 24px;
    border-radius: 99px;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    border: none;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 15px var(--accent-glow);
    transition: var(--transition);
}

.nav-btn-upload:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px var(--accent-glow);
}

.nav-btn-profile {
    padding: 4px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    cursor: pointer;
    display: flex;
    align-items: center;
}

.nav-btn-profile img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
}

.nav-btn-profile span {
    display: none;
}

#user-menu {
    display: none;
    align-items: center;
    position: relative;
    z-index: 1001;
}

/* Hide name in header, show in dropdown */

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    font-size: 22px;
    font-weight: 800;
    color: #fff;
}

.logo-accent {
    color: var(--accent);
}

/* ==========  BUTTONS  ========== */
.btn {
    padding: 8px 20px;
    border-radius: 10px;
    border: none;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: #fff;
    box-shadow: 0 4px 20px var(--accent-glow);
}

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

.btn-ghost {
    background: var(--glass-bg);
    color: var(--text-secondary);
    border: 1px solid var(--glass-border);
}

.btn-ghost:hover {
    background: var(--bg-surface-hover);
    color: var(--text-primary);
}

/* ==========  CLOSE BUTTON  ========== */
.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    z-index: 1001;
}

.modal-close:hover {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border-color: #ef4444;
    transform: rotate(90deg);
}

/* ==========  DROPDOWN  ========== */
.dropdown {
    position: relative;
    display: flex;
    align-items: center;
}

.dropdown-content {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    min-width: 200px;
    background: rgba(10, 10, 18, 0.9);
    backdrop-filter: blur(24px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 8px;
    display: none;
    flex-direction: column;
    z-index: 1001;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    animation: slideUp 0.3s ease;
}

.dropdown-content a {
    padding: 12px 16px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    border-radius: 10px;
    transition: var(--transition);
}

.dropdown-content a:hover {
    background: var(--bg-surface-hover);
    color: var(--text-primary);
}

.dropdown-content hr {
    border: none;
    border-top: 1px solid var(--glass-border);
    margin: 8px 0;
}

.filter-btn {
    padding: 10px 24px;
    border-radius: 99px;
    border: 1px solid var(--glass-border);
    background: var(--bg-surface);
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn:hover {
    background: var(--bg-surface-hover);
    color: var(--text-primary);
}

.filter-btn.active {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
    box-shadow: 0 0 15px var(--accent-glow);
}

.btn-filter-sub {
    padding: 6px 16px;
    border-radius: 99px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-filter-sub:hover {
    background: var(--bg-surface-hover);
    color: var(--text-primary);
}

.btn-filter-sub.active {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
    box-shadow: 0 4px 12px var(--accent-glow);
}

.gallery-count {
    text-align: center;
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 20px;
}

.header-content {
    text-align: center;
    margin-bottom: 40px;
}

.header-content h1 {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 8px;
    letter-spacing: -1px;
}

.full-width {
    width: 100%;
    margin-top: 12px;
    padding: 12px;
    border-radius: 12px;
}

/* ==========  GALLERY  ========== */
.gallery-header {
    padding: 32px 0 20px;
}

.gallery-header h1 {
    font-size: 28px;
    font-weight: 700;
}

#gallery-count {
    color: var(--text-muted);
    font-size: 14px;
    margin-top: 4px;
}

.masonry-grid {
    columns: 6 200px;
    column-gap: 16px;
    width: 100%;
}

.gallery-card {
    break-inside: avoid;
    margin-bottom: 20px;
    border-radius: var(--card-radius);
    overflow: hidden;
    background: var(--bg-surface);
    border: 1px solid var(--glass-border);
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    /* Dynamic aspect ratio from JS */
    display: flex;
    flex-direction: column;
}

.gallery-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, var(--accent-glow), transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.gallery-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6), 0 0 30px var(--accent-glow);
    border-color: rgba(255, 255, 255, 0.25);
}

.gallery-card:hover::after {
    opacity: 1;
}

.gallery-card img {
    width: 100%;
    height: auto;
    /* True Masonry: Preserve height */
    display: block;
    transition: transform 0.6s var(--transition), filter 0.3s ease;
    background: var(--bg-surface-hover);
}

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

/* HEAVY BLUR FOR LOCKED CARDS (MAXIMUM SECURITY AESTHETIC) */
.gallery-card.locked img {
    filter: blur(30px) brightness(0.65);
    transform: scale(1.22);
    pointer-events: none;
}

.gallery-card.locked:hover img {
    filter: blur(26px) brightness(0.75);
    transform: scale(1.25);
}

.gallery-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.gallery-card:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 20px rgba(168, 85, 247, 0.1);
}

.card-overlay {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: all 0.4s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    background: rgba(0, 0, 0, 0.2);
}

.gallery-card:hover .card-overlay {
    opacity: 1;
    backdrop-filter: blur(4px);
}

.card-footer {
    padding: 14px 18px;
    background: rgba(10, 10, 18, 0.6);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
    z-index: 10;
}

.card-title {
    font-size: 15px;
    font-weight: 700;
    color: #f8fafc;
    margin-bottom: 8px;
    font-family: 'Inter', sans-serif;
    letter-spacing: -0.02em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

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

.card-stats-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.stat-item {
    font-size: 11px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 4px;
}

.stat-item i {
    font-size: 10px;
    opacity: 0.6;
}

.heart-btn {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: var(--text-secondary) !important;
    padding: 0 !important;
    border-radius: 50% !important;
    font-size: 18px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    position: relative !important;
    height: 44px !important;
    width: 44px !important;
    box-shadow: none !important;
}

.heart-btn i {
    font-size: 18px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 auto !important;
    height: 100% !important;
}

.heart-btn:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    color: #fff !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
    transform: scale(1.05);
}

.heart-btn.active {
    background: linear-gradient(135deg, #ec4899, #8b5cf6) !important;
    border: none !important;
    color: #fff !important;
    box-shadow: 0 0 20px rgba(236, 72, 153, 0.6) !important;
    animation: heartBeat 0.5s ease-out;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(236, 72, 153, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(236, 72, 153, 0); }
    100% { box-shadow: 0 0 0 0 rgba(236, 72, 153, 0); }
}

/* Premium Lock Icon */
.lock-icon-premium {
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 14px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: var(--transition);
}

.gallery-card:hover .lock-icon-premium {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
    color: var(--accent);
    border-color: var(--accent);
}

.tag-Free { background: rgba(16, 185, 129, 0.15); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.3); box-shadow: 0 0 15px rgba(16, 185, 129, 0.2); }
.tag-Standard { background: rgba(139, 92, 246, 0.15); color: #a78bfa; border: 1px solid rgba(139, 92, 246, 0.3); box-shadow: 0 0 15px rgba(139, 92, 246, 0.2); }
.tag-NSFW { background: rgba(244, 63, 94, 0.15); color: #fb7185; border: 1px solid rgba(244, 63, 94, 0.3); box-shadow: 0 0 15px rgba(244, 63, 94, 0.2); }
.tag-Exclusive { background: rgba(245, 158, 11, 0.15); color: #fbbf24; border: 1px solid rgba(245, 158, 11, 0.3); box-shadow: 0 0 20px rgba(245, 158, 11, 0.3); animation: subtle-glow 3s infinite alternate; }

@keyframes subtle-glow {
    from { box-shadow: 0 0 10px rgba(245, 158, 11, 0.2); }
    to { box-shadow: 0 0 25px rgba(245, 158, 11, 0.5); }
}

.heart-btn .like-count {
    font-size: 14px !important;
    /* Balanced legible size */
    font-weight: 800 !important;
    letter-spacing: -0.5px !important;
    font-family: 'Outfit', sans-serif !important;
}

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

    50% {
        background-position: 100% 50%;
    }

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

@keyframes heartBeat {
    0% {
        transform: scale(1);
    }

    30% {
        transform: scale(1.4);
    }

    50% {
        transform: scale(0.9);
    }

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

/* Removed legacy conflict */

.video-badge {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #fff;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    /* ======= ADVANCED ICON SYSTEM & DOM WATERMARK ======= */
}

.post-action-btn.unlocked .action-icon {
    border: 1px solid var(--gold);
    color: var(--gold);
    box-shadow: 0 0 10px rgba(240, 185, 11, 0.2);
}

/* Flicker-Free DOM Watermark (Advanced Tiled) */
.watermark-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 5;
    opacity: 0;
    transition: opacity 0.3s ease;
    mix-blend-mode: normal;
    /* High-Visibility Stamped Look */
    /* Etched high-end look */
    background-repeat: repeat;
    background-size: 320px 240px;
    animation: stable-breathe 8s ease-in-out infinite;
}

.watermark-overlay.active {
    opacity: 1;
}

@keyframes stable-breathe {

    0%,
    100% {
        opacity: 0.7;
    }

    50% {
        opacity: 0.9;
    }
}

#modal-watermark-text {
    display: none;
    /* We now use background pattern on overlay */
}

.modal-canvas {
    display: none;
    /* Hide the old canvas, kept for baking logic only */
}

#modal-image {
    display: block !important;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: contain !important;
    border-radius: 12px;
    /* Slight rounding for premium feel */
    z-index: 2;
    transition: transform 0.4s ease;
}

.gallery-card:hover .video-badge {
    transform: translate(-50%, -50%) scale(1.1);
    background: rgba(0, 0, 0, 0.7);
}

border: 1px solid rgba(255, 255, 255, 0.2);
z-index: 5;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* ==========  LOADER  ========== */
.loader {
    display: flex;
    justify-content: center;
    padding: 40px;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(168, 85, 247, 0.2);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* ==========  MODALS  ========== */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    padding: 20px;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.modal-box {
    background: rgba(10, 10, 18, 0.85);
    backdrop-filter: blur(40px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 32px;
    padding: 36px;
    max-width: 420px;
    width: 100%;
    text-align: center;
    position: relative;
    animation: slideUp 0.5s var(--transition);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
}

.glass {
    backdrop-filter: blur(24px);
}

/* Fullscreen Profile Modal (My Posts) */
.fullscreen-modal {
    background: var(--bg-base);
    max-width: 100%;
    width: 100vw;
    height: 100vh;
    border-radius: 0;
    border: none;
    padding: 0;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.profile-header {
    padding: 60px 20px 40px;
    text-align: center;
    background: linear-gradient(to bottom, rgba(168, 85, 247, 0.1), transparent);
    position: relative;
}

.profile-header img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 3px solid var(--accent);
    box-shadow: 0 0 30px var(--accent-glow);
    margin-bottom: 20px;
    object-fit: cover;
}

.profile-header h2 {
    font-size: 32px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
}

/* Profile Dashboard Tabbing */
.profile-tabs {
    margin: 20px 0 0;
}

.profile-tab {
    background: none;
    border: none;
    padding: 10px 0;
    font-size: 14px;
    font-weight: 700;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}

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

.profile-tab.active {
    color: var(--accent);
}

.profile-tab.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--accent);
    box-shadow: 0 0 10px var(--accent-glow);
}

/* My Post Card Hover Actions */
.my-post-card {
    position: relative;
}

.my-post-action {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(239, 68, 68, 0.9);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    cursor: pointer;
    opacity: 0;
    transform: scale(0.8);
    transition: var(--transition);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
    z-index: 10;
}

.my-post-card:hover .my-post-action {
    opacity: 1;
    transform: scale(1);
}

.my-post-action:hover {
    background: #ef4444;
    transform: scale(1.1);
}


.modal-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.modal-box h2 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 10px;
}

.modal-box p {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.6;
}

.modal-subtitle {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 4px;
    margin-bottom: 20px;
}

.modal-actions {
    display: flex;
    gap: 10px;
    margin-top: 24px;
    justify-content: center;
}

.modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-secondary);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: var(--bg-surface-hover);
    color: var(--text-primary);
}

/* ==========  PINTEREST MODAL OVERHAUL  ========== */
.pin-container {
    background: #0f1012 !important;
    max-width: 90vw !important;
    width: auto !important;
    height: auto !important;
    max-height: 90vh !important;
    display: flex !important;
    flex-direction: row;
    padding: 0 !important;
    overflow: hidden;
    border-radius: 24px !important;
    box-shadow: 0 20px 80px rgba(0, 0, 0, 0.8) !important;
    margin: auto;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.pin-visual {
    flex: 0 1 auto;
    /* Allow shrink/grow based on content */
    min-width: 300px;
    /* Safety minimum */
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    min-height: 200px;
    background: radial-gradient(circle at center, #1a1b1e 0%, #000 100%);
}

.pin-blur-bg {
    position: absolute;
    inset: -30px;
    /* More bleed for smoother edges */
    background-size: cover;
    background-position: center;
    filter: blur(80px) brightness(0.25) saturate(0.8);
    /* Darker and more blurred */
    opacity: 0.4;
    /* More subtle */
    z-index: 0;
    transition: opacity 0.6s ease;
}

.pin-back-btn {
    position: absolute;
    top: 24px;
    left: 24px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(12px);
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    z-index: 1000;
    /* Priority interaction */
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.pin-back-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
    border-color: var(--accent);
}

.search-bar {
    position: relative;
    max-width: 400px;
    width: 100%;
    margin: 0 auto;
}

@media (max-width: 600px) {
    /* Responsive Table to Cards Overhaul */
    .table-container {
        border: none !important;
        background: transparent !important;
    }
    
    #mp-history-table {
        display: block !important;
        border: none !important;
    }
    
    #mp-history-table thead {
        display: none !important; /* Hide headers on mobile */
    }
    
    #mp-history-table tbody {
        display: block !important;
    }
    
    #mp-history-table tr {
        display: block !important;
        background: rgba(255,255,255,0.04);
        border: 1px solid rgba(255,255,255,0.08);
        border-radius: 12px;
        margin-bottom: 12px;
        padding: 15px;
    }
    
    #mp-history-table td {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        padding: 8px 0 !important;
        border: none !important;
        font-size: 14px !important;
        text-align: right !important;
    }
    
    #mp-history-table td::before {
        content: attr(data-label);
        font-weight: 700;
        color: var(--text-muted);
        text-align: left;
    }

    .profile-tabs {
        overflow-x: auto !important;
        white-space: nowrap !important;
        padding-bottom: 5px !important;
        -webkit-overflow-scrolling: touch;
        gap: 15px !important;
        justify-content: flex-start !important;
    }
    
    .profile-tab {
        flex: 0 0 auto !important;
    }

    #mp-follower-stat {
        margin-left: 15px !important;
        flex: 0 0 auto !important;
        padding-right: 15px;
    }
    
    .modal-box.glass {
        padding: 20px 15px !important;
        max-height: 95vh !important;
    }

    #profile-gallery-view, 
    #profile-transactions-view,
    .follower-list-modal {
        margin-top: 15px !important;
        padding-top: 5px;
    }

    /* Prevent text elements from feeling collapsed */
    .mp-info {
        gap: 15px !important;
        padding: 10px 0;
    }
}

@media (max-width: 768px) {
    .search-bar {
        max-width: 100% !important;
        margin-top: 10px;
    }
}

#pin-image-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    display: grid;
    /* UNBREAKABLE CENTERING */
    place-items: center;
    /* UNBREAKABLE CENTERING */
    z-index: 1;
    padding: 0;
}

.asset-wrapper {
    position: relative;
    width: fit-content;
    height: fit-content;
    max-width: 100%;
    max-height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pin-visual img,
#modal-video-player,
.pin-visual canvas {
    max-width: 100% !important;
    max-height: 100% !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
    display: block;
    margin: auto !important;
    /* Ultimate flex/grid centering fallback */
    border-radius: 12px;
    box-shadow: 0 20px 80px rgba(0, 0, 0, 0.5);
    z-index: 2;
}

.watermark-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    /* Allow interaction with the image underneath */
    z-index: 3;
    display: none;
    background-repeat: repeat;
    opacity: 0.6;
}

.watermark-overlay.active {
    display: block;
}

#modal-video-player {
    background: #000;
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.pin-sidebar {
    flex: 0 0 360px;
    width: 360px;
    background: #111214;
    display: flex;
    flex-direction: column;
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    padding: 24px;
    position: relative;
    overflow-y: auto;
    align-self: stretch;
}

.pin-header-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.pin-action-icons {
    display: flex;
    gap: 8px;
}

.pin-icon-btn {
    background: rgba(255, 255, 255, 0.05) !important;
    backdrop-filter: blur(20px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    color: #fff !important;
    width: 44px !important;
    height: 44px !important;
    border-radius: 50% !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    cursor: pointer !important;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
    font-size: 18px !important;
    flex-shrink: 0 !important;
    outline: none !important;
}

.pin-icon-btn:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    transform: scale(1.1) translateY(-2px) !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
    color: #fff !important;
}

.pin-icon-btn.active {
    background: linear-gradient(135deg, #ff416c, #f43f5e) !important;
    border: none !important;
    box-shadow: 0 0 25px rgba(255, 65, 108, 0.6) !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 12px !important;
    /* Proper spacing for larger size */
}

.pin-icon-btn.active i,
.pin-icon-btn.active span {
    color: #ffffff !important;
    font-size: 18px !important;
    /* Matched to compact button */
    font-weight: 800 !important;
    opacity: 1 !important;
    visibility: visible !important;
    position: relative !important;
    z-index: 10 !important;
}

/* The BIG RED Pinterest Button */
.pin-save-btn {
    background: #e60023;
    color: white;
    height: 44px;
    padding: 0 24px;
    border-radius: 22px;
    font-size: 15px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: 0.2s;
    box-shadow: 0 4px 12px rgba(230, 0, 35, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    outline: none !important;
}

.pin-save-btn:hover {
    background: #ad081b;
    transform: scale(1.02);
}

.pin-main-content {
    flex: 1;
    overflow-y: auto;
    text-align: left;
}

.pin-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

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

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

.pin-username {
    font-weight: 700;
    font-size: 14px;
    color: #fff;
}

.pin-followers {
    font-size: 12px;
    color: #94a3b8;
}

/* ==========  FULLSCREEN VIEWER OVERLAY  ========== */
.fullscreen-overlay {
    position: fixed;
    inset: 0;
    z-index: 5000;
    background: #000;
    display: none;
    /* Controlled via JS toggle */
    align-items: center;
    justify-content: center;
    cursor: zoom-out;
}

.fullscreen-overlay.active {
    display: flex;
    animation: fadeIn 0.2s ease-out;
}

#fullscreen-image-wrapper {
    position: relative;
    max-width: 100vw;
    max-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

#fullscreen-img {
    max-width: 100vw;
    max-height: 100vh;
    object-fit: contain;
}

.fullscreen-close {
    position: fixed;
    top: 30px;
    right: 30px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    z-index: 5001;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
}

.fullscreen-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.pin-follow-btn {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 8px 16px;
    border-radius: 24px;
    font-weight: 700;
    font-size: 14px;
    border: none;
    cursor: pointer;
}

.pin-title {
    font-size: 28px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 12px;
    line-height: 1.3;
    overflow-wrap: break-word;
}

.pin-price-info {
    font-size: 18px;
    font-weight: 700;
    color: var(--accent);
    margin: 12px 0;
}



/* ==========  CREDIT PACKAGES  ========== */
/* ==========  CREDIT PACKAGES (REMASTERED)  ========== */
.packages-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin: 20px 0;
}

.package-card {
    position: relative;
    padding: 24px 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
}

.package-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--accent);
}

.package-card.selected {
    border-color: var(--accent);
    background: rgba(124, 58, 237, 0.1);
    box-shadow: 0 0 25px rgba(124, 58, 237, 0.2);
}

.pkg-badge {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--accent);
    color: white;
    font-size: 8px;
    font-weight: 800;
    padding: 3px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pkg-credits {
    font-size: 24px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 0;
}

.pkg-label {
    font-size: 9px;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 8px;
    letter-spacing: 1px;
}

.pkg-price {
    font-size: 16px;
    font-weight: 700;
    color: var(--accent);
}

/* ======= ADVANCED ICON SYSTEM (MODERN) ======= */
.nav-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.25em;
    height: 1.25em;
    font-size: 1.1rem;
    vertical-align: middle;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Backward compatibility for SVGs */
svg.nav-icon {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.nav-btn-credits:hover .nav-icon,
.nav-btn-upload:hover .nav-icon,
.filter-btn:hover .nav-icon,
.search-bar button:hover .nav-icon {
    transform: translateY(-1px);
    filter: drop-shadow(0 0 5px currentColor);
}

.card-icon {
    font-size: 1rem;
    margin-right: 8px;
    width: 1.2em;
    text-align: center;
}

/* Currency Selector Cards */
.method-selector {
    display: flex;
    gap: 12px;
}

.currency-card {
    flex: 1;
    padding: 15px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s ease;
}

.currency-card .curr-name {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 15px;
    font-weight: 800;
    margin-bottom: 2px;
}

.bsc-badge {
    background: #f3ba2f;
    color: #000;
    font-size: 8px;
    font-weight: 900;
    padding: 2px 4px;
    border-radius: 4px;
    text-transform: uppercase;
    line-height: 1;
}

.bnb-icon-native

/* ==========  ADVANCED FA ICONS  ========== */
.fa-solid,
.fa-regular,
.far,
.fas {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
    transition: var(--transition);
    color: inherit;
    /* Ensure they are visible by default */
}

.filter-btn i {
    margin-right: 8px;
    font-size: 14px;
    opacity: 0.8;
}

.filter-btn.active i {
    opacity: 1;
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.5));
}

/* Category Specific Icon Gradients */
.tag-Free i,
.filter-btn[data-category="Free"] i {
    background: linear-gradient(135deg, #10b981, #34d399);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 5px rgba(16, 185, 129, 0.3));
    margin-right: 6px;
}

.tag-Standard i,
.filter-btn[data-category="Standard"] i {
    background: linear-gradient(135deg, #8b5cf6, #c084fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 5px rgba(139, 92, 246, 0.3));
    margin-right: 6px;
}

.tag-Exclusive i,
.filter-btn[data-category="Exclusive"] i {
    background: linear-gradient(135deg, #f59e0b, #fbbf24);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 5px rgba(245, 158, 11, 0.3));
    margin-right: 6px;
}

.tag-NSFW i,
.filter-btn[data-category="NSFW"] i {
    background: linear-gradient(135deg, #ec4899, #f472b6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 5px rgba(236, 72, 153, 0.3));
    margin-right: 6px;
}

/* ======= PROFILE MODAL FIXES (VERTICAL STACK RESTORED) ======= */
.modal-header-profile {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 16px;
    margin-bottom: 24px;
    padding: 20px 0;
    text-align: center !important;
}

.mp-info {
    display: flex;
    flex-direction: column;
    align-items: center !important;
    gap: 12px;
    width: 100%;
}

/* Hardened Specific ID for Main Profile Picture ONLY */
#mp-avatar {
    width: 120px !important;
    height: 120px !important;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--accent);
    margin: 0 auto !important;
}

.mp-info h2 {
    margin: 0;
    color: #fff;
}

.bnb-icon-native svg {
    width: 100%;
    height: 100%;
    fill: #FFF;
}

@keyframes bnb-pulse {

    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 0 10px rgba(243, 186, 47, 0.4);
    }

    50% {
        transform: scale(1.1);
        box-shadow: 0 0 18px rgba(243, 186, 47, 0.6);
    }
}

@keyframes bnb-pulse {

    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 0 10px rgba(243, 186, 47, 0.3);
    }

    50% {
        transform: scale(1.1);
        box-shadow: 0 0 18px rgba(243, 186, 47, 0.5);
    }
}

.currency-card .curr-net {
    font-size: 9px;
    color: var(--text-muted);
    font-weight: 600;
}

.currency-card:hover {
    background: rgba(255, 255, 255, 0.06);
}

/* BNB Gold Branding */
.currency-card[data-currency="bnbbsc"].active {
    border-color: #f3ba2f;
    background: rgba(243, 186, 47, 0.1);
    box-shadow: 0 0 15px rgba(243, 186, 47, 0.2);
}

.currency-card[data-currency="bnbbsc"].active .curr-name {
    color: #f3ba2f;
}

/* USDT Teal Branding */
.currency-card[data-currency="usdtbsc"].active {
    border-color: #26a17b;
    background: rgba(38, 161, 123, 0.1);
    box-shadow: 0 0 15px rgba(38, 161, 123, 0.2);
}

.currency-card[data-currency="usdtbsc"].active .curr-name {
    color: #26a17b;
}

/* ==========  PAGE SPACING  ========== */
.content {
    padding-top: 100px;
}

/* ==========  MY POSTS MODAL  ========== */
.modal-header-profile {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 20px;
    padding: 10px 0;
}

.modal-header-profile img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--accent);
}

.mp-info h2 {
    font-size: 24px;
    font-weight: 800;
    margin: 0;
}

.mp-info p {
    color: var(--text-muted);
    font-size: 14px;
}

#mp-id {
    word-break: break-all;
    max-width: 100%;
    line-height: 1.4;
}

/* ==========  GALLERY RECOVERY  ========== */
#gallery-count {
    text-align: center;
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 24px;
}

.header-content {
    text-align: center;
    margin-bottom: 40px;
    padding: 0 20px;
}

.header-content h1 {
    font-size: clamp(32px, 8vw, 48px);
    font-weight: 800;
    margin-bottom: 8px;
    letter-spacing: -1.5px;
    background: linear-gradient(135deg, #fff 0%, var(--text-secondary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.filter-container {
    position: relative;
    width: 100%;
    margin-bottom: 50px;
    display: flex;
    justify-content: center;
}

@media (max-width: 600px) {
    .filter-container {
        position: relative;
        width: 100%;
        height: 100px !important;
        /* Total height including padding and glow */
        overflow: visible !important;
        display: flex;
        justify-content: center;
        margin-bottom: 20px !important;
    }

    .filter-bar {
        display: flex !important;
        overflow-x: auto !important;
        overflow-y: visible !important;
        width: 100% !important;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding: 0 !important;
    }

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

    .filter-row {
        display: flex !important;
        margin: 0 auto !important;
        padding: 20px 15px 30px !important;
        /* Narrower side padding to fit more buttons */
        gap: 8px !important;
        /* Tighter gaps */
        min-width: max-content !important;
    }

    /* Premium Fade Mask - Moved to container to avoid scroll interference */
    .filter-container::after {
        content: '';
        position: absolute;
        right: 0;
        top: 20px;
        bottom: 30px;
        width: 60px;
        background: linear-gradient(to right, transparent, var(--bg-main));
        pointer-events: none;
        z-index: 5;
    }

    .filter-btn {
        flex: 0 0 auto !important;
        padding: 8px 16px !important;
        /* More compact on mobile */
        font-size: 13px !important;
    }
}

.filter-btn {
    padding: 10px 24px;
    border-radius: 99px;
    border: 1px solid var(--glass-border);
    background: var(--bg-surface);
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn:hover {
    background: var(--bg-surface-hover);
    color: var(--text-primary);
}

.filter-btn.active {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
    box-shadow: 0 0 15px var(--accent-glow);
}

.pin-footer {
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.pin-footer-inner {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.03);
    padding: 8px 12px;
    border-radius: 32px;
}

/* Profile Follower List Styles - SOCIAL GRID STYLE */
.follower-list-modal {
    margin: 15px 0;
    padding: 15px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 12px;
    max-height: 380px;
    overflow-y: hidden; /* Search container at top, grid scrolls below */
    display: flex;
    flex-direction: column;
}

.follower-search-container {
    display: flex;
    align-items: center;
    background: rgba(255,255,255,0.05);
    border-radius: 8px;
    padding: 8px 12px;
    margin-bottom: 12px;
    border: 1px solid rgba(255,255,255,0.1);
}

.follower-search-container i {
    opacity: 0.5;
    font-size: 14px;
    margin-right: 10px;
}

.follower-search-container input {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 14px;
    width: 100%;
    outline: none;
}

.follower-grid {
    display: flex;
    flex-direction: column;
    gap: 2px;
    overflow-y: auto;
    padding-right: 5px;
}

.follower-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 6px 12px;
    background: transparent;
    border-radius: 8px;
    transition: background 0.2s ease;
    cursor: pointer;
}

.follower-item:hover {
    background: rgba(255,255,255,0.05);
}

.follower-mini-avatar {
    width: 30px !important;
    height: 30px !important;
    min-width: 30px !important;
    min-height: 30px !important;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid rgba(255,255,255,0.1);
    flex-shrink: 0;
}

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

.follower-name {
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
}

.follower-subtext {
    font-size: 11px;
    color: var(--text-muted);
}

.follower-action-btn {
    padding: 4px 12px;
    font-size: 11px;
    font-weight: 700;
    border-radius: 6px;
    background: rgba(124, 58, 237, 0.2);
    border: 1px solid var(--accent);
    color: var(--accent);
    text-transform: uppercase;
}

.follower-action-btn.following {
    background: rgba(255,255,255,0.05);
    border-color: rgba(255,255,255,0.1);
    color: #fff;
    opacity: 0.6;
}

.follower-name {
    font-size: 14px;
    color: #fff;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Ensure accessible cards have 100% clarity */
.gallery-card:not(.locked) .card-img-wrapper img {
    filter: none !important;
}

.pin-mini-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

.pin-comment-input {
    flex: 1;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 14px;
    outline: none;
}

@media (max-width: 900px) {
    .pin-container {
        flex-direction: column !important;
        max-height: 100vh !important;
        height: 100vh !important;
        overflow-y: auto !important;
        border-radius: 0 !important;
        width: 100vw !important;
        margin: 0 !important;
    }

    .pin-visual {
        flex: none;
        height: auto;
        min-height: 300px;
    }

    .pin-sidebar {
        flex: none;
        min-width: 100%;
        padding: 24px;
        border-left: none;
    }
}

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

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

/* ==========  DRM  ========== */
.gallery-card img,
.modal-image,
#modal-canvas {
    user-select: none !important;
    -webkit-user-drag: none !important;
    -webkit-touch-callout: none !important;
    pointer-events: auto;
    /* Allow clicks but block system actions */
}

.drm-blur {
    filter: blur(50px) grayscale(1) !important;
    transition: filter 0.2s ease;
}





@keyframes heartPulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.4);
    }

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

/* ==========  RESPONSIVE  ========== */
@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }

    #header {
        padding: 10px 0;
    }

    /* 'PRO APP' MOBILE HEADER OVERHAUL - Grid-Native Approach */
    .nav-header {
        height: auto !important;
        padding: 5px 0 !important;
    }

    .nav-container {
        display: grid !important;
        grid-template-columns: 1fr auto !important;
        /* Row 1: Logo (Left), User Actions (Right) */
        grid-template-rows: auto auto !important;
        /* Row 2: Search (Full Width) */
        row-gap: 8px !important;
        column-gap: 15px !important;
        padding: 8px 16px !important;
        height: auto !important;
        align-items: center !important;
    }

    .nav-left {
        grid-row: 1 !important;
        grid-column: 1 !important;
        justify-self: start !important;
        display: flex !important;
        align-items: center !important;
    }

    .nav-right {
        grid-row: 1 !important;
        grid-column: 2 !important;
        justify-self: end !important;
        display: flex !important;
        gap: 8px !important;
        align-items: center !important;
        width: auto !important;
    }

    .nav-middle {
        grid-row: 2 !important;
        grid-column: 1 / span 2 !important;
        width: 100% !important;
        margin: 0 !important;
        display: block !important;
        padding: 0 !important;
    }

    .logo {
        font-size: 20px !important;
        font-weight: 800 !important;
    }

    .nav-btn-credits {
        padding: 6px 10px !important;
        font-size: 13px !important;
        height: 34px !important;
    }

    .nav-btn-upload {
        width: 34px !important;
        height: 34px !important;
        padding: 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        border-radius: 50% !important;
    }

    .nav-btn-upload span {
        display: none !important;
    }

    .nav-btn-upload i {
        font-size: 16px !important;
        margin: 0 !important;
    }

    .nav-btn-profile {
        width: 34px !important;
        height: 34px !important;
        min-width: 34px !important;
    }

    .search-bar {
        max-width: 100% !important;
        height: 38px !important;
    }

    .search-bar input {
        padding: 6px 15px !important;
        font-size: 13px !important;
    }

    /* CLEAN MODAL SCROLLBAR */
    .pin-container {
        scrollbar-width: thin;
        scrollbar-color: var(--accent) transparent;
    }

    .pin-container::-webkit-scrollbar {
        width: 4px;
    }

    .pin-container::-webkit-scrollbar-thumb {
        background: var(--accent);
        border-radius: 10px;
    }

    .pin-header-actions {
        flex-direction: row !important;
        flex-wrap: wrap;
        gap: 12px;
        justify-content: flex-start !important;
    }

    .pin-action-icons {
        flex-wrap: nowrap !important;
        justify-content: flex-start !important;
        gap: 6px !important;
    }

    .pin-icon-btn {
        width: 38px !important;
        height: 38px !important;
        font-size: 14px !important;
    }

    .pin-save-btn {
        height: 38px !important;
        padding: 0 16px !important;
        font-size: 13px !important;
        margin-left: auto;
    }

    .header-nav {
        grid-area: nav;
        overflow-x: auto;
        white-space: nowrap;
        display: block;
        padding: 4px 0 8px;
        margin: 0 -16px;
        padding-left: 16px;
        -webkit-overflow-scrolling: touch;
        border-top: 1px solid var(--glass-border);
        scrollbar-width: none;
    }

    .header-nav::-webkit-scrollbar {
        display: none;
    }

    .filter-btn {
        display: inline-block;
        margin-right: 8px;
    }

    .gallery-header {
        padding: 20px 0 10px;
    }

    .gallery-header h1 {
        font-size: 20px;
    }

    .masonry-grid {
        columns: 2 140px;
        column-gap: 10px;
    }

    .packages-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .image-modal-box {
        max-width: 100%;
        border-radius: 16px;
        margin: 0;
    }

    #modal-image {
        max-height: 45vh;
    }

    .modal-info {
        padding: 16px;
    }

    #user-profile-menu {
        gap: 6px;
    }

    .btn-ghost {
        padding: 6px 12px;
        font-size: 12px;
    }

    /* Premium Landscape Optimization */
    @media (orientation: landscape) and (max-height: 500px) {
        .masonry-grid {
            columns: 3 180px !important;
        }
        .gallery-card {
            margin-bottom: 12px;
        }
        .card-top-bar {
            padding: 8px;
        }
        .heart-btn {
            bottom: 8px !important;
            right: 8px !important;
            padding: 4px 10px !important;
        }
        .card-info {
            padding: 8px !important;
        }
        .card-title {
            font-size: 11px !important;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }
    }

    /* Fix Overlap on Mobile */
    .heart-btn {
        padding: 5px 12px !important;
    }

    .heart-btn .like-count {
        font-size: 12px !important;
    }

    .card-meta, .card-price-row {
        gap: 8px;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .category-tag {
        font-size: 9px;
        padding: 2px 8px;
    }

    .price-tag {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .btn {
        padding: 8px 14px;
        font-size: 13px;
    }

    .credit-badge {
        padding: 6px 10px;
        font-size: 13px;
    }

    .masonry-grid {
        columns: 2 120px;
        column-gap: 8px;
    }

    .gallery-card {
        margin-bottom: 8px;
    }

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

    /* Extreme Narrow Optimization */
    .lock-icon {
        font-size: 0 !important; /* Hide text */
        padding: 6px !important;
    }
    
    .lock-icon svg {
        margin: 0 !important;
        width: 12px !important;
        height: 12px !important;
    }

    .heart-btn {
        padding: 4px 8px !important;
    }

    .heart-btn .like-count {
        font-size: 11px !important;
    }
}

/* ============  PREMIUM UPLOAD MODAL OVERHAUL  ============ */
.upload-drop-zone {
    position: relative;
    width: 100%;
    min-height: 240px;
    border: 2px dashed rgba(168, 85, 247, 0.4);
    border-radius: 20px;
    background: rgba(168, 85, 247, 0.03);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    margin-bottom: 24px;
    overflow: hidden;
}

.upload-drop-zone:hover,
.upload-drop-zone.drag-over {
    border-color: var(--accent);
    background: rgba(168, 85, 247, 0.08);
    box-shadow: 0 0 30px rgba(168, 85, 247, 0.15);
    transform: scale(1.01);
}

#upload-placeholder {
    text-align: center;
    pointer-events: none;
    transition: 0.3s;
}

.upload-icon {
    font-size: 48px;
    margin-bottom: 12px;
    filter: drop-shadow(0 0 10px rgba(168, 85, 247, 0.5));
    display: block;
}

#upload-placeholder p {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 4px;
}

#upload-placeholder span {
    font-size: 12px;
    color: var(--text-muted);
}

/* Preview Styles */
#upload-preview,
#video-upload-preview,
.upload-preview {
    max-width: 100%;
    max-height: 240px;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
    z-index: 10;
    position: relative;
    display: none;
}

#video-upload-preview {
    font-size: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Form Polish */
.upload-form-row {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
    text-align: left;
}

.upload-form-row label {
    display: block;
    font-size: 11px;
    font-weight: 800;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.upload-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 12px 16px;
    color: #fff;
    font-family: inherit;
    font-size: 14px;
    outline: none;
    transition: 0.3s;
}

.upload-input:focus {
    border-color: var(--accent);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 15px rgba(168, 85, 247, 0.2);
}

.full-btn {
    width: 100%;
    padding: 16px;
    font-size: 16px;
    font-weight: 800;
    margin-top: 8px;
}

/* ==========  PROFILE PICTURE  ========== */
.profile-upload-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    margin-top: 12px;
}

.profile-preview-large {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--accent);
    box-shadow: 0 0 20px var(--accent-glow);
    background: var(--bg-surface);
    flex-shrink: 0;
}

/* ======= UPLOAD PROGRESS ======= */
#upload-progress-fill.pulse-animation {
    animation: progress-pulse 1.5s infinite ease-in-out;
}

@keyframes progress-pulse {
    0% {
        opacity: 1;
        transform: scaleY(1);
    }

    50% {
        opacity: 0.7;
        transform: scaleY(1.2);
        filter: brightness(1.3);
    }

    100% {
        opacity: 1;
        transform: scaleY(1);
    }
}

.upload-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 10px var(--accent-glow);
    outline: none;
}

/* Economy Transparency Tooltips */
.info-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 14px;
    height: 14px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    font-size: 9px;
    cursor: help;
    margin-left: 6px;
    color: var(--text-secondary);
    transition: all 0.2s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    vertical-align: middle;
}

.info-icon:hover {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
}

.tooltip-container {
    position: relative;
    display: inline-block;
}

.tooltip-box {
    visibility: hidden;
    position: absolute;
    bottom: 150%;
    left: 50%;
    transform: translateX(-50%);
    width: 220px;
    background: rgba(20, 20, 25, 0.98);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 12px;
    border-radius: 12px;
    color: #e5e7eb;
    font-size: 11px;
    line-height: 1.5;
    z-index: 2000;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
    pointer-events: none;
    text-align: left;
    white-space: normal;
}

.tooltip-box::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: rgba(20, 20, 25, 0.98) transparent transparent transparent;
}

.tooltip-container:hover .tooltip-box {
    visibility: visible;
    opacity: 1;
    bottom: 180%;
}

/* Compact Reward Notifications */
.reward-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px;
}

.bnb-icon-native svg {
    width: 24px;
    height: 24px;
    vertical-align: middle;
    fill: currentColor;
    display: block;
    margin: 0 auto;
}