/* Explore Gallery - Mobile-First Instagram-Style Design */

/* ===== CSS Variables ===== */
:root {
    --explore-bg: #000;
    --explore-header-bg: rgba(0, 0, 0, 0.95);
    --explore-card-bg: #111;
    --explore-text: #fff;
    --explore-text-secondary: rgba(255, 255, 255, 0.7);
    --explore-accent: #6366f1;
    --explore-accent-light: #818cf8;
    --explore-border: rgba(255, 255, 255, 0.1);
    --explore-overlay: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 50%);
    --explore-safe-area-bottom: env(safe-area-inset-bottom, 0px);
    --explore-safe-area-top: env(safe-area-inset-top, 0px);
}

/* ===== Base Styles ===== */
.explore-body {
    background: var(--explore-bg);
    overflow: hidden;
    -webkit-overflow-scrolling: touch;
    /* Prevent pull-to-refresh on mobile browsers */
    overscroll-behavior: none;
    overscroll-behavior-y: none;
}

.explore-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--explore-bg);
    display: flex;
    flex-direction: column;
    z-index: 100;
    padding-top: var(--explore-safe-area-top);
    /* Prevent pull-to-refresh and overscroll bouncing */
    overscroll-behavior: contain;
    touch-action: pan-x pan-y;
}

/* ===== Sticky Header ===== */
.explore-sticky-header {
    position: fixed;
    top: 0; /* Nav is transparent and overlays content */
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--explore-header-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--explore-border);
    padding: 12px 12px;
    padding-top: calc(12px + var(--explore-safe-area-top));
    transition: transform 0.3s ease;
}

.explore-search-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 100%;
}

/* Logo Link */
.explore-logo-link {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    text-decoration: none;
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #7c3aed 0%, #6366f1 100%);
    border-radius: 12px;
}

.explore-logo-icon {
    font-size: 24px;
    color: #ffffff;
    transition: transform 0.2s ease;
}

.explore-logo-link:hover .explore-logo-icon {
    transform: scale(1.1);
}

.explore-logo {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    object-fit: contain;
}

/* Spacer to push buttons right */
.explore-nav-spacer {
    flex: 1;
}

/* Right-aligned navigation actions */
.explore-nav-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

/* Generic action button style */
.explore-action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--explore-text);
    border: none;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.explore-action-btn i {
    font-size: 18px;
}

.explore-action-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.explore-action-btn:active {
    transform: scale(0.95);
}

.explore-action-btn.active {
    background: var(--explore-accent);
}

/* Search Toggle Button (keeping for backward compatibility) */
.explore-search-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--explore-text);
    border: none;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.explore-search-toggle i {
    font-size: 18px;
}

.explore-search-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
}

.explore-search-toggle:active {
    transform: scale(0.95);
}

/* Auth/Login Button */
.explore-auth-btn {
    flex-shrink: 0;
}

.auth-icon-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: var(--explore-text);
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
}

.auth-icon-btn i {
    font-size: 22px;
}

.auth-icon-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    color: var(--explore-text);
}

.auth-icon-btn:active {
    transform: scale(0.95);
}

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

/* Expanded Search Section (below navbar) */
.explore-search-expanded {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 0;
}

.explore-search-expanded.expanded {
    max-height: 70px;
    padding: 12px 0 0;
}

.explore-search-expanded .explore-search-form {
    width: 100%;
}

/* Back/Home Button (keeping for backward compatibility) */
.explore-back-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--explore-text);
    text-decoration: none;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.explore-back-btn i {
    font-size: 18px;
}

.explore-back-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    color: var(--explore-text);
}

.explore-back-btn:active {
    transform: scale(0.95);
}

.explore-search-form {
    flex: 1;
    min-width: 0;
    transition: all 0.3s ease;
}

/* Collapsible search form (keeping for backward compatibility) */
.explore-search-form.collapsed {
    flex: 0;
    width: 0;
    min-width: 0;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
}

.explore-search-form:not(.collapsed) {
    flex: 1;
    opacity: 1;
    pointer-events: auto;
}

.search-input-group {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 0 14px;
    height: 44px;
    transition: all 0.2s ease;
}

.search-input-group:focus-within {
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 0 2px var(--explore-accent);
}

.search-input-group i {
    color: var(--explore-text-secondary);
    font-size: 16px;
    flex-shrink: 0;
}

.search-input-group input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--explore-text);
    font-size: 15px;
    padding: 0 12px;
    min-width: 0;
}

.search-input-group input::placeholder {
    color: var(--explore-text-secondary);
}

.search-clear-btn {
    background: none;
    border: none;
    color: var(--explore-text-secondary);
    padding: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
}

.search-clear-btn:hover {
    color: var(--explore-text);
}

/* ===== NSFW Toggle Button ===== */
.nsfw-filter-toggle {
    flex-shrink: 0;
}

.nsfw-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(34, 197, 94, 0.2);
    border: 1px solid rgba(34, 197, 94, 0.5);
    border-radius: 20px;
    padding: 8px 14px;
    color: #22c55e;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.nsfw-btn i {
    font-size: 14px;
}

.nsfw-btn[data-nsfw="true"] {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.5);
    color: #ef4444;
}



.nsfw-btn:hover {
    transform: scale(1.02);
}

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

/* ===== Gallery Wrapper ===== */
.explore-gallery-wrapper {
    flex: 1;
    position: relative;
    margin-top: 68px; /* Search bar height */
    height: calc(100vh - 68px);
    overflow: hidden;
}

/* ===== Vertical Swiper (Characters) ===== */
.explore-vertical-swiper {
    width: 100%;
    height: 100%;
    /* Prevent overscroll at swiper boundaries */
    overscroll-behavior: contain;
}

/* ===== Character Slide ===== */
.character-slide {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
}

/* ===== Horizontal Swiper (Images) ===== */
.character-images-swiper {
    width: 100%;
    height: 100%;
    position: relative;
}

.character-images-swiper .swiper-wrapper {
    height: 100%;
}

.character-images-swiper .swiper-slide {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--explore-bg);
}

/* ===== Image Card ===== */
.explore-image-card {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.explore-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    transition: transform 0.3s ease;
    user-select: none;
    -webkit-user-drag: none;
}

/* Alternative: Cover mode for more immersive experience */
.explore-image-card.cover-mode .explore-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Image placeholder/loading state */
.explore-image-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--explore-card-bg);
}

.explore-image-placeholder .loading-spinner {
    width: 40px;
    height: 40px;
}

/* ===== Character Info Overlay ===== */
.character-info-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 60px 16px 80px;
    background: var(--explore-overlay);
    z-index: 10;
    pointer-events: none;
}

.character-info-overlay > * {
    pointer-events: auto;
}

.character-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.character-avatar-link {
    display: block;
    flex-shrink: 0;
}

.character-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.character-avatar:hover {
    transform: scale(1.05);
    border-color: var(--explore-accent);
}

.character-details {
    flex: 1;
    min-width: 0;
}

.character-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--explore-text);
    margin: 0;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.character-name a {
    color: inherit;
    text-decoration: none;
}

.character-name a:hover {
    text-decoration: underline;
}

.image-counter {
    font-size: 13px;
    color: var(--explore-text-secondary);
    margin: 2px 0 0;
}

/* Action buttons in overlay */
.character-actions {
    display: flex;
    gap: 8px;
}

.action-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: none;
    color: var(--explore-text);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.action-btn i {
    font-size: 18px;
}

.action-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.1);
}

.action-btn.primary {
    background: linear-gradient(135deg, #7c3aed 0%, #6366f1 100%);
}

.action-btn.primary:hover {
    background: linear-gradient(135deg, #8b5cf6 0%, #818cf8 100%);
}

/* Image pagination dots */
.image-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
}

.image-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transition: all 0.2s ease;
}

.image-dot.active {
    background: var(--explore-text);
    width: 18px;
    border-radius: 3px;
}

.more-indicator {
    font-size: 11px;
    color: var(--explore-text-secondary);
    margin-left: 4px;
}



/* ===== Loading State ===== */
.explore-loading {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--explore-bg);
    z-index: 50;
}

.explore-loading p {
    color: var(--explore-text-secondary);
    margin-top: 16px;
    font-size: 14px;
}

.loading-spinner {
    width: 48px;
    height: 48px;
    min-width: 48px;
    min-height: 48px;
    flex-shrink: 0;
    aspect-ratio: 1 / 1;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top-color: var(--explore-accent);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* ===== Empty State ===== */
.explore-empty {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--explore-bg);
    padding: 24px;
    text-align: center;
}

.explore-empty i {
    font-size: 64px;
    color: var(--explore-text-secondary);
    margin-bottom: 16px;
}

.explore-empty h3 {
    color: var(--explore-text);
    font-size: 20px;
    margin: 0 0 8px;
}

.explore-empty p {
    color: var(--explore-text-secondary);
    font-size: 14px;
    margin: 0;
}

/* ===== Swipe Hint ===== */
.swipe-hint {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 1;
    transition: opacity 0.5s ease;
    pointer-events: auto;
}

.swipe-hint.hidden {
    opacity: 0;
    pointer-events: none;
}

.swipe-hint-content {
    display: flex;
    flex-direction: column;
    gap: 32px;
    text-align: center;
}

.swipe-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    color: var(--explore-text);
    font-size: 16px;
}

.swipe-indicator i {
    font-size: 24px;
    animation: pulse 1.5s ease-in-out infinite;
}

.swipe-indicator.horizontal i:first-child {
    animation-delay: 0s;
}

.swipe-indicator.horizontal i:last-child {
    animation-delay: 0.75s;
}

.swipe-indicator.vertical {
    flex-direction: column;
    gap: 8px;
}

.swipe-indicator.vertical i:first-child {
    animation-delay: 0s;
}

.swipe-indicator.vertical i:last-child {
    animation-delay: 0.75s;
}

@keyframes pulse {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.2); }
}

/* ===== NSFW Blur Overlay ===== */
.nsfw-blur-overlay {
    position: absolute;
    inset: 0;
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    cursor: pointer;
}

.nsfw-blur-content {
    text-align: center;
    color: var(--explore-text);
}

.nsfw-blur-content i {
    font-size: 48px;
    margin-bottom: 12px;
    display: block;
}

.nsfw-blur-content p {
    font-size: 14px;
    color: var(--explore-text-secondary);
}

.nsfw-blur-content small {
    font-size: 12px;
    color: var(--explore-text-secondary);
    opacity: 0.7;
}

/* Blurred image state for NSFW content in SFW mode */
.explore-image-card.nsfw-blurred .explore-image {
    filter: blur(15px);
    transform: scale(1.1);
}


/* ===== Swiper Custom Navigation ===== */
.swiper-pagination {
    display: none !important;
}

/* Custom scrollbar (hidden) */
.explore-vertical-swiper::-webkit-scrollbar,
.character-images-swiper::-webkit-scrollbar {
    display: none;
}

/* ===== Responsive Adjustments ===== */
@media (min-width: 768px) {
    .explore-sticky-header {
        padding: 12px 24px;
    }
    
    .explore-search-bar {
        max-width: 600px;
        margin: 0 auto;
    }
    
    .character-info-overlay {
        padding: 80px 24px 24px;
    }
    
    .character-avatar {
        width: 56px;
        height: 56px;
    }
    
    .character-name {
        font-size: 18px;
    }
    
    .explore-quick-actions {
        right: 24px;
        bottom: calc(100px + var(--explore-safe-area-bottom));
    }
    
    .quick-action-btn {
        width: 56px;
        height: 56px;
    }
    
    .quick-action-btn i {
        font-size: 24px;
    }
}

@media (min-width: 1024px) {
    .explore-gallery-wrapper {
        max-width: 500px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .explore-quick-actions {
        right: calc(50% - 300px);
    }
}

/* ===== Touch Feedback ===== */
.explore-image-card:active .explore-image {
    transform: scale(0.98);
}

/* ===== Accessibility ===== */
@media (prefers-reduced-motion: reduce) {
    .swipe-indicator i,
    .loading-spinner {
        animation: none;
    }
    
    .explore-image,
    .character-avatar,
    .action-btn,
    .quick-action-btn {
        transition: none;
    }
}

/* ===== Hide default footer elements ===== */
.explore-body footer,
.explore-body .sticky-bottom,
.explore-body #footer-toolbar {
    display: none !important;
}

/* ===== Dark mode support ===== */
@media (prefers-color-scheme: light) {
    .explore-body {
        /* Keep dark theme for immersive gallery experience */
        background: var(--explore-bg);
    }
}

/* ===== Premium Required Overlay ===== */
.premium-required-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 100;
    padding: 24px;
    text-align: center;
}

.premium-required-overlay i {
    font-size: 48px;
    color: #fbbf24;
    margin-bottom: 16px;
}

.premium-required-overlay h3 {
    color: var(--explore-text);
    font-size: 18px;
    margin: 0 0 8px;
}

.premium-required-overlay p {
    color: var(--explore-text-secondary);
    font-size: 14px;
    margin: 0 0 16px;
}

.premium-required-overlay .upgrade-btn {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 24px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.premium-required-overlay .upgrade-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.4);
}

/* ===== Mobile Full Screen Images ===== */
@media (max-width: 768px) {
    .explore-sticky-header {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 999;
        height: auto;
        background: rgba(0, 0, 0, 0.85);
        backdrop-filter: blur(10px);
        padding: 8px 12px;
    }
    
    .explore-gallery-wrapper {
        width: 100vw;
        height: 100vh;
        margin-top: 0;
    }
    
    .explore-vertical-swiper {
        width: 100vw;
        height: 100vh;
    }
    
    .swiper-slide {
        width: 100vw;
        height: 100vh;
    }
    
    /* Ensure images take full height on mobile */
    .explore-image-card {
        width: 100vw;
        height: 100vh;
    }
    
    .explore-image {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    
    .character-slide {
        width: 100vw;
        height: 100vh;
    }
    
    .character-images-swiper {
        width: 100vw;
        height: 100vh;
    }
    
    .character-images-swiper .swiper-slide {
        width: 100vw;
        height: 100vh;
    }
    
    .tiktok-actions {
        right: 12px;
        bottom: 80px;
        gap: 12px;
    }
    
    .tiktok-action-btn {
        width: 48px;
        height: 48px;
    }
    
    .action-icon {
        font-size: 20px;
    }
}

/* Mobile specific image card styles for preview */
@media (max-width: 480px) {
    .explore-image-card {
        width: 100vw;
        height: 100vh;
    }
    
    .character-info-overlay {
        bottom: 0;
        left: 0;
        right: 0;
        height: auto;
        max-height: 25%;
        overflow-y: auto;
    }
    
    .tiktok-actions {
        right: 10px;
        bottom: 70px;
        gap: 10px;
    }
    
    .tiktok-action-btn {
        width: 44px;
        height: 44px;
    }
    
    .action-icon {
        font-size: 18px;
    }
    
    .action-count {
        font-size: 10px;
    }
}


/* ===== Floating Favorite Button (deprecated - using TikTok buttons instead) ===== */
.image-favorite-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(130, 64, 255, 0.95), rgba(210, 184, 255, 0.95));
    border: none;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 10;
    opacity: 0;
    pointer-events: none;
    box-shadow: 0 4px 12px rgba(130, 64, 255, 0.4);
}

.image-favorite-btn i {
    font-size: 20px;
    transition: all 0.2s ease;
}

.image-favorite-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(130, 64, 255, 0.6);
}

.image-favorite-btn:active {
    transform: scale(0.95);
}

.image-favorite-btn.liked {
    background: linear-gradient(135deg, #ff006e, #ff4d9d);
    box-shadow: 0 4px 12px rgba(255, 0, 110, 0.4);
}

.image-favorite-btn.liked:hover {
    box-shadow: 0 6px 16px rgba(255, 0, 110, 0.6);
}

/* Show button on image hover */
.explore-image-card:hover .image-favorite-btn {
    opacity: 1;
    pointer-events: auto;
}

/* Button appears on touch/mobile */
.explore-image-card.active .image-favorite-btn {
    opacity: 1;
    pointer-events: auto;
}

/* ===== TikTok Style Action Buttons ===== */
.tiktok-actions {
    position: absolute;
    right: 16px;
    bottom: 100px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    z-index: 20;
}

.tiktok-action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.tiktok-action-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.1);
}

.tiktok-action-btn:active {
    transform: scale(0.95);
}

.action-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.action-count {
    font-size: 11px;
    font-weight: 600;
    min-width: 20px;
}

/* Heart button specific styling */
.tiktok-action-btn.heart-btn {
    background: rgba(255, 0, 110, 0.15);
    border-color: rgba(255, 0, 110, 0.3);
}

.tiktok-action-btn.heart-btn:hover {
    background: rgba(255, 0, 110, 0.25);
}

.tiktok-action-btn.heart-btn.liked .action-icon i {
    color: #ff006e;
}

.tiktok-action-btn.heart-btn.liked {
    background: rgba(255, 0, 110, 0.2);
}

/* Profile button */
.tiktok-action-btn.profile-btn {
    background: rgba(130, 64, 255, 0.15);
    border-color: rgba(130, 64, 255, 0.3);
}

.tiktok-action-btn.profile-btn:hover {
    background: rgba(130, 64, 255, 0.25);
}

/* Chat button */
.tiktok-action-btn.chat-btn {
    background: rgba(99, 102, 241, 0.15);
    border-color: rgba(99, 102, 241, 0.3);
}

.tiktok-action-btn.chat-btn:hover {
    background: rgba(99, 102, 241, 0.25);
}

/* Admin action buttons */
.admin-actions-divider {
    width: 24px;
    height: 1px;
    background: rgba(255, 255, 255, 0.2);
    margin: 2px auto;
}

.tiktok-action-btn.admin-btn {
    background: rgba(220, 38, 38, 0.15);
    border-color: rgba(220, 38, 38, 0.3);
}

.tiktok-action-btn.admin-btn:hover {
    background: rgba(220, 38, 38, 0.3);
}

.tiktok-action-btn.admin-btn.preview-model-btn {
    background: rgba(234, 179, 8, 0.15);
    border-color: rgba(234, 179, 8, 0.3);
}

.tiktok-action-btn.admin-btn.preview-model-btn:hover {
    background: rgba(234, 179, 8, 0.3);
}

/* ===== Double Tap Heart Animation ===== */
.double-tap-heart {
    position: fixed;
    pointer-events: none;
    z-index: 999999 !important;
    font-size: 80px;
    color: #ff006e;
    text-shadow: 0 0 20px rgba(255, 0, 110, 0.8);
    transform-origin: center;
    will-change: transform, opacity;
    /* Add visible background for debugging */
    background: radial-gradient(circle, rgba(255, 0, 110, 0.3) 0%, transparent 70%);
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Ensure it's not hidden */
    visibility: visible !important;
    opacity: 1;
}

.double-tap-heart i {
    display: block;
    filter: drop-shadow(0 0 10px rgba(255, 0, 110, 0.6));
    color: #ff006e;
    text-shadow: 0 0 30px rgba(255, 0, 110, 1);
}

@keyframes floatHeart {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0);
    }
    20% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.2);
    }
    40% {
        transform: translate(-50%, -60%) scale(1);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -120%) scale(0.8) rotate(15deg);
    }
}

/* Multiple hearts variation */
.double-tap-heart.heart-1 {
    animation-delay: 0s;
}

.double-tap-heart.heart-2 {
    animation-delay: 0.1s;
    font-size: 60px;
}

.double-tap-heart.heart-3 {
    animation-delay: 0.2s;
    font-size: 70px;
}

@keyframes floatHeartLeft {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0) rotate(0deg);
    }
    20% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1) rotate(-10deg);
    }
    100% {
        opacity: 0;
        transform: translate(-80%, -130%) scale(0.6) rotate(-20deg);
    }
}

@keyframes floatHeartRight {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0) rotate(0deg);
    }
    20% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1) rotate(10deg);
    }
    100% {
        opacity: 0;
        transform: translate(-20%, -130%) scale(0.6) rotate(20deg);
    }
}

/* ===== Image Model Indicator (Admin Only) ===== */
.image-model-indicator {
    position: absolute;
    top: 80px;
    left: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 8px 14px;
    color: white;
    font-size: 12px;
    z-index: 20;
    max-width: calc(100% - 100px);
}

.image-model-indicator i {
    font-size: 14px;
    color: var(--explore-accent-light);
    flex-shrink: 0;
}

.image-model-indicator .model-name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 500;
}
