/* Theme palettes — channels consumed by Tailwind tokens via rgb(var(--x) / <alpha>) */
:root,
body.theme-noir {
    --bg-rgb: 7 4 9;
    --panel-rgb: 15 10 20;
    --accent-rgb: 176 38 255;
    --accent-soft-rgb: 201 123 255;
}
body.theme-electric {
    --bg-rgb: 5 8 14;
    --panel-rgb: 13 18 28;
    --accent-rgb: 0 136 255;
    --accent-soft-rgb: 96 175 255;
}
body.theme-rose {
    --bg-rgb: 14 7 10;
    --panel-rgb: 22 12 16;
    --accent-rgb: 244 63 106;
    --accent-soft-rgb: 251 146 170;
}
body.theme-emerald {
    --bg-rgb: 4 12 10;
    --panel-rgb: 10 22 18;
    --accent-rgb: 16 217 160;
    --accent-soft-rgb: 110 240 205;
}

body {
    transition: background-color 0.6s cubic-bezier(0.25, 1, 0.5, 1), color 0.6s ease;
}

/* Liquid transition curtain on theme change */
#theme-curtain {
    position: fixed;
    inset: 0;
    background-color: rgb(var(--accent-rgb));
    transform: translateY(100%);
    z-index: 9999;
    pointer-events: none;
}
.curtain-animate {
    animation: curtainSwipe 1.2s cubic-bezier(0.85, 0, 0.15, 1) forwards;
}
@keyframes curtainSwipe {
    0% { transform: translateY(100%); }
    50% { transform: translateY(0); }
    100% { transform: translateY(-100%); }
}

/* Sandbox theme buttons */
.theme-btn {
    border-color: transparent;
    background: rgba(255, 255, 255, 0.05);
    transition: background 0.3s, border-color 0.3s;
}
.theme-btn:hover { background: rgba(255, 255, 255, 0.1); }
.theme-btn.active {
    border-color: rgb(var(--accent-rgb) / 0.6);
    background: rgb(var(--accent-rgb) / 0.12);
}

.glass-nav {
    background: rgb(var(--bg-rgb) / 0.85);
    backdrop-filter: blur(12px);
}

.nav-link {
    color: #d1d5db;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0.5rem 0.75rem;
    transition: color 0.3s;
}
.nav-link:hover { color: rgb(var(--accent-soft-rgb)); }

.mobile-link {
    display: block;
    color: #d1d5db;
    padding: 0.5rem 0.75rem;
    font-size: 1rem;
    font-weight: 500;
    transition: color 0.3s;
}
.mobile-link:hover { color: rgb(var(--accent-soft-rgb)); }

#mobile-menu {
    transition: max-height 0.3s ease-in-out, opacity 0.3s ease-in-out;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
}
#mobile-menu.open {
    max-height: 360px;
    opacity: 1;
}

.glow-purple {
    box-shadow: 0 0 18px rgb(var(--accent-rgb) / 0.45);
}
.glow-purple:hover {
    box-shadow: 0 0 28px rgb(var(--accent-rgb) / 0.65);
}

/* Hero neon glow, echoing the logo */
.neon-text {
    text-shadow:
        0 0 6px rgba(255, 255, 255, 0.35),
        0 0 22px rgb(var(--accent-rgb) / 0.55),
        0 0 48px rgb(var(--accent-rgb) / 0.35);
}
.hero-glow {
    background:
        radial-gradient(circle at 50% 30%, rgb(var(--accent-rgb) / 0.18), transparent 55%),
        radial-gradient(circle at 80% 80%, rgb(var(--accent-rgb) / 0.10), transparent 45%);
    pointer-events: none;
}

/* Service cards */
.service-card {
    position: relative;
    overflow: hidden;
    background: rgb(var(--bg-rgb));
    border: 1px solid rgb(var(--accent-rgb) / 0.15);
    border-radius: 1rem;
    padding: 2rem;
    transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s, background-color 0.6s;
}
.service-card:hover {
    border-color: rgb(var(--accent-rgb) / 0.55);
    box-shadow: 0 0 30px rgb(var(--accent-rgb) / 0.18);
    transform: translateY(-4px);
}
.service-icon {
    font-size: 2.25rem;
    color: #6b7280;
    margin-bottom: 1.5rem;
    transition: transform 0.3s, color 0.3s;
}
.service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
    color: rgb(var(--accent-soft-rgb));
}
.service-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 0.75rem;
}
.service-desc {
    color: #9ca3af;
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.service-foot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgb(var(--accent-rgb) / 0.12);
    padding-top: 1rem;
}
.service-price {
    color: rgb(var(--accent-soft-rgb));
    font-weight: 500;
}
.service-book {
    font-size: 0.875rem;
    color: #d1d5db;
    transition: color 0.3s;
}
.service-card:hover .service-book { color: #ffffff; }

/* Stylist video */
.video-frame {
    border-radius: 1rem;
    padding: 6px;
    background: linear-gradient(135deg, rgb(var(--accent-rgb) / 0.5), transparent 60%);
    box-shadow: 0 0 40px rgb(var(--accent-rgb) / 0.2);
}
.video-frame video {
    display: block;
}

/* Gallery */
.gallery-item {
    overflow: hidden;
    border-radius: 0.75rem;
    border: 1px solid rgb(var(--accent-rgb) / 0.12);
}
.gallery-item img {
    width: 100%;
    height: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    filter: grayscale(40%);
    transition: transform 0.6s, filter 0.4s;
}
.gallery-item:hover img {
    transform: scale(1.1);
    filter: grayscale(0%);
}

/* Contact */
.contact-icon {
    flex-shrink: 0;
    width: 2.75rem;
    height: 2.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
    background: rgb(var(--accent-rgb) / 0.12);
    color: rgb(var(--accent-soft-rgb));
}
.form-input {
    width: 100%;
    background: rgb(var(--bg-rgb));
    border: 1px solid rgb(var(--accent-rgb) / 0.2);
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    color: #ffffff;
    transition: border-color 0.3s;
}
.form-input::placeholder { color: #6b7280; }
.form-input:focus {
    outline: none;
    border-color: rgb(var(--accent-rgb));
}
.form-input option, .form-input optgroup {
    background: rgb(var(--panel-rgb));
    color: #ffffff;
}

.social-link {
    color: #6b7280;
    transition: color 0.3s;
}
.social-link:hover { color: rgb(var(--accent-soft-rgb)); }

/* Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: rgb(var(--panel-rgb)); }
::-webkit-scrollbar-thumb { background: rgb(var(--accent-rgb)); border-radius: 4px; }
