@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary: #4f46e5; /* Indigo */
    --primary-gradient: linear-gradient(135deg, #4f46e5 0%, #8b5cf6 100%);
    --secondary: #0f172a; /* Dark Slate */
    --accent: #f43f5e; /* Rose */
    --bg-body: #f8fafc;
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: 1px solid rgba(255, 255, 255, 0.5);
    --shadow-soft: 0 10px 40px -10px rgba(0,0,0,0.08);
    --shadow-hover: 0 20px 40px -10px rgba(79, 70, 229, 0.15);
}

body {
    background-color: var(--bg-body);
    font-family: 'Outfit', sans-serif !important; 
    color: #334155;
    overflow-x: hidden;
}
/* --- Light/Gray Section --- */
.gray-section {
    background: #eef2f7;
    color: #334155; /* Slate 700 */
}

.gray-section h2, .gray-section h3 {
    color: #0f172a; /* Slate 900 */
    font-weight: 800;
}

.gray-section .card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.gray-section .btn-primary {
    background-color: #4f46e5;
    border-color: #4f46e5;
    color: white;
}

/* --- Dark Section --- */
.dark-section {
    background: #0f172a; /* Slate 900 */
    color: #94a3b8; /* Slate 400 */
}

.dark-section h2, .dark-section h3 {
    color: #f8fafc; /* Slate 50 */
    font-weight: 800;
}

.dark-section .card {
    background: #1e293b; /* Slate 800 */
    border: 1px solid #334155; /* Slate 700 */
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
}

.dark-section .text-highlight {
    color: #818cf8; /* Indigo 400 */
}
.gray-section {
        background: #eef2f7;
        color: #334155;
    }

    /* --- 2. Card Style --- */
    .premium-feature-card {
        background: #ffffff;
        border: 1px solid #e2e8f0;
        border-radius: 24px; /* Big rounded corners */
        padding: 1.5rem;     /* Slightly tighter padding to fit the image */
        height: 100%;
        position: relative;
        transition: all 0.3s ease;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }

    .premium-feature-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 20px 40px -5px rgba(15, 23, 42, 0.1);
        border-color: #4f46e5;
    }

    /* --- 3. New Image Styling --- */
    .feature-img-container {
        width: 100%;
        height: 180px; /* Fixed height for uniformity */
        border-radius: 16px; /* Rounded corners for the image itself */
        overflow: hidden;
        margin-bottom: 1.5rem;
    }

    .feature-img {
        width: 100%;
        height: 100%;
        object-fit: cover; /* Ensures image fills the box without stretching */
        transition: transform 0.5s ease;
    }

    /* Subtle zoom effect on image hover */
    .premium-feature-card:hover .feature-img {
        transform: scale(1.05);
    }

    /* --- 4. Typography --- */
    .feature-title {
        color: #0f172a;
        font-weight: 800;
        font-size: 1.25rem;
        margin-bottom: 0.5rem;
    }

    /* --- 5. Circle Arrow Button --- */
    .circle-arrow-btn {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        background-color: #f1f5f9;
        color: #0f172a;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.3s ease;
        margin-top: 15px;
    }

    .premium-feature-card:hover .circle-arrow-btn {
        background-color: #4f46e5;
        color: #ffffff;
    }

.dark-section .btn-primary {
    background-color: #6366f1; /* Indigo 500 */
    border-color: #6366f1;
    color: white;
}
.dark-section .btn-primary:hover {
    background-color: #818cf8; /* Indigo 400 */
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.4); /* Glow effect */
}
/* --- GRAY SECTION REDESIGN --- */
.gray-section {
    background: #eef2f7; /* Cool Gray Background */
    position: relative;
}
.gray-section1 {
    background: #5c5c5c; /* Cool Gray Background */
    position: relative;
}
.ls-1 {
    letter-spacing: 1px;
}

/* The Card Style */
.benefit-card {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid rgba(0,0,0,0.04);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border-color: rgba(99, 102, 241, 0.3); /* Subtle Indigo Border on Hover */
}

/* The Icon Box */
.icon-box {
    width: 60px;
    height: 60px;
    background: rgba(99, 102, 241, 0.1); /* Light Indigo BG */
    color: var(--primary); /* Indigo Icon */
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

/* Icon hover effect */
.benefit-card:hover .icon-box {
    background: var(--primary);
    color: #ffffff;
}

.benefit-card h4 {
    font-weight: 700;
    margin-bottom: 8px;
    color: #1e293b; /* Dark Slate for heading */
}

/* --- Interactive Navbar --- */
.navbar-glass {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    padding: 15px 0;
    transition: all 0.3s ease;
    z-index: 1000;
}

.brand-text {
    font-weight: 800;
    font-size: 1.5rem;
    background: var(--primary-gradient);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.5px;
}

.nav-btn-outline {
    border: 2px solid #e2e8f0;
    border-radius: 50px;
    padding: 8px 25px;
    background: white;
    font-weight: 600;
    color: var(--secondary);
    transition: all 0.3s;
}

.nav-btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
}

.nav-btn-fill {
    background: var(--primary);
    color: white;
    border-radius: 50px;
    padding: 8px 25px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.3);
    transition: all 0.3s;
}

.nav-btn-fill:hover {
    background: var(--secondary);
    color: white;
    transform: translateY(-2px);
    text-decoration: none;
}

/* --- HERO SECTION (Cinematic Look) --- */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 620px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 0;
    padding-top: 90px;
    overflow: hidden;
}

/* The Background Image */
/* 1. The Container: Clips the overflowing zoom edges */
.hero-bg-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden; /* Crucial: Hides the image as it scales up */
    z-index: 0;
    background-color: #000; /* Fallback color */
}

/* 2. The Shared Slide Styles */
.hero-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0; /* Hidden by default */
    z-index: 0;
    
    /* Animation: Name | Duration | Timing | Infinite Loop */
    animation: imageCycle 18s linear infinite; 
}

/* 3. The Specific Images (Add your URLs here) */
.slide-1 {
    /* Video/Audio setup */
    background-image:  
                      url('https://images.unsplash.com/photo-1478737270239-2f02b77fc618?auto=format&fit=crop&w=2000&q=80');
    animation-delay: 0s;
}

.slide-2 {
    /* Photography setup */
    background-image: 
                      url('https://images.unsplash.com/photo-1516035069371-29a1b244cc32?auto=format&fit=crop&w=2000&q=80');
    animation-delay: 6s; /* Starts after 6 seconds */
}

.slide-3 {
    /* Creative space setup */
    background-image: 
                      url('https://images.unsplash.com/photo-1759417501792-0d188b64b774?auto=format&fit=crop&w=2000&q=80');
    animation-delay: 12s; /* Starts after 12 seconds */
}

/* 4. The Animation Keyframes */
@keyframes imageCycle {
    0% {
        transform: scale(1);
        opacity: 0;
    }
    5% {
        opacity: 1; /* Fade in quickly */
    }
    33% {
        opacity: 1; /* Stay visible for 1/3 of the total time */
    }
    38% {
        opacity: 0; /* Fade out */
        transform: scale(1.1); /* Zoomed in by end of turn */
    }
    100% {
        opacity: 0;
        transform: scale(1); /* Reset */
    }
}
@keyframes slowZoom {
    from { transform: scale(1); }
    to { transform: scale(1.1); }
}

/* The Dark Gradient Overlay */
.hero-bg-container::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    /* This gradient makes the text readable and blends the bottom into the body color */
    background: linear-gradient(
        180deg, 
        rgba(11, 15, 25, 0) 0%,   /* Top: See-through dark */
        rgba(11, 15, 25, 0.385) 40%,  /* Middle: Darker */
        rgba(11, 15, 25, 0.652)  60%         /* Bottom: Matches body background exactly */
    );
    z-index: 1;
}

/* Typography Overrides for Hero */
.hero-title {
    text-shadow: 0 4px 20px rgba(0,0,0,0.8);
    font-weight: 800;
    letter-spacing: -1px;
}

.hero-subtitle {
    text-shadow: 0 2px 10px rgba(0,0,0,0.8);
    font-weight: 400;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* --- SEARCH PILL (Glass Effect) --- */

.search-wrapper:hover {
    transform: translateY(-2px);
    box-shadow: 0 25px 60px rgba(0,0,0,0.6);
    border-color: rgba(255, 255, 255, 0.3);
}

.search-wrapper input {
    height: 55px; /* Taller input */
    font-size: 1.1rem;
    color: white !important;
    background: transparent;
    font-weight: 500;
}

.search-wrapper input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

/* The Search Button */
.btn-search {
    border-radius: 40px;
    padding: 12px 40px;
    font-weight: 700;
    font-size: 1.1rem;
    background: var(--primary);
    border: none;
    color: white;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4); /* Glow effect */
}

.btn-search:hover {
    background: var(--primary-hover);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.6);
}

/* Map Icon inside search */
.search-wrapper .la-map-marker {
    color: var(--primary);
    filter: drop-shadow(0 0 5px rgba(99, 102, 241, 0.5));
}

.search-wrapper {
    max-width: 1080px;
}
/* --- Premium Cards --- */
.studio-card-premium {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    height: 100%;
    border: 1px solid #f1f5f9;
}

.studio-card-premium:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.card-img-wrapper {
    position: relative;
    height: 240px;
    overflow: hidden;
}

.studio-img-premium {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.studio-card-premium:hover .studio-img-premium {
    transform: scale(1.1);
}

.card-overlay-gradient {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
}

.price-badge-float {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.95);
    padding: 8px 16px;
    border-radius: 30px;
    font-weight: 700;
    color: var(--primary);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    z-index: 2;
}

.card-content {
    padding: 25px;
}

.studio-name {
    font-weight: 700;
    font-size: 1.25rem;
    margin-bottom: 5px;
    color: var(--secondary);
    display: block;
    text-decoration: none;
}

.studio-name:hover {
    color: var(--primary);
    text-decoration: none;
}

.feature-pill {
    display: inline-block;
    background: #eff6ff;
    color: var(--primary);
    padding: 5px 12px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-right: 5px;
    margin-bottom: 5px;
}

/* --- Scroll Animations --- */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Filters */
.filter-glass {
    background: #fff;
    padding: 30px;
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
    position: sticky;
    top: 100px;
}

.page-shell {
    padding-left: 24px;
    padding-right: 24px;
}

.popular-studios-shell {
    padding-left: 24px;
    padding-right: 24px;
}

.popular-filter-desktop .filter-glass {
    position: static;
    top: auto;
    margin-bottom: 24px;
}

.load-more-btn {
    border: 2px solid var(--primary);
    color: var(--primary);
    background: transparent;
    padding: 12px 40px;
    border-radius: 50px;
    font-weight: 700;
    transition: all 0.3s;
}

.load-more-btn:hover {
    background: var(--primary);
    color: white;
    box-shadow: 0 10px 20px rgba(79, 70, 229, 0.2);
}

/* Spinner */
.spinner-border {
    color: var(--primary);
}
.category-section {
    background: linear-gradient(135deg, #eef2ff 0%, #f8fafc 55%, #ecfeff 100%);
    padding: 40px;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
}

.category-carousel-shell {
    position: relative;
    padding: 0 56px;
}

.category-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(15, 23, 42, 0.72);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
    cursor: pointer;
    transition: all 0.2s ease;
}

.category-nav-btn:hover {
    background: #1d4ed8;
    border-color: #93c5fd;
}

.category-nav-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(147, 197, 253, 0.45);
}

.category-nav-prev {
    left: 6px;
}

.category-nav-next {
    right: 6px;
}

/* Wrapper hides overflow */
.category-scroll-wrapper {
    overflow-x: auto;
    overflow-y: hidden;
    position: relative;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.category-scroll-wrapper::-webkit-scrollbar {
    display: none;
}

/* Scrolling row */
.category-scroll {
    display: flex;
    gap: 18px;
    width: max-content;
    animation: none;
}

.category-scroll-wrapper:hover .category-scroll,
.category-scroll-wrapper:focus-within .category-scroll {
    animation-play-state: paused;
}

/* =========================
   CATEGORY CARD CONTAINER
========================= */
.category-card {
    width: clamp(250px, 30vw, 340px);
    height: 260px;
    padding: 30px;
    border-radius: 16px;
  
    position: relative;
    cursor: pointer;
    overflow: hidden;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.category-card:hover {
    transform: translateY(-6px) scale(1.04);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.6);
}

/* =========================
   IMAGE (INSIDE WHITE BOX)
========================= */
.cat-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 12px;              /* Inner radius */
    filter: brightness(0.75);
    transition: transform 0.4s ease;
}

.category-card:hover .cat-img {
    transform: scale(1.12);
}

/* =========================
   OVERLAY (TEXT AREA)
========================= */
.cat-overlay {
    position: absolute;
    inset: 30px;                      /* Match .category-card padding so text stays inside image */
    display: flex;
    align-items: flex-end;
    padding: 12px;
    border-radius: 12px;
   
    pointer-events: none;
}

/* =========================
   CATEGORY NAME TEXT
========================= */
.cat-name {
    color: #ffffff;
    font-weight: 700;
    font-size: 0.98rem;
    line-height: 1.35;
    display: block;
    max-width: 100%;
    white-space: normal;
    word-break: break-word;
    overflow-wrap: anywhere;
    padding: 6px 10px;
    border-radius: 10px;
    background: rgba(15, 23, 42, 0.38);
    border: 1px solid rgba(255, 255, 255, 0.22);
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
}

.z-2 {
    z-index: 2;
}

@media (max-width: 991.98px) {
    .hero-section {
        min-height: 760px;
        height: auto;
        padding-top: 110px;
        padding-bottom: 40px;
    }

    .category-card {
        width: clamp(220px, 74vw, 300px);
        height: 220px;
        padding: 16px;
    }

    .category-carousel-shell {
        padding: 0 48px;
    }

    .cat-overlay {
        inset: 16px;
        padding: 10px;
    }

    .cat-name {
        font-size: 0.9rem;
        padding: 5px 8px;
    }

    .popular-studios-shell {
        padding-left: 14px;
        padding-right: 14px;
    }

    .filter-glass {
        position: static;
        top: auto;
    }

    .page-shell {
        padding-left: 14px;
        padding-right: 14px;
    }
}


/* Animation */
@keyframes autoScroll {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}
/* --- HERO BLOBS (Ambient Glow) --- */
.hero-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: 0;
    opacity: 0.6;
    animation: floatBlob 10s infinite alternate;
}

.blob-1 {
    top: 20%;
    left: 10%;
    width: 300px;
    height: 300px;
    background: rgba(99, 102, 241, 0.4); /* Indigo glow */
}

.blob-2 {
    bottom: 20%;
    right: 10%;
    width: 250px;
    height: 250px;
    background: rgba(168, 85, 247, 0.3); /* Purple glow */
}

@keyframes floatBlob {
    0% { transform: translate(0, 0); }
    100% { transform: translate(30px, -30px); }
}

/* --- NEW SEARCH CONTAINER (Glass Box) --- */
.search-glass-container {
    background: rgba(20, 25, 40, 0.85); /* Dark Glass */
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    padding: 15px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    transition: transform 0.3s ease;
}

.search-glass-container:hover {
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

/* Minimal Inputs */
.input-minimal {
    background: transparent !important;
    border: none !important;
    color: white !important;
    box-shadow: none !important;
    font-size: 1rem;
    height: 50px;
}

.input-minimal::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

/* Select Dropdown Styling for Dark Mode */
select.input-minimal option {
    background-color: #1e2538; /* Dark dropdown background */
    color: white;
    padding: 10px;
}

/* Vertical Divider for Large Screens */
@media (min-width: 992px) {
    .border-lg-start {
        border-left: 1px solid rgba(255, 255, 255, 0.1) !important;
    }
}

/* Search Button Animated */
.search-btn-animated {
    background: var(--primary-gradient);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 15px;
    font-weight: 700;
    transition: all 0.3s ease;
    height: 50px;
    width: 100%;
    box-shadow: 0 5px 15px rgba(99, 102, 241, 0.4);
}

.search-btn-animated:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(99, 102, 241, 0.6);
}

/* --- 2026 Homepage Redesign Overrides --- */
.page-shell {
    max-width: 1320px;
    margin: 0 auto;
}

.navbar-glass {
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.08);
}

.nav-btn-outline-sm,
.nav-btn-fill-sm {
    padding: 6px 11px;
    border-radius: 9px;
    font-size: 0.8rem;
    font-weight: 700;
}

.nav-btn-outline-sm {
    border: 1px solid #cbd5e1;
    color: #1e293b;
    background: #ffffff;
}

.nav-btn-fill-sm {
    background: var(--primary);
    color: #ffffff;
}

.hero-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: rgba(37, 99, 235, 0.2);
    border: 1px solid rgba(147, 197, 253, 0.5);
    color: #dbeafe;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 0.84rem;
    font-weight: 700;
    letter-spacing: 0.2px;
}

.section-head {
    margin-bottom: 24px;
}

.section-title {
    margin: 0;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.2;
}

.section-subtitle {
    margin: 8px 0 0;
    color: #64748b;
    max-width: 62ch;
}

.section-head.text-center .section-subtitle {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.why-book-head {
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
}

.popular-studios-section .filter-glass {
    border: 1px solid #dbe3ef;
}

.popular-head {
    padding: 6px 0 4px;
}

.studio-card-premium {
    border: 1px solid #e2e8f0;
}

.studio-type-wrap {
    position: absolute;
    bottom: 14px;
    left: 14px;
    z-index: 2;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    max-width: calc(100% - 28px);
}

.studio-type-chip {
    background: rgba(15, 23, 42, 0.48);
    border: 1px solid rgba(255, 255, 255, 0.28);
    backdrop-filter: blur(8px);
    color: #ffffff;
    padding: 4px 9px;
    border-radius: 8px;
    font-size: 0.74rem;
    font-weight: 700;
    line-height: 1.1;
    white-space: nowrap;
}

.premium-feature-card {
    border-radius: 18px;
    box-shadow: 0 8px 26px rgba(15, 23, 42, 0.08);
}

.premium-feature-card .small {
    line-height: 1.65;
}

.footer-v2 {
    margin-top: 0;
}

@media (max-width: 991.98px) {
    .hero-title {
        font-size: 2.1rem !important;
    }

    .hero-subtitle {
        font-size: 1rem !important;
    }

    .popular-head {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 4px;
    }
}

@media (max-width: 575.98px) {
    .category-carousel-shell {
        padding: 0 42px;
    }

    .category-nav-btn {
        width: 36px;
        height: 36px;
        font-size: 0.95rem;
    }

    .hero-chip {
        font-size: 0.75rem;
        padding: 7px 11px;
    }

    .section-title {
        font-size: 1.45rem;
    }

    .section-subtitle {
        font-size: 0.92rem;
    }
}

/* --- Phase 1 Launch (Visual System + Polish) --- */
:root {
    --ui-radius-sm: 10px;
    --ui-radius-md: 14px;
    --ui-radius-lg: 20px;
    --ui-space-xs: 8px;
    --ui-space-sm: 12px;
    --ui-space-md: 16px;
    --ui-space-lg: 24px;
    --ui-space-xl: 32px;
    --ui-border: #e2e8f0;
    --ui-muted: #64748b;
    --ui-strong: #0f172a;
    --ui-shadow-card: 0 12px 30px rgba(15, 23, 42, 0.08);
    --ui-shadow-hover: 0 22px 44px rgba(79, 70, 229, 0.16);
}

body.phase1-launch {
    color: #334155;
    letter-spacing: 0.01em;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

body.phase1-launch .page-shell,
body.phase1-launch .popular-studios-shell {
    padding-left: 22px;
    padding-right: 22px;
}

body.phase1-launch .section-title {
    font-size: clamp(1.55rem, 2.2vw, 2rem);
    letter-spacing: -0.01em;
}

body.phase1-launch .section-subtitle {
    color: var(--ui-muted);
    line-height: 1.65;
}

body.phase1-launch .hero-chip {
    border-radius: 999px;
    padding: 9px 16px;
    font-size: 0.84rem;
}

body.phase1-launch .search-glass-container {
    border-radius: var(--ui-radius-lg);
    box-shadow: 0 20px 48px rgba(2, 6, 23, 0.45);
}

body.phase1-launch .use-location-btn {
    height: 50px;
    border-radius: 15px;
    color: var(--primary);
    font-weight: 700;
    border: 1px solid rgba(99, 102, 241, 0.25);
    background: #ffffff;
    transition: all 0.25s ease;
}

body.phase1-launch .use-location-btn:hover {
    transform: translateY(-1px);
    border-color: rgba(99, 102, 241, 0.5);
    box-shadow: 0 8px 20px rgba(79, 70, 229, 0.15);
}

body.phase1-launch .filter-glass {
    border: 1px solid var(--ui-border);
    border-radius: var(--ui-radius-lg);
    background: #ffffff;
    box-shadow: var(--ui-shadow-card);
    padding: var(--ui-space-lg);
}

body.phase1-launch .form-control-modern {
    border-radius: var(--ui-radius-sm);
    border: 1px solid var(--ui-border);
    height: 45px;
    font-weight: 500;
}

body.phase1-launch .form-control-modern:focus {
    border-color: #a5b4fc;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.14);
}

body.phase1-launch .phase1-btn {
    border-radius: var(--ui-radius-sm);
    background: var(--primary);
    border: none;
    height: 45px;
    font-weight: 700;
    transition: all 0.25s ease;
}

body.phase1-launch .phase1-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(79, 70, 229, 0.28);
}

body.phase1-launch .studio-card-premium {
    border-radius: 18px;
    border: 1px solid var(--ui-border);
    box-shadow: var(--ui-shadow-card);
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

body.phase1-launch .studio-card-premium:hover {
    transform: translateY(-6px);
    border-color: rgba(99, 102, 241, 0.34);
    box-shadow: var(--ui-shadow-hover);
}

body.phase1-launch .studio-name {
    color: var(--ui-strong);
    font-weight: 800;
    font-size: 1.14rem;
    line-height: 1.3;
}

body.phase1-launch .feature-pill {
    border-radius: 999px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #334155;
    font-weight: 700;
}

body.phase1-launch .card-divider {
    border-top: 1px dashed #e2e8f0;
    margin-top: 14px;
    margin-bottom: 2px;
}

body.phase1-launch .studio-cta-link {
    color: var(--primary) !important;
    font-weight: 800 !important;
    letter-spacing: 0.01em;
}

body.phase1-launch .studio-cta-link i {
    transition: transform 0.2s ease;
}

body.phase1-launch .studio-cta-link:hover i {
    transform: translateX(3px);
}

body.phase1-launch .premium-feature-card {
    border-radius: 18px;
    border: 1px solid var(--ui-border);
    box-shadow: var(--ui-shadow-card);
}

body.phase1-launch .premium-feature-card:hover {
    border-color: rgba(99, 102, 241, 0.34);
    box-shadow: var(--ui-shadow-hover);
}

body.phase1-launch .load-more-btn {
    border-radius: 999px;
    font-weight: 700;
    letter-spacing: 0.01em;
}

@media (max-width: 575.98px) {
    body.phase1-launch .page-shell,
    body.phase1-launch .popular-studios-shell {
        padding-left: 14px;
        padding-right: 14px;
    }

    body.phase1-launch .filter-glass {
        padding: 16px;
    }
}

/* --- Explore by Category: 3D Ring Carousel --- */
.category-3d-wrap {
    margin-top: 10px;
}

.scene,
.a3d {
    display: grid;
}

.scene {
    overflow: hidden;
    perspective: 35em;
    padding: 12px 0;
    mask: linear-gradient(90deg, #0000, #000 18% 82%, #0000);
    -webkit-mask: linear-gradient(90deg, transparent, #000 18% 82%, transparent);
}

.a3d {
    place-self: center;
    transform-style: preserve-3d;
    animation: categorySpin 32s linear infinite;
}

@keyframes categorySpin {
    to {
        transform: rotateY(1turn);
    }
}

.cat3d-card {
    --w: 17.5em;
    --ba: calc(1turn / var(--n));
    grid-area: 1 / 1;
    width: var(--w);
    aspect-ratio: 7 / 10;
    border: 0;
    border-radius: 1.35em;
    padding: 0;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    background: #111827;
    backface-visibility: hidden;
    transform:
        rotateY(calc(var(--i) * var(--ba)))
        translateZ(calc(-1 * (.5 * var(--w) + .5em) / tan(.5 * var(--ba))));
    box-shadow: 0 18px 32px rgba(2, 6, 23, 0.24);
}

.cat3d-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: saturate(0.95) contrast(1.03);
}

.cat3d-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(2, 6, 23, 0.58), rgba(2, 6, 23, 0.1) 50%, rgba(2, 6, 23, 0));
}

.cat3d-name {
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 12px;
    z-index: 2;
    font-size: 1.37rem;
    font-weight: 700;
    color: #ffffff;
    text-align: left;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.28);
}

.cat3d-card:focus-visible {
    outline: 3px solid rgba(129, 140, 248, 0.9);
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    .a3d {
        animation-duration: 128s;
    }
}

@media (max-width: 991.98px) {
    .scene {
        perspective: 28em;
    }

    .cat3d-card {
        --w: 13em;
    }
}

/* --- Explore by Category: Light Theme Overrides --- */
.category-section .section-title {
    color: #0f172a;
}

.category-section .section-subtitle {
    color: #475569;
}

.category-section .scene {
    mask: linear-gradient(90deg, #0000, #000 14% 86%, #0000);
    -webkit-mask: linear-gradient(90deg, transparent, #000 14% 86%, transparent);
}

.category-section .cat3d-card {
    background: #ffffff;
    border: 1px solid #dbeafe;
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.14);
}

.category-section .cat3d-card img {
    filter: saturate(0.98) contrast(1.02);
}

.category-section .cat3d-card::after {
    background: linear-gradient(to top, rgba(15, 23, 42, 0.34), rgba(15, 23, 42, 0.04) 52%, rgba(15, 23, 42, 0));
}

.category-section .cat3d-name {
    color: #f8fafc;
    text-shadow: 0 2px 8px rgba(15, 23, 42, 0.45);
}

.category-section .cat3d-card:focus-visible {
    outline: 3px solid rgba(79, 70, 229, 0.8);
}
/* --- Phase 1 Theme Consistency Pass --- */
body.phase1-launch .gray-section {
    background: #eef2f7;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
}

body.phase1-launch .dark-section {
    background: linear-gradient(180deg, #0f172a 0%, #111d32 100%);
    border-top: 1px solid rgba(148, 163, 184, 0.22);
    border-bottom: 1px solid rgba(148, 163, 184, 0.22);
}

body.phase1-launch .dark-section .section-title {
    color: #f8fafc;
}

body.phase1-launch .dark-section .section-subtitle,
body.phase1-launch .dark-section .text-white-50 {
    color: rgba(226, 232, 240, 0.86) !important;
}

body.phase1-launch .category-section {
    background: #0f172a;
    border-top: 1px solid rgba(148, 163, 184, 0.22);
    border-bottom: 1px solid rgba(148, 163, 184, 0.22);
}

body.phase1-launch .category-section .section-title {
    color: #f8fafc;
}

body.phase1-launch .category-section .section-subtitle {
    color: rgba(226, 232, 240, 0.86);
}

body.phase1-launch .category-nav-btn {
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(15, 23, 42, 0.72);
    color: #ffffff;
}

body.phase1-launch .category-nav-btn:hover {
    background: #1d4ed8;
    border-color: #93c5fd;
    color: #ffffff;
}

body.phase1-launch .category-nav-btn:focus {
    box-shadow: 0 0 0 3px rgba(147, 197, 253, 0.45);
}
body.phase1-launch .category-section .cat3d-name {
    font-size: 1.37rem;
    line-height: 1.35;
}

@media (prefers-reduced-motion: reduce) {
    .category-scroll {
        animation: none;
    }
}

.pac-container {
    border-radius: 12px;
    margin-top: 5px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border: none;
    font-family: 'Outfit', sans-serif;
}

.pac-item {
    padding: 10px 15px;
    cursor: pointer;
}

.pac-item:hover {
    background-color: #f1f5f9;
}

.pac-icon {
    display: none;
}

.trust-strip {
    margin-top: -26px;
    margin-bottom: 24px;
    position: relative;
    z-index: 5;
}

.trust-strip-inner {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
    border-radius: 16px;
    padding: 14px 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.trust-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #334155;
    border-radius: 999px;
    padding: 7px 13px;
    font-size: 0.88rem;
    font-weight: 600;
    white-space: nowrap;
}

.trust-chip i {
    color: #1d4ed8;
}

#indexConfig {
    display: none;
}

.hero-chip-spaced {
    margin-top: 50px;
}

.loader-hidden {
    display: none;
}

.step-badge {
    width: 50px;
    height: 50px;
    flex-shrink: 0;
    font-weight: 700;
}

.feature-arrow-icon {
    font-size: 1.1rem;
}
