/* ============================================================================
   HOMEPAGE-MATCHED DESIGN SYSTEM
   Apply these to ALL services for consistency
   ============================================================================ */

/* Fix close button positioning - ensure parent containers have relative positioning */
.card-header,
.modal-content,
.room-card-modal-container {
    position: relative !important;
}

/* Close buttons in card headers - vertically centered */
.card-header button[onclick*="close"],
.card-header button[onclick*="Close"],
#outfitsModal .card-header button,
#furnitureModal .card-header button {
    position: absolute !important;
    top: 50% !important;
    right: 16px !important;
    transform: translateY(-50%) !important;
    margin: 0 !important;
    z-index: 10 !important;
}

/* CSS Variables - EXACTLY matching homepage */
:root {
    --bg-primary: #0a0b0d;
    --bg-secondary: #12151a;
    --bg-card: #1a1d23;
    --bg-hover: #1f2229;
    --accent: #646cff;
    --accent-secondary: #a78bfa;
    --accent-dim: #4046d3;
    --text-primary: #ffffff;
    --text-secondary: #9ca3af;
    --text-muted: #6b7280;
    --border: rgba(255, 255, 255, 0.06);
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
}

/* Body - Solid dark background (NO GRADIENT) */
html, body {
    background: var(--bg-primary);
    color: var(--text-primary);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    max-width: 100vw;
}

/* Prevent horizontal overflow globally */
*, *::before, *::after {
    box-sizing: border-box;
}

/* Sections - Transparent (shows body background) */
.section,
.section-lg,
.section-md {
    background: transparent;
    background-color: transparent;
}

/* Main container with subtle glow */
.container-search,
.inner-container {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(100, 108, 255, 0.25);
    border-radius: 16px;
    padding: 40px;
    margin-bottom: 32px;
    box-shadow: 0 0 20px rgba(100, 108, 255, 0.1);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Hover effect for containers */
.container-search:hover {
    transform: translateY(-4px);
    border-color: rgba(100, 108, 255, 0.5);
    box-shadow: 
        0 0 40px rgba(100, 108, 255, 0.2),
        0 20px 40px rgba(0, 0, 0, 0.2);
}

/* Page header */
.page-header-animation {
    text-align: center;
    margin-bottom: 40px;
}

/* Header title - Gradient text */
.header-title {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: -1.5px;
    line-height: 1.1;
    background: linear-gradient(135deg, #ffffff 0%, #c4b5fd 40%, #a78bfa 60%, #ffffff 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: titleShimmer 6s ease-in-out infinite;
}

@keyframes titleShimmer {
    0%, 100% { background-position: 0% center; }
    50% { background-position: 200% center; }
}

/* Animated container */
.animated-container {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(26, 29, 35, 0.6);
    backdrop-filter: blur(20px);
    border-radius: 12px;
    padding: 8px 16px;
    border: 1px solid rgba(100, 108, 255, 0.2);
}

/* Animated text */
.animated-text {
    font-size: 18px;
    font-weight: 400;
    color: var(--text-secondary);
}

/* Animated list */
.animated-list {
    font-size: 18px;
    font-weight: 700;
    background: linear-gradient(90deg, #646cff 0%, #a78bfa 50%, #ec4899 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 3s ease infinite;
}

/* Notice box - Matching homepage style */
.notice-box {
    background: linear-gradient(135deg, rgba(100, 108, 255, 0.12), rgba(167, 139, 250, 0.06));
    border: 1px solid rgba(100, 108, 255, 0.25);
    border-radius: 12px;
    padding: 14px 18px;
    margin-bottom: 28px;
}

/* Buttons */
.modern-btn,
.search-button,
.download-button {
    background: linear-gradient(135deg, #646cff, #a78bfa);
    border: none;
    border-radius: 12px;
    color: white;
    font-weight: 600;
    padding: 12px 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(100, 108, 255, 0.3);
}

.modern-btn:hover,
.search-button:hover,
.download-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(100, 108, 255, 0.4);
}

/* Input fields */
.modern-input,
.search-input,
.form-input,
input[type="text"],
textarea {
    background: var(--bg-secondary);
    border: 1px solid rgba(100, 108, 255, 0.25);
    border-radius: 12px;
    padding: 12px 16px;
    color: white;
    font-size: 14px;
    transition: all 0.3s ease;
    width: 100%;
}

/* Form input with icon - needs extra left padding */
.form-input.pl-10,
.form-input.pl-12 {
    padding-left: 44px !important;
}

.modern-input:focus,
.search-input:focus,
.form-input:focus,
input[type="text"]:focus,
textarea:focus {
    outline: none;
    border-color: #646cff;
    box-shadow: 0 0 0 3px rgba(100, 108, 255, 0.1);
}

/* Cards - Base styles for result/tracked cards (NOT room-group, which has modern styles below) */
.result-card,
.tracked-user-card {
    background: var(--bg-card);
    border: 1px solid rgba(100, 108, 255, 0.25);
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
}

.result-card:hover,
.tracked-user-card:hover {
    transform: translateY(-4px);
    border-color: rgba(100, 108, 255, 0.5);
    box-shadow: 0 0 30px rgba(100, 108, 255, 0.2);
}

/* Mobile responsive */
@media (max-width: 768px) {
    /* Prevent ALL horizontal overflow on mobile */
    html, body {
        overflow-x: hidden !important;
        max-width: 100vw !important;
        width: 100% !important;
    }
    
    /* All containers must fit within viewport */
    .container,
    .container-search,
    .inner-container,
    .section,
    .section-lg,
    .section-md,
    main,
    [class*="container"] {
        max-width: 100% !important;
        width: 100% !important;
        padding-left: 12px !important;
        padding-right: 12px !important;
        overflow-x: hidden !important;
        box-sizing: border-box !important;
    }
    
    .container-search,
    .inner-container {
        padding: 16px !important;
        margin-left: 8px !important;
        margin-right: 8px !important;
        width: calc(100% - 16px) !important;
    }
    
    .header-title {
        font-size: 28px !important;
        word-break: break-word !important;
    }
    
    /* Fix text that might overflow */
    h1, h2, h3, h4, h5, h6, p, span, div {
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
    }
    
    /* Search container fixes */
    .glass-card,
    .search-container-enhanced,
    .container-search-enhanced {
        max-width: 100% !important;
        margin: 0 8px !important;
        padding: 16px !important;
    }
    
    /* Tailwind max-width overrides - Ensure full width on mobile */
    .max-w-4xl,
    .max-w-5xl,
    .max-w-6xl,
    .max-w-7xl {
        max-width: 100% !important;
        width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding-left: 8px !important;
        padding-right: 8px !important;
        box-sizing: border-box !important;
    }
    
    /* Main content area */
    main,
    .container-custom {
        padding-left: 8px !important;
        padding-right: 8px !important;
    }
    
    /* Section boxes */
    .section-box {
        padding: 16px !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    
    /* Page heading */
    .page-heading {
        font-size: 24px !important;
        line-height: 1.2 !important;
    }
    
    /* Alert boxes */
    .alert {
        padding: 12px !important;
        margin: 0 !important;
    }
    
    .alert p {
        font-size: 13px !important;
    }
    
    /* Search section */
    .search-section {
        padding-top: 12px !important;
        padding-bottom: 12px !important;
        padding-left: 16px !important;
        padding-right: 16px !important;
    }
    
    /* Search mode buttons */
    .search-mode-btn {
        flex: 1 !important;
        min-width: 0 !important;
        padding: 10px 12px !important;
        font-size: 13px !important;
    }
    
    /* Flex gaps */
    .gap-3 {
        gap: 8px !important;
    }
    
    /* Input fields */
    input[type="text"],
    input[type="search"],
    select,
    .form-input,
    .styled-input-enhanced {
        width: 100% !important;
        max-width: 100% !important;
        font-size: 16px !important; /* Prevent iOS zoom */
        padding: 12px !important;
        padding-left: 40px !important;
    }
    
    /* Button container - removed forced column, now handled by proper breakpoint in tailwind.css */
    /* .flex-col.sm\\:flex-row handled by @media (max-width: 639px) in shared CSS */
    
    /* Search button - width handled by breakpoint-specific rules */
    /* #mainSearchBtn width moved to 639px breakpoint */
}
/* ============================================================================
   ROOM HISTORY - VuArchives Unified Design System
   ============================================================================ */

/* Scrollbar for WebKit browsers (Chrome, Safari, Edge) */
::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

::-webkit-scrollbar-track {
    background: #1a1d23;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(145deg, var(--accent-purple), #7c3aed);
    border-radius: 10px;
    border: 2px solid #1a1d23;
    transition: background 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(145deg, var(--accent-purple), var(--accent-purple));
    box-shadow: 0 0 10px rgba(167, 139, 250, 0.5);
}

::-webkit-scrollbar-thumb:active {
    background: var(--accent-purple);
}

::-webkit-scrollbar-corner {
    background: #1a1d23;
}

/* Firefox scrollbar styling */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--accent-purple) #1a1d23;
}

/* Specific scrollbar for content areas */
.room-content-area::-webkit-scrollbar {
    width: 8px;
}

.room-content-area::-webkit-scrollbar-track {
    background: #12151a;
    border-radius: 8px;
}

.room-content-area::-webkit-scrollbar-thumb {
    background: var(--accent-purple);
    border-radius: 8px;
}

.room-content-area::-webkit-scrollbar-thumb:hover {
    background: var(--accent-purple);
}

/* Outfit grid scrollbar */
[id^="outfit-grid-"]::-webkit-scrollbar {
    width: 8px;
}

[id^="outfit-grid-"]::-webkit-scrollbar-track {
    background: #12151a;
}

[id^="outfit-grid-"]::-webkit-scrollbar-thumb {
    background: var(--accent-purple);
    border-radius: 8px;
}

.session-navigation-panel {
    background: #4a5c7a;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(139, 92, 246, 0.1);
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
}

@media (max-width: 768px) {
    .hidden-room-banner [style*="grid-template-columns: repeat(3, 1fr)"] {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 16px !important;
    }
}

@media (max-width: 480px) {
    .hidden-room-banner [style*="grid-template-columns: repeat(3, 1fr)"] {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
}

/* 2x2 Grid - Responsive */
@media (max-width: 600px) {
    .hidden-room-banner [style*="grid-template-columns: repeat(2, 1fr)"] {
        grid-template-columns: 1fr !important;
        gap: 24px !important;
    }
}

/* ============================================================================
   ANIMATIONS & KEYFRAMES
   ============================================================================ */

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes shimmer {
    0%, 100% {
        background-position: 0% 50%;
        filter: hue-rotate(0deg);
    }
    50% {
        background-position: 100% 50%;
        filter: hue-rotate(10deg);
    }
}

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

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        color: var(--accent-purple);
    }
    50% {
        transform: scale(1.05);
        color: #ffc107;
    }
    100% {
        color: #ff6b6b;
    }
}

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

@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 4px 12px rgba(76, 175, 80, 0.4);
    }
    50% {
        box-shadow: 0 4px 20px rgba(76, 175, 80, 0.7);
    }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes changeWords {
    0%, 20% { transform: translateY(0); }
    25%, 45% { transform: translateY(-42px); }
    50%, 70% { transform: translateY(-84px); }
    75%, 95% { transform: translateY(-42px); }
    100% { transform: translateY(0); }
}

/* ============================================================================
   MODERN ROOM CARD REDESIGN - MATCHING HOMEPAGE
   ============================================================================ */

/* Rooms grid outer wrapper — breaks out of container-custom, widens to screen */
.rooms-grid-outer {
    max-width: 2400px;
    margin: 0 auto;
    padding: 0 20px; /* Default desktop padding */
    box-sizing: border-box;
}

/* ≥1200px: Side-rail ads are visible (160px wide at 20px from edge = 180px). 
   Add 200px padding so content clears the rails with a 20px gap */
@media (min-width: 1200px) {
    .rooms-grid-outer {
        padding: 0 200px;
    }
}

/* At ≤768px: main already has ~12px padding from global CSS, reduce ours */
@media (max-width: 768px) {
    .rooms-grid-outer {
        padding: 0 4px;
    }
}

/* Room container — Responsive grid (max 3 columns)
   ──────────────────────────────────────────────────
   Real-world CSS viewport widths (2021-2025 data):
     320-430 px  — ALL phones (iPhone SE 320 → Galaxy S25 Ultra 412)
     601-820 px  — Tablets (iPad mini 768 → iPad Air 820)
     1024+   px  — Desktops / laptops
   
   Desktop: minmax(350px, 1fr) allows 2-col at ~724px+ grid space.
   Mobile:  768px media query forces single-column on all phones (max 430px)
            and portrait tablets. Uses min(100%, 350px) so the column
            shrinks gracefully if the container is narrower than 350px. */
.rooms-container {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 350px), 1fr)) !important;
    gap: 24px !important;
    padding: 20px 0 !important;
    align-items: start !important;
    max-width: 1440px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* Single room card — center it instead of stretching full width */
.rooms-container.single-room {
    grid-template-columns: minmax(min(100%, 350px), 520px) !important;
    justify-content: center !important;
}

/* Two room cards — center them instead of stretching across wide screens */
.rooms-container.two-rooms {
    grid-template-columns: repeat(2, minmax(min(100%, 350px), 520px)) !important;
    justify-content: center !important;
}

/* Phones & small tablets: force single column.
   Every phone viewport is ≤430px; tablets start at ~601px.
   768px catches ALL phones + portrait iPad mini (768px exactly). */
@media (max-width: 768px) {
    .rooms-container,
    .rooms-container.single-room,
    .rooms-container.two-rooms {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
        padding: 12px 0 !important;
    }
}

/* Modern room card - matching homepage gradient */
.room-group {
    background: linear-gradient(135deg, #1a1d23, #12151a) !important;
    border: 1px solid rgba(139, 92, 246, 0.3) !important;
    border-radius: 16px !important;
    overflow: hidden !important; /* Keep hidden for card edges, but allow tabs to scroll internally */
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5) !important;
    transition: all 0.3s ease !important;
    container-type: inline-size;
    display: flex !important;
    flex-direction: column !important;
    height: auto !important;
    padding: 0 !important; /* Explicitly no padding - content sections handle their own spacing */
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
}

/* Ensure room-group doesn't exceed container on any screen */
@media (max-width: 639px) {
    .room-group {
        max-width: 100% !important;
        width: 100% !important;
    }
    
    /* Search button full width when stacked (below sm breakpoint) */
    #mainSearchBtn,
    .btn-secondary {
        width: 100% !important;
    }
    
    /* Stack search container on mobile */
    .flex-col.sm\\:flex-row {
        flex-direction: column !important;
    }
}

/* Allow tabs container to overflow horizontally within room-group */
.room-group .room-content-tabs {
    overflow-x: auto !important;
    overflow-y: hidden !important;
}

/* Participants tab - NO scrollbar, natural height */
.tab-content[id^="participants-"] {
    padding: 0 !important;
    overflow-y: auto !important;
}

[id^="participants-"] > div {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)) !important;
    gap: 12px !important;
    padding: 30px !important;
    width: 100% !important;
}

[id^="participants-"] > div > div {
    width: 100% !important;
    max-width: none !important;
}

[id^="participants-"] > div[style*="grid"] {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)) !important;
    gap: 12px !important;
    padding: 30px !important;
    flex: 1 1 auto !important;
}

.tab-content[id^="participants-"]::-webkit-scrollbar {
    width: 8px;
}

.tab-content[id^="participants-"]::-webkit-scrollbar-track {
    background: #12151a;
    border-radius: 8px;
}

.tab-content[id^="participants-"]::-webkit-scrollbar-thumb {
    background: linear-gradient(145deg, var(--accent-purple), #7c3aed);
    border-radius: 8px;
}

.tab-content[id^="participants-"]::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(145deg, var(--accent-purple), var(--accent-purple));
    box-shadow: 0 0 10px rgba(167, 139, 250, 0.5);
}

/* Outfits tab - FIXED HEIGHT with scrollbar */
.tab-content[id^="outfits-"] {
    padding: 0;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    max-height: 100% !important;
    min-height: 0 !important;
}

/* Outfit grid - scrollable container */
[id^="outfit-grid-"] {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    padding: 20px;
    min-height: min-content !important;
}

/* Furniture tab - FIXED HEIGHT with scrollbar */
.tab-content[id^="furniture-"] {
    padding: 24px;
}

.tab-content::-webkit-scrollbar {
    width: 8px;
}

.tab-content::-webkit-scrollbar-thumb {
    background: linear-gradient(145deg, var(--accent-purple), #7c3aed);
    border-radius: 8px;
}

.tab-content::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(145deg, var(--accent-purple), var(--accent-purple));
    box-shadow: 0 0 10px rgba(167, 139, 250, 0.5);
}

.tab-content::-webkit-scrollbar-track {
    background: #12151a;
    border-radius: 8px;
}

/* Furnitrack container - scrollable */
[id^="furnitrack-"] {
    max-height: 100% !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
}

/* Override room-content-area - dynamic for participants, fixed for others */
.room-content-area {
    background: #0d1117;
    padding: 0 !important;
    min-height: auto !important;
    max-height: none !important;
    overflow: visible !important;
}

/* When outfits tab is active - fixed height */
.room-content-area:has(.tab-content[id^="outfits-"].active) {
    min-height: 500px !important;
    max-height: 500px !important;
    overflow: hidden !important;
}

/* When furniture tab is active - fixed height */
.room-content-area:has(.tab-content[id^="furniture-"].active) {
    min-height: 500px !important;
    max-height: 500px !important;
    overflow: hidden !important;
}

/* When participants tab is active - natural height */
.room-content-area:has(.tab-content[id^="participants-"].active) {
    min-height: auto !important;
    max-height: 600px !important;
    overflow: hidden !important;
}

.room-group:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 48px rgba(139, 92, 246, 0.4);
    border-color: rgba(139, 92, 246, 0.6);
}

/* Room header with gradient overlay - compact responsive */
.room-header {
    position: relative;
    height: 180px;
    min-height: 180px;
    max-height: 180px;
    overflow: hidden;
    background: linear-gradient(135deg, #1a1d23, #12151a);
    flex-shrink: 0;
}

/* Tablet: Slightly taller */
@media (min-width: 768px) and (max-width: 1199px) {
    .room-header {
        height: 200px;
        min-height: 200px;
        max-height: 200px;
    }
}

/* Desktop: Full height */
@media (min-width: 1200px) {
    .room-header {
        height: 220px;
        min-height: 220px;
        max-height: 220px;
    }
}

/* Mobile: Compact */
@media (max-width: 767px) {
    .room-header {
        height: 160px;
        min-height: 160px;
        max-height: 160px;
    }
}

.room-header img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.room-group:hover .room-header img {
    transform: scale(1.05);
}

/* Enhanced gradient overlay */
.room-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 160px;
    background: linear-gradient(to top,
        rgba(26, 29, 35, 0.98) 0%,
        rgba(26, 29, 35, 0.7) 50%,
        transparent 100%);
    pointer-events: none; /* Allow clicks to pass through to buttons */
    z-index: 1;
}

/* Clickable room title - compact */
.room-title-clickable {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 12px 16px;
    z-index: 2;
    cursor: pointer;
    transition: all 0.3s;
}

@media (min-width: 768px) {
    .room-title-clickable {
        padding: 16px 20px;
    }
}

@media (max-width: 767px) {
    .room-title-clickable {
        padding: 10px 12px;
    }
}

.room-title-clickable:hover {
    background: rgba(139, 92, 246, 0.1);
}

.room-title-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.room-title-main h2 {
    color: white;
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 6px 0;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.8);
    line-height: 1.3;
    letter-spacing: -0.3px;
}

@media (min-width: 768px) {
    .room-title-main h2 {
        font-size: 20px;
        margin-bottom: 8px;
    }
}

@media (min-width: 1200px) {
    .room-title-main h2 {
        font-size: 22px;
    }
}

@media (max-width: 767px) {
    .room-title-main h2 {
        font-size: 16px;
        margin-bottom: 4px;
    }
}

.room-expand-icon {
    color: var(--accent-purple);
    font-size: 18px;
    transition: transform 0.3s;
    flex-shrink: 0;
    filter: drop-shadow(0 0 8px rgba(167, 139, 250, 0.6));
}

.room-title-clickable.expanded .room-expand-icon {
    transform: rotate(180deg);
}

/* Room badges - homepage style */
.room-badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* Room badges row - contains both room type badges and session badges */
.room-badges-row {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
    align-items: center;
}

/* Session badges inline in header */
.session-badges-inline {
    display: inline-flex;
    gap: 5px;
    flex-wrap: wrap;
    align-items: center;
    vertical-align: middle;
    line-height: 1;
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: 1px;
    backdrop-filter: blur(8px);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.badge-ap {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.9), rgba(220, 38, 38, 0.9));
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.badge-vip {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.9), rgba(245, 158, 11, 0.9));
    color: #000;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.badge-no-guests {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.9), rgba(37, 99, 235, 0.9));
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.badge-age-verified {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.9), rgba(139, 92, 246, 0.9));
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.badge-ap-plus {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.9), rgba(185, 28, 28, 0.9));
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.badge-friends-only {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.9), rgba(22, 163, 74, 0.9));
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Room Type Badges */
.badge-chat-room {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.9), rgba(37, 99, 235, 0.9));
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.badge-live-room {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.9), rgba(109, 40, 217, 0.9));
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    animation: live-room-pulse 2s ease-in-out infinite;
}

@keyframes live-room-pulse {
    0%, 100% {
        box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
    }
    50% {
        box-shadow: 0 4px 20px rgba(139, 92, 246, 0.6);
    }
}

/* Collapsible room info panel - enhanced */
.room-info-panel {
    display: none;
    background: linear-gradient(135deg, #1a1d23, #12151a);
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    border-top: 1px solid rgba(139, 92, 246, 0.2);
    flex-shrink: 0;
}

.room-info-panel.active {
    display: block;
    max-height: 500px;
    padding: 16px;
    border-top: 1px solid rgba(139, 92, 246, 0.3);
}

@media (min-width: 768px) {
    .room-info-panel.active {
        padding: 20px;
    }
}

@media (max-width: 767px) {
    .room-info-panel.active {
        padding: 12px;
    }
}

.room-info-description {
    color: #d1d5db;
    line-height: 1.6;
    margin-bottom: 16px;
    font-size: 13px;
    padding: 12px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    border-left: 3px solid var(--accent-purple);
}

@media (min-width: 768px) {
    .room-info-description {
        font-size: 14px;
        padding: 14px;
        margin-bottom: 20px;
    }
}

@media (max-width: 767px) {
    .room-info-description {
        font-size: 12px;
        padding: 10px;
        margin-bottom: 12px;
        line-height: 1.5;
    }
}

.room-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
}

@media (min-width: 768px) {
    .room-info-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: 12px;
    }
}

@media (min-width: 1200px) {
    .room-info-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 16px;
    }
}

@media (max-width: 767px) {
    .room-info-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
}

.room-info-item {
    background: rgba(18, 21, 26, 0.6);
    padding: 10px 12px;
    border-radius: 6px;
    border-left: 3px solid var(--accent-purple);
    transition: all 0.3s;
}

@media (min-width: 768px) {
    .room-info-item {
        padding: 12px 14px;
    }
}

@media (min-width: 1200px) {
    .room-info-item {
        padding: 16px;
    }
}

@media (max-width: 767px) {
    .room-info-item {
        padding: 8px 10px;
    }
}

.room-info-item:hover {
    background: rgba(18, 21, 26, 0.8);
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(167, 139, 250, 0.2);
}

.room-info-label {
    color: var(--accent-purple);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}

@media (min-width: 768px) {
    .room-info-label {
        font-size: 11px;
        margin-bottom: 8px;
        gap: 8px;
    }
}

.room-info-value {
    color: white;
    font-size: 13px;
    font-weight: 600;
    font-family: monospace;
}

@media (min-width: 768px) {
    .room-info-value {
        font-size: 14px;
    }
}

@media (min-width: 1200px) {
    .room-info-value {
        font-size: 15px;
    }
}

@media (max-width: 767px) {
    .room-info-value {
        font-size: 12px;
    }
}

/* Compact session summary - homepage colors */

/* Force session summary icons to consistent size */
[id^="session-summary-"] i.fa-solid,
[id^="session-summary-"] i.fas {
    width: 14px !important;
    height: 12px !important;
    max-width: 14px !important;
    max-height: 12px !important;
    min-width: 14px !important;
    min-height: 12px !important;
    font-size: 12px !important;
    line-height: 12px !important;
    display: inline-block !important;
    vertical-align: middle !important;
    flex-shrink: 0 !important;
    overflow: hidden !important;
}

.session-summary-compact {
    background: linear-gradient(135deg, #1a1d23, #12151a);
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(139, 92, 246, 0.2);
    flex-wrap: wrap;
    gap: 16px;
    flex-shrink: 0;
}

.session-summary-compact,
.snapshot-navigation {
    background: linear-gradient(135deg, #1a1d23, #12151a);
    padding: 16px 24px;
    border-bottom: 1px solid rgba(139, 92, 246, 0.2);
    flex-shrink: 0;
}

.session-quick-stats {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.session-stat {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #d1d5db;
    font-size: 14px;
}

.session-stat i {
    color: var(--accent-purple);
    font-size: 16px;
    filter: drop-shadow(0 0 4px rgba(167, 139, 250, 0.6));
}

.session-stat strong {
    color: white;
    font-family: monospace;
}

.session-badge-active {
    background: linear-gradient(135deg, var(--success), #059669);
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.4);
    animation: pulseGlow 2s ease-in-out infinite;
}

.session-selector-compact {
    display: flex;
    align-items: center;
    gap: 10px;
}

.session-select-dropdown {
    background: #1a1d23;
    color: white;
    border: 1px solid rgba(139, 92, 246, 0.4);
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 13px;
    cursor: pointer;
    outline: none;
    transition: all 0.3s;
    font-family: monospace;
}

.session-select-dropdown:hover {
    border-color: var(--accent-purple);
    box-shadow: 0 0 12px rgba(167, 139, 250, 0.3);
}

/* Modern snapshot pagination - enhanced */
.snapshot-navigation {
    background: linear-gradient(135deg, #1a1d23, #12151a);
    padding: 20px 24px;
    border-bottom: 1px solid rgba(139, 92, 246, 0.2);
    flex-shrink: 0;
}

.snapshot-header {
    text-align: center;
    margin-bottom: 16px;
}

.snapshot-counter {
    color: white;
    font-size: 18px;
    font-weight: 700;
    font-family: monospace;
}

.snapshot-session-badge {
    display: inline-block;
    background: rgba(167, 139, 250, 0.2);
    color: var(--accent-purple);
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 11px;
    margin-left: 10px;
    border: 1px solid rgba(167, 139, 250, 0.3);
    font-weight: 600;
}

.snapshot-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.snapshot-btn {
    background: linear-gradient(145deg, #1a1d23, #12151a);
    color: white;
    border: 1px solid rgba(139, 92, 246, 0.3);
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    min-width: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.snapshot-btn:hover:not(:disabled) {
    background: linear-gradient(145deg, var(--accent-purple), #7c3aed);
    border-color: var(--accent-purple);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(167, 139, 250, 0.4);
}

.snapshot-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.snapshot-btn.active {
    background: linear-gradient(135deg, var(--success), #059669);
    border-color: var(--success);
    box-shadow: 0 4px 16px rgba(76, 175, 80, 0.4);
}

/* Session timeline navigation - enhanced */
.session-timeline {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(139, 92, 246, 0.2);
}

.session-nav-btn {
    background: linear-gradient(135deg, var(--accent-purple), #7c3aed);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.4);
}

.session-nav-btn:hover {
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-purple));
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 24px rgba(167, 139, 250, 0.6);
}

.session-indicator {
    background: rgba(167, 139, 250, 0.15);
    border: 1px solid rgba(167, 139, 250, 0.4);
    padding: 10px 18px;
    border-radius: 8px;
    color: var(--accent-purple);
    font-size: 13px;
    font-weight: 700;
    font-family: monospace;
}

/* Room content tabs - homepage style - Override Tailwind */
.room-content-tabs {
    background: linear-gradient(135deg, #1a1d23, #12151a) !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 4px !important;
    border-bottom: 2px solid rgba(139, 92, 246, 0.2) !important;
    flex-shrink: 0 !important;
    padding: 10px 8px !important;
    overflow: hidden !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    flex-wrap: nowrap !important;
}

.room-content-tabs::-webkit-scrollbar {
    display: none;
}

/* Event pagination container - hide scrollbar */
.event-pagination-container {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 3px !important;
    flex-wrap: nowrap !important;
    padding: 0 !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    min-width: 0 !important;
}

.event-pagination-container::-webkit-scrollbar {
    display: none;
}

/* Ensure pagination buttons don't shrink */
.event-pagination-container .event-nav-btn,
.event-pagination-container .event-num-btn,
.event-pagination-container .event-mobile-indicator {
    flex-shrink: 0 !important;
    white-space: nowrap !important;
}

.event-number-buttons {
    display: flex !important;
    gap: 2px !important;
    align-items: center !important;
    flex-shrink: 0 !important;
    min-width: 0 !important;
}

.event-num-btn:hover:not(.active) {
    background: rgba(100, 108, 255, 0.18) !important;
    color: #c4b5fd !important;
    border-color: rgba(100, 108, 255, 0.4) !important;
}

.event-nav-btn:hover:not(:disabled) {
    background: rgba(100, 108, 255, 0.18) !important;
    color: #c4b5fd !important;
    border-color: rgba(100, 108, 255, 0.4) !important;
}

/* ============================================================================
   ROOM TABS - RESPONSIVE (Single source of truth)
   ============================================================================ */
.room-tab {
    background: transparent !important;
    color: var(--text-secondary) !important;
    border: none !important;
    padding: 10px 12px !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    transition: all 0.3s !important;
    position: relative !important;
    text-transform: uppercase !important;
    letter-spacing: 0.3px !important;
    white-space: nowrap !important;
    flex: 1 1 0 !important;
    min-width: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0 !important;
    max-width: none !important;
}

/* Default: Icons only, no labels (for narrow cards) */
.room-tab .tab-label {
    display: none !important;
}

.room-tab i {
    font-size: 16px !important;
    flex-shrink: 0 !important;
}

/* Container queries — tabs adapt to the CARD width, not the screen width */
/* 420px+ card: Show labels */
@container (min-width: 420px) {
    .room-tab {
        gap: 6px !important;
    }
    
    .room-tab .tab-label {
        display: inline !important;
        font-size: 10px !important;
    }
    
    .room-tab i {
        font-size: 14px !important;
    }
}

/* 520px+ card: Larger tabs */
@container (min-width: 520px) {
    .room-tab {
        padding: 12px 16px !important;
        gap: 8px !important;
    }
    
    .room-tab .tab-label {
        font-size: 11px !important;
    }
}

/* 650px+ card: Full size tabs */
@container (min-width: 650px) {
    .room-tab {
        padding: 14px 20px !important;
    }
    
    .room-tab .tab-label {
        font-size: 12px !important;
    }
    
    .room-tab i {
        font-size: 15px !important;
    }
}

.room-tab:hover {
    background: rgba(167, 139, 250, 0.1);
    color: #fff;
}

.room-tab.active {
    background: rgba(167, 139, 250, 0.15);
    color: var(--accent-purple);
}

.room-tab.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-purple), transparent);
    box-shadow: 0 0 10px rgba(167, 139, 250, 0.6);
}

/* Room content area - enhanced */
.room-content-area {
    background: #0d1117 !important;
    padding: 0 !important;
    flex: 1 1 auto !important;
    min-height: 0 !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.room-content-area:has([id^="outfit-grid-"]:not(:empty)) {
    padding: 0 !important;
    overflow: hidden !important;
    max-height: 500px !important;
    display: flex !important;
    flex-direction: column !important;
}

/* Ensure tab-content fills available height when outfits tab is active */
.room-content-area:has(.tab-content[id^="outfits-"].active) .tab-content[id^="outfits-"] {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    height: 100% !important;
}

/* ============================================================================
   MODERN SEARCH CONTAINER - DARK THEME TO MATCH SITE
   ============================================================================ */

/* Glass card - darker, more subtle */
.glass-card {
    background: rgba(26, 29, 35, 0.85) !important;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(139, 92, 246, 0.3) !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6) !important;
}

/* Modern button - match your room cards */
.modern-btn {
    background: linear-gradient(135deg, var(--accent-purple), #7c3aed) !important;
    color: white;
    border: none;
    border-radius: 12px;
    padding: 16px 32px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(139, 92, 246, 0.4);
    position: relative;
    overflow: hidden;
}

.modern-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.modern-btn:hover::before {
    left: 100%;
}

.modern-btn:hover {
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-purple)) !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(167, 139, 250, 0.5);
}

/* Modern button secondary - darker */
.modern-btn-secondary {
    background: linear-gradient(135deg, #1a1d23, #12151a) !important;
    border: 1px solid rgba(139, 92, 246, 0.3);
    color: #d1d5db;
}

.modern-btn-secondary:hover {
    background: linear-gradient(135deg, var(--accent-purple), #7c3aed) !important;
    color: white;
    border-color: rgba(167, 139, 250, 0.5);
}

/* Search Mode Toggle Buttons - Consistent styling */
.search-mode-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px 24px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #1a1d23, #12151a);
    border: 1px solid rgba(100, 108, 255, 0.2);
    color: #9ca3af;
}

.search-mode-btn:hover {
    background: linear-gradient(135deg, #1f2229, #1a1d23);
    border-color: rgba(100, 108, 255, 0.4);
    color: #ffffff;
}

.search-mode-btn.active {
    background: linear-gradient(135deg, #646cff, #8b5cf6);
    border-color: rgba(100, 108, 255, 0.5);
    color: #ffffff;
    box-shadow: 0 4px 20px rgba(100, 108, 255, 0.3);
}

.search-mode-btn.active:hover {
    background: linear-gradient(135deg, #5558e3, #7c4dff);
    box-shadow: 0 6px 24px rgba(100, 108, 255, 0.4);
}

/* Modern input - darker */
.modern-input {
    background: linear-gradient(135deg, #12151a, #1a1d23) !important;
    color: white;
    border: 1px solid rgba(139, 92, 246, 0.3) !important;
    border-radius: 12px;
    padding: 18px 24px;
    font-size: 16px;
    outline: none;
    transition: all 0.3s ease;
    box-sizing: border-box;
    width: 100%;
}

.modern-input:hover {
    border-color: var(--accent-purple) !important;
    box-shadow: 0 0 16px rgba(139, 92, 246, 0.3);
}

.modern-input:focus {
    border-color: var(--accent-purple) !important;
    box-shadow: 0 0 20px rgba(167, 139, 250, 0.4);
}

/* Notice box - darker */
.notice-box {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(26, 29, 35, 0.15)) !important;
    border: 1px solid rgba(139, 92, 246, 0.3) !important;
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 20px;
    line-height: 1.5;
    color: #cfd8e3;
}

/* Info icon color */
.fas.fa-info-circle {
    color: var(--accent-purple) !important;
    filter: drop-shadow(0 0 8px rgba(167, 139, 250, 0.6)) !important;
}

/* Search mode buttons */
.search-mode-btn.active {
    background: linear-gradient(135deg, var(--accent-purple), #7c3aed) !important;
}

.search-mode-btn:not(.active) {
    background: linear-gradient(135deg, #1a1d23, #12151a) !important;
}

/* Date selector container */
.date-selector-container {
    background: rgba(26, 29, 35, 0.85) !important;
    border: 1px solid rgba(139, 92, 246, 0.3) !important;
    display: none;
    text-align: center;
    padding: 24px;
    border-radius: 16px;
    margin-bottom: 30px;
    animation: fadeInUp 0.6s ease;
}

/* Refresh controls container (inline in header row) */
#refreshControlsContainer {
    background: none !important;
    border: none !important;
}

/* User Stats button */
#userStatsButton {
    background: linear-gradient(135deg, var(--accent-purple), #7c3aed) !important;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.4);
    border: none;
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 700;
    color: white;
    transition: all 0.3s;
}

#userStatsButton:hover {
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-purple)) !important;
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 24px rgba(167, 139, 250, 0.5);
}

/* ============================================================================
   ROOM DETAILS & INFO STYLES
   ============================================================================ */

.room-details {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 20px;
    background-color: #1a1d23;
    border: var(--accent-purple) solid 1px;
    justify-self: center;
    min-height: 90%;
}

.room-info-H {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 19px;
    padding: 5px;
    border: 1px solid var(--accent-purple);
    border-radius: 10px;
    background-color: #1a1d23;
    box-shadow: 0 0 30px rgba(139, 92, 246, 0.3);
}

.room-info {
    display: list-item;
    line-height: 19px;
    padding: 20px;
    border: 1px solid black;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    background-color: #eef;
    max-width: 1000px;
}

.room-image {
    width: 100%;
    max-width: 300px;
    aspect-ratio: 4/3;
    overflow: hidden;
    align-self: center;
    box-shadow: 0 0 30px rgba(139, 92, 246, 0.3);
}

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

.room-text {
    flex: 1 1 auto;
    min-width: 0;
    overflow-wrap: break-word;
    word-break: break-word;
    padding: 1em;
}

.room-title {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-primary);
    justify-content: center;
}

.room-title h2 {
    margin: 0;
}

.room-title h3 {
    color: var(--text-primary);
}

.room-description {
    margin-top: 10px;
    color: var(--text-primary);
}

.room-info-H table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
    border: solid var(--accent-purple) 5px;
    padding: 10px;
    border-radius: 20px;
}

.room-info-H th,
.room-info-H td {
    text-align: left;
    padding: 8px;
    border-bottom: 1px solid var(--accent-purple);
    color: var(--text-primary);
    background-color: #1a1d23;
}

.room-info-H th {
    width: 150px;
    background-color: #1a1d23;
    color: var(--text-primary);
    border-right: 1px var(--accent-purple) solid;
}

/* ============================================================================
   USERS LIST & PARTICIPANT STYLES
   ============================================================================ */

.users-container {
    padding: 12px;
    background-color: rgba(26, 29, 35, 0.6);
    width: 100%;
    box-sizing: border-box;
}

.users-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
    align-content: start;
}

.user-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #12151a;
    border-radius: 8px;
    border: 1px solid rgba(139, 92, 246, 0.2);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2);
    color: white;
    padding: 10px 12px;
    width: 100%;
    box-sizing: border-box;
}

.username {
    font-weight: 600;
    font-size: 0.95em;
    text-align: center;
    margin-bottom: 12px;
    width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.buttons-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    width: 100%;
}

.action-button {
    padding: 6px 8px;
    border-radius: 5px;
    border: none;
    background-color: var(--accent-purple);
    color: white;
    font-size: 0.85em;
    cursor: pointer;
    transition: background-color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 90%;
    max-width: 180px;
}

.action-button:hover {
    background-color: var(--accent-purple);
}

.users-list {
    background-color: var(--accent-purple);
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    max-height: fit-content;
    overflow-y: hidden;
    color: black;
    position: relative;
    margin-top: 10px;
}

.users-list h3 {
    margin-bottom: 10px;
    font-size: 20px;
    color: var(--text-primary);
}

.users-list ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.users-list li {
    margin-bottom: 10px;
    font-size: 18px;
    white-space: nowrap;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    padding: 5px;
}

.users-list button {
    background-color: var(--accent-purple);
    color: white;
    border: none;
    padding: 8px 16px;
    font-size: 14px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
    margin: 5px 0;
}

.users-list button:hover {
    background-color: #218838;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.users-list .outfit-image {
    max-width: 100%;
    height: auto;
    margin-top: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
}

#participants .users-grid {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)) !important;
    gap: 10px !important;
}

#participants .users-grid > div {
    padding: 10px !important;
    font-size: 14px !important;
    overflow: hidden;
    text-overflow: ellipsis;
    word-break: break-word;
}

/* ============================================================================
   PAGINATION STYLES
   ============================================================================ */

.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 20px;
    gap: 10px;
    text-align-last: center;
    color: black;
}

.pagination button {
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    background-color: var(--success);
    color: white;
    border: none;
    border-radius: 4px;
}

.pagination button:hover {
    background-color: #059669;
}

.pagination span {
    font-size: 16px;
}

.group-pagination {
    order: 2;
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 1em;
    overflow: hidden;
    background-color: #12151a;
    position: relative;
    min-height: 80px;
    align-items: center;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.group-pagination .center-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.group-pagination .version-info {
    margin-bottom: 8px;
    font-size: 16px;
    color: #fff;
}

.pagination-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 10px;
    width: 100%;
}

.pagination-buttons button {
    margin: 5px;
    padding: 8px 12px;
    border: 1px solid rgba(139, 92, 246, 0.3);
    background-color: #1a1d23;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
    min-width: 35px;
    text-align: center;
}

.group-pagination button {
    padding: 8px 16px;
    font-size: 14px;
    background-color: var(--accent-purple);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.group-pagination button:hover {
    background-color: #059669;
}

/* ============================================================================
   SEARCH & INPUT ELEMENTS
   ============================================================================ */

.search-container-1 {
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    z-index: 0;
}

.search-container-1 label {
    margin-right: 10px;
    font-weight: bold;
}

.search-container-1 input[type="text"] {
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 4px;
    flex: 1;
}

.search-container-1 button {
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    background-color: var(--success);
    color: white;
    border: none;
    border-radius: 4px;
    margin-left: 10px;
}

.search-container-1 button:hover {
    background-color: #059669;
}

.styled-dropdown {
    background-color: #f9f9f9;
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 8px;
    font-size: 14px;
    color: black;
    width: 180px;
    outline: none;
    transition: border-color 0.3s ease;
}

.styled-dropdown:focus {
    border-color: #007bff;
}

.styled-input {
    width: calc(100% - 16px);
    padding: 8px;
    margin: 8px 0;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 14px;
    color: black;
    outline: none;
    transition: border-color 0.3s ease;
}

.styled-input:focus {
    border-color: #007bff;
}

.styled-button {
    background-color: var(--success);
    color: white;
    border: none;
    border-radius: 5px;
    padding: 8px 16px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.styled-button:hover {
    background-color: var(--success);
}

/* ============================================================================
   MODAL & LIGHTBOX STYLES
   ============================================================================ */

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.7);
}

.modal-content {
    background-color: #1a1d23;
    margin: 5% auto;
    padding: 20px;
    border: 1px solid var(--accent-purple);
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    max-width: 800px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative !important;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(139, 92, 246, 0.3);
    margin-bottom: 20px;
}

.modal-header h2 {
    color: #fff;
    margin: 0;
}

.close-modal {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}


.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
}

#productModal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
}

#productModal .modal-content {
    background-color: #1a1d23;
    margin: 3% auto;
    padding: 20px;
    border-radius: 10px;
    width: 94%;
    max-width: 1400px;
    color: #fff;
    position: relative;
}

#productModal .close {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    color: #fff;
    cursor: pointer;
}

#outfitLightbox {
    display: none;
    position: fixed;
    z-index: 100000;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.8);
    justify-content: center;
    align-items: center;
}

#outfitLightbox img {
    max-width: 90%;
    max-height: 90%;
    border: 4px solid #fff;
    border-radius: 8px;
}

#outfitLightbox:target {
    display: flex;
}

#timelineModal.show {
    animation: modalFadeIn 0.3s ease;
}

/* ============================================================================
   STATS & CHARTS STYLES
   ============================================================================ */

.stats-tabs {
    display: flex;
    margin-bottom: 15px;
    overflow-x: auto;
    padding-bottom: 5px;
}

.stats-tab {
    padding: 8px 12px;
    background: #1a1d23;
    color: #fff;
    border: 1px solid var(--accent-purple);
    cursor: pointer;
    margin-right: 5px;
    border-radius: 4px;
    font-size: 13px;
}

.stats-tab.active {
    background: var(--accent-purple);
}

.stats-period-selector {
    display: flex;
    flex-wrap: wrap;
    margin: 12px 0;
    align-items: center;
    justify-content: center;
}

.period-btn {
    padding: 6px 10px;
    background: #1a1d23;
    color: #fff;
    border: 1px solid var(--accent-purple);
    cursor: pointer;
    margin: 0 4px 8px;
    border-radius: 4px;
    font-size: 12px;
}

.period-btn.active {
    background: var(--accent-purple);
}

.period-date-display {
    width: 100%;
    text-align: center;
    color: #fff;
    font-size: 14px;
    margin-top: 5px;
}

.stats-content {
    display: none;
    padding: 12px;
    background: #12151a;
    border-radius: 5px;
}

.stats-content.active {
    display: block;
}

.chart-container {
    background: rgba(255, 255, 255, 0.05);
    padding: 12px;
    border-radius: 5px;
    position: relative;
    height: 300px;
    z-index: 1;
}

.vuarchives-chartjs {
    position: relative;
    z-index: 999 !important;
}

/* ============================================================================
   OUTFIT CARD — Redesigned v2
   ============================================================================ */

.outfit-card {
    background: linear-gradient(165deg, rgba(30, 33, 44, 0.95), rgba(18, 20, 28, 0.98));
    border: 1px solid rgba(100, 108, 255, 0.15);
    border-radius: 14px;
    overflow: hidden;
    transition: transform 0.25s cubic-bezier(.4,0,.2,1), box-shadow 0.25s cubic-bezier(.4,0,.2,1), border-color 0.25s ease;
    position: relative;
}

.outfit-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(100, 108, 255, 0.15), 0 4px 12px rgba(0,0,0,0.4);
    border-color: rgba(100, 108, 255, 0.4);
}

/* ── Card Header ── */
.outfit-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: linear-gradient(135deg, rgba(100, 108, 255, 0.12), rgba(100, 108, 255, 0.04));
    border-bottom: 1px solid rgba(100, 108, 255, 0.1);
}


.outfit-card-name {
    flex: 1;
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: 0.01em;
}

.outfit-card-time {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.45);
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* ── Image Area ── */
.outfit-card-image-area {
    position: relative;
    width: 100%;
    background: radial-gradient(ellipse at center bottom, rgba(100, 108, 255, 0.06) 0%, #111318 70%);
    display: flex;
    /* align-items: center; */
    justify-content: center;
    overflow: hidden;
}

.outfit-card-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.outfit-card:hover .outfit-card-img {
    transform: scale(1.03);
}

.outfit-card-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px;
    text-align: center;
    width: 100%;
    height: 100%;
}

.outfit-card-upgrade-btn {
    display: inline-block;
    margin-top: 12px;
    padding: 7px 18px;
    background: linear-gradient(135deg, #fbbf24, #d97706);
    color: #000;
    text-decoration: none;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    transition: opacity 0.2s;
}

.outfit-card-upgrade-btn:hover {
    opacity: 0.85;
}

/* ── Outfit Navigation (Prev / Counter / Next) ── */
/* ── Outfit card nav — prev/next arrows + counter badge ──
   Uses high-specificity selectors + !important to override
   the Tailwind reset (transparent bg, 0 padding on buttons). */
.outfit-card .outfit-card-nav {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    padding: 10px 16px !important;
    border-top: 1px solid rgba(100, 108, 255, 0.1);
    background: rgba(100, 108, 255, 0.04) !important;
    position: static !important;
}

.outfit-card .outfit-card-nav button.outfit-nav-btn {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
    max-width: 34px !important;
    flex: 0 0 34px !important;
    background: rgba(100, 108, 255, 0.12) !important;
    border: 1px solid rgba(167, 139, 250, 0.25) !important;
    border-radius: 8px !important;
    color: #a78bfa !important;
    cursor: pointer !important;
    font-size: 14px !important;
    line-height: 1 !important;
    transition: all 0.15s ease !important;
    padding: 0 !important;
    margin: 0 !important;
    user-select: none;
    position: static !important;
    top: auto !important;
    right: auto !important;
    left: auto !important;
    transform: none !important;
    z-index: auto !important;
}

.outfit-card .outfit-card-nav button.outfit-nav-btn i,
.outfit-card .outfit-card-nav button.outfit-nav-btn i.fa-solid {
    display: inline-block !important;
    width: auto !important;
    height: auto !important;
    flex: 0 0 auto !important;
    font-size: 14px !important;
    line-height: 1 !important;
    vertical-align: middle !important;
}

.outfit-card .outfit-card-nav button.outfit-nav-btn:hover {
    background: linear-gradient(135deg, rgba(100, 108, 255, 0.3), rgba(167, 139, 250, 0.3)) !important;
    border-color: rgba(100, 108, 255, 0.5) !important;
    color: #fff !important;
}

.outfit-card .outfit-card-nav .outfit-nav-info {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.outfit-card .outfit-card-nav .outfit-counter {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: linear-gradient(135deg, #646cff, #7c3aed) !important;
    color: white !important;
    font-weight: 700 !important;
    font-size: 12px !important;
    min-width: 28px !important;
    height: 26px !important;
    padding: 0 8px !important;
    border-radius: 6px !important;
    box-shadow: 0 2px 6px rgba(100, 108, 255, 0.3);
    font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace;
    letter-spacing: 0.05em;
}

/* ── Action Buttons — icon-only with tooltip titles ── */
.outfit-card-actions {
    display: flex;
    gap: 8px;
    padding: 10px 14px;
    border-top: 1px solid rgba(100, 108, 255, 0.08);
    background: rgba(0, 0, 0, 0.15);
    justify-content: center;
}

.outfit-card-actions .outfit-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 16px;
    border: none;
    border-radius: 10px;
    color: #fff;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: filter 0.2s, transform 0.15s;
    line-height: 1;
    height: 40px;
    box-sizing: border-box;
}

/* Hide text labels — buttons use icon + title tooltip */
.outfit-card-actions .outfit-action-btn span {
    display: none;
}

.outfit-card-actions .outfit-action-btn i {
    font-size: 16px;
}

.outfit-card-actions .outfit-action-btn:hover {
    filter: brightness(1.3);
    transform: translateY(-2px);
}

.outfit-btn-products {
    background: linear-gradient(135deg, #646cff, #4f46e5);
}

.outfit-btn-tryon {
    background: linear-gradient(135deg, #10b981, #059669);
}

.outfit-btn-3d {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
}

/* Show "3D" text on the 3D button — override the global span hide */
.outfit-card-actions .outfit-btn-3d span {
    display: inline !important;
    font-weight: 800;
    letter-spacing: 0.5px;
}

/* ── Unavailable card (live room non-presenter) — yellow accent ── */
.outfit-card-unavailable {
    border-color: rgba(251, 191, 36, 0.25);
}

.outfit-card-unavailable .outfit-card-header {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.12), rgba(251, 191, 36, 0.04));
    border-bottom-color: rgba(251, 191, 36, 0.15);
}


.outfit-card-unavailable .outfit-card-name {
    color: #fbbf24;
}

.tab-container {
    margin-top: 15px;
}

.tab-buttons {
    display: flex;
    border-bottom: 2px solid #444;
}

.tab-buttons button {
    flex: 1;
    padding: 8px;
    background: #1a1d23;
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 14px;
}

.tab-buttons button.active {
    background: var(--accent-purple);
    border-bottom: 2px solid var(--success);
}

.tab-content {
    display: none;
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
}

.tab-content.active {
    display: block;
}

.outfit-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.outfit-item {
    width: 90px;
    text-align: center;
    font-size: 11px;
    color: #fff;
}

.outfit-item img {
    width: 100%;
    border-radius: 4px;
    border: 1px solid #333;
    height: auto;
    object-fit: contain;
}

.product-info-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.product-info {
    flex: 1 1 200px;
    max-width: 250px;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    border: 5px solid var(--accent-purple);
    box-shadow: 0 0 30px rgba(139, 92, 246, 0.3);
}

.product-info img {
    max-width: 100px;
    height: auto;
    margin-top: 10px;
}

.product-info h3 {
    margin: 0 0 10px;
    text-align: center;
    font-size: 14px;
    line-height: 1.2;
}

.product-info p {
    margin: 5px 0;
    text-align: center;
    word-wrap: break-word;
    max-height: 60px;
    overflow-y: auto;
    overflow-x: hidden;
}

/* ============================================================================
   LOADING STATES & OVERLAYS
   ============================================================================ */

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(17, 24, 39, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(167, 139, 250, 0.3);
    border-radius: 50%;
    border-top-color: var(--accent-purple);
    animation: spin 1s ease infinite;
}

#refreshControlsContainer.loading {
    opacity: 0.7;
    pointer-events: none;
}

/* ============================================================================
   DROPDOWN & TOGGLE STYLES
   ============================================================================ */

.dropdown-help {
    margin-top: 20px;
    width: 100%;
}

.dropdown-btn {
    background-color: var(--accent-purple);
    color: white;
    padding: 15px;
    font-size: 18px;
    border: none;
    cursor: pointer;
    width: 100%;
    text-align: left;
    outline: none;
    font-weight: bold;
    border-radius: 5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: none;
}

.dropdown-btn:hover {
    background-color: var(--accent-purple);
}

.dropdown-btn i {
    margin-left: 10px;
    transition: transform 0.3s ease-out;
}

.dropdown-btn i.fa-chevron-up {
    transform: rotate(180deg);
}

.dropdown-content {
    background-color: #f8f9fa;
    border: 1px solid #0056b3;
    border-top: none;
    font-size: 16px;
    line-height: 1.8;
    color: #333;
    border-radius: 0 0 5px 5px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
    padding: 0;
}

.dropdown-content.show {
    max-height: 1000px;
    padding: 20px;
}

.dropdown-content p {
    margin: 10px 0;
}

.dropdown-content strong {
    display: block;
    margin: 15px 0 5px;
    font-size: 17px;
    color: #0056b3;
}

.dropdown-content h3 {
    display: block;
    margin: 15px 0 5px;
    font-size: 25px;
    color: #0056b3;
    text-align: center;
}

.switch {
    position: relative;
    display: inline-block;
    width: 52px;
    height: 26px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.switch .slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #1a1d23;
    transition: .4s;
    border-radius: 26px;
}

.switch .slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

.switch input:checked + .slider {
    background-color: var(--accent-purple);
}

.switch input:checked + .slider:before {
    transform: translateX(26px);
}

/* ============================================================================
   PAGE HEADER & ANIMATIONS
   ============================================================================ */

.page-header-animation {
    position: relative;
    text-align: center;
    margin-top: 20px;
    margin-bottom: 30px;
}

.header-title {
    font-family: 'Lato', sans-serif;
    font-size: 42px;
    font-weight: 700;
    color: #ecf0f1;
    margin-bottom: 15px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

/* Animated "Discover" Container */
.animated-container {
    display: inline-flex !important;
    align-items: center !important;
    gap: 10px !important;
    background: rgba(26, 29, 35, 0.85) !important;
    backdrop-filter: blur(20px) !important;
    padding: 8px 20px !important;
    border-radius: 20px !important;
    border: 1px solid rgba(139, 92, 246, 0.3) !important;
    overflow: hidden !important;
}

.animated-text {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', sans-serif !important;
    font-weight: 400 !important;
    font-size: 18px !important;
    color: var(--text-secondary) !important;
    margin: 0 !important;
    white-space: nowrap !important;
}

.animated-list {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    height: 24px !important;
    overflow: hidden !important;
    position: relative !important;
    display: flex !important;
    flex-direction: column !important;
}

.animated-list ul {
    animation: slideAnimation 12s infinite !important;
    padding: 0 !important;
    margin: 0 !important;
    list-style: none !important;
}

.animated-item {
    font-size: 18px !important;
    line-height: 24px !important;
    height: 24px !important;
    background: linear-gradient(135deg, var(--accent), var(--accent-purple)) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    font-weight: 600 !important;
    display: block !important;
    white-space: nowrap !important;
}

@keyframes slideAnimation {
    0% {
        transform: translateY(0);
    }
    25% {
        transform: translateY(-24px);
    }
    50% {
        transform: translateY(-48px);
    }
    75% {
        transform: translateY(-72px);
    }
    100% {
        transform: translateY(0);
    }
}

.gradient-text {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-purple) 50%, var(--accent-pink) 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 3s ease-in-out infinite;
}

/* ============================================================================
   CONTAINERS & SECTIONS
   ============================================================================ */

.main-container {
    margin: 0 auto;
    padding: 0 15px;
}

.container-1 {
    position: relative;
    z-index: 1;
    margin: auto;
    padding: 20px;
    border-radius: 8px;
}

.container-search {
    padding: 30px;
    background-color: #1f2937;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    margin-top: 20px;
    border: 1px solid rgba(139, 92, 246, 0.3);
}

.container-search p {
    text-align: center;
    color: var(--text-primary);
    line-break: anywhere;
    line-height: inherit;
}

.section {
    padding: 30px 0;
}

.section-lg {
    padding: 40px 0;
}

/* ============================================================================
   PAGE BACKGROUND - EPIC ANIMATED GRADIENT
   ============================================================================ */
.section.section-lg {
    padding: 0;
    margin: 0;
    background: transparent;
}
.section + .section,
.section + section {
    margin-top: 0;
}
.section.section-lg .container-1 {
    padding: 40px 20px;
}
/* Dark theme for date selector dropdown */
#dateSelector {
    color: white !important;
    border: 1px solid rgba(167, 139, 250, 0.3) !important;
    /* Custom dropdown arrow - combine with gradient */
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    background: 
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23a78bfa' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") no-repeat right 14px center,
        linear-gradient(135deg, #12151a, #1a1d23) !important;
    padding-right: 44px !important;
    cursor: pointer;
}

#dateSelector option {
    background: #1a1d23 !important;
    color: white !important;
    padding: 10px;
}

#dateSelector option:hover {
    background: #1a1d23 !important;
}

#dateSelector:hover {
    border-color: rgba(167, 139, 250, 0.5) !important;
    background: 
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23c4b5fd' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") no-repeat right 14px center,
        linear-gradient(135deg, #1a1d23, #252830) !important;
}

#dateSelector:focus {
    border-color: var(--accent-purple) !important;
    box-shadow: 0 0 20px rgba(167, 139, 250, 0.4) !important;
    outline: none !important;
}

/* Firefox-specific dropdown styling */
#dateSelector option:checked {
    background: linear-gradient(135deg, var(--accent-purple), #7c3aed) !important;
    color: white !important;
}

/* ============================================================================
   DATE PICKER - Compact header row + date grid
   ============================================================================ */

/* Controls bar — refresh/status left, timeline right */
.dp-controls-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 8px;
}
.dp-controls-left {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}
.dp-controls-right {
    flex-shrink: 0;
}

/* Button sizes — desktop defaults */
.dp-refresh-btn {
    padding: 4px 10px;
    font-size: 11px;
    height: 28px;
}
.dp-status-text {
    font-size: 11px;
    white-space: nowrap;
}
.dp-timeline-btn {
    padding: 5px 14px;
    font-size: 12px;
    height: 30px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.dp-timeline-icon {
    flex-shrink: 0;
}

/* Date selector row */
.dp-date-row {
    display: block;
    margin-bottom: 6px;
}

/* Mobile layout (≤768px) */
@media (max-width: 768px) {
    /* Flex column so we can reorder: date first, controls second */
    .dp-toolbar-body {
        display: flex;
        flex-direction: column;
    }
    .dp-date-row {
        order: -1;
        margin-bottom: 6px;
    }
    .dp-controls-row {
        gap: 6px;
        margin-bottom: 0;
    }
    .dp-controls-left {
        gap: 5px;
        flex: 1;
        min-width: 0;
    }
    .dp-refresh-btn {
        padding: 3px 8px;
        font-size: 10px;
        height: 26px;
        flex-shrink: 0;
    }
    .dp-status-text {
        font-size: 9px;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .dp-timeline-btn {
        padding: 3px 8px;
        font-size: 12px;
        height: 26px;
        width: 26px;
        justify-content: center;
        gap: 0;
    }
    .dp-timeline-label {
        display: none;
    }
}

/* Month tab bar (inside header) */
.dp-month-bar {
    display: flex;
    gap: 3px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
    padding: 0;
}
.dp-month-bar::-webkit-scrollbar { display: none; }

.dp-month-tab {
    flex-shrink: 0;
    padding: 3px 10px;
    border-radius: 5px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.03);
    color: #9ca3af;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
    white-space: nowrap;
    user-select: none;
    -webkit-user-select: none;
    line-height: 1.4;
}
.dp-month-tab:hover {
    background: rgba(100, 108, 255, 0.08);
    border-color: rgba(100, 108, 255, 0.2);
    color: #d1d5db;
}
.dp-month-tab.active {
    background: linear-gradient(135deg, rgba(100, 108, 255, 0.15), rgba(167, 139, 250, 0.1));
    border-color: rgba(100, 108, 255, 0.35);
    color: #fff;
}

/* Date grid — compact */
.dp-dates-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 3px;
    padding: 0;
}

.dp-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4px 2px;
    border-radius: 5px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(255, 255, 255, 0.02);
    color: #9ca3af;
    cursor: pointer;
    transition: all 0.12s ease;
    user-select: none;
    -webkit-user-select: none;
    width: 48px;
    min-height: 32px;
}
.dp-date:hover {
    background: rgba(100, 108, 255, 0.08);
    border-color: rgba(100, 108, 255, 0.2);
    color: #e5e7eb;
}
.dp-date.active {
    background: linear-gradient(135deg, rgba(100, 108, 255, 0.2), rgba(167, 139, 250, 0.15));
    border-color: rgba(100, 108, 255, 0.45);
    color: #fff;
    box-shadow: 0 0 8px rgba(100, 108, 255, 0.1);
}
.dp-date.today {
    border-color: rgba(16, 185, 129, 0.3);
}
.dp-date.today .dp-date-label {
    color: #10b981;
}
.dp-date.today.active {
    border-color: rgba(16, 185, 129, 0.5);
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(100, 108, 255, 0.1));
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.1);
}

.dp-date-num {
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
}
.dp-date-label {
    font-size: 8px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.2px;
    opacity: 0.7;
    margin-top: 1px;
    line-height: 1;
}
.dp-date.active .dp-date-label {
    opacity: 1;
    color: #a78bfa;
}
.dp-date.today.active .dp-date-label {
    color: #10b981;
}

/* Mobile dropdown — shown by default, hidden on desktop via media query */
.dp-mobile-select-wrap {
    display: block;
    position: relative;
    min-width: 0;
}
.dp-mobile-select {
    width: 100%;
    appearance: none;
    -webkit-appearance: none;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(100, 108, 255, 0.2);
    border-radius: 6px;
    color: #e5e7eb;
    font-size: 12px;
    font-weight: 600;
    padding: 8px 32px 8px 10px;
    cursor: pointer;
    transition: all 0.15s ease;
    outline: none;
    line-height: 1.2;
    box-sizing: border-box;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.dp-mobile-select:focus {
    border-color: rgba(100, 108, 255, 0.5);
    box-shadow: 0 0 0 2px rgba(100, 108, 255, 0.1);
}
.dp-mobile-select option {
    background: #1a1d23;
    color: #e5e7eb;
}
.dp-mobile-select-icon {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    color: #a78bfa;
    font-size: 11px;
    pointer-events: none;
}

/* Desktop-only elements (hidden by default, shown on wider screens) */
.dp-desktop-only {
    display: none;
}

/* Desktop: ≥769px — show grid/month tabs, hide mobile dropdown */
@media (min-width: 769px) {
    .dp-desktop-only {
        display: flex !important;
    }
    .dp-mobile-select-wrap {
        display: none !important;
    }
}

/* Main section - transparent with subtle overlay pattern */
.main {
    background:
        radial-gradient(circle at 20% 50%, rgba(167, 139, 250, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(139, 92, 246, 0.03) 0%, transparent 50%),
        linear-gradient(135deg, rgba(26, 29, 35, 0.4) 0%, rgba(26, 29, 35, 0.6) 100%) !important;
    position: relative;
    overflow: hidden;
}

/* Animated background orbs */
.main::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background:
        radial-gradient(circle at 30% 40%, rgba(167, 139, 250, 0.08) 0%, transparent 25%),
        radial-gradient(circle at 70% 60%, rgba(167, 139, 250, 0.06) 0%, transparent 25%),
        radial-gradient(circle at 50% 80%, rgba(236, 72, 153, 0.05) 0%, transparent 25%);
    animation: float 20s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

/* Subtle grid overlay */
.main::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        linear-gradient(rgba(167, 139, 250, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(167, 139, 250, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.3;
    pointer-events: none;
    z-index: 0;
}

/* Ensure content is above background effects */
.main {
    background: transparent;
}

/* Section backgrounds - transparent to show main background */
section {
    background: transparent;
}

.section-lg {
    background: transparent;
}

/* Floating animation for orbs */
@keyframes float {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    25% {
        transform: translate(5%, 5%) rotate(90deg);
    }
    50% {
        transform: translate(0, 10%) rotate(180deg);
    }
    75% {
        transform: translate(-5%, 5%) rotate(270deg);
    }
}

/* Container backgrounds - subtle glass effect */
.container-1 {
    position: relative;
    z-index: 1;
    margin: auto;
    padding: 20px;
    border-radius: 8px;
    background: rgba(26, 35, 50, 0.2);
    backdrop-filter: blur(10px);
}

/* Room cards stand out against the animated background */
.rooms-container {
    position: relative;
    z-index: 2;
}

/* ============================================================================
   BUTTONS & CONTROLS
   ============================================================================ */

#refreshDataBtn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-purple));
}

#refreshDataBtn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.speed-btn.active {
    background: var(--accent-purple) !important;
    border-color: var(--accent-purple) !important;
}

.speed-btn:hover {
    background: #7c3aed !important;
    border-color: var(--accent-purple) !important;
}

/* ============================================================================
   NOTIFICATIONS
   ============================================================================ */

.refresh-notification {
    position: fixed;
    top: 20px;
    right: -350px;
    max-width: 300px;
    padding: 15px 20px;
    background: #1a1d23;
    color: white;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    gap: 10px;
    transition: right 0.3s ease;
    z-index: 10000;
    border-left: 4px solid;
}

.refresh-notification.show {
    right: 20px;
}

.refresh-notification.success {
    border-left-color: var(--success);
}

.refresh-notification.error {
    border-left-color: #f44336;
}

.refresh-notification.warning {
    border-left-color: #ffc107;
}

.refresh-notification.info {
    border-left-color: var(--accent-purple);
}

.refresh-notification i {
    font-size: 20px;
}

/* ============================================================================
   ADVERTISEMENTS
   ============================================================================ */

.ad-container {
    margin: 15px auto;
    text-align: center;
    width: 100%;
    min-height: 90px;
    background: #1a1d23;
}

.side-rail {
    position: fixed;
    top: 200px;
    width: 160px;
    z-index: 1000;
    display: none;
}

.left-rail {
    left: 20px;
}

.right-rail {
    right: 20px;
}

@media (min-width: 1200px) {
    .side-rail {
        display: block;
    }
}

/* ============================================================================
   MISCELLANEOUS
   ============================================================================ */

.profileContainer {
    border: 1px solid #1a1d23;
    border-radius: 10px;
    box-shadow: 0 0 30px rgba(139, 92, 246, 0.3);
    background-color: var(--accent-purple) !important;
    max-width: 15vw;
    position: relative;
    margin: 10px;
}

.profileContainer p {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: black 1px solid;
    padding: 10px;
    margin: 10px;
    border-radius: 10px;
    box-shadow: 0 0 30px rgba(139, 92, 246, 0.3);
    background-color: #1a1d23;
    max-width: 15vw;
    position: relative;
}

.profileContainer p .dynamic-text {
    color: var(--text-primary);
    max-width: 30%;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

#profileContainer img {
    display: block;
    margin-left: auto;
    margin-right: auto;
    width: 50%;
    margin-top: 10px;
}

.outfit-image {
    width: 300px;
    margin-left: 10px;
    margin-top: 50px;
    position: inherit;
    display: block;
}

#countdownTimer.pulse {
    animation: pulse 1s ease-in-out infinite;
}

.funitrack-section {
    background: var(--accent-purple);
    padding: 12px;
    border-radius: 8px;
    margin: 15px 0;
}

.funitrack-section h3 {
    color: #fff;
    font-size: 16px;
    margin-bottom: 8px;
}

.funitrack-group {
    background: #12151a;
    border: 1px solid #444;
    border-radius: 5px;
    padding: 8px;
    margin-bottom: 12px;
}

.funitrack-group .product-header {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

.funitrack-group .product-header img {
    width: 32px;
    margin-right: 8px;
    border-radius: 3px;
    border: 1px solid #333;
}

.funitrack-group .product-header .product-name {
    color: #fff;
    font-weight: bold;
    font-size: 13px;
}

.funitrack-group .seat-container {
    display: flex;
    flex-wrap: wrap;
}

.funitrack-group .seat-container .seat-item {
    background: rgba(139, 92, 246, 0.2);
    border-radius: 4px;
    padding: 6px;
    min-width: 70px;
    text-align: center;
    margin: 0 5px 5px 0;
    color: #fff;
    font-size: 12px;
}

/* ============================================================================
   MOBILE RESPONSIVE (MAX-WIDTH: 768px)
   ============================================================================ */

@media (max-width: 768px) {
    .room-header {
        height: 180px;
    }

    .room-title-main h2 {
        font-size: 18px;
    }

    .session-quick-stats {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .snapshot-controls {
        gap: 6px;
    }

    .snapshot-btn {
        padding: 8px 12px;
        min-width: 36px;
        font-size: 12px;
    }

    .room-content-area {
        padding: 16px;
    }

    /* Tab styles handled in main .room-tab section */

    .header-title {
        font-size: 36px !important;
    }

    .animated-text {
        font-size: 24px !important;
    }

    .animated-list {
        font-size: 24px !important;
    }

    .search-mode-btn {
        font-size: 13px !important;
        padding: 10px 16px !important;
    }

    .styled-button-enhanced {
        padding: 12px 32px !important;
        font-size: 14px !important;
    }

    .container-search-enhanced {
        padding: 24px;
    }

    .search-container-enhanced {
        padding: 20px;
    }

    .room-info-H table {
        display: block;
        width: 100%;
        border-collapse: separate;
        border-spacing: 0;
        max-width: 480px;
        left: -5%;
        position: relative;
        padding: 10px;
    }

    .room-info-H th,
    .room-info-H td {
        display: block;
        width: 90%;
        text-align: left;
        padding: 8px;
        border-bottom: 1px solid #ddd;
        color: black;
    }

    .room-info-H th {
        font-weight: bold;
        background-color: #f9f9f9;
    }

    .room-info-H th::after {
        content: ':';
        margin-right: 5px;
        font-weight: normal;
        color: #555;
    }

    .users-list {
        max-width: 100%;
        left: -4%;
        position: relative;
    }

    .room-image {
        display: block;
        margin: 0 auto;
        width: fit-content;
    }

    .room-image img {
        max-width: 100%;
        height: auto;
        display: block;
        margin: 0 auto 1rem;
    }

    .room-details {
        width: 100%;
        padding: 1rem;
        margin: 0 auto 1.5rem;
    }

    .group-pagination {
        justify-content: flex-start;
        overflow-x: auto;
        padding: 0.5rem 0;
    }

    .group-pagination button {
        flex: none;
        margin-right: 0.5rem;
    }

    .users-list,
    .tab-buttons {
        padding: 0.5rem;
    }

    .tab-buttons button {
        font-size: 0.9rem;
        padding: 0.5rem;
    }

    .room-text {
        width: 100%;
        margin: 0;
        padding: 0;
    }

    .outfit-image {
        margin-top: 50px;
        position: inherit;
        display: block;
        width: 300px;
    }

    .refresh-notification {
        max-width: calc(100vw - 40px);
        right: -100%;
    }

    .refresh-notification.show {
        right: 10px;
    }

    .styled-dropdown {
        width: 100%;
    }

    .styled-input {
        width: 100%;
    }

    #participants .users-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)) !important;
    }
}

/* ============================================================================
   DESKTOP RESPONSIVE (MIN-WIDTH: 769px)
   ============================================================================ */

@media (min-width: 769px) {
    .main-container {
        grid-template-columns: 200px 1fr;
        gap: 20px;
    }

    /* Grid handled in main .rooms-container styles */

    .room-group {
        display: flex;
        flex-direction: column;
    }

    .room-group > img,
    .room-group .room-title {
        flex-shrink: 0;
    }

    .room-group .room-text {
        flex: 1;
        min-width: 0;
        color: #fff;
        align-self: center;
    }

    .room-text {
        margin-left: 20px;
        max-width: 550px;
    }

    .room-image {
        width: 100%;
        max-width: 300px;
        aspect-ratio: 4/3;
        overflow: hidden;
        align-self: center;
        box-shadow: 0 0 30px rgba(139, 92, 246, 0.3);
    }

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

    .room-info-H {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }

    .room-details {
        border: 1px solid #1a1d23;
        padding: 10px;
        background-color: #1a1d23;
        border: var(--accent-purple) solid 1px;
        justify-self: center;
        min-height: 90%;
    }

    .group-pagination {
        order: 2;
        width: 100%;
        display: flex;
        justify-content: center;
        margin-top: 1em;
        overflow: hidden;
        background-color: #12151a;
        position: relative;
    }

    .group-pagination button {
        padding: 8px 16px;
        font-size: 14px;
        background-color: var(--accent-purple);
        color: white;
        border: none;
        border-radius: 4px;
        cursor: pointer;
    }

    .users-list {
        background-color: var(--accent-purple);
        padding: 10px;
        border-radius: 8px;
        box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
        max-height: fit-content;
        overflow-y: hidden;
        color: black;
        position: relative;
        margin-top: 10px;
    }

    .users-list h3 {
        margin-bottom: 10px;
        font-size: 20px;
        color: var(--text-primary);
    }

    .users-list li {
        margin-bottom: 10px;
        font-size: 18px;
        white-space: nowrap;
        box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
        padding: 5px;
    }

    .users-list button {
        background-color: var(--accent-purple);
        color: white;
        border: none;
        padding: 8px 16px;
        font-size: 14px;
        text-align: center;
        text-decoration: none;
        display: inline-block;
        border-radius: 6px;
        cursor: pointer;
        transition: background-color 0.2s ease, box-shadow 0.2s ease;
        margin: 5px 0;
    }

    .users-list button:hover {
        background-color: #218838;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    }

    .container-1 {
        position: relative;
        z-index: 1;
        margin: auto;
        padding: 20px;
        border-radius: 8px;
    }

    h1 {
        text-align: center;
        margin: 40px 0 20px;
        color: var(--text-primary);
    }

    .search-container-1 {
        align-items: center;
        justify-content: center;
        margin-bottom: 20px;
        z-index: 0;
    }

    .outfit-image {
        width: 300px;
        margin-left: 10px;
        margin-top: 50px;
        position: inherit;
        display: block;
    }
}

/* ============================================================================
   ADDITIONAL RESPONSIVE ADJUSTMENTS
   ============================================================================ */
/* Grid styles handled in main .rooms-container section */

@media (min-width: 1200px) {
    .side-rail {
        display: block;
    }
}

@media (min-width: 992px) {
    .rd-navbar-transparent-wrap + .swiper-slider-1 .swiper-slide-caption {
        padding: 130px 0 100px;
    }
}

/* ============================================================================
   UTILITY CLASSES
   ============================================================================ */

.glow-effect {
    position: relative;
}

.glow-effect::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, var(--accent), var(--accent-pink));
    border-radius: inherit;
    opacity: 0;
    z-index: -1;
    filter: blur(20px);
    transition: opacity 0.3s;
}

.glow-effect:hover::after {
    opacity: 0.7;
}

.text-light {
    font-weight: 300;
    text-align: center;
}

/* ============================================================================
   MOBILE RESPONSIVE MODAL STYLES
   ============================================================================ */

@media (max-width: 768px) {
    #productModal .modal-content {
        width: 95%;
        margin: 5% auto;
        padding: 16px;
        max-height: 90vh;
        overflow-y: auto;
    }

    #productModal .close {
        top: 8px;
        right: 12px;
        font-size: 24px;
    }

    #outfitLightbox img {
        max-width: 95%;
        max-height: 80%;
    }

    .stats-tabs {
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
    }

    .stats-tab {
        padding: 6px 10px;
        font-size: 12px;
        white-space: nowrap;
    }

    .chart-container {
        height: 250px;
    }

    .tab-buttons button {
        padding: 6px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    #productModal .modal-content {
        width: 98%;
        margin: 2% auto;
        padding: 12px;
        border-radius: 8px;
    }

    .stats-tab {
        padding: 5px 8px;
        font-size: 11px;
    }

    .period-btn {
        padding: 5px 8px;
        font-size: 11px;
    }

    .chart-container {
        height: 200px;
    }
}

/* ============================================================================
   MOBILE-FRIENDLY UI - Room Tabs & Event Pagination
   ============================================================================ */

/* ===== ROOM CONTENT TABS ===== */
/* Tabs handled in main styles section above */

/* ===== EVENT PAGINATION ===== */
/* Desktop: Show all number buttons */
.event-number-buttons {
    display: flex !important;
}

.event-mobile-indicator {
    display: none !important;
}

.nav-btn-text {
    display: inline !important;
}

/* Medium screens (legacy pagination container only) */
@media (max-width: 1200px) {
    .event-pagination-container .event-num-btn {
        padding: 4px 0 !important;
        font-size: 11px !important;
        min-width: 28px !important;
    }
    
    .event-pagination-container > .event-nav-btn {
        padding: 4px 7px !important;
        font-size: 11px !important;
    }
    
    .event-pagination-container {
        gap: 3px !important;
        padding: 0 6px !important;
    }
}

/* Tablet: Show X of Y indicator instead of numbers (legacy pagination container only) */
@media (max-width: 900px) {
    .event-pagination-container > .event-number-buttons {
        display: none !important;
    }
    
    .event-mobile-indicator {
        display: flex !important;
    }
    
    .nav-btn-text {
        display: inline !important;
    }
    
    .event-pagination-container {
        justify-content: center !important;
        gap: 6px !important;
    }
    
    .event-pagination-container > .event-nav-btn {
        padding: 6px 10px !important;
        font-size: 11px !important;
    }

    /* Keep numbered buttons visible in new snp layout */
    .snp-event-row .event-number-buttons {
        display: flex !important;
    }
}

/* Mobile: Hide text, show only arrows (legacy pagination container only) */
@media (max-width: 600px) {
    .nav-btn-text {
        display: none !important;
    }
    
    .event-pagination-container > .event-nav-btn {
        padding: 6px 8px !important;
    }
    
    .event-mobile-indicator {
        padding: 6px 10px !important;
    }
    
    .event-mobile-indicator span {
        font-size: 11px !important;
    }
}

@media (max-width: 400px) {
    .event-pagination-container > .event-nav-btn {
        padding: 6px 8px !important;
    }
    
    .event-mobile-indicator {
        padding: 5px 8px !important;
    }
    
    .event-mobile-indicator span {
        font-size: 10px !important;
    }
    
    .event-pagination-container {
        gap: 6px !important;
        padding: 6px 8px !important;
    }
}

/* ===== SESSION NAVIGATION PANEL ===== */
.session-info-row {
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
}

.session-info-row::-webkit-scrollbar {
    display: none !important;
}

/* Compact Session Summary - unified info bar */
.compact-session-summary {
    font-size: 11px !important;
}

/* compact-session-summary mobile sizes now in snp-* responsive section below */

/* Session Nav Controls Row - contains arrows and dropdown */
.session-nav-controls-row {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    flex-wrap: nowrap !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

/* Session Navigation Arrow Buttons */
.session-nav-arrow {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 30px !important;
    height: 30px !important;
    min-width: 30px !important;
    flex-shrink: 0 !important;
    background: rgba(100, 108, 255, 0.1) !important;
    border: 1px solid rgba(100, 108, 255, 0.2) !important;
    border-radius: 6px !important;
    color: #a78bfa !important;
    font-size: 12px !important;
    cursor: pointer !important;
    transition: all 0.15s ease !important;
}

.session-nav-arrow:hover:not(:disabled) {
    background: linear-gradient(135deg, rgba(100, 108, 255, 0.4), rgba(167, 139, 250, 0.4)) !important;
    border-color: rgba(100, 108, 255, 0.5) !important;
    color: white !important;
}

.session-nav-arrow:disabled {
    opacity: 0.3 !important;
    cursor: not-allowed !important;
}

/* Session Pill Group - container for session number buttons */
.session-pill-group {
    flex: 1 !important;
    min-width: 0 !important;
    max-width: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 4px !important;
}

.session-pill-group::-webkit-scrollbar {
    display: none !important;
}

/* Session Pill Buttons */
.session-pill-btn {
    flex-shrink: 0 !important;
    transition: all 0.2s ease !important;
    font-family: inherit !important;
    line-height: 1.2 !important;
}

.session-pill-btn:hover:not(.active) {
    background: rgba(100, 108, 255, 0.18) !important;
    border-color: rgba(100, 108, 255, 0.4) !important;
    color: #c4b5fd !important;
}

.session-pill-btn.active {
    background: linear-gradient(135deg, #646cff, #7c3aed) !important;
    color: white !important;
    border-color: #646cff !important;
    box-shadow: 0 2px 8px rgba(100, 108, 255, 0.35) !important;
}

/* Legacy dropdown - keep for backwards compat */
.session-dropdown {
    flex: 1 !important;
    min-width: 0 !important;
    max-width: 100% !important;
    height: 36px !important;
    padding: 6px 32px 6px 12px !important;
    background-color: #1a1d23 !important;
    border: 1px solid rgba(100, 108, 255, 0.3) !important;
    border-radius: 8px !important;
    color: white !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    box-sizing: border-box !important;
}

@media (max-width: 768px) {
    .session-info-row {
        flex-wrap: wrap !important;
        justify-content: center !important;
    }
    
    /* Legacy session nav controls */
    .session-nav-controls-row {
        gap: 6px !important;
        padding: 0 4px !important;
    }
    
    .session-nav-arrow {
        width: 32px !important;
        height: 32px !important;
        min-width: 32px !important;
        font-size: 12px !important;
    }
    
    .session-pill-btn {
        padding: 5px 10px !important;
        font-size: 11px !important;
        min-width: 30px !important;
    }
    
    .session-pill-group {
        gap: 3px !important;
    }
    
    .session-dropdown,
    select.session-dropdown {
        height: 32px !important;
        font-size: 12px !important;
        padding: 4px 10px !important;
    }
    
    .session-stats-container {
        gap: 6px !important;
        justify-content: center !important;
        flex-wrap: wrap !important;
    }
    
    .session-stats-container > div {
        padding: 5px 10px !important;
    }
    
    .session-stats-container i {
        font-size: 11px !important;
    }
    
    .session-stats-container span,
    .session-stats-container strong {
        font-size: 11px !important;
    }
}

@media (max-width: 400px) {
    .session-stats-container > div {
        padding: 4px 8px !important;
    }
    
    .session-stats-container i {
        font-size: 10px !important;
    }
    
    .session-stats-container span,
    .session-stats-container strong {
        font-size: 10px !important;
    }
    
    /* Session nav controls - even smaller on tiny screens */
    .session-nav-controls-row {
        gap: 4px !important;
    }
    
    .session-nav-arrow {
        width: 28px !important;
        height: 28px !important;
        min-width: 28px !important;
        font-size: 11px !important;
        border-radius: 6px !important;
    }
    
    .session-dropdown,
    select.session-dropdown {
        height: 28px !important;
        font-size: 11px !important;
        padding: 3px 8px !important;
        border-radius: 6px !important;
    }
}

/* ===== SESSION NAV PANEL (snp-*) — MOBILE RESPONSIVE ===== */

/* ── Tablet / small laptop (≤768px) ── */
@media (max-width: 768px) {
    .session-navigation-panel {
        padding: 8px 10px !important;
        min-height: 110px !important;
    }

    .compact-session-summary {
        font-size: 11px !important;
        gap: 0 6px !important;
        padding: 0 2px 6px 2px !important;
    }

    .snp-session-controls {
        gap: 10px !important;
        padding-bottom: 6px !important;
    }

    .snp-arrow-btn {
        width: 26px !important;
        height: 26px !important;
        min-width: 26px !important;
        font-size: 10px !important;
    }

    .snp-session-label {
        font-size: 12px !important;
        gap: 4px !important;
    }

    .snp-session-badge {
        min-width: 22px !important;
        height: 22px !important;
        font-size: 11px !important;
        padding: 0 6px !important;
    }

    .snp-event-section {
        gap: 5px !important;
    }

    .snp-event-row {
        gap: 3px !important;
    }

    .snp-event-row .event-nav-btn {
        width: 28px !important;
        height: 28px !important;
        min-width: 28px !important;
        font-size: 10px !important;
    }

    .snp-event-row .event-num-btn {
        width: 28px !important;
        height: 28px !important;
        font-size: 11px !important;
    }

    .snp-event-counter {
        font-size: 10px !important;
    }

    .snp-event-time {
        font-size: 10px !important;
    }
}

/* ── Mobile (≤480px) ── */
@media (max-width: 480px) {
    .session-navigation-panel {
        padding: 6px 8px !important;
        min-height: 95px !important;
    }

    .compact-session-summary {
        font-size: 10px !important;
        gap: 0 5px !important;
        padding: 0 2px 5px 2px !important;
        line-height: 1.5 !important;
    }

    .snp-session-controls {
        gap: 8px !important;
        padding-bottom: 5px !important;
    }

    .snp-arrow-btn {
        width: 24px !important;
        height: 24px !important;
        min-width: 24px !important;
        font-size: 9px !important;
        border-radius: 5px !important;
    }

    .snp-session-label {
        font-size: 11px !important;
        gap: 3px !important;
    }

    .snp-session-badge {
        min-width: 20px !important;
        height: 20px !important;
        font-size: 10px !important;
        padding: 0 5px !important;
        border-radius: 5px !important;
    }

    .snp-event-section {
        gap: 4px !important;
    }

    .snp-event-row {
        gap: 2px !important;
    }

    .snp-event-row .event-nav-btn {
        width: 26px !important;
        height: 26px !important;
        min-width: 26px !important;
        font-size: 9px !important;
        border-radius: 5px !important;
    }

    .snp-event-row .event-num-btn {
        width: 26px !important;
        height: 26px !important;
        font-size: 10px !important;
        border-radius: 5px !important;
    }

    .snp-event-counter {
        font-size: 9px !important;
    }

    .snp-event-time {
        font-size: 9px !important;
    }
}

/* ── Small mobile (≤360px) ── */
@media (max-width: 360px) {
    .session-navigation-panel {
        padding: 5px 6px !important;
        min-height: 85px !important;
    }

    .compact-session-summary {
        font-size: 9px !important;
        gap: 0 4px !important;
        padding: 0 1px 4px 1px !important;
    }

    .snp-session-controls {
        gap: 6px !important;
        padding-bottom: 4px !important;
    }

    .snp-arrow-btn {
        width: 22px !important;
        height: 22px !important;
        min-width: 22px !important;
        font-size: 8px !important;
        border-radius: 4px !important;
    }

    .snp-session-label {
        font-size: 10px !important;
        gap: 3px !important;
    }

    .snp-session-badge {
        min-width: 18px !important;
        height: 18px !important;
        font-size: 9px !important;
        padding: 0 4px !important;
        border-radius: 4px !important;
    }

    .snp-event-row {
        gap: 2px !important;
    }

    .snp-event-row .event-nav-btn {
        width: 24px !important;
        height: 24px !important;
        min-width: 24px !important;
        font-size: 8px !important;
        border-radius: 4px !important;
    }

    .snp-event-row .event-num-btn {
        width: 24px !important;
        height: 24px !important;
        font-size: 9px !important;
        border-radius: 4px !important;
    }

    .snp-event-counter {
        font-size: 8px !important;
    }

    .snp-event-time {
        font-size: 8px !important;
    }
}

/* ===== SEARCH MODE BUTTONS ===== */
@media (max-width: 768px) {
    .search-mode-btn {
        font-size: 12px !important;
        padding: 12px 14px !important;
    }
}

@media (max-width: 400px) {
    .search-mode-btn {
        font-size: 11px !important;
        padding: 10px 10px !important;
    }
    
    .search-mode-btn i {
        margin-right: 4px !important;
    }
}

/* ============================================================================
   MOBILE FIXES - Furniture, Timeline & Outfit Panels
   ============================================================================ */

/* Furniture Cards - Stack vertically on mobile */
@media (max-width: 768px) {
    .furniture-card {
        margin-bottom: 16px !important;
        overflow: visible !important;
    }
    
    /* Furniture card header - FORCE stack vertically */
    .furniture-card .furniture-header,
    .furniture-card > div:first-child,
    div.furniture-header {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        padding: 12px !important;
        gap: 12px !important;
    }
    
    /* Furniture image container - Better sizing for tall images */
    .furniture-card .furniture-image,
    .furniture-header > div:first-child,
    div.furniture-image {
        width: 100px !important;
        height: 120px !important;
        min-width: 100px !important;
        max-width: 100px !important;
        margin: 0 auto !important;
        flex-shrink: 0 !important;
        flex-grow: 0 !important;
        overflow: hidden !important;
    }
    
    .furniture-image img {
        max-width: 100% !important;
        max-height: 100% !important;
        width: auto !important;
        height: auto !important;
        object-fit: contain !important;
    }
    
    /* Furniture info section - FORCE full width */
    .furniture-card .furniture-info,
    .furniture-header > div:nth-child(2),
    div.furniture-info {
        width: 100% !important;
        max-width: 100% !important;
        text-align: center !important;
        flex: none !important;
        min-width: 0 !important;
    }
    
    /* Furniture title - wrap text properly */
    .furniture-card h3,
    .furniture-info h3 {
        font-size: 14px !important;
        justify-content: center !important;
        text-align: center !important;
        flex-wrap: wrap !important;
        word-break: break-word !important;
        overflow-wrap: break-word !important;
        white-space: normal !important;
    }
    
    /* Badges row - wrap and center */
    .furniture-info > div,
    .furniture-card .furniture-info > div {
        display: flex !important;
        justify-content: center !important;
        flex-wrap: wrap !important;
        gap: 6px !important;
    }
    
    /* Badges in furniture card */
    .furniture-card [style*="display: inline-flex"] {
        font-size: 10px !important;
        padding: 4px 8px !important;
    }
    
    /* Users grid in furniture */
    .furniture-card .users-grid {
        grid-template-columns: 1fr !important;
        gap: 8px !important;
    }
}

/* Timeline Panel - Mobile Friendly */
@media (max-width: 768px) {
    /* Timeline summary stats - responsive grid */
    #timelineSummary > div {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px !important;
    }
    
    #timelineSummary > div > div {
        padding: 8px 10px !important;
    }
    
    #timelineSummary span[style*="font-size: 20px"] {
        font-size: 16px !important;
    }
    
    #timelineSummary span[style*="font-size: 12px"] {
        font-size: 10px !important;
    }
    
    /* Timeline filters - wrap */
    #timelineFilters > div {
        justify-content: center !important;
    }
    
    #timelineFilters button {
        padding: 6px 10px !important;
        font-size: 11px !important;
    }
    
    /* Timeline controls - responsive */
    #timelineControls {
        flex-wrap: wrap !important;
        gap: 8px !important;
        justify-content: center !important;
    }
    
    #timelineControls button {
        padding: 8px 12px !important;
        font-size: 12px !important;
    }
    
    /* Speed buttons */
    .speed-btn {
        padding: 6px 10px !important;
        font-size: 11px !important;
    }
    
    /* Timeline events list */
    #timelineContent {
        max-height: 50vh !important;
    }
    
    .timeline-event {
        padding: 10px 12px !important;
    }
    
    .timeline-event [style*="font-size: 14px"] {
        font-size: 13px !important;
    }
}

/* ============================================================================
   OUTFIT IMAGE CONTAINER — Aspect-ratio based sizing
   ============================================================================
   Uses aspect-ratio so the image area scales proportionally to card width.
   A 3:4 ratio (portrait) means a 350px card gets a ~467px image area,
   a 400px card gets ~533px, etc. The image always fills the space well. */
.outfit-image-container {
    aspect-ratio: 3 / 4;
    height: auto;
    min-height: 200px;
}

/* Outfit grid — responsive columns (CSS-only)
   Uses same 350px min as room cards for consistency.
   Desktop: 2-3 columns depending on screen width.
   ≤768px: single column. */
.outfit-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
    padding: 16px;
    max-height: 70vh;
    overflow-y: auto;
    overflow-x: hidden;
}

/* Inside the modal the parent scrolls — let grid expand freely */
#outfitsModalContent .outfit-grid {
    max-height: none;
    overflow-y: visible;
    overflow-x: visible;
}

@media (max-width: 768px) {
    .outfit-grid {
        grid-template-columns: 1fr !important;
        gap: 16px;
        padding: 10px;
    }
}

@media (max-width: 768px) {
    .outfit-grid {
        grid-template-columns: 1fr !important;
        gap: 12px;
        padding: 12px;
    }
}

@media (max-width: 480px) {
    .outfit-grid {
        gap: 10px;
        padding: 8px;
    }
}

/* Outfit Panel - Mobile Friendly */
@media (max-width: 768px) {
    /* Outfit tab content - ensure scrollable on mobile */
    .tab-content[id^="outfits-"] {
        overflow-y: auto !important;
        overflow-x: hidden !important;
        max-height: 70vh !important;
        min-height: 0 !important;
    }
    
    /* Outfit grid - single column on mobile */
    [id^="outfit-grid-"] {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
        padding: 12px !important;
        min-height: min-content !important;
        max-height: none !important;
    }
    
    /* Room content area - allow more height on mobile for outfits */
    .room-content-area:has(.tab-content[id^="outfits-"].active) {
        max-height: 70vh !important;
        min-height: 300px !important;
    }
    
    /* Outfit card — tablet mobile */
    .outfit-card {
        width: 100% !important;
        max-width: 100% !important;
    }
}

/* Outfit Panel — Small phones (≤480px viewport) */
@media (max-width: 480px) {
    .outfit-card-header {
        padding: 8px 10px !important;
        gap: 8px !important;
    }
    
    .outfit-card-name {
        font-size: 13px !important;
    }
    
    .outfit-card-time {
        font-size: 10px !important;
    }
    
    .outfit-counter {
        font-size: 12px !important;
    }
}

/* Tab Content Areas - Full width on mobile */
@media (max-width: 768px) {
    .tab-content,
    [id^="outfits-"],
    [id^="furniture-"],
    [id^="participants-"] {
        padding: 10px 8px !important;
    }
    
    /* Participants grid */
    #participants .users-grid,
    [id^="participants-"] .users-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px !important;
    }
    
    /* Participant cards */
    .participant-card,
    [id^="participants-"] > div > div {
        padding: 10px !important;
        font-size: 12px !important;
    }
}

@media (max-width: 480px) {
    /* Better sizing for furniture on tiny screens */
    .furniture-image {
        width: 90px !important;
        height: 110px !important;
        min-width: 90px !important;
        max-width: 90px !important;
    }
    
    .furniture-image img {
        max-width: 100% !important;
        max-height: 100% !important;
        width: auto !important;
        height: auto !important;
    }
    
    .furniture-card h3 {
        font-size: 13px !important;
    }
    
    /* Timeline summary - smaller */
    #timelineSummary span[style*="font-size: 20px"] {
        font-size: 14px !important;
    }
    
    /* Single column participants on very small screens */
    #participants .users-grid,
    [id^="participants-"] .users-grid {
        grid-template-columns: 1fr !important;
    }
}

/* ============================================================================
   MOBILE MODAL FIXES - Full Screen Modals for Outfits/Furniture/Timeline
   ============================================================================ */

/* ============================================================================
   OUTFITS MODAL — Header, Nav, Content
   ============================================================================ */

/* Modal Header */
.outfits-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: linear-gradient(135deg, rgba(100, 108, 255, 0.1), rgba(100, 108, 255, 0.03));
    border-bottom: 1px solid rgba(100, 108, 255, 0.12);
    position: relative;
}

.outfits-modal-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.outfits-modal-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: linear-gradient(135deg, #646cff, #4f46e5);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: #fff;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(100, 108, 255, 0.3);
}

.outfits-modal-title {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Override shared tailwind.css absolute positioning — keep button in flex flow */
#outfitsModal button.outfits-modal-close {
    position: static !important;
    top: auto !important;
    right: auto !important;
    transform: none !important;
    z-index: auto !important;
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    min-height: 36px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 8px !important;
    border: 1px solid rgba(239, 68, 68, 0.25) !important;
    background: rgba(239, 68, 68, 0.1) !important;
    color: rgba(239, 68, 68, 0.85) !important;
    font-size: 22px !important;
    flex-shrink: 0 !important;
    cursor: pointer !important;
    transition: all 0.15s !important;
    line-height: 1 !important;
    padding: 0 !important;
    margin: 0 !important;
}

#outfitsModal button.outfits-modal-close:hover {
    background: rgba(239, 68, 68, 0.2) !important;
    border-color: rgba(239, 68, 68, 0.4) !important;
    color: #ef4444 !important;
}

/* Modal Navigation — compact centered row (matches room card style) */
.outfits-modal-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.outfits-nav-group {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.outfits-nav-divider {
    color: #374151;
    font-size: 18px;
    line-height: 1;
    user-select: none;
}

/* Arrow buttons — matches room card session nav arrows */
.outfits-nav-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    min-width: 28px;
    background: rgba(100, 108, 255, 0.08);
    color: #a78bfa;
    border: 1px solid rgba(167, 139, 250, 0.25);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s ease;
    font-size: 11px;
}

.outfits-nav-arrow:hover:not(:disabled) {
    background: linear-gradient(135deg, rgba(100, 108, 255, 0.3), rgba(167, 139, 250, 0.3));
    border-color: rgba(100, 108, 255, 0.5);
    color: #fff;
}

.outfits-nav-arrow:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    background: transparent;
    color: #374151;
    border-color: rgba(55, 65, 81, 0.2);
}

/* Label text — "Session" / "Event" */
.outfits-nav-label {
    color: #e2e8f0;
    font-size: 13px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    user-select: none;
    white-space: nowrap;
}

/* Numbered badge — gradient pill (matches room card session badge) */
.outfits-nav-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #646cff, #7c3aed);
    color: white;
    font-weight: 700;
    font-size: 12px;
    min-width: 24px;
    height: 24px;
    padding: 0 7px;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(100, 108, 255, 0.3);
    font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace;
}

.outfits-nav-badge-event {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    box-shadow: 0 2px 6px rgba(139, 92, 246, 0.3);
}

/* Modal Content */
.outfits-modal-content {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    background: rgba(0, 0, 0, 0.15);
}

/* Mobile modal overrides */
@media (max-width: 768px) {
    .outfits-modal-header {
        padding: 12px 14px;
    }
    .outfits-modal-icon {
        width: 32px;
        height: 32px;
        font-size: 14px;
        border-radius: 8px;
    }
    .outfits-modal-title {
        font-size: 15px;
    }
    .outfits-modal-nav {
        gap: 8px;
        padding: 6px 10px;
    }
    .outfits-nav-label {
        font-size: 12px;
    }
    .outfits-nav-arrow {
        width: 26px;
        height: 26px;
        min-width: 26px;
        font-size: 10px;
    }
    .outfits-nav-badge {
        font-size: 11px;
        height: 22px;
        min-width: 22px;
        padding: 0 6px;
    }
    .outfits-modal-content {
        padding: 10px;
    }
}

@media (max-width: 480px) {
    .outfits-modal-nav {
        gap: 6px;
        padding: 5px 8px;
    }
    .outfits-nav-label {
        font-size: 11px;
    }
    .outfits-modal-content {
        padding: 8px;
    }
}

/* Base modal card styles */
.outfits-modal-card,
.furniture-modal-card {
    border-radius: 16px;
}

/* Furniture image - ensure proper sizing */
.furniture-image {
    flex-shrink: 0 !important;
    flex-grow: 0 !important;
    overflow: hidden !important;
}

.furniture-image img {
    max-width: 100% !important;
    max-height: 100% !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
}

@media (min-width: 769px) {
    .outfits-modal-card,
    .furniture-modal-card {
        margin-top: 2rem !important;
        margin-bottom: 2rem !important;
        height: calc(100vh - 4rem) !important;
        min-height: auto !important;
        display: flex !important;
        flex-direction: column !important;
        max-height: 90vh !important;
    }
    
    /* Modal card container - ensure flex layout */
    #outfitsModal > .card,
    #furnitureModal > .card {
        display: flex !important;
        flex-direction: column !important;
        max-height: 90vh !important;
        height: auto !important;
    }
}

/* Desktop - Keep scrollbar for modal content */
@media (min-width: 769px) {
    #outfitsModalContent,
    #furnitureModalContent {
        overflow-y: auto !important;
        overflow-x: hidden !important;
        max-height: calc(90vh - 200px) !important; /* Account for header + nav + padding */
        min-height: 400px !important;
        height: auto !important; /* Allow height to be determined by max-height */
    }
    
    /* Themed scrollbar for modal content - WebKit browsers (Chrome, Safari, Edge) */
    #outfitsModalContent::-webkit-scrollbar,
    #furnitureModalContent::-webkit-scrollbar {
        width: 12px !important;
        height: 12px !important;
    }
    
    #outfitsModalContent::-webkit-scrollbar-track,
    #furnitureModalContent::-webkit-scrollbar-track {
        background: rgba(26, 29, 35, 0.8) !important;
        border-radius: 10px !important;
        margin: 4px !important;
    }
    
    #outfitsModalContent::-webkit-scrollbar-thumb,
    #furnitureModalContent::-webkit-scrollbar-thumb {
        background: linear-gradient(145deg, var(--accent-purple), #7c3aed) !important;
        border-radius: 10px !important;
        border: 2px solid rgba(26, 29, 35, 0.8) !important;
        transition: background 0.3s ease !important;
    }
    
    #outfitsModalContent::-webkit-scrollbar-thumb:hover,
    #furnitureModalContent::-webkit-scrollbar-thumb:hover {
        background: linear-gradient(145deg, var(--accent-purple), var(--accent-purple)) !important;
        box-shadow: 0 0 10px rgba(167, 139, 250, 0.5) !important;
    }
    
    /* Firefox scrollbar support */
    #outfitsModalContent,
    #furnitureModalContent {
        scrollbar-width: thin !important;
        scrollbar-color: var(--accent-purple) rgba(26, 29, 35, 0.8) !important;
    }
    
    /* Outfit grid in modal - ensure it can expand */
    #outfitsModalContent [id^="outfit-grid-"],
    #outfitsModalContent .outfit-grid {
        min-height: min-content !important;
        height: auto !important;
    }
}

/* All fullscreen modals on mobile */
@media (max-width: 768px) {
    /* Outfits Modal — reduced bottom padding (was 100px, triple-stacked with
       card margin-bottom and content padding-bottom for ~280px total dead space).
       Now: 40px modal + 40px card margin = 80px total — enough to clear
       phone nav bars without wasting half the screen. */
    #outfitsModal,
    #furnitureModal,
    #timelineModal,
    #activityTimelineModal {
        padding: 0 !important;
        padding-bottom: 40px !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
    }
    
    /* Modal card container - full width on mobile */
    #outfitsModal > .card,
    #furnitureModal > .card,
    #timelineModal > .card,
    #activityTimelineModal > .card,
    #outfitsModal > div,
    #furnitureModal > div,
    #timelineModal > div {
        margin: 0 !important;
        margin-bottom: 40px !important;
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        border-radius: 0 !important;
        max-height: none !important;
        min-height: 0 !important;
        overflow: visible !important;
    }
    
    /* Modal header - smaller on mobile, space for close button */
    #outfitsModal .card-header,
    #furnitureModal .card-header,
    #outfitsModal > div > div:first-child,
    #furnitureModal > div > div:first-child {
        position: relative !important;
        padding: 12px 70px 12px 16px !important; /* Extra right padding for close button */
    }
    
    #outfitsModal .card-header h2,
    #furnitureModal .card-header h2,
    #outfitsModalTitle,
    #furnitureModalTitle {
        font-size: 16px !important;
    }
    
    /* Modal navigation - stack vertically on mobile */
    #outfitsModalNav,
    #furnitureModalNav {
        padding: 8px 12px !important;
    }
    
    #outfitsModalNav > div,
    #furnitureModalNav > div {
        flex-direction: column !important;
        gap: 10px !important;
    }
    
    /* Navigation button rows - centered */
    #outfitsModalNav .flex.items-center.gap-2,
    #furnitureModalNav .flex.items-center.gap-2 {
        justify-content: center !important;
        width: 100% !important;
    }
    
    /* Navigation buttons - smaller */
    #outfitsModalNav button,
    #furnitureModalNav button,
    #outfitsModalNav .btn-outline,
    #furnitureModalNav .btn-outline {
        padding: 8px 12px !important;
        font-size: 12px !important;
    }
    
    /* Session/Event info badges (furniture modal) */
    #furnitureModalSessionInfo,
    #furnitureModalSnapshotInfo {
        min-width: 100px !important;
        font-size: 12px !important;
        padding: 6px 10px !important;
    }
    
    /* Modal content area - less padding on mobile, remove flex-1 behavior */
    #outfitsModalContent,
    #furnitureModalContent {
        padding: 12px !important;
        padding-bottom: 24px !important;
        overflow: visible !important;
        height: auto !important;
        max-height: none !important;
        flex: none !important; /* Remove flex-1 behavior that restricts height */
    }
    
    /* Outfit grid in modal - single column */
    #outfitsModalContent [id^="outfit-grid-"],
    #outfitsModalContent .outfit-grid {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
        padding: 8px !important;
        overflow: visible !important;
        height: auto !important;
    }
    
    /* Outfit cards in modal - full width */
    #outfitsModalContent .outfit-card {
        width: 100% !important;
        max-width: 100% !important;
    }
    
    /* Outfit image in modal — handled by .outfit-image-container responsive rules */
    
    /* Furniture cards in modal - full width stacked */
    #furnitureModalContent .furniture-card {
        width: 100% !important;
    }
    
    /* Furniture card header - stacked */
    #furnitureModalContent .furniture-header {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
    }
    
    #furnitureModalContent .furniture-image {
        width: 100px !important;
        height: 120px !important;
        min-width: 100px !important;
        max-width: 100px !important;
    }
    
    #furnitureModalContent .furniture-image img {
        max-width: 100% !important;
        max-height: 100% !important;
        width: auto !important;
        height: auto !important;
        object-fit: contain !important;
    }
    
    #furnitureModalContent .furniture-info {
        width: 100% !important;
        text-align: center !important;
    }
    
    #furnitureModalContent .furniture-info h3 {
        justify-content: center !important;
        font-size: 14px !important;
    }
    
    #furnitureModalContent .furniture-info > div {
        justify-content: center !important;
    }
    
    /* User cards in furniture modal */
    #furnitureModalContent .users-grid {
        grid-template-columns: 1fr !important;
    }
    
    /* Close button - fixed position, larger touch target */
    #outfitsModal button[onclick*="close"],
    #furnitureModal button[onclick*="close"],
    #timelineModal button[onclick*="close"] {
        position: absolute !important;
        top: 50% !important;
        right: 16px !important;
        transform: translateY(-50%) !important;
        z-index: 10001 !important;
        min-width: 44px !important;
        min-height: 44px !important;
        font-size: 32px !important;
        padding: 8px 16px !important;
        background: rgba(255, 255, 255, 0.05) !important;
        border: 1px solid rgba(255, 255, 255, 0.1) !important;
        margin: 0 !important;
    }
}

@media (max-width: 480px) {
    /* Small phones — slightly more bottom space for gesture nav bars */
    #outfitsModal,
    #furnitureModal {
        padding-bottom: 48px !important;
    }
    
    #outfitsModal > div,
    #furnitureModal > div {
        margin-bottom: 48px !important;
    }
    
    #outfitsModalContent,
    #furnitureModalContent {
        padding-bottom: 20px !important;
    }
    
    /* Outfit image in modal — handled by .outfit-image-container responsive rules */
    
    #furnitureModalContent .furniture-image {
        width: 90px !important;
        height: 110px !important;
        min-width: 90px !important;
        max-width: 90px !important;
    }
    
    #furnitureModalContent .furniture-image img {
        max-width: 100% !important;
        max-height: 100% !important;
        width: auto !important;
        height: auto !important;
    }
    
    #furnitureModalNav button {
        padding: 6px 10px !important;
        font-size: 11px !important;
    }
    
    #furnitureModalSessionInfo,
    #furnitureModalSnapshotInfo {
        min-width: 80px !important;
        font-size: 11px !important;
    }
}
/* ============================================================================
   ROOM CARD MODAL STYLES
   ============================================================================ */

/* Info button on room header - matches 3D button style */
.room-card-info-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    height: 28px;
    width: auto;
    min-width: 28px;
    padding: 0 8px;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(100, 108, 255, 0.45);
    color: #a5b4fc;
    font-size: 14px;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4), 0 0 10px rgba(100, 108, 255, 0.15);
}

.room-card-info-btn:hover {
    background: rgba(100, 108, 255, 0.2);
    border-color: rgba(129, 140, 248, 0.7);
    transform: scale(1.1);
    box-shadow: 0 4px 16px rgba(100, 108, 255, 0.45), 0 0 20px rgba(100, 108, 255, 0.2);
}

.room-card-info-btn:hover i {
    color: #fff;
    filter: drop-shadow(0 0 6px rgba(129, 140, 248, 0.8));
}

.room-card-info-btn:active {
    transform: scale(0.92);
}

/* 3D View button on room header - compact pill next to info btn */
/* ═══════════════════════════════════════════════════════════════
   3D Viewer Button - Animated "3D" text badge
   Higher specificity (button.room-3d-btn) to override tailwind selectors
   ═══════════════════════════════════════════════════════════════ */
button.room-3d-btn,
.room-header .room-3d-btn {
    position: absolute !important;
    top: 12px !important;
    right: 48px !important;
    left: auto !important;
    height: 28px !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    padding: 0 10px !important;
    border-radius: 8px !important;
    background: rgba(0, 0, 0, 0.6) !important;
    border: 1px solid rgba(139, 92, 246, 0.45) !important;
    cursor: pointer;
    z-index: 10;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-direction: row !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4), 0 0 10px rgba(139, 92, 246, 0.15);
    overflow: visible !important;
    transform: none !important;
    font-size: 13px !important;
}

/* "3D" text */
.room-3d-btn .room-3d-text {
    font-family: 'Inter', sans-serif !important;
    font-size: 13px !important;
    font-weight: 800 !important;
    letter-spacing: 0.5px;
    color: #c4b5fd !important;
    text-shadow: 0 0 8px rgba(139, 92, 246, 0.4);
    animation: room3dGlow 3s ease-in-out infinite;
    transition: all 0.3s ease;
    line-height: 1 !important;
    display: block !important;
}

/* Hover: button lights up */
button.room-3d-btn:hover,
.room-header .room-3d-btn:hover {
    background: rgba(139, 92, 246, 0.2) !important;
    border-color: rgba(167, 139, 250, 0.7) !important;
    box-shadow:
        0 4px 16px rgba(139, 92, 246, 0.45),
        0 0 20px rgba(100, 108, 255, 0.2) !important;
    transform: scale(1.1) !important;
}

/* Hover: text goes bright white with neon glow */
button.room-3d-btn:hover .room-3d-text,
.room-header .room-3d-btn:hover .room-3d-text {
    color: #fff !important;
    text-shadow:
        0 0 6px rgba(167, 139, 250, 0.9),
        0 0 14px rgba(100, 108, 255, 0.5);
    animation: room3dPulse 0.6s ease-in-out infinite alternate;
}

/* Active press */
button.room-3d-btn:active,
.room-header .room-3d-btn:active {
    transform: scale(0.92) !important;
}

/* Idle: subtle glow breathing */
@keyframes room3dGlow {
    0%, 100% {
        text-shadow: 0 0 6px rgba(139, 92, 246, 0.3);
        color: #c4b5fd;
    }
    50% {
        text-shadow: 0 0 10px rgba(139, 92, 246, 0.6);
        color: #ddd6fe;
    }
}

/* Hover: bright pulse */
@keyframes room3dPulse {
    0% {
        text-shadow:
            0 0 4px rgba(167, 139, 250, 0.7),
            0 0 10px rgba(100, 108, 255, 0.3);
    }
    100% {
        text-shadow:
            0 0 8px rgba(167, 139, 250, 1),
            0 0 20px rgba(100, 108, 255, 0.6);
    }
}

/* Modal overlay */
.room-card-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(8px);
    z-index: 10000;
    overflow-y: auto !important;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
}

/* Show modal when .modal-open class is added */
.room-card-modal-overlay.modal-open {
    display: block !important;
    overflow-y: auto !important;
}

/* Modal container */
.room-card-modal-container {
    position: relative !important;
    width: calc(100% - 40px);
    max-width: 900px;
    margin: 40px auto;
    margin-bottom: 100px; /* Extra space at bottom */
    background: linear-gradient(145deg, #1a1d23, #12151a);
    border: 1px solid rgba(100, 108, 255, 0.2);
    border-radius: 20px;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.6);
    min-height: auto; /* Let content determine height */
}

/* Modal content */
#roomCardModalContent {
    padding: 24px;
}

/* Scrollbar styling for overlay */
.room-card-modal-overlay::-webkit-scrollbar {
    width: 8px;
}

.room-card-modal-overlay::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
}

.room-card-modal-overlay::-webkit-scrollbar-thumb {
    background: rgba(100, 108, 255, 0.4);
    border-radius: 4px;
}

.room-card-modal-overlay::-webkit-scrollbar-thumb:hover {
    background: rgba(100, 108, 255, 0.6);
}

/* Close button */
.room-card-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 24px;
    cursor: pointer;
    border-radius: 50%;
    z-index: 10;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}


/* Modal content */
.room-card-modal-content {
    padding: 32px;
}

/* Grid layout */
.room-card-modal-grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 24px;
}

.room-card-modal-left {
    min-width: 0;
}

.room-card-modal-right {
    min-width: 0;
}

/* Info grid */
.room-card-modal-info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.room-card-modal-info-item {
    background: rgba(30, 33, 40, 0.8);
    padding: 12px;
    border-radius: 10px;
}

.room-card-modal-info-label {
    font-size: 11px;
    color: #6b7280;
    margin-bottom: 4px;
}

.room-card-modal-info-label i {
    margin-right: 4px;
}

.room-card-modal-info-value {
    font-weight: 600;
    font-size: 13px;
    color: white;
    word-break: break-all;
}

/* Tracking section */
.room-card-modal-tracking {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    padding: 16px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(100, 108, 255, 0.1), rgba(167, 139, 250, 0.1));
    border: 1px solid rgba(100, 108, 255, 0.2);
}

/* Responsive */
@media (max-width: 768px) {
    .room-card-modal-grid {
        grid-template-columns: 1fr;
    }
    
    .room-card-modal-info-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .room-card-modal-tracking {
        grid-template-columns: 1fr;
    }
    
    .room-card-modal-content {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .room-card-modal-info-grid {
        grid-template-columns: 1fr;
    }
    
    .room-card-modal-container {
        border-radius: 12px;
    }
}

/* Room Card Modal - Clean Design */

/* Header Section */
.rcm-header {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.rcm-header-image {
    width: 160px;
    height: 120px;
    object-fit: cover;
    border-radius: 12px;
    flex-shrink: 0;
}

.rcm-header-info {
    flex: 1;
    min-width: 0;
}

.rcm-header-top {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.rcm-title {
    font-size: 20px;
    font-weight: 700;
    color: white;
    margin: 0;
    line-height: 1.3;
}

.rcm-badges {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.rcm-badge {
    padding: 3px 8px;
    font-size: 10px;
    font-weight: 700;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.rcm-badge-rating { background: rgba(239, 68, 68, 0.2); color: #f87171; }
.rcm-badge-guests { background: rgba(59, 130, 246, 0.2); color: #60a5fa; }
.rcm-badge-age { background: rgba(168, 85, 247, 0.2); color: #c084fc; }
.rcm-badge-ap-plus { background: rgba(239, 68, 68, 0.2); color: #f87171; }
.rcm-badge-friends { background: rgba(34, 197, 94, 0.2); color: #4ade80; }
.rcm-badge-vip { background: rgba(167, 139, 250, 0.2); color: #a78bfa; }

.rcm-owner {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #9ca3af;
    font-size: 14px;
    margin-bottom: 12px;
}

.rcm-owner i {
    color: #646cff;
    font-size: 12px;
}

.rcm-actions {
    display: flex;
    gap: 8px;
}

.rcm-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 16px;
    min-width: 120px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s;
    white-space: nowrap;
}

.rcm-btn-primary {
    background: linear-gradient(135deg, #646cff, #4f46e5);
    color: white;
}

.rcm-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(100, 108, 255, 0.4);
}

.rcm-btn-secondary {
    background: rgba(167, 139, 250, 0.2);
    color: #a78bfa;
    border: 1px solid rgba(167, 139, 250, 0.3);
}

.rcm-btn-secondary:hover {
    background: rgba(167, 139, 250, 0.3);
}

/* Stats Row */
.rcm-stats-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    padding: 16px 20px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    margin-bottom: 16px;
}

.rcm-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.rcm-stat-value {
    font-size: 16px;
    font-weight: 700;
    color: white;
    line-height: 1.2;
}

.rcm-stat-label {
    font-size: 11px;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 2px;
}

.rcm-stat-divider {
    width: 1px;
    height: 32px;
    background: rgba(255, 255, 255, 0.1);
}

/* Description */
.rcm-description {
    padding: 12px 16px;
    background: rgba(100, 108, 255, 0.05);
    border-left: 3px solid rgba(100, 108, 255, 0.3);
    border-radius: 0 8px 8px 0;
    margin-bottom: 16px;
}

.rcm-description p {
    margin: 0;
    color: #9ca3af;
    font-size: 13px;
    line-height: 1.6;
    max-height: 60px;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Details Collapsible */
.rcm-details {
    margin-bottom: 16px;
}

.rcm-details-summary {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    color: #6b7280;
    font-size: 13px;
    cursor: pointer;
    list-style: none;
    transition: all 0.2s;
}

.rcm-details-summary::-webkit-details-marker {
    display: none;
}

.rcm-details-summary:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #9ca3af;
}

.rcm-details[open] .rcm-details-summary {
    border-radius: 8px 8px 0 0;
    border-bottom-color: transparent;
}

.rcm-details-content {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-top: none;
    border-radius: 0 0 8px 8px;
}

.rcm-detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.rcm-detail-label {
    font-size: 12px;
    color: #6b7280;
}

.rcm-detail-value {
    font-size: 13px;
    color: #d1d5db;
    font-weight: 500;
}

/* Section Toggles */
.rcm-toggles {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.rcm-toggle-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    font-size: 13px;
    font-weight: 600;
    color: #9ca3af;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
}

.rcm-toggle-btn:hover {
    background: rgba(100, 108, 255, 0.1);
    border-color: rgba(100, 108, 255, 0.3);
    color: white;
}

.rcm-toggle-btn.active {
    background: linear-gradient(135deg, rgba(100, 108, 255, 0.2), rgba(100, 108, 255, 0.1));
    border-color: rgba(100, 108, 255, 0.4);
    color: white;
}

.rcm-toggle-btn.active .rcm-chevron {
    transform: rotate(180deg);
}

.rcm-toggle-btn i:first-child {
    font-size: 14px;
    color: #646cff;
}

.rcm-toggle-products i:first-child {
    color: #a78bfa;
}

.rcm-chevron {
    font-size: 11px;
    opacity: 0.6;
    transition: transform 0.3s;
}

.rcm-count {
    padding: 2px 8px;
    font-size: 11px;
    font-weight: 700;
    background: rgba(167, 139, 250, 0.25);
    color: #c4b5fd;
    border-radius: 8px;
}

/* Sections */
.rcm-section {
    display: none;
    margin-top: 20px;
    padding-top: 20px;
    padding-bottom: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    overflow: visible;
    height: auto;
    min-height: auto;
}

.rcm-section-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.rcm-section-title {
    font-size: 15px;
    font-weight: 700;
    color: white;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.rcm-section-title i {
    color: #646cff;
    font-size: 14px;
}

.rcm-section-title.rcm-purple i {
    color: #a78bfa;
}

/* Period Buttons */
.rcm-period-btns {
    display: flex;
    gap: 6px;
}

/* Overview Grid */
.rcm-overview-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 16px;
    overflow: visible;
}

/* Charts Grid */
.rcm-charts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    overflow: visible;
}

.rcm-chart-card {
    background: rgba(0, 0, 0, 0.25);
    padding: 14px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.rcm-chart-title {
    font-size: 12px;
    font-weight: 600;
    color: #d1d5db;
    margin: 0 0 10px 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.rcm-chart-title i {
    color: #646cff;
    font-size: 11px;
}

.rcm-chart-title.rcm-pink i { color: #ec4899; }
.rcm-chart-title.rcm-blue i { color: #3b82f6; }
.rcm-chart-title.rcm-purple i { color: #a78bfa; }

.rcm-chart-container {
    height: 140px;
}

/* Products Grid */
.rcm-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 10px;
    overflow: visible;
}

.rcm-products-stats {
    font-size: 12px;
    font-weight: 400;
    color: #6b7280;
    margin-left: 4px;
}

.rcm-loading {
    grid-column: 1 / -1;
    text-align: center;
    padding: 32px;
}

.rcm-loading i {
    font-size: 28px;
    color: #646cff;
}

.rcm-loading p {
    color: #6b7280;
    margin-top: 10px;
    font-size: 13px;
}

/* Room Card Modal - Period Buttons */
.rcm-period-btn {
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 600;
    border: 1px solid rgba(100, 108, 255, 0.3);
    background: transparent;
    color: #9ca3af;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.rcm-period-btn:hover {
    border-color: rgba(100, 108, 255, 0.5);
    color: white;
}

.rcm-period-btn.active {
    background: linear-gradient(135deg, #646cff, #a78bfa);
    border-color: transparent;
    color: white;
}

/* Room Card Modal - Responsive */
@media (max-width: 768px) {
    .room-card-modal-container {
        max-width: 100%;
        margin: 8px;
        border-radius: 16px;
    }
    
    #roomCardModalContent {
        padding: 16px;
    }
    
    .rcm-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .rcm-header-image {
        width: 100%;
        max-width: 280px;
        height: 160px;
    }
    
    .rcm-header-top {
        flex-direction: column;
        align-items: center;
    }
    
    .rcm-actions {
        justify-content: center;
    }
    
    .rcm-stats-row {
        flex-wrap: wrap;
        gap: 16px;
    }
    
    .rcm-stat-divider {
        display: none;
    }
    
    .rcm-stat {
        min-width: 60px;
    }
    
    .rcm-details-content {
        grid-template-columns: 1fr;
    }
    
    .rcm-charts-grid {
        grid-template-columns: 1fr;
    }
    
    .rcm-overview-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .rcm-products-grid {
        grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
    }
    
    .rcm-period-btns {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }
    
    /* Toggle buttons - stack vertically on mobile */
    .rcm-toggles {
        flex-direction: column;
        gap: 8px;
    }
    
    .rcm-toggle-btn {
        width: 100%;
        justify-content: center;
    }
    
    /* Section header - stack on mobile */
    .rcm-section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    /* Ensure sections display properly when expanded */
    .rcm-section {
        overflow: visible !important;
        min-height: auto;
    }
}

@media (max-width: 480px) {
    /* Modal - full width on small mobile, scrollable */
    .room-card-modal-overlay {
        padding: 10px 0;
        padding-bottom: 100px; /* Extra space at bottom for scrolling */
        overflow-y: auto !important;
        overflow-x: hidden !important;
        -webkit-overflow-scrolling: touch !important;
    }
    
    .room-card-modal-container {
        width: 100%;
        max-width: 100%;
        margin: 0 auto;
        margin-bottom: 100px; /* Extra space at bottom */
        border-radius: 0;
        border: none;
        min-height: 0; /* Important: allow shrinking */
        height: auto !important;
        max-height: none !important; /* No max height restriction */
    }
    
    .room-card-modal-close {
        position: fixed;
        top: 10px;
        right: 10px;
        z-index: 10001;
        background: rgba(0, 0, 0, 0.9);
        border: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    #roomCardModalContent {
        padding: 12px;
        padding-top: 16px;
        padding-bottom: 100px; /* Extra padding at bottom */
        min-height: 0;
        height: auto !important;
        max-height: none !important;
        overflow: visible !important;
    }
    
    .rcm-title {
        font-size: 18px;
    }
    
    .rcm-btn {
        padding: 8px 12px;
        font-size: 12px;
        min-width: auto;
        flex: 1;
    }
    
    .rcm-actions {
        flex-wrap: wrap;
        width: 100%;
    }
    
    .rcm-stats-row {
        padding: 12px;
        gap: 12px;
    }
    
    .rcm-stat-value {
        font-size: 13px;
    }
    
    .rcm-stat-label {
        font-size: 10px;
    }
    
    .rcm-overview-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    
    .rcm-period-btn {
        padding: 6px 10px;
        font-size: 11px;
    }
    
    .rcm-toggle-btn {
        padding: 12px 16px;
        font-size: 14px;
        width: 100%;
    }
    
    .rcm-chart-container {
        height: 150px;
    }
    
    .rcm-chart-card {
        padding: 12px;
    }
    
    .rcm-products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }
    
    .rcm-section {
        margin-top: 16px;
        padding-top: 16px;
        padding-bottom: 40px;
        overflow: visible !important;
        height: auto !important;
        max-height: none !important;
    }
    
    .rcm-section-title {
        font-size: 14px;
    }
    
    /* Ensure charts and grids are visible */
    .rcm-charts-grid,
    .rcm-overview-grid,
    .rcm-products-grid {
        overflow: visible !important;
        height: auto !important;
        max-height: none !important;
    }
}


/* ============================================================================
   AVATAR PROFILE MODAL STYLES
   Moved from inline styles in index.php for better caching and maintainability
   ============================================================================ */

#avatarProfileModal .profile-card {
    background: linear-gradient(145deg, #161b22, #0d1117);
    border: 1px solid rgba(100, 108, 255, 0.15);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

#avatarProfileModal .profile-card-header {
    padding: 16px 24px;
    background: linear-gradient(90deg, rgba(100, 108, 255, 0.1), transparent);
    border-bottom: 1px solid rgba(100, 108, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    overflow: visible;
}

#avatarProfileModal .profile-name-badges {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    flex: 1;
    min-width: 0;
}

#avatarProfileModal .profile-username {
    font-size: 1.4rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.02em;
}

#avatarProfileModal .badges-container {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

#avatarProfileModal .badge {
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

#avatarProfileModal .badge i {
    margin-right: 4px;
}

#avatarProfileModal .badge-vip {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.3), rgba(245, 158, 11, 0.2));
    color: #fbbf24;
    border: 1px solid rgba(251, 191, 36, 0.3);
}

#avatarProfileModal .badge-creator {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.3), rgba(139, 92, 246, 0.2));
    color: #a855f7;
    border: 1px solid rgba(168, 85, 247, 0.3);
}

#avatarProfileModal .badge-ap {
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.3), rgba(219, 39, 119, 0.2));
    color: #ec4899;
    border: 1px solid rgba(236, 72, 153, 0.3);
}

#avatarProfileModal .badge-ageverified {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.3), rgba(22, 163, 74, 0.2));
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

#avatarProfileModal .badge-adult {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.3), rgba(220, 38, 38, 0.2));
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

#avatarProfileModal .badge-staff {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.3), rgba(37, 99, 235, 0.2));
    color: #3b82f6;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

#avatarProfileModal .badge-legacy {
    background: linear-gradient(135deg, rgba(217, 70, 239, 0.3), rgba(192, 38, 211, 0.2));
    color: #d946ef;
    border: 1px solid rgba(217, 70, 239, 0.3);
}

#avatarProfileModal .profile-close-btn {
    color: #6b7280;
    font-size: 1.75rem;
    cursor: pointer;
    transition: all 0.2s;
    line-height: 1;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    flex-shrink: 0;
    margin-left: auto;
}

#avatarProfileModal .profile-close-btn:hover {
    color: #ef4444;
    transform: scale(1.1);
}

#avatarProfileModal .profile-main {
    display: grid;
    grid-template-columns: 200px 1fr 200px;
    gap: 24px;
    padding: 24px;
}

#avatarProfileModal .profile-avatar-section {
    text-align: center;
}

#avatarProfileModal .profile-avatar-img {
    width: 180px;
    height: 180px;
    border-radius: 12px;
    object-fit: cover;
    background: #1a1d23;
    border: 3px solid rgba(100, 108, 255, 0.3);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

#avatarProfileModal .profile-center-info {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

#avatarProfileModal .profile-tagline-box {
    background: linear-gradient(135deg, rgba(100, 108, 255, 0.08), rgba(168, 85, 247, 0.05));
    border: 1px solid rgba(100, 108, 255, 0.15);
    border-radius: 10px;
    padding: 14px 18px;
    color: #d1d5db;
    font-size: 0.95rem;
    line-height: 1.6;
}

#avatarProfileModal .profile-tagline-box:empty {
    display: none;
}

#avatarProfileModal .profile-meta-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: right;
}

#avatarProfileModal .meta-item {
    color: #9ca3af;
    font-size: 0.85rem;
}

#avatarProfileModal .meta-item strong {
    color: #e5e7eb;
    font-weight: 600;
}

#avatarProfileModal .meta-location {
    font-size: 1.1rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
    justify-content: flex-end;
}

#avatarProfileModal .country-flag {
    display: inline-block;
    vertical-align: middle;
    margin-right: 6px;
    border-radius: 2px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

#avatarProfileModal .user-id-display {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(100, 108, 255, 0.1);
    border: 1px solid rgba(100, 108, 255, 0.2);
    border-radius: 8px;
    padding: 6px 12px;
    font-size: 0.85rem;
    margin-top: 12px;
    justify-content: center;
}

#avatarProfileModal .user-id-label {
    color: #9ca3af;
    font-weight: 500;
}

#avatarProfileModal .user-id-value {
    color: #646cff;
    font-weight: 700;
    font-family: 'JetBrains Mono', monospace;
}

#avatarProfileModal .copy-btn {
    background: rgba(100, 108, 255, 0.2);
    border: none;
    color: #646cff;
    padding: 4px 8px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
}

#avatarProfileModal .copy-btn:hover {
    background: rgba(100, 108, 255, 0.4);
}

#avatarProfileModal .profile-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    border-top: 1px solid rgba(100, 108, 255, 0.1);
}

#avatarProfileModal .info-section {
    padding: 20px 24px;
    border-right: 1px solid rgba(100, 108, 255, 0.1);
    border-bottom: 1px solid rgba(100, 108, 255, 0.1);
    position: relative;
}

#avatarProfileModal .info-section:nth-child(2n) {
    border-right: none;
}

#avatarProfileModal .info-section:nth-last-child(-n+2) {
    border-bottom: none;
}

#avatarProfileModal .info-section-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

#avatarProfileModal .info-section-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

#avatarProfileModal .info-section.basic .info-section-icon {
    background: rgba(59, 130, 246, 0.15);
    color: #3b82f6;
}

#avatarProfileModal .info-section.relationship .info-section-icon {
    background: rgba(236, 72, 153, 0.15);
    color: #ec4899;
}

#avatarProfileModal .info-section.vip .info-section-icon {
    background: rgba(251, 191, 36, 0.15);
    color: #fbbf24;
}

#avatarProfileModal .info-section.stats .info-section-icon {
    background: rgba(168, 85, 247, 0.15);
    color: #a855f7;
}

#avatarProfileModal .info-section-title {
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

#avatarProfileModal .info-rows {
    display: flex;
    flex-direction: column;
}

#avatarProfileModal .info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

#avatarProfileModal .info-row:last-child {
    border-bottom: none;
}

#avatarProfileModal .info-label {
    color: #9ca3af;
    font-size: 0.8rem;
    font-weight: 500;
}

#avatarProfileModal .info-value {
    color: #e5e7eb;
    font-size: 0.85rem;
    font-weight: 600;
}

#avatarProfileModal .info-value.success {
    color: #10b981;
}

#avatarProfileModal .info-value.warning {
    color: #f59e0b;
}

#avatarProfileModal .section-changed::after {
    content: '';
    position: absolute;
    top: 12px;
    right: 12px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #646cff;
    box-shadow: 0 0 8px #646cff;
    animation: avatar-pulse-dot 1.5s infinite;
}

@keyframes avatar-pulse-dot {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.3); opacity: 0.6; }
}

#avatarProfileModal .changes-panel {
    background: linear-gradient(145deg, rgba(26, 29, 35, 0.8), rgba(13, 17, 23, 0.8));
    border: 1px solid rgba(100, 108, 255, 0.15);
    border-radius: 12px;
    padding: 16px 20px;
    margin: 0 24px 16px 24px;
}

#avatarProfileModal .changes-panel-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    color: #ffffff;
    font-weight: 600;
}

#avatarProfileModal .changes-panel-header i {
    color: #646cff;
}

#avatarProfileModal .changes-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

#avatarProfileModal .change-item {
    background: rgba(100, 108, 255, 0.05);
    border-left: 3px solid #646cff;
    border-radius: 0 8px 8px 0;
    padding: 10px 14px;
}

#avatarProfileModal .change-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 6px;
}

#avatarProfileModal .change-label {
    font-size: 0.9rem;
}

#avatarProfileModal .change-detail {
    color: #d1d5db;
    font-size: 0.85rem;
    padding-left: 24px;
    margin-top: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
}

#avatarProfileModal .change-thumbnail {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    object-fit: cover;
    border: 2px solid rgba(100, 108, 255, 0.3);
}

#avatarProfileModal .timeline-card {
    background: linear-gradient(90deg, rgba(100, 108, 255, 0.08), transparent);
    border-bottom: 1px solid rgba(100, 108, 255, 0.1);
    padding: 12px 24px;
    margin: 0;
}

#avatarProfileModal .timeline-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: linear-gradient(90deg, rgba(100, 108, 255, 0.3), rgba(168, 85, 247, 0.3));
}

#avatarProfileModal .timeline-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #ffffff;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3), 0 0 0 3px rgba(100, 108, 255, 0.3);
}

#avatarProfileModal .timeline-slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #ffffff;
    cursor: pointer;
    border: none;
}

/* Avatar Profile Modal - Responsive */
@media (max-width: 900px) {
    #avatarProfileModal .profile-main {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 16px;
    }
    #avatarProfileModal .profile-avatar-section {
        justify-self: center;
    }
    #avatarProfileModal .profile-meta-section {
        text-align: center;
        justify-content: center;
    }
    #avatarProfileModal .meta-location {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    #avatarProfileModal .profile-info-grid {
        grid-template-columns: 1fr;
    }
    #avatarProfileModal .info-section {
        border-right: none;
    }
    #avatarProfileModal .info-section:last-child {
        border-bottom: none;
    }
}

@media (max-width: 640px) {
    #avatarProfileModal > div {
        padding: 0 8px;
        margin: 1rem auto;
    }
    #avatarProfileModal .profile-card-header {
        padding: 12px 16px;
        flex-wrap: wrap;
        gap: 8px;
    }
    #avatarProfileModal .profile-username {
        font-size: 1.1rem;
    }
    #avatarProfileModal .profile-name-badges {
        gap: 8px;
    }
    #avatarProfileModal .badges-container {
        gap: 4px;
    }
    #avatarProfileModal .badge {
        padding: 3px 6px;
        font-size: 0.6rem;
    }
    #avatarProfileModal .profile-main {
        padding: 12px;
        gap: 12px;
    }
    #avatarProfileModal .profile-avatar-img {
        width: 120px;
        height: 120px;
    }
    #avatarProfileModal .profile-tagline-box {
        padding: 10px 14px;
        font-size: 0.85rem;
    }
    #avatarProfileModal .meta-location {
        font-size: 0.95rem;
    }
    #avatarProfileModal .meta-item {
        font-size: 0.75rem;
    }
    #avatarProfileModal .info-section {
        padding: 14px 16px;
    }
    #avatarProfileModal .info-section-icon {
        width: 28px;
        height: 28px;
        font-size: 0.8rem;
    }
    #avatarProfileModal .info-section-title {
        font-size: 0.8rem;
    }
    #avatarProfileModal .info-label {
        font-size: 0.75rem;
    }
    #avatarProfileModal .info-value {
        font-size: 0.8rem;
    }
    #avatarProfileModal .user-id-display {
        padding: 4px 8px;
        font-size: 0.75rem;
    }
    #avatarProfileModal .changes-panel {
        margin: 0 12px 12px 12px;
        padding: 12px 14px;
    }
    #avatarProfileModal .timeline-card {
        padding: 10px 16px;
    }
}

/* ============================================================================
   LIVE UPDATES MODAL — MOBILE RESPONSIVE
   ============================================================================ */

/* Stack two-column grids on small screens */
@media (max-width: 380px) {
    .lu-modal-grid {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
    }
    
    /* Reduce modal padding on very small screens */
    #liveUpdatesModal > div > div:nth-child(2) {
        padding: 12px 14px !important;
    }
    #liveUpdatesModal > div > div:first-child {
        padding: 10px 14px !important;
    }
    #liveUpdatesModal > div > div:last-child {
        padding: 10px 14px !important;
    }
}

/* ============================================================================
   SEARCH CARD — MOBILE PADDING
   ============================================================================ */

@media (max-width: 480px) {
    .search-section .card-body {
        padding: 12px 14px !important;
    }
}

/* ============================================================================
   OUTFIT PRODUCTS — Unified Design (matching avatar-outfits)
   ============================================================================ */

/* Modal title */
#modalProductContent > h2,
#modalProductDetails > h2 {
    color: #fff;
    font-size: 22px;
    margin: 0 0 16px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}
#modalProductContent > h2 i,
#modalProductDetails > h2 i {
    color: #646cff;
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}

/* Product Card (scoped to .products-grid to avoid leaking into furniture cards) */
.products-grid .product-item {
    background: linear-gradient(145deg, rgba(26, 29, 35, 0.6), rgba(18, 21, 26, 0.6));
    border: 1px solid rgba(100, 108, 255, 0.2);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}
.products-grid .product-item:hover {
    transform: translateY(-2px);
    border-color: rgba(100, 108, 255, 0.4);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

/* Product Image */
.products-grid .product-item .product-image,
.products-grid .product-item img.product-image {
    width: 100%;
    height: 200px;
    object-fit: contain;
    background: rgba(0, 0, 0, 0.3);
    display: block;
}

/* Product Name */
.products-grid .product-item .product-name {
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 12px 12px 0 12px;
}

/* Product Creator */
.products-grid .product-item .product-creator {
    color: #9ca3af;
    font-size: 11px;
    margin-bottom: 8px;
    padding: 0 12px;
}

/* Product Price */
.products-grid .product-item .product-price {
    font-size: 13px;
    font-weight: 700;
    color: #10b981;
    padding: 0 12px;
    margin-bottom: 8px;
}

/* Button Row (Classic / Next) */
.products-grid .product-item .button-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 6px;
    padding: 0 12px;
}

/* Button Row Single (Try On) */
.products-grid .product-item .button-row-single {
    padding: 0 12px 12px 12px;
}

/* Product Link Buttons (Classic / Next) */
.products-grid .product-item .product-link {
    flex: 1 1 calc(50% - 3px);
    min-width: 0;
    padding: 8px 4px;
    background: rgba(100, 108, 255, 0.15);
    border: 1px solid rgba(100, 108, 255, 0.3);
    border-radius: 6px;
    color: #646cff;
    text-decoration: none;
    font-size: 11px;
    font-weight: 600;
    text-align: center;
    transition: all 0.2s;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.products-grid .product-item .product-link:hover {
    background: rgba(100, 108, 255, 0.25);
    border-color: rgba(100, 108, 255, 0.5);
}

/* Try On Button */
.products-grid .product-item .try-on-btn {
    display: block;
    padding: 8px;
    background: linear-gradient(135deg, #10b981, #059669);
    border-radius: 6px;
    color: white;
    text-decoration: none;
    font-size: 11px;
    font-weight: 600;
    text-align: center;
    transition: all 0.2s;
    border: none;
}
.products-grid .product-item .try-on-btn:hover {
    background: linear-gradient(135deg, #34d399, #10b981);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

/* Hidden Product Buttons */
.products-grid .product-item .hidden-product-btn {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
}
.products-grid .product-item .hidden-product-btn:hover {
    background: rgba(239, 68, 68, 0.25);
    border-color: rgba(239, 68, 68, 0.5);
}

/* Product Summary / Total */
.product-total {
    margin-top: 24px;
    padding: 20px;
    background: linear-gradient(135deg, rgba(100, 108, 255, 0.1), rgba(100, 108, 255, 0.05));
    border: 1px solid rgba(100, 108, 255, 0.3);
    border-radius: 12px;
    text-align: center;
}
.product-total-label {
    color: #9ca3af;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
}
.product-total-amount {
    color: #fff;
    font-size: 32px;
    font-weight: 800;
}

/* Gated Products (non-premium locked cards) */
.vu-hidden-gated {
    position: relative;
    overflow: hidden;
}
.vu-gated-shimmer {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(251, 191, 36, 0.06), transparent);
    animation: vuGatedShimmer 3s ease-in-out infinite;
    z-index: 5;
    pointer-events: none;
}
.vu-gated-upgrade-btn {
    display: block;
    margin: 8px 12px 12px;
    padding: 10px;
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.2), rgba(245, 158, 11, 0.15));
    border: 1px solid rgba(251, 191, 36, 0.4);
    border-radius: 8px;
    color: #fbbf24;
    text-decoration: none;
    font-size: 12px;
    font-weight: 700;
    text-align: center;
    transition: all 0.2s;
}
.vu-gated-upgrade-btn:hover {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.3), rgba(245, 158, 11, 0.25));
    box-shadow: 0 4px 12px rgba(251, 191, 36, 0.2);
}
@keyframes vuGatedFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes vuGatedShimmer {
    0%   { left: -100%; }
    50%  { left: 100%; }
    100% { left: 100%; }
}

/* Responsive — Outfit Products */
@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 12px;
    }
    .products-grid .product-item .product-image,
    .products-grid .product-item img.product-image {
        height: 160px;
    }
}
@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    .products-grid .product-item .product-image,
    .products-grid .product-item img.product-image {
        height: 130px;
    }
    .products-grid .product-item .product-name {
        font-size: 12px;
        padding: 8px 8px 0 8px;
    }
    .products-grid .product-item .product-creator {
        font-size: 10px;
        padding: 0 8px;
    }
    .products-grid .product-item .button-row {
        padding: 0 8px;
        gap: 4px;
    }
    .products-grid .product-item .button-row-single {
        padding: 0 8px 8px 8px;
    }
    .products-grid .product-item .product-price {
        padding: 0 8px;
        font-size: 12px;
    }
}
