@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');
:root {
    /* Sleek Dark Mode Palette */
    --color-bg: #0D0D0D;
    --color-surface: #1F1F1F;
    --color-text: #FFFFFF;
    --color-text-muted: #888888;
    --color-primary: #FF8C00; /* Electric Orange */
    --color-dark-zinc: #121212;
    --color-border: #2A2A2A;
    
    --color-error: #FF4B4B;
    --color-error-bg: rgba(255, 75, 75, 0.08);
    --color-error-glow: 0 0 20px rgba(255, 75, 75, 0.25);
    
    --font-heading: 'Plus Jakarta Sans', system-ui, sans-serif;
    --font-body: 'Plus Jakarta Sans', system-ui, sans-serif;
    
    --radius-sm: 12px;
    --radius-md: 20px;
    --radius-lg: 32px;
    
    --shadow-orange: 0 10px 40px rgba(255, 140, 0, 0.2);
    --shadow-dark: 0 20px 60px rgba(0,0,0,0.8);
    
    --nav-height: 85px;
    --safe-top: env(safe-area-inset-top, 20px);
    --safe-bottom: env(safe-area-inset-bottom, 20px);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

input, button, textarea, select {
    font-family: inherit;
}

body {
    background: #000;
    font-family: var(--font-body);
    color: var(--color-text);
    height: 100vh; /* Fallback */
    height: 100dvh;
    width: 100vw;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

/* App Shell */
.app-shell {
    background: var(--color-bg);
    width: 100%;
    max-width: 430px;
    height: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    /* Ensure height is exactly viewport on mobile */
    min-height: -webkit-fill-available;
}

@media (min-width: 440px) {
    .app-shell {
        height: 92vh;
        border-radius: 44px;
        border: 12px solid #222;
        box-shadow: 0 50px 100px rgba(0,0,0,0.6);
    }
}

/* Header */
.screen-header {
    padding: calc(var(--safe-top) + 25px) 25px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.user-intro span { font-size: 0.85rem; color: var(--color-text-muted); display: block; }
.user-intro h2 { font-size: 1.25rem; font-weight: 700; margin-top: 2px; }

.header-actions { display: flex; gap: 12px; }
.icon-btn {
    width: 45px;
    height: 45px;
    background: var(--color-surface);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    border: 1px solid var(--color-border);
}

/* Search Bar */
.search-container { padding: 0 25px 20px; }
.search-bar {
    width: 100%;
    height: 55px;
    background: var(--color-surface);
    border-radius: 16px;
    border: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    padding: 0 20px;
    gap: 12px;
}

.search-bar input {
    background: transparent;
    border: none;
    color: white;
    font-size: 0.95rem;
    flex: 1;
}

/* Promo Banner */
.promo-banner {
    margin: 0 25px 25px;
    background: var(--color-primary);
    border-radius: 24px;
    padding: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.promo-content { z-index: 1; position: relative; max-width: 60%; }
.promo-label { font-size: 0.75rem; font-weight: 700; opacity: 0.9; }
.promo-title { font-size: 1.4rem; font-weight: 800; margin: 8px 0 15px; line-height: 1.2; }

.promo-image {
    position: absolute;
    right: -10px;
    bottom: -10px;
    width: 270px;
    height: 270px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: bottom right;
    z-index: 0;
}

/* Status Badges */
.status-badge {
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.status-confirmed { background: rgba(0, 255, 100, 0.1); color: #00ff64; border: 1px solid rgba(0, 255, 100, 0.2); }
.status-pending { background: rgba(255, 140, 0, 0.1); color: var(--color-primary); border: 1px solid rgba(255, 140, 0, 0.2); }
.status-alert { background: rgba(255, 50, 50, 0.1); color: #ff3232; border: 1px solid rgba(255, 50, 50, 0.2); }

/* Ops Center / Chat List */
.ops-list {
    display: flex;
    flex-direction: column;
    padding: 10px 25px;
    gap: 15px;
}
.ops-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: var(--color-surface);
    border-radius: 20px;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.2s ease;
}
.ops-item:hover { border-color: var(--color-border); background: #252525; }
.ops-avatar {
    width: 45px;
    height: 45px;
    border-radius: 12px;
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
}
.ops-info { flex: 1; }
.ops-time { font-size: 0.65rem; color: var(--color-text-muted); }

/* Calendar Entries */
.cal-list {
    padding: 0 25px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.cal-item {
    display: flex;
    gap: 15px;
    padding: 15px;
    background: var(--color-dark-zinc);
    border-radius: 18px;
    border-left: 4px solid var(--color-primary);
}
.cal-time-col { min-width: 50px; font-weight: 700; font-size: 0.8rem; line-height: 1.2; }

/* Horizontal Swiper (Pills) */
.category-swiper {
    display: flex;
    gap: 12px;
    padding: 0 25px 30px;
    overflow-x: auto;
}

.category-swiper::-webkit-scrollbar { display: none; }

.cat-item {
    background: var(--color-surface);
    padding: 10px 20px;
    border-radius: 100px;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid var(--color-border);
    white-space: nowrap;
    cursor: pointer;
}

.cat-item.active { background: var(--color-primary); border-color: var(--color-primary); }
.cat-icon { font-size: 1rem; }
.cat-label { font-size: 0.85rem; font-weight: 700; }

/* Booking Cards */
.section-title { padding: 0 25px 15px; display: flex; justify-content: space-between; align-items: center; }
.section-title h3 { font-size: 1.1rem; font-weight: 700; }
.view-all { font-size: 0.8rem; color: var(--color-text-muted); }

.booking-list { display: flex; flex-direction: column; gap: 15px; padding: 0 25px 40px; }
.booking-card {
    background: var(--color-surface);
    padding: 15px;
    border-radius: 20px;
    display: flex;
    gap: 15px;
    border: 1px solid var(--color-border);
}

.card-thumb {
    width: 80px;
    height: 80px;
    border-radius: 16px;
    background: #444;
}

.card-info { flex: 1; }
.card-info h4 { font-size: 0.95rem; margin-bottom: 4px; }
.card-info .servs { font-size: 0.75rem; color: var(--color-text-muted); display: block; }

.card-actions { display: flex; flex-direction: column; justify-content: space-between; align-items: flex-end; }
.toggle-btn {
    width: 44px;
    height: 24px;
    background: #444;
    border-radius: 20px;
    position: relative;
    cursor: pointer;
}

.toggle-btn::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    top: 2px;
    left: 2px;
    transition: 0.3s;
}

.toggle-btn.active { background: var(--color-primary); }
.toggle-btn.active::after { left: 22px; }

/* FAB */
.fab-scissors {
    position: absolute;
    bottom: 110px;
    right: 25px;
    width: 65px;
    height: 65px;
    background: var(--color-primary);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: var(--shadow-orange);
    cursor: pointer;
    z-index: 100;
}

/* Bottom Nav */
.bottom-nav {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: calc(var(--nav-height) + env(safe-area-inset-bottom, 20px));
    background: var(--color-bg);
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 0 15px env(safe-area-inset-bottom, 20px);
    border-top: 1px solid var(--color-border);
    z-index: 1000;
}

.nav-item { color: #555; display: flex; flex-direction: column; align-items: center; gap: 4px; cursor: pointer; }
.nav-item.active { color: var(--color-primary); }
.nav-item i { font-size: 1.6rem; }

/* Viewport Shell */
.screen-viewport { flex: 1; overflow: hidden; position: relative; }
.screen-wrapper {
    display: flex;
    width: 600%; /* 6 Screens * 100% */
    height: 100%;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.app-screen {
    width: 16.6666%; /* 100% / 6 Screens */
    height: 100%;
    overflow-y: auto;
    background: var(--color-bg);
}
.app-screen::-webkit-scrollbar { display: none; }

/* Utils */
.btn { border: none; padding: 12px 24px; border-radius: 20px; font-weight: 800; cursor: pointer; }
.btn-white { background: white; color: black; }

/* Stylist Cards */
.stylist-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; padding: 0 25px; }
.stylist-card {
    background: var(--color-surface);
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid var(--color-border);
}

.stylist-img { height: 160px; background: #333; }
.stylist-info { padding: 12px; position: relative; }
.stylist-info strong { display: block; font-size: 0.9rem; }
.stylist-info span { font-size: 0.7rem; color: var(--color-text-muted); }
.stylist-link {
    position: absolute;
    right: 12px;
    bottom: 12px;
    width: 25px;
    height: 25px;
    background: #333;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
}
/* Landing Page Concept */
.onboarding-landing {
    position: absolute;
    top: 0; 
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3000;
    background: #000;
    font-family: 'Plus Jakarta Sans', sans-serif;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    overflow: hidden;
    cursor: pointer;
}

.landing-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-image: url('assets/landing_bg.png');
    filter: brightness(0.85);
}

.landing-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 70%;
    background: linear-gradient(to top, rgba(0,0,0,1) 0%, rgba(0,0,0,0.4) 50%, rgba(0,0,0,0) 100%);
}

.landing-content {
    position: relative;
    padding: 40px;
    z-index: 2;
    padding-bottom: 80px;
}

.landing-title {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
    font-family: 'Plus Jakarta Sans', sans-serif !important;
    color: #FFFFFF !important;
}

.pill-highlight {
    display: inline-block;
    width: 32px;
    height: 10px;
    background: var(--color-primary);
    border-radius: 20px;
    transform: translateY(-8px);
    margin: 0 4px;
}

.landing-sub {
    font-size: 0.95rem;
    color: rgba(255,255,255,0.8);
    max-width: 260px;
    line-height: 1.5;
    font-weight: 400;
    letter-spacing: -0.01em;
}

/* Arc Gallery */
.landing-arc {
    position: absolute;
    right: -50px;
    top: 15%;
    width: 250px;
    height: 60%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    pointer-events: none;
}

.arc-item {
    width: 75px;
    height: 75px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    border: 2px solid rgba(255,255,255,0.15);
    position: absolute;
    transition: transform 0.3s;
}

.arc-item:nth-child(1) { top: 0; right: 80px; }
.arc-item:nth-child(2) { top: 20%; right: 40px; }
.arc-item:nth-child(3) { top: 40%; right: 20px; border-color: rgba(255,255,255,0.6); }
.arc-item:nth-child(4) { top: 60%; right: 40px; }
.arc-item:nth-child(5) { top: 80%; right: 80px; }

.landing-scissors-box {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 90px;
    height: 80px;
    background: var(--color-primary);
    border-top-left-radius: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.landing-scissors-box i {
    width: 32px;
    height: 32px;
    color: #000;
}

/* App Modal Overlay */
.app-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(12px);
    z-index: 10000;
    display: none; /* Hidden by default */
    align-items: flex-end;
    justify-content: center;
}

.modal-content {
    background: var(--color-bg);
    width: 100%;
    max-width: 430px;
    border-top-left-radius: 32px;
    border-top-right-radius: 32px;
    padding: 25px 30px 40px;
    position: relative;
    border: 1px solid var(--color-border);
    border-bottom: none;
    transform: translateY(100%); /* Start off-screen for GSAP */
}

.modal-handle {
    width: 40px;
    height: 5px;
    background: var(--color-border);
    border-radius: 10px;
    margin: 0 auto 20px;
}

.modal-close {
    position: absolute;
    top: 25px;
    right: 25px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    color: white;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
}

/* App Notifications (Toasts) */
.app-toast {
    position: absolute;
    top: 25px; /* At the top */
    left: 20px;
    right: 20px;
    background: var(--color-surface);
    padding: 16px 20px;
    border-radius: 20px;
    border: 1px solid var(--color-border);
    box-shadow: 0 10px 40px rgba(0,0,0,0.4);
    z-index: 500;
    display: none; /* Controlled by JS */
    pointer-events: none;
    font-size: 0.85rem;
    font-weight: 500;
}
/* Premium Error Box (Glassmorphic) */
.glass-error-box {
    background: var(--color-error-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 75, 75, 0.3);
    border-radius: 20px;
    padding: 18px 25px;
    display: flex;
    align-items: center;
    gap: 15px;
    color: #FFBABA;
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: var(--color-error-glow);
    z-index: 1000;
    margin-bottom: 20px;
    display: none; /* Initially hidden */
}

.glass-error-box i {
    color: var(--color-error);
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}
