/* --- MASTI HUB - ULTRA-PREMIUM FUTURISTIC DARK THEME --- */

:root {
    --bg-color: #09070F;
    --bg-secondary: #131020;
    --card-bg: #171322;
    --card-bg-alt: #191428;
    --border-color: rgba(255, 255, 255, 0.06);
    --border-color-glow: #8A5CFF;
    --primary-orange: #FF8A00;
    --gradient-orange: linear-gradient(135deg, #FF8A00 0%, #FF5A1F 100%);
    --gradient-btn-orange: linear-gradient(90deg, #FF9500 0%, #FF4D00 100%);
    --orange-glow: rgba(255, 138, 0, 0.7);
    --gold-color: #FFC83D;
    --purple-glow: #8A5CFF;
    --purple-shadow: rgba(138, 92, 255, 0.45);
    --dark-purple: #1B1628;
    --text-color: #FFFFFF;
    --text-muted: #9F9FB4;
    --font-heading: 'Poppins', 'Sora', sans-serif;
    --font-body: 'Poppins', sans-serif;
    --font-logo: 'Pacifico', 'Caveat', cursive;
}

/* --- RESET & GLOBAL --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: var(--font-body);
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    background-image: 
        radial-gradient(circle at 15% 15%, rgba(255, 138, 0, 0.08), transparent 45%),
        radial-gradient(circle at 85% 75%, rgba(138, 92, 255, 0.12), transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(19, 16, 32, 0.5), transparent 70%);
}

/* Smooth Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: var(--bg-color);
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary-orange);
}

/* --- HEADER (Height: 90px, Compact Logo) --- */
header {
    height: 90px;
    background: rgba(9, 7, 15, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    padding: 0 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Round profile photo with intense Orange Glowing Border */
.header-dp {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    overflow: hidden;
    border: 2.5px solid var(--primary-orange);
    box-shadow: 0 0 16px var(--orange-glow), 0 0 6px rgba(255, 138, 0, 0.4);
    background: #000;
    flex-shrink: 0;
}

.header-dp img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Logo: Compact Handwritten Masti in Orange Gradient, Hub in White with Purple Swoosh */
.logo-text {
    display: flex;
    align-items: baseline;
    font-family: var(--font-logo);
    font-size: 1.45rem;
    line-height: 1;
}

.logo-masti {
    background: var(--gradient-orange);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
    margin-right: 2px;
    font-size: 1.55rem;
}

.logo-hub {
    color: #FFFFFF;
    position: relative;
    font-family: 'Poppins', 'Sora', sans-serif;
    font-weight: 800;
    font-size: 1.25rem;
}

.purple-swoosh {
    position: absolute;
    bottom: -3px;
    left: 0;
    right: 0;
    height: 2.5px;
    background: var(--purple-glow);
    border-radius: 2px;
    box-shadow: 0 0 8px var(--purple-glow);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Three Rounded Square Buttons (Radius: 18px) */
.btn-header-buy {
    background: var(--gradient-orange);
    box-shadow: 0 8px 25px rgba(255, 138, 0, 0.75), 0 0 15px rgba(255, 90, 31, 0.5);
    border: none;
    border-radius: 18px;
    width: 48px;
    height: 48px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-header-buy:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(255, 138, 0, 0.9);
}

.buy-plus-icon {
    font-size: 1.4rem;
    font-weight: 900;
    color: #FFF;
    line-height: 1;
    text-shadow: 0 0 8px rgba(255,255,255,0.6);
}

.buy-label {
    font-size: 0.64rem;
    font-weight: 800;
    color: #FFF;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 1px;
}

/* Dark Glass Buttons (Gallery & Menu) */
.hamburger-menu {
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 18px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 15px rgba(0,0,0,0.4);
    transition: all 0.25s ease;
}

.hamburger-menu:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
}

.hamburger-menu svg {
    width: 22px;
    height: 22px;
    fill: var(--text-color);
    transition: fill 0.25s ease;
}

/* --- CATEGORY SECTION (3 Premium Cards: Explore, AI Clothes Remover, Video Generator) --- */
.category-section-wrapper {
    width: 100%;
    padding: 24px 5% 12px 5%;
    display: flex;
    justify-content: center;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    width: 100%;
    max-width: 500px;
}

@media (max-width: 440px) {
    .category-grid {
        gap: 8px;
    }
}

.category-card {
    height: 120px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 22px;
    padding: 14px 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

.category-card:hover {
    border-color: rgba(255, 138, 0, 0.4);
    transform: translateY(-2px);
}

.category-card.active {
    background: linear-gradient(180deg, rgba(255, 138, 0, 0.16) 0%, rgba(23, 19, 34, 0.95) 100%);
    border: 2px solid var(--primary-orange);
    box-shadow: 0 8px 25px rgba(255, 138, 0, 0.45);
}

.category-card.active .cat-active-pill {
    position: absolute;
    bottom: 0;
    left: 20%;
    right: 20%;
    height: 3px;
    background: var(--primary-orange);
    border-radius: 3px 3px 0 0;
    box-shadow: 0 0 10px var(--primary-orange);
}

/* Category Icon Badges */
.cat-icon-box {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    position: relative;
    flex-shrink: 0;
}

.cat-icon-box svg {
    width: 22px;
    height: 22px;
    fill: #FFF;
}

.icon-orange {
    background: var(--gradient-orange);
    box-shadow: 0 4px 14px rgba(255, 138, 0, 0.5);
}

.icon-purple {
    background: linear-gradient(135deg, #8A5CFF, #6D28D9);
    border-radius: 14px;
    box-shadow: 0 4px 14px rgba(138, 92, 255, 0.5);
}

.icon-blue {
    background: linear-gradient(135deg, #3B82F6, #1D4ED8);
    box-shadow: 0 4px 14px rgba(59, 130, 246, 0.5);
}

.cat-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.78rem;
    color: #FFF;
    line-height: 1.25;
    margin-bottom: 2px;
}

.cat-subtitle {
    font-size: 0.64rem;
    color: var(--text-muted);
    line-height: 1.1;
    font-weight: 500;
}

.category-card.active .cat-title {
    color: #FFF;
}

.category-card.active .cat-subtitle {
    color: var(--primary-orange);
    font-weight: 600;
}

/* --- MAIN BODY CONTAINER --- */
main {
    flex: 1;
    width: 100%;
    padding: 10px 5% 40px 5%;
    display: flex;
    justify-content: center;
}

.tab-content {
    display: none;
    width: 100%;
    max-width: 460px;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

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

/* --- MAIN VIDEO / PLAYER CARD (9:16 Aspect Ratio, Radius: 26px, Purple Glow Border) --- */
.player-card, .cloth-card {
    background: var(--card-bg);
    border: 2px solid var(--purple-glow);
    border-radius: 26px;
    box-shadow: 0 0 35px var(--purple-shadow), inset 0 0 15px rgba(138, 92, 255, 0.15);
    padding: 12px;
    margin-bottom: 30px;
    position: relative;
    background: linear-gradient(180deg, rgba(23, 19, 34, 0.9), rgba(27, 22, 40, 0.95));
}

/* 9:16 Aspect Ratio Video Box */
.video-frame-container, .comparison-slider-container {
    width: 100%;
    aspect-ratio: 9/16;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    background: #000;
}

.background-video, .slider-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Top-Left: Uploaded Source Face Thumbnail */
.video-overlay-source {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 10;
}

.source-img-wrapper {
    width: 58px;
    height: 58px;
    border-radius: 16px;
    border: 2.5px solid #FFFFFF;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0,0,0,0.7);
    background: #000;
}

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

/* Top-Right: Golden AI Badge */
.video-overlay-ai-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 10;
    background: var(--dark-purple);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--gold-color);
    color: var(--gold-color);
    font-weight: 800;
    font-size: 0.8rem;
    padding: 6px 14px;
    border-radius: 20px;
    box-shadow: 0 0 12px rgba(255, 200, 61, 0.35);
}

/* User Target Upload Slot Top-Right (when uploaded) */
.video-overlay-upload-slot {
    position: absolute;
    top: 56px;
    right: 14px;
    z-index: 10;
}

.target-upload-slot {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 2px dashed rgba(255, 255, 255, 0.4);
    background: rgba(9, 7, 15, 0.7);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.25s ease;
}

.target-upload-slot:hover {
    border-color: var(--primary-orange);
    border-style: solid;
    transform: scale(1.05);
}

.slot-add-icon {
    width: 22px;
    height: 22px;
    fill: #FFF;
}

.target-preview-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.remove-upload-btn {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--primary-orange);
    color: #000;
    font-weight: bold;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    cursor: pointer;
    z-index: 15;
}

/* Bottom Left: Creator Username & 5 Sec Duration */
.video-info-box {
    position: absolute;
    bottom: 16px;
    left: 16px;
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.video-creator-tag {
    color: #FFF;
    font-weight: 700;
    font-size: 0.98rem;
    display: flex;
    align-items: center;
    gap: 5px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.9);
}

.verified-icon {
    width: 17px;
    height: 17px;
    fill: #8A5CFF;
}

.video-meta-badges {
    display: flex;
    gap: 8px;
}

.meta-pill {
    background: rgba(9, 7, 15, 0.78);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #E2DFEC;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 14px;
}

/* Bottom Right: Interactive Heart (Like/Favorite) Button */
.video-overlay-heart {
    position: absolute;
    bottom: 16px;
    right: 16px;
    z-index: 12;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(9, 7, 15, 0.75);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(0,0,0,0.4);
}

.video-overlay-heart:hover {
    transform: scale(1.12);
    border-color: #FF2E63;
}

.video-overlay-heart .heart-icon {
    width: 22px;
    height: 22px;
    fill: rgba(255, 255, 255, 0.7);
    transition: fill 0.25s ease, filter 0.25s ease;
}

.video-overlay-heart.active .heart-icon {
    fill: #FF2E63;
    filter: drop-shadow(0 0 10px #FF2E63);
}

.video-overlay-heart.active {
    border-color: #FF2E63;
    background: rgba(255, 46, 99, 0.15);
}

/* --- 95% WIDTH GENERATE CTA BUTTON (Height: 64px, Radius: 22px, Strong Glow) --- */
.main-cta-wrapper {
    width: 100%;
    margin-top: 14px;
    display: flex;
    justify-content: center;
}

.btn-generate-main {
    width: 95%;
    height: 64px;
    background: var(--gradient-btn-orange);
    border: none;
    border-radius: 22px;
    color: #FFFFFF;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.18rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 12px 40px rgba(255, 77, 0, 0.75), 0 0 25px rgba(255, 149, 0, 0.5);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    padding: 0 20px;
}

.btn-generate-main:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 48px rgba(255, 77, 0, 0.9), 0 0 30px rgba(255, 149, 0, 0.7);
}

.btn-generate-main:active {
    transform: translateY(1px);
    box-shadow: 0 6px 20px rgba(255, 77, 0, 0.6);
}

.btn-generate-main .sparkle {
    font-size: 1.3rem;
}

.btn-generate-main .text {
    letter-spacing: 0.3px;
}

.btn-generate-main .arrow-pill {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    transition: background 0.2s ease;
}

.btn-generate-main .arrow-pill svg {
    width: 22px;
    height: 22px;
    fill: #FFF;
}

/* Loading Spinner Overlay */
.generator-loading-overlay {
    position: absolute;
    inset: 0;
    background: rgba(9, 7, 15, 0.88);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    z-index: 20;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.generator-loading-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 138, 0, 0.2);
    border-top-color: var(--primary-orange);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-bottom: 16px;
}

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

.loading-text {
    font-weight: 700;
    color: #FFF;
    font-size: 0.95rem;
}

/* Scanning Laser Line */
.scan-laser-line {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--primary-orange), #FFF, var(--primary-orange), transparent);
    box-shadow: 0 0 18px var(--primary-orange);
    z-index: 15;
    display: none;
}

.scan-laser-line.animating {
    display: block;
    animation: scanMove 1.5s ease-in-out infinite alternate;
}

@keyframes scanMove {
    0% { top: 0%; }
    100% { top: 98%; }
}

/* --- CLOTH REMOVER COMPARISON SLIDER --- */
.slider-img-after-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 50%;
    overflow: hidden;
    z-index: 2;
    border-right: 2px solid #FFFFFF;
    box-shadow: 4px 0 15px rgba(0, 0, 0, 0.5);
}

.slider-img-after-wrapper .slider-img {
    max-width: none !important;
}

.slider-handle {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 4px;
    background: #FFFFFF;
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.8), 0 0 20px var(--primary-orange);
    z-index: 10;
    cursor: ew-resize;
    transform: translateX(-50%);
}

.slider-handle-badge {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--gradient-orange);
    border: 2.5px solid #FFFFFF;
    box-shadow: 0 4px 20px rgba(255, 138, 0, 0.85), 0 0 15px var(--orange-glow);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFF;
}

/* Bulletproof Range Control Overlay for Mouse & Touch Devices */
.comparison-range-control {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    z-index: 35;
    cursor: ew-resize;
    margin: 0;
    padding: 0;
    -webkit-appearance: none;
    appearance: none;
}

.slider-label {
    position: absolute;
    bottom: 16px;
    z-index: 4;
    background: rgba(9, 7, 15, 0.78);
    backdrop-filter: blur(8px);
    padding: 5px 14px;
    border-radius: 14px;
    font-size: 0.78rem;
    font-weight: 700;
    color: #FFF;
}

.slider-label-before { left: 16px; }
.slider-label-after { right: 16px; }

/* --- WATCH PORTAL GRID --- */
.watch-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}

.watch-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.watch-card:hover {
    border-color: var(--primary-orange);
    transform: translateY(-2px);
}

.watch-card-thumbnail-box {
    position: relative;
    aspect-ratio: 16/9;
    background: #000;
}

.watch-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.watch-play-icon-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.watch-play-icon-overlay svg {
    width: 46px;
    height: 46px;
    fill: var(--primary-orange);
    filter: drop-shadow(0 0 10px rgba(255, 138, 0, 0.8));
    transition: transform 0.2s ease;
}

.watch-play-icon-overlay:hover svg {
    transform: scale(1.1);
}

.watch-card-details {
    padding: 14px;
}

.watch-card-title {
    font-weight: 700;
    font-size: 0.92rem;
    color: #FFF;
    margin-bottom: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.btn-watch-now {
    width: 100%;
    padding: 10px;
    background: rgba(255, 138, 0, 0.15);
    border: 1px solid rgba(255, 138, 0, 0.3);
    color: var(--primary-orange);
    font-weight: 700;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 0.85rem;
    transition: all 0.2s ease;
}

.btn-watch-now:hover {
    background: var(--primary-orange);
    color: #000;
}

.btn-watch-now svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.watch-card-actions-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 10px;
}

.btn-buy-premium-card {
    width: 100%;
    padding: 10px;
    background: var(--gradient-btn-orange);
    border: none;
    color: #FFF;
    font-weight: 800;
    border-radius: 12px;
    cursor: pointer;
    font-size: 0.82rem;
    box-shadow: 0 4px 15px rgba(255, 77, 0, 0.4);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.btn-buy-premium-card:hover {
    transform: scale(1.03);
    box-shadow: 0 6px 20px rgba(255, 77, 0, 0.6);
}

.watch-play-btn-circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--primary-orange);
    box-shadow: 0 0 18px var(--orange-glow);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
}

.watch-play-btn-circle svg {
    width: 24px;
    height: 24px;
    fill: #FFF;
    margin-left: 2px;
}

.watch-play-btn-circle:hover {
    transform: scale(1.12);
}

.watch-vip-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(9, 7, 15, 0.82);
    backdrop-filter: blur(8px);
    border: 1px solid var(--primary-orange);
    color: var(--primary-orange);
    font-weight: 800;
    font-size: 0.72rem;
    padding: 4px 10px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.5);
    z-index: 10;
}

/* 100% Heavy Blur Effect & VIP Blur Badge for Video Generator Cards */
.watch-blur-100 {
    filter: blur(25px) brightness(0.5);
    transform: scale(1.12);
    transition: filter 0.3s ease, transform 0.3s ease;
}

.watch-card:hover .watch-blur-100 {
    filter: blur(18px) brightness(0.6);
}

.blur-pill-badge {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: rgba(9, 7, 15, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 138, 0, 0.4);
    color: #FFF;
    font-size: 0.68rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.6);
    z-index: 10;
}

/* --- BOTTOM SHEET / DRAWERS / MODALS --- */
.backdrop-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 200;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.backdrop-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

/* Bottom Sheet */
.bottom-sheet {
    position: fixed;
    bottom: -100%;
    left: 0;
    right: 0;
    background: var(--card-bg);
    border-top: 1px solid var(--border-color);
    border-radius: 26px 26px 0 0;
    padding: 24px;
    z-index: 205;
    transition: bottom 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    max-width: 500px;
    margin: 0 auto;
}

.bottom-sheet.active {
    bottom: 0;
}

.sheet-handle {
    width: 40px;
    height: 4px;
    background: rgba(255,255,255,0.15);
    border-radius: 2px;
    margin: 0 auto 20px auto;
}

.sheet-header h2 {
    font-size: 1.25rem;
    font-weight: 800;
    color: #FFF;
    margin-bottom: 16px;
    text-align: center;
}

.drag-drop-zone {
    border: 2px dashed rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    padding: 30px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.25s ease;
    background: rgba(255, 255, 255, 0.01);
}

.drag-drop-zone:hover {
    border-color: var(--primary-orange);
    background: rgba(255, 138, 0, 0.03);
}

.drag-drop-zone svg {
    width: 42px;
    height: 42px;
    fill: var(--primary-orange);
    margin-bottom: 10px;
}

.drag-drop-text {
    font-weight: 700;
    font-size: 0.95rem;
    color: #FFF;
}

.drag-drop-text span {
    color: var(--primary-orange);
    text-decoration: underline;
}

.drag-drop-subtext {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 4px;
}

.sheet-divider {
    text-align: center;
    margin: 16px 0;
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 600;
}

.btn-url-upload {
    width: 100%;
    padding: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    color: #FFF;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.9rem;
}

.btn-url-upload svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.url-input-box {
    display: none;
    margin-top: 10px;
    gap: 8px;
}

.url-input-box.active {
    display: flex;
}

.url-field-input {
    flex: 1;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 10px;
    color: #FFF;
    font-size: 0.88rem;
}

.btn-url-submit {
    background: var(--primary-orange);
    color: #000;
    font-weight: 800;
    border: none;
    border-radius: 12px;
    padding: 0 16px;
    cursor: pointer;
}

.terms-checkbox-container {
    display: flex;
    gap: 10px;
    margin-top: 16px;
    align-items: flex-start;
}

.terms-label {
    font-size: 0.72rem;
    color: var(--text-muted);
    line-height: 1.3;
}

.terms-label a {
    color: var(--primary-orange);
}

/* Side Drawers */
.gallery-drawer {
    position: fixed;
    top: 0;
    bottom: 0;
    width: 320px;
    max-width: 85vw;
    background: var(--card-bg);
    border-left: 1px solid var(--border-color);
    z-index: 210;
    transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.gallery-drawer#galleryDrawer { right: -360px; }
.gallery-drawer#galleryDrawer.active { right: 0; }
.gallery-drawer#menuDrawer.active { right: 0 !important; }

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

.gallery-header h2 {
    font-size: 1.2rem;
    font-weight: 800;
    color: #FFF;
}

.gallery-close {
    font-size: 1.5rem;
    color: var(--text-muted);
    cursor: pointer;
}

.gallery-tabs {
    display: flex;
    border-bottom: 1px solid var(--border-color);
}

.gallery-tab-btn {
    flex: 1;
    padding: 12px;
    text-align: center;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
}

.gallery-tab-btn.active {
    color: var(--primary-orange);
    border-bottom: 2px solid var(--primary-orange);
}

.gallery-scroll-area {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
}

.gallery-info-bar {
    display: flex;
    justify-content: space-between;
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-bottom: 14px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.gallery-card {
    aspect-ratio: 1;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.gallery-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-card-text {
    font-size: 0.75rem;
    text-align: center;
    color: var(--text-muted);
}

/* Floating Preview Badge */
.floating-photo-preview {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    border-radius: 16px;
    border: 2px solid var(--primary-orange);
    box-shadow: 0 4px 20px var(--orange-glow);
    z-index: 150;
    display: none;
    cursor: pointer;
    background: #000;
}

.floating-photo-preview.active {
    display: block;
}

.floating-photo-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 14px;
}

.floating-photo-close {
    position: absolute;
    top: -6px;
    right: -6px;
    background: var(--primary-orange);
    color: #000;
    font-weight: bold;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
}

.floating-photo-label {
    position: absolute;
    bottom: -18px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.65rem;
    color: var(--primary-orange);
    font-weight: 700;
    white-space: nowrap;
}

/* Modals */
.video-viewer-modal, .plans-modal {
    position: fixed;
    inset: 0;
    z-index: 250;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.video-viewer-modal.active, .plans-modal.active {
    display: flex;
}

@keyframes slideUp {
    from { transform: translateY(100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.plans-modal.active .plans-card {
    animation: slideUp 0.35s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.modal-content-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    width: 100%;
    max-width: 580px;
    position: relative;
    overflow: hidden;
}

.modal-close-btn, .plans-close-btn {
    position: absolute;
    top: 14px;
    right: 14px;
    font-size: 1.5rem;
    color: #FFF;
    cursor: pointer;
    z-index: 10;
}

.modal-video-viewport {
    width: 100%;
    aspect-ratio: 16/9;
    background: #000;
}

.modal-video-viewport iframe, .modal-video-element {
    width: 100%;
    height: 100%;
    border: none;
}

.modal-video-details {
    padding: 16px;
}

.modal-video-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #FFF;
}

.modal-video-meta {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 4px;
}

/* Plans Modal */
.plans-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 26px;
    padding: 24px;
    width: 100%;
    max-width: 480px;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}

.plans-header {
    text-align: center;
    margin-bottom: 20px;
}

.plans-title {
    font-size: 1.3rem;
    font-weight: 800;
    color: #FFF;
}

.plans-subtitle {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-top: 4px;
}

.plans-list-horizontal {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 12px;
    scroll-snap-type: x mandatory;
}

.plan-item {
    flex: 0 0 85%;
    scroll-snap-align: center;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 20px;
    position: relative;
    transition: all 0.25s ease;
}

.plan-item.recommended {
    border-color: var(--primary-orange);
    background: linear-gradient(180deg, rgba(255, 138, 0, 0.12) 0%, rgba(23, 19, 34, 0.95) 100%);
    box-shadow: 0 6px 22px rgba(255, 138, 0, 0.3);
}

.plan-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    background: var(--primary-orange);
    color: #000;
    font-weight: 800;
    font-size: 0.7rem;
    padding: 3px 8px;
    border-radius: 6px;
    text-transform: uppercase;
}

.plan-badge.badge-pro {
    background: var(--purple-glow);
    color: #FFF;
}

.plan-name {
    font-weight: 800;
    font-size: 1.1rem;
    color: #FFF;
}

.plan-price-box {
    margin: 10px 0;
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.plan-price-box .currency {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--primary-orange);
}

.plan-price-box .plan-price {
    font-size: 2rem;
    font-weight: 900;
    color: #FFF;
}

.plan-desc {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 16px;
}

.btn-plan-select {
    width: 100%;
    padding: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: #FFF;
    font-weight: 700;
    border-radius: 12px;
    cursor: pointer;
}

.plan-item.recommended .btn-plan-select {
    background: var(--gradient-orange);
    border: none;
    color: #FFF;
}

.plan-dots-container {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin: 12px 0 20px 0;
}

.plan-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--border-color);
    cursor: pointer;
}

.plan-dot.active {
    background: var(--primary-orange);
    width: 20px;
    border-radius: 4px;
}

.btn-purchase-confirm {
    width: 100%;
    height: 54px;
    background: var(--gradient-btn-orange);
    border: none;
    border-radius: 16px;
    color: #FFF;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.05rem;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(255, 77, 0, 0.6);
    transition: all 0.25s ease;
}

.btn-purchase-confirm:hover {
    box-shadow: 0 10px 30px rgba(255, 77, 0, 0.8);
}

/* Footer */
footer {
    border-top: 1px solid var(--border-color);
    padding: 20px;
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: auto;
}
