/* ==========================================================================
   LASOFY HAUTE COUTURE — PURE WHITE LUXURY MOBILE APP STYLESHEET
   Design: Pristine Porcelain, Warm Ivory, Champagne Gold, Deep Charcoal
   Benchmarked against Dior Beauty, Pronovias Barcelona, and Fresha VIP
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@500;600;700;800&family=Cormorant+Garamond:ital,wght@0,500;0,600;0,700;1,400&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

:root {
    --bg-pure: #FFFFFF;
    --bg-canvas: #FAF8F5;
    --bg-card: #FFFFFF;
    --bg-subtle: #F3EFEA;
    --gold-primary: #C5A880;
    --gold-dark: #7A5F2E;
    --gold-light: #E8DDCD;
    --gold-gradient: linear-gradient(135deg, #DFCAAC 0%, #C5A880 50%, #9E7D4E 100%);
    --card-gold-gradient: linear-gradient(135deg, #D4AF37 0%, #F3E5AB 30%, #AA771C 70%, #805A16 100%);
    --text-primary: #1F1D1A;
    --text-secondary: #5C5750;
    --text-muted: #8E877E;
    --border-hairline: rgba(197, 168, 128, 0.22);
    --border-subtle: rgba(31, 29, 26, 0.08);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.03);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 12px 36px rgba(0, 0, 0, 0.08);
    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-full: 9999px;
    --font-serif: 'Cinzel', serif;
    --font-editorial: 'Cormorant Garamond', serif;
    --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --nav-height: 68px;
    --header-height: 58px;
}

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

html, body {
    width: 100%;
    min-height: 100%;
    background-color: var(--bg-canvas);
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 14px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    user-select: none;
    -webkit-user-select: none;
}

/* App Container for Desktop / Simulator centering */
.mobile-app-wrapper {
    max-width: 480px;
    min-height: 100vh;
    margin: 0 auto;
    background-color: var(--bg-pure);
    position: relative;
    box-shadow: 0 0 40px rgba(0,0,0,0.06);
    display: flex;
    flex-direction: column;
}

/* ==========================================================================
   TOP APP BAR (Sticky luxury navigation)
   ========================================================================== */
.app-top-bar {
    position: sticky;
    top: 0;
    z-index: 100;
    height: var(--header-height);
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-hairline);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 18px;
}

.brand-monogram-box {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.monogram-badge {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-full);
    background: var(--gold-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    font-family: var(--font-serif);
    font-weight: 700;
    font-size: 14px;
    box-shadow: 0 2px 6px rgba(197, 168, 128, 0.4);
}

.brand-text-col {
    display: flex;
    flex-direction: column;
}

.brand-name {
    font-family: var(--font-serif);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: var(--text-primary);
    line-height: 1.1;
}

.brand-city-tag {
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--gold-dark);
    font-weight: 600;
}

.app-top-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.location-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 10px;
    background: var(--bg-canvas);
    border: 1px solid var(--border-hairline);
    border-radius: var(--radius-full);
    font-size: 11px;
    color: var(--text-secondary);
    font-weight: 500;
}

.top-icon-btn {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
    border: 1px solid var(--border-subtle);
    background: var(--bg-pure);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    font-size: 14px;
    cursor: pointer;
    position: relative;
    transition: all 0.2s;
}

.top-icon-btn:active {
    transform: scale(0.92);
}

.notification-dot {
    position: absolute;
    top: 6px;
    right: 7px;
    width: 7px;
    height: 7px;
    border-radius: var(--radius-full);
    background: #E11D48;
    border: 1.5px solid #FFFFFF;
}

/* ==========================================================================
   APP SCREENS CONTAINER
   ========================================================================== */
.app-screens-view {
    flex: 1;
    padding-bottom: calc(var(--nav-height) + 24px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.app-screen {
    display: none;
    padding: 16px;
}

.app-screen.active {
    display: block;
    animation: screenFadeIn 0.22s ease-out;
}

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

/* Section Header standard */
.screen-section-title {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 12px;
}

.screen-section-title h3 {
    font-family: var(--font-serif);
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: var(--text-primary);
}

.screen-section-title a, .screen-section-title button {
    font-size: 12px;
    color: var(--gold-dark);
    font-weight: 600;
    text-decoration: none;
    background: none;
    border: none;
    cursor: pointer;
}

/* ==========================================================================
   SCREEN 1: ASOSIY (Home / Discover)
   ========================================================================== */

/* Stories Carousel */
.stories-carousel-wrap {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    padding-bottom: 8px;
    margin-bottom: 16px;
    scrollbar-width: none;
}
.stories-carousel-wrap::-webkit-scrollbar { display: none; }

.story-circle-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    flex-shrink: 0;
    width: 66px;
}

.story-ring {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-full);
    padding: 2.5px;
    background: var(--gold-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
}

.story-avatar {
    width: 100%;
    height: 100%;
    border-radius: var(--radius-full);
    object-fit: cover;
    border: 2px solid #FFFFFF;
    background: var(--bg-canvas);
}

.story-title {
    font-size: 10.5px;
    font-weight: 600;
    color: var(--text-primary);
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 66px;
}

/* Hero Feature Banner */
.app-hero-banner {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    height: 220px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-md);
}

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

.hero-banner-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(31,29,26,0.1) 0%, rgba(31,29,26,0.85) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px;
    color: #FFFFFF;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--gold-light);
    margin-bottom: 6px;
}

.hero-banner-title {
    font-family: var(--font-serif);
    font-size: 20px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 6px;
}

.hero-banner-desc {
    font-size: 12px;
    color: rgba(255,255,255,0.85);
    margin-bottom: 14px;
    line-height: 1.4;
}

.btn-hero-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 18px;
    background: #FFFFFF;
    color: var(--text-primary);
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    border: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    width: fit-content;
    cursor: pointer;
}

/* Quick Actions Grid */
.quick-services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 24px;
}

.quick-action-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
    padding: 12px 6px;
    background: var(--bg-canvas);
    border: 1px solid var(--border-hairline);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: transform 0.15s, background 0.15s;
}

.quick-action-tile:active {
    transform: scale(0.95);
    background: var(--bg-subtle);
}

.quick-tile-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-full);
    background: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold-dark);
    font-size: 18px;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(197, 168, 128, 0.2);
}

.quick-tile-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.2;
}

/* Top Masters Horizontal Scroll */
.masters-scroll-wrap {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 10px;
    margin-bottom: 24px;
    scrollbar-width: none;
}
.masters-scroll-wrap::-webkit-scrollbar { display: none; }

.master-mini-card {
    flex-shrink: 0;
    width: 140px;
    padding: 14px 10px;
    background: #FFFFFF;
    border: 1px solid var(--border-hairline);
    border-radius: var(--radius-md);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.master-avatar-wrap {
    position: relative;
    width: 64px;
    height: 64px;
    margin-bottom: 8px;
}

.master-avatar-img {
    width: 100%;
    height: 100%;
    border-radius: var(--radius-full);
    object-fit: cover;
    border: 2px solid var(--gold-light);
}

.master-status-dot {
    position: absolute;
    bottom: 2px;
    right: 4px;
    width: 10px;
    height: 10px;
    border-radius: var(--radius-full);
    background: #10B981;
    border: 2px solid #FFFFFF;
}

.master-name {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.master-role {
    font-size: 10.5px;
    color: var(--gold-dark);
    font-weight: 600;
    margin-bottom: 8px;
}

.btn-book-master-mini {
    padding: 6px 12px;
    border-radius: var(--radius-full);
    background: var(--bg-canvas);
    border: 1px solid var(--border-hairline);
    color: var(--text-primary);
    font-size: 10.5px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
}

.btn-book-master-mini:active {
    background: var(--gold-primary);
    color: #FFFFFF;
}

/* ==========================================================================
   SCREEN 2: KATALOG (Haute Couture Boutique)
   ========================================================================== */
.catalog-category-tabs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 10px;
    margin-bottom: 14px;
    scrollbar-width: none;
}
.catalog-category-tabs::-webkit-scrollbar { display: none; }

.cat-chip {
    padding: 8px 16px;
    border-radius: var(--radius-full);
    background: var(--bg-canvas);
    border: 1px solid var(--border-hairline);
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
}

.cat-chip.active {
    background: var(--text-primary);
    color: #FFFFFF;
    border-color: var(--text-primary);
}

.catalog-search-wrap {
    position: relative;
    margin-bottom: 16px;
}

.catalog-search-input {
    width: 100%;
    padding: 12px 14px 12px 40px;
    background: #FFFFFF;
    border: 1px solid var(--border-hairline);
    border-radius: var(--radius-md);
    font-size: 13px;
    color: var(--text-primary);
    outline: none;
}

.catalog-search-input:focus {
    border-color: var(--gold-primary);
}

.catalog-search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 14px;
}

.products-masonry-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.app-product-card {
    background: #FFFFFF;
    border: 1px solid var(--border-hairline);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
}

.app-product-thumb {
    position: relative;
    width: 100%;
    height: 190px;
    background: var(--bg-canvas);
}

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

.product-tag-float {
    position: absolute;
    top: 8px;
    left: 8px;
    padding: 3px 8px;
    background: rgba(31,29,26,0.85);
    color: #FFFFFF;
    font-size: 9px;
    font-weight: 700;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.app-product-body {
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.app-product-cat {
    font-size: 10px;
    color: var(--gold-dark);
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 2px;
}

.app-product-title {
    font-size: 12.5px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.3;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.app-product-price {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary);
    margin-top: auto;
    margin-bottom: 8px;
}

.app-product-price small {
    font-size: 9.5px;
    color: var(--text-muted);
    font-weight: 500;
}

.btn-card-fit {
    padding: 8px;
    border-radius: var(--radius-sm);
    background: var(--bg-canvas);
    border: 1px solid var(--border-hairline);
    color: var(--text-primary);
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    transition: all 0.2s;
}

.btn-card-fit:active {
    background: var(--gold-primary);
    color: #FFFFFF;
}

/* ==========================================================================
   SCREEN 3: STUDIO (Virtual Pardoz & Obraz Atelyesi)
   ========================================================================== */
.studio-header-card {
    background: var(--bg-canvas);
    border: 1px solid var(--border-hairline);
    border-radius: var(--radius-md);
    padding: 14px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.studio-avatar-ring {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-full);
    padding: 2px;
    background: var(--gold-gradient);
    flex-shrink: 0;
}

.studio-avatar-img {
    width: 100%;
    height: 100%;
    border-radius: var(--radius-full);
    object-fit: cover;
}

.studio-speech {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.35;
}

/* Before / After Draggable Split View */
.mobile-split-container {
    position: relative;
    width: 100%;
    height: 320px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    margin-bottom: 16px;
    border: 1px solid var(--border-hairline);
}

.split-after-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
}

.split-before-clip {
    position: absolute;
    inset: 0;
    width: 50%;
    overflow: hidden;
    border-right: 2px solid #FFFFFF;
}

.split-before-bg {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background-size: cover;
    background-position: center;
}

.split-handle-line {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    background: #FFFFFF;
    transform: translateX(-50%);
    pointer-events: none;
}

.split-handle-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
    background: #FFFFFF;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold-dark);
    font-size: 12px;
    pointer-events: auto;
    cursor: ew-resize;
}

.split-tag {
    position: absolute;
    padding: 4px 10px;
    background: rgba(31,29,26,0.75);
    color: #FFFFFF;
    font-size: 10px;
    font-weight: 700;
    border-radius: var(--radius-full);
    letter-spacing: 0.5px;
    z-index: 2;
}
.split-tag.before-tag { top: 12px; left: 12px; }
.split-tag.after-tag { top: 12px; right: 12px; }

/* Upload / Camera Bar */
.selfie-action-row {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
}

.btn-selfie-upload {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    background: var(--bg-canvas);
    border: 1px dashed var(--gold-primary);
    border-radius: var(--radius-md);
    font-size: 12px;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
}

.btn-selfie-reset {
    padding: 12px 16px;
    background: var(--bg-canvas);
    border: 1px solid var(--border-hairline);
    border-radius: var(--radius-md);
    color: #EF4444;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}

/* Style presets chips */
.style-presets-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 18px;
}

.style-preset-card {
    padding: 12px;
    background: #FFFFFF;
    border: 1px solid var(--border-hairline);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s;
}

.style-preset-card.active {
    border-color: var(--gold-primary);
    background: var(--bg-canvas);
    box-shadow: 0 0 0 1.5px var(--gold-primary);
}

.style-preset-card h4 {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.style-preset-card p {
    font-size: 11px;
    color: var(--text-muted);
    line-height: 1.3;
}

/* Beauty Passport Compact Box */
.app-passport-box {
    background: var(--bg-canvas);
    border: 1px solid var(--border-hairline);
    border-radius: var(--radius-md);
    padding: 14px;
    margin-bottom: 18px;
}

.app-passport-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.passport-param-row {
    display: flex;
    justify-content: space-between;
    font-size: 11.5px;
    padding: 4px 0;
    border-bottom: 1px solid rgba(31,29,26,0.05);
}

.passport-param-label { color: var(--text-muted); }
.passport-param-val { font-weight: 600; color: var(--text-primary); text-align: right; }

.btn-book-studio-look {
    width: 100%;
    padding: 14px;
    background: var(--text-primary);
    color: #FFFFFF;
    border: none;
    border-radius: var(--radius-md);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: var(--shadow-md);
}

/* ==========================================================================
   SCREEN 4: BRON (Smart Booking Engine)
   ========================================================================== */
.booking-form-card {
    background: #FFFFFF;
    border: 1px solid var(--border-hairline);
    border-radius: var(--radius-lg);
    padding: 18px;
    box-shadow: var(--shadow-sm);
}

.form-group-mobile {
    margin-bottom: 16px;
}

.form-group-mobile label {
    display: block;
    font-size: 11.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.form-select-mobile, .form-input-mobile {
    width: 100%;
    padding: 12px 14px;
    background: var(--bg-canvas);
    border: 1px solid var(--border-hairline);
    border-radius: var(--radius-md);
    font-size: 13px;
    color: var(--text-primary);
    outline: none;
    font-family: inherit;
}

.form-select-mobile:focus, .form-input-mobile:focus {
    border-color: var(--gold-primary);
    background: #FFFFFF;
}

.time-slots-grid-mobile {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-top: 8px;
}

.slot-chip {
    padding: 8px 4px;
    background: var(--bg-canvas);
    border: 1px solid var(--border-hairline);
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 600;
    color: var(--text-primary);
    text-align: center;
    cursor: pointer;
}

.slot-chip.active {
    background: var(--gold-primary);
    color: #FFFFFF;
    border-color: var(--gold-primary);
}

.btn-submit-booking-mobile {
    width: 100%;
    padding: 16px;
    background: var(--text-primary);
    color: #FFFFFF;
    border: none;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

.btn-submit-booking-mobile:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ==========================================================================
   SCREEN 5: PROFIL & VIP KLUB (Loyalty & VIP Card)
   ========================================================================== */
/* Metallic Shimmering VIP Card */
.vip-gold-card {
    position: relative;
    border-radius: 20px;
    padding: 22px;
    background: var(--card-gold-gradient);
    color: #FFFFFF;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(170, 119, 28, 0.35);
    margin-bottom: 22px;
}

.vip-card-shine {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, transparent 60%);
    pointer-events: none;
    transform: rotate(25deg);
}

.vip-card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 24px;
    position: relative;
    z-index: 1;
}

.vip-logo-text {
    font-family: var(--font-serif);
    font-size: 18px;
    font-weight: 800;
    letter-spacing: 2px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.vip-tier-chip {
    padding: 4px 10px;
    border-radius: var(--radius-full);
    background: rgba(255,255,255,0.25);
    backdrop-filter: blur(4px);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.vip-card-number {
    font-family: monospace;
    font-size: 16px;
    letter-spacing: 3px;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
    text-shadow: 0 1px 3px rgba(0,0,0,0.4);
}

.vip-card-bottom {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    position: relative;
    z-index: 1;
}

.vip-holder-label {
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.8;
}

.vip-holder-name {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.vip-qr-box {
    width: 48px;
    height: 48px;
    background: #FFFFFF;
    border-radius: 8px;
    padding: 3px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.vip-qr-box svg, .vip-qr-box img {
    width: 100%;
    height: 100%;
}

/* Loyalty Balance Stat Tiles */
.loyalty-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

.loyalty-stat-card {
    background: #FFFFFF;
    border: 1px solid var(--border-hairline);
    border-radius: var(--radius-md);
    padding: 14px;
    box-shadow: var(--shadow-sm);
}

.stat-label {
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-value {
    font-size: 18px;
    font-weight: 800;
    color: var(--text-primary);
}

.stat-value.gold {
    color: var(--gold-dark);
}

/* Appointments history items */
.history-item-card {
    background: #FFFFFF;
    border: 1px solid var(--border-hairline);
    border-radius: var(--radius-md);
    padding: 14px;
    margin-bottom: 10px;
    box-shadow: var(--shadow-sm);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.history-item-left h4 {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 3px;
}

.history-item-left p {
    font-size: 11.5px;
    color: var(--text-muted);
}

.status-badge {
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-size: 10.5px;
    font-weight: 700;
}
.status-badge.confirmed { background: rgba(16, 185, 129, 0.12); color: #059669; }
.status-badge.pending { background: rgba(245, 158, 11, 0.12); color: #D97706; }

/* Support & Concierge buttons */
.concierge-buttons-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 14px;
}

.concierge-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 12px 6px;
    background: var(--bg-canvas);
    border: 1px solid var(--border-hairline);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    text-decoration: none;
    font-size: 11px;
    font-weight: 600;
    text-align: center;
}

.concierge-btn i {
    font-size: 18px;
    color: var(--gold-dark);
}

/* ==========================================================================
   BOTTOM NAVIGATION BAR (iOS / Android Luxury Dock)
   ========================================================================== */
.app-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 480px;
    height: var(--nav-height);
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--border-hairline);
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 0 10px;
    padding-bottom: env(safe-area-inset-bottom);
    z-index: 100;
}

.nav-tab-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border-radius: var(--radius-sm);
}

.nav-tab-item i {
    font-size: 19px;
    transition: transform 0.2s;
}

.nav-tab-item.active {
    color: var(--text-primary);
}

.nav-tab-item.active i {
    color: var(--gold-dark);
    transform: translateY(-2px);
}

/* ==========================================================================
   MODALS: Story Viewer & Booking Pass
   ========================================================================== */
.app-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.65);
    backdrop-filter: blur(8px);
    z-index: 200;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
}
.app-modal-overlay.active {
    display: flex;
    animation: modalBackdropIn 0.2s ease-out;
}

@keyframes modalBackdropIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.app-pass-dialog {
    background: #FFFFFF;
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 380px;
    padding: 24px;
    text-align: center;
    position: relative;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-hairline);
}

.pass-crown-badge {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-full);
    background: var(--gold-gradient);
    color: #FFFFFF;
    font-size: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px;
    box-shadow: 0 4px 14px rgba(197, 168, 128, 0.4);
}

/* ==========================================================================
   7. VIP CLIENT AUTHENTICATION & PROFILE SYSTEM (LUXURY ATELIER EDITION)
   ========================================================================== */
.auth-modal-dialog {
    background: #FFFFFF;
    border-radius: 20px;
    width: 100%;
    max-width: 410px;
    padding: 22px 20px;
    text-align: center;
    position: relative;
    box-shadow: 0 24px 60px rgba(31, 29, 26, 0.25);
    border: 1px solid var(--border-hairline);
    max-height: 92vh;
    overflow-y: auto;
}

.auth-modal-close-btn {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--bg-canvas);
    border: 1px solid var(--border-hairline);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.2s;
    z-index: 5;
}
.auth-modal-close-btn:hover {
    background: #EAE6DF;
}

.auth-dialog-header {
    margin-bottom: 16px;
    text-align: center;
}

.auth-crown-badge {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--gold-gradient);
    color: #FFFFFF;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
    box-shadow: 0 4px 14px rgba(170, 119, 28, 0.35);
}

.auth-brand-subtitle {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--gold-dark);
    font-weight: 700;
}

.auth-brand-title {
    font-family: var(--font-serif);
    font-size: 19px;
    color: var(--text-primary);
    margin: 4px 0 2px;
}

.auth-tabs-nav {
    display: flex;
    background: var(--bg-canvas);
    border-radius: 12px;
    padding: 4px;
    margin-bottom: 16px;
    gap: 4px;
}

.auth-tab-btn {
    flex: 1;
    border: none;
    background: transparent;
    padding: 9px 4px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.auth-tab-btn.active {
    background: #FFFFFF;
    color: var(--text-primary);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.telegram-otp-badge {
    background: rgba(0, 136, 204, 0.08);
    border: 1px solid rgba(0, 136, 204, 0.25);
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 11.5px;
    color: #0088cc;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    line-height: 1.4;
    text-align: left;
}
.telegram-otp-badge i {
    font-size: 16px;
    flex-shrink: 0;
}

.auth-input-group {
    margin-bottom: 13px;
    text-align: left;
}

.auth-input-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    font-weight: 700;
    margin-bottom: 5px;
    display: block;
}

.auth-input-field {
    width: 100%;
    padding: 11px 13px;
    border: 1px solid var(--border-hairline);
    border-radius: 10px;
    font-size: 13.5px;
    background: #FAFAFA;
    transition: border-color 0.2s, background 0.2s;
    box-sizing: border-box;
    font-family: inherit;
    color: var(--text-primary);
}

.auth-input-field:focus {
    outline: none;
    border-color: var(--gold-dark);
    background: #FFFFFF;
    box-shadow: 0 0 0 3px rgba(170, 119, 28, 0.12);
}

.auth-phone-row {
    display: flex;
    gap: 8px;
    align-items: stretch;
}

.btn-get-otp {
    background: var(--text-primary);
    color: #FFFFFF;
    border: none;
    border-radius: 10px;
    padding: 0 14px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: opacity 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
}
.btn-get-otp:hover {
    background: #000000;
}
.btn-get-otp:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.otp-timer-text {
    font-size: 11px;
    color: var(--gold-dark);
    margin-top: 4px;
    font-weight: 600;
}

.password-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}
.password-toggle-btn {
    position: absolute;
    right: 12px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 13px;
    padding: 4px;
}

.btn-auth-submit {
    width: 100%;
    background: var(--gold-gradient);
    color: #FFFFFF;
    border: none;
    border-radius: 12px;
    padding: 13px;
    font-size: 13.5px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(170, 119, 28, 0.35);
    transition: transform 0.15s, opacity 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 6px;
}
.btn-auth-submit:hover {
    transform: translateY(-1px);
    opacity: 0.96;
}
.btn-auth-submit:disabled {
    opacity: 0.6;
    transform: none;
    cursor: not-allowed;
}

.auth-links-row {
    margin-top: 14px;
    font-size: 12px;
    color: var(--text-secondary);
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.auth-links-row a {
    color: var(--gold-dark);
    text-decoration: none;
    font-weight: 600;
}
.auth-links-row a:hover {
    text-decoration: underline;
}

.auth-alert {
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 12px;
    margin-bottom: 12px;
    display: none;
    text-align: left;
    line-height: 1.4;
}
.auth-alert.error {
    background: #FDE8E8;
    color: #9B1C1C;
    border: 1px solid #F8B4B4;
    display: block;
}
.auth-alert.success {
    background: #DEF7EC;
    color: #03543F;
    border: 1px solid #BCF0DA;
    display: block;
}

/* Profile Screen Guest State */
.profile-guest-card {
    background: linear-gradient(135deg, #FAF7F2 0%, #FFFFFF 100%);
    border: 1px solid var(--border-hairline);
    border-radius: 18px;
    padding: 22px 16px;
    text-align: center;
    margin-bottom: 16px;
}
.profile-guest-crown {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--gold-gradient);
    color: #FFFFFF;
    font-size: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    box-shadow: 0 4px 14px rgba(170, 119, 28, 0.35);
}
.profile-guest-title {
    font-family: var(--font-serif);
    font-size: 20px;
    color: var(--text-primary);
    margin-bottom: 6px;
}
.profile-guest-desc {
    font-size: 12.5px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 16px;
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
}
.profile-guest-actions {
    display: flex;
    gap: 10px;
}
.btn-guest-login {
    flex: 1;
    padding: 12px;
    background: #FFFFFF;
    border: 1px solid var(--gold-dark);
    color: var(--gold-dark);
    border-radius: 10px;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    transition: background 0.2s;
}
.btn-guest-login:hover {
    background: #FAF7F2;
}
.btn-guest-register {
    flex: 1;
    padding: 12px;
    background: var(--gold-gradient);
    border: none;
    color: #FFFFFF;
    border-radius: 10px;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(170,119,28,0.25);
    transition: transform 0.15s;
}
.btn-guest-register:hover {
    transform: translateY(-1px);
}

.guest-perks-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 16px;
}
.guest-perk-item {
    background: #FFFFFF;
    border: 1px solid var(--border-hairline);
    border-radius: 12px;
    padding: 12px;
    text-align: left;
}
.guest-perk-icon {
    font-size: 18px;
    color: var(--gold-dark);
    margin-bottom: 6px;
}
.guest-perk-title {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 2px;
}
.guest-perk-desc {
    font-size: 11px;
    color: var(--text-muted);
    line-height: 1.35;
}

/* Profile Screen Authenticated State */
.profile-auth-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    background: #FFFFFF;
    border: 1px solid var(--border-hairline);
    border-radius: 16px;
    margin-bottom: 14px;
}
.profile-avatar-circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--gold-gradient);
    color: #FFFFFF;
    font-weight: 800;
    font-size: 17px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(170,119,28,0.25);
    flex-shrink: 0;
}
.profile-auth-info {
    flex: 1;
    margin-left: 12px;
    text-align: left;
}
.profile-client-name {
    font-family: var(--font-serif);
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
}
.profile-client-phone {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 2px;
}
.btn-edit-profile-pill {
    background: var(--bg-canvas);
    border: 1px solid var(--border-hairline);
    border-radius: 20px;
    padding: 6px 12px;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    transition: background 0.2s;
    white-space: nowrap;
}
.btn-edit-profile-pill:hover {
    background: #EAE6DF;
}

.btn-client-logout {
    width: 100%;
    background: #FFF5F5;
    border: 1px solid #FED7D7;
    color: #C53030;
    border-radius: 12px;
    padding: 12px;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    margin-top: 14px;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.btn-client-logout:hover {
    background: #FED7D7;
}

.header-avatar-initials {
    font-size: 11px;
    font-weight: 800;
    color: var(--gold-dark);
}


/* ==========================================================================
   8. AUTHENTICATION GATEWAY (OUTSIDE THE APP)
   ========================================================================== */
.auth-gateway-screen {
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    background: linear-gradient(180deg, #FAF7F2 0%, #F5EFE6 50%, #EDE4D3 100%);
    padding: 24px 16px 40px;
    box-sizing: border-box;
    position: relative;
    max-width: 440px;
    margin: 0 auto;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

@media (min-width: 600px) {
    .auth-gateway-screen {
        box-shadow: 0 25px 70px rgba(0, 0, 0, 0.4);
        border-left: 1px solid rgba(255, 255, 255, 0.08);
        border-right: 1px solid rgba(255, 255, 255, 0.08);
    }
}

.gateway-brand-header {
    text-align: center;
    margin: 12px 0 20px;
}

.gateway-crown-badge {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: var(--gold-gradient);
    color: #FFFFFF;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    box-shadow: 0 6px 20px rgba(170, 119, 28, 0.35);
}

.gateway-brand-tag {
    font-size: 10.5px;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    color: var(--gold-dark);
    font-weight: 700;
}

.gateway-brand-title {
    font-family: var(--font-serif);
    font-size: 24px;
    letter-spacing: 1.5px;
    color: var(--text-primary);
    margin: 4px 0 6px;
    font-weight: 700;
}

.gateway-brand-desc {
    font-size: 12.5px;
    color: var(--text-secondary);
    line-height: 1.45;
    max-width: 320px;
    margin: 0 auto;
}

.gateway-card {
    width: 100%;
    background: #FFFFFF;
    border-radius: 20px;
    border: 1px solid var(--border-hairline);
    box-shadow: 0 16px 40px rgba(31, 29, 26, 0.07);
    padding: 22px 18px;
    box-sizing: border-box;
}

.gateway-concierge-footer {
    margin-top: 24px;
    text-align: center;
    width: 100%;
}
.gateway-concierge-title {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    font-weight: 700;
    margin-bottom: 10px;
}
.gateway-concierge-links {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}
.gateway-concierge-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #FFFFFF;
    border: 1px solid var(--border-hairline);
    border-radius: 20px;
    padding: 8px 14px;
    font-size: 12px;
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s;
}
.gateway-concierge-btn:hover {
    border-color: var(--gold-dark);
    color: var(--gold-dark);
}

.gateway-address-info {
    font-size: 11.5px;
    color: var(--text-muted);
    line-height: 1.4;
}
