/* ===== Full Cut Panty — Bubble Carousel Dashboard ===== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* ===== Body & Background ===== */
body.dashboard-mode {
    min-height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
    background: linear-gradient(160deg, #0d0d14 0%, #1a1225 50%, #0f0a18 100%);
    font-family: 'Inter', sans-serif;
    color: #f0f0f5;
}

body.dashboard-mode::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(circle at 15% 25%, rgba(139, 92, 246, 0.12) 0%, transparent 40%),
        radial-gradient(circle at 85% 75%, rgba(236, 72, 153, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 50% 50%, rgba(59, 130, 246, 0.06) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

/* Disable right-click & drag on media */
img,
video {
    -webkit-user-drag: none;
    user-select: none;
}

/* ===== Navigation ===== */
.dashboard-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    background: rgba(13, 13, 20, 0.92);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(139, 92, 246, 0.15);
    z-index: 100;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-image {
    height: 40px;
    border-radius: 10px;
    border: 2px solid rgba(139, 92, 246, 0.3);
}

.brand-text {
    font-size: 1.25rem;
    font-weight: 800;
    background: linear-gradient(135deg, #a78bfa 0%, #ec4899 50%, #f97316 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 30px rgba(139, 92, 246, 0.3);
}

.nav-stats {
    display: flex;
    gap: 10px;
}

.stat-pill {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 20px;
    font-size: 0.8rem;
    color: #c4b5fd;
}

.nav-actions {
    display: flex;
    gap: 8px;
}

.btn {
    padding: 8px 16px;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-login {
    background: transparent;
    border: 1px solid rgba(139, 92, 246, 0.3);
    color: #c4b5fd;
}

.btn-login:hover {
    background: rgba(139, 92, 246, 0.15);
    border-color: rgba(139, 92, 246, 0.5);
}

.btn-join {
    background: linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
}

.btn-join:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.4);
}

/* ===== Bubble Dashboard Layout ===== */
.bubble-dashboard {
    margin-top: 64px;
    padding: 30px 40px 60px;
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

/* ===== Bubble Row ===== */
.bubble-row {
    background: rgba(18, 14, 28, 0.6);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(139, 92, 246, 0.12);
    border-radius: 24px;
    padding: 20px 24px;
    transition: border-color 0.3s ease;
}

.bubble-row:hover {
    border-color: rgba(139, 92, 246, 0.3);
}

.row-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
    padding: 0 4px;
}

.row-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 10px;
}

.row-icon {
    font-size: 1.2rem;
}

.row-count {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.4);
    font-weight: 500;
}

/* ===== Carousel Track ===== */
.carousel-track {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 10px 4px 16px;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
}

.carousel-track::-webkit-scrollbar {
    height: 6px;
}

.carousel-track::-webkit-scrollbar-track {
    background: transparent;
}

.carousel-track::-webkit-scrollbar-thumb {
    background: rgba(139, 92, 246, 0.3);
    border-radius: 3px;
}

.carousel-track::-webkit-scrollbar-thumb:hover {
    background: rgba(139, 92, 246, 0.5);
}

/* ===== Bubble Item ===== */
.bubble-item {
    flex-shrink: 0;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    overflow: hidden;
    cursor: pointer;
    position: relative;
    border: 3px solid rgba(139, 92, 246, 0.25);
    box-shadow:
        0 4px 15px rgba(0, 0, 0, 0.3),
        0 0 0 0 rgba(236, 72, 153, 0);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    scroll-snap-align: center;
}

.bubble-item img,
.bubble-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
    pointer-events: none;
}

.bubble-item:hover {
    transform: scale(1.25);
    border-color: rgba(236, 72, 153, 0.7);
    box-shadow:
        0 8px 40px rgba(139, 92, 246, 0.4),
        0 0 0 6px rgba(236, 72, 153, 0.15),
        0 0 60px rgba(236, 72, 153, 0.2);
    z-index: 10;
}

.bubble-item:hover img,
.bubble-item:hover video {
    transform: scale(1.1);
}

/* Bubble overlays */
.bubble-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 4px 8px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
    font-size: 0.55rem;
    color: rgba(255, 255, 255, 0.9);
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.bubble-item:hover .bubble-label {
    opacity: 1;
}

.bubble-badge {
    position: absolute;
    top: 6px;
    right: 6px;
    padding: 2px 6px;
    border-radius: 8px;
    font-size: 0.5rem;
    font-weight: 700;
    text-transform: uppercase;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.bubble-item:hover .bubble-badge {
    opacity: 1;
}

.bubble-badge.new {
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    color: white;
    animation: pulse-glow 2s infinite;
}

.bubble-badge.source {
    background: rgba(0, 0, 0, 0.7);
    color: #a78bfa;
}

.bubble-badge.source.gemini {
    background: linear-gradient(135deg, #4285f4, #34a853);
    color: white;
}

.bubble-badge.source.grok {
    background: linear-gradient(135deg, #ef4444, #f97316);
    color: white;
}

/* Locked bubble */
.bubble-item.locked {
    filter: brightness(0.45) saturate(0.5);
}

.bubble-item.locked::after {
    content: '🔒';
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(2px);
    border-radius: 50%;
}

/* Video play overlay */
.bubble-play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.bubble-play-icon {
    width: 32px;
    height: 32px;
    background: rgba(139, 92, 246, 0.85);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    color: white;
    box-shadow: 0 2px 10px rgba(139, 92, 246, 0.5);
    transition: transform 0.3s ease;
}

.bubble-item:hover .bubble-play-icon {
    transform: scale(1.2);
}

/* ===== Spotlight Overlay ===== */
.spotlight-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(12px);
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.spotlight-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.spotlight-content {
    text-align: center;
}

.spotlight-content img {
    max-height: 65vh;
    max-width: 65vw;
    object-fit: contain;
    border-radius: 16px;
    box-shadow: 0 20px 80px rgba(139, 92, 246, 0.3), 0 0 120px rgba(236, 72, 153, 0.15);
    border: 2px solid rgba(139, 92, 246, 0.3);
}

.spotlight-caption {
    margin-top: 12px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 500;
}

/* ===== Animations ===== */
@keyframes pulse-glow {

    0%,
    100% {
        box-shadow: 0 0 5px rgba(245, 158, 11, 0.5);
    }

    50% {
        box-shadow: 0 0 15px rgba(245, 158, 11, 0.8);
    }
}

@keyframes float-in {
    from {
        opacity: 0;
        transform: scale(0.6) translateY(20px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.bubble-item {
    animation: float-in 0.5s ease-out backwards;
}

/* Stagger animation for each bubble */
.bubble-item:nth-child(1) {
    animation-delay: 0.05s;
}

.bubble-item:nth-child(2) {
    animation-delay: 0.1s;
}

.bubble-item:nth-child(3) {
    animation-delay: 0.15s;
}

.bubble-item:nth-child(4) {
    animation-delay: 0.2s;
}

.bubble-item:nth-child(5) {
    animation-delay: 0.25s;
}

.bubble-item:nth-child(6) {
    animation-delay: 0.3s;
}

.bubble-item:nth-child(7) {
    animation-delay: 0.35s;
}

.bubble-item:nth-child(8) {
    animation-delay: 0.4s;
}

.bubble-item:nth-child(9) {
    animation-delay: 0.45s;
}

.bubble-item:nth-child(10) {
    animation-delay: 0.5s;
}

.bubble-item:nth-child(11) {
    animation-delay: 0.55s;
}

.bubble-item:nth-child(12) {
    animation-delay: 0.6s;
}

/* ===== Loading Spinner ===== */
.loading-spinner {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 40px;
}

.loading-spinner::after {
    content: '';
    width: 32px;
    height: 32px;
    border: 3px solid rgba(139, 92, 246, 0.2);
    border-top-color: #8b5cf6;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ===== Modals (preserved from original) ===== */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-content {
    position: relative;
    background: linear-gradient(160deg, rgba(25, 18, 40, 0.98) 0%, rgba(15, 10, 25, 0.98) 100%);
    border: 1px solid rgba(139, 92, 246, 0.25);
    border-radius: 24px;
    max-width: 420px;
    width: 90%;
    overflow: hidden;
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 20px;
    cursor: pointer;
    z-index: 10;
    transition: background 0.2s ease;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Paywall */
.paywall-content {
    padding: 40px 30px;
    text-align: center;
}

.paywall-crown {
    font-size: 3rem;
    display: block;
    margin-bottom: 16px;
}

.paywall-content h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 8px;
    background: linear-gradient(135deg, #a78bfa 0%, #ec4899 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.paywall-content>p {
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 24px;
}

.paywall-benefits {
    text-align: left;
    margin-bottom: 28px;
}

.benefit {
    padding: 8px 0;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
}

.paywall-pricing {
    margin-bottom: 24px;
}

.price-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    background: rgba(139, 92, 246, 0.1);
    border: 2px solid rgba(139, 92, 246, 0.3);
    border-radius: 16px;
    position: relative;
}

.price-badge {
    position: absolute;
    top: -10px;
    padding: 4px 12px;
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: 600;
    color: white;
}

.price-amount {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #a78bfa 0%, #ec4899 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.price-period {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

.btn-premium {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%);
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.4);
    transition: all 0.2s ease;
}

.btn-premium:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(139, 92, 246, 0.5);
}

.paywall-note {
    margin-top: 16px;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.4);
}

/* Crypto options in paywall */
.crypto-options {
    margin-top: 24px;
    border-top: 1px solid rgba(139, 92, 246, 0.15);
    padding-top: 16px;
}

.crypto-header {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 12px;
}

.crypto-wallet {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(139, 92, 246, 0.1);
    border-radius: 10px;
    margin-bottom: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.crypto-wallet:hover {
    background: rgba(139, 92, 246, 0.1);
    border-color: rgba(139, 92, 246, 0.3);
}

.crypto-icon {
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
}

.crypto-name {
    font-size: 0.8rem;
    font-weight: 600;
    color: #c4b5fd;
    width: 35px;
}

.crypto-addr {
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.5);
    font-family: monospace;
    overflow: hidden;
    text-overflow: ellipsis;
}

.crypto-note {
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.3);
    margin-top: 8px;
}

/* Lightbox */
.lightbox-content {
    max-width: 90vw;
    max-height: 90vh;
    background: transparent;
    border: none;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.lightbox-info {
    margin-top: 16px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
}

/* Video Modal */
.video-modal-content {
    max-width: 850px;
    width: 95%;
    padding: 0;
}

.video-modal-content video {
    width: 100%;
    max-height: 65vh;
    background: black;
    border-radius: 24px 24px 0 0;
}

.video-modal-content .video-info {
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid rgba(139, 92, 246, 0.15);
}

.video-modal-content h3 {
    font-size: 1rem;
    font-weight: 600;
}

.video-type-badge {
    padding: 4px 10px;
    background: rgba(139, 92, 246, 0.3);
    border-radius: 8px;
    font-size: 0.7rem;
    font-weight: 600;
    color: #c4b5fd;
}

.video-type-badge.ai {
    background: linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%);
    color: white;
}

/* ===== Toast ===== */
.toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 2000;
}

.toast {
    padding: 12px 20px;
    background: rgba(25, 18, 40, 0.95);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 10px;
    color: white;
    font-size: 0.85rem;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
    transform: translateX(100%);
    opacity: 0;
    transition: all 0.3s ease;
}

.toast.show {
    transform: translateX(0);
    opacity: 1;
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .bubble-dashboard {
        padding: 20px 20px 40px;
        gap: 30px;
    }

    .bubble-item {
        width: 120px;
        height: 120px;
    }
}

@media (max-width: 768px) {
    .dashboard-nav {
        position: sticky;
        height: auto;
        padding: 10px 14px;
        flex-wrap: wrap;
        gap: 8px;
    }

    .nav-stats {
        display: none;
    }

    .bubble-dashboard {
        padding: 10px 12px 30px;
        margin-top: 0;
        gap: 20px;
    }

    .bubble-row {
        padding: 14px 14px;
        border-radius: 16px;
    }

    .bubble-item {
        width: 100px;
        height: 100px;
    }

    .carousel-track {
        gap: 10px;
    }

    .row-header {
        margin-bottom: 12px;
    }

    .row-title {
        font-size: 0.95rem;
    }
}