/* =============================================================================
   StudioColor SaaS — Ultra-Refined iOS Liquid Glass Authentication & Profile Styles
   ============================================================================= */

/* html is the wallpaper carrier on iOS Safari — do NOT reset its background-image to none */
html {
    background-color: #141219 !important;
}
/* body must not carry its own background image — wallpaper lives on html */
body {
    background-color: #141219 !important;
    background-image: none !important;
}


/* Fixed transparent layer for the Auth Overlay, wallpaper is served by hardware #pwa-wallpaper-layer */
.auth-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    min-height: 100% !important;
    height: 100% !important;
    padding: calc(env(safe-area-inset-top) + 2rem) 1.25rem calc(env(safe-area-inset-bottom) + 2rem) 1.25rem !important;
    box-sizing: border-box !important;
    display: flex !important;
    align-items: flex-start !important;
    justify-content: center !important;
    z-index: 99999 !important;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    background: transparent !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    scroll-behavior: smooth !important;
    overscroll-behavior: contain !important;
}

html.is-keyboard-visible .auth-overlay,
body.is-keyboard-visible .auth-overlay {
    padding-top: calc(env(safe-area-inset-top) + 0.75rem) !important;
    padding-bottom: max(calc(var(--keyboard-height, 0px) + 36px), 320px) !important;
}

/* Auth overlay wallpaper: position:fixed escapes overflow-y:auto clipping and
   covers the full physical viewport — including the Home Bar safe area.
   z-index:-1 puts it behind the auth card content but inside the overlay stacking context. */
.auth-overlay::before {
    display: block !important;
    content: '' !important;
    position: fixed !important;
    inset: 0 !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: -1 !important;
    pointer-events: none !important;
    background-color: #141219 !important;
    background-image:
        linear-gradient(
          180deg,
          rgba(11, 15, 25, 0.2) 0%,
          rgba(11, 15, 25, 0.1) 40%,
          rgba(11, 15, 25, 0.25) 100%
        ),
        var(--app-wallpaper-url, url("fon/photo_1_2026-06-24_18-19-58.webp")) !important;
    background-position: var(--app-wallpaper-position, center center) !important;
    background-size: cover !important;
    background-repeat: no-repeat !important;
    background-attachment: scroll !important;
}

.auth-overlay.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* Authentic iOS Liquid Glass Modal Card */
.auth-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.14) 0%, rgba(255, 255, 255, 0.06) 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.22) !important;
    border-radius: 28px !important;
    padding: 2.25rem 1.85rem !important;
    width: 100% !important;
    max-width: 390px !important;
    backdrop-filter: blur(50px) saturate(150%) !important;
    -webkit-backdrop-filter: blur(50px) saturate(150%) !important;
    box-shadow: 
        inset 0 1px 0 rgba(255, 255, 255, 0.45),
        inset 0 20px 40px rgba(255, 255, 255, 0.05),
        0 24px 64px rgba(0, 0, 0, 0.35) !important;
    box-sizing: border-box !important;
    display: flex !important;
    flex-direction: column !important;
    position: relative !important;
    margin: auto 0 !important;
    transition: transform 0.28s cubic-bezier(0.25, 1, 0.5, 1), margin 0.28s cubic-bezier(0.25, 1, 0.5, 1);
    animation: authCardIn 0.24s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

html.is-keyboard-visible .auth-card,
body.is-keyboard-visible .auth-card {
    margin: 0 auto !important;
}

@keyframes authCardIn {
    from {
        opacity: 0;
        transform: scale(0.96) translateY(8px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.auth-header {
    text-align: center;
    margin-bottom: 1.75rem;
}

.auth-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 0.4rem;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}

.auth-subtitle {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    line-height: 1.45;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
}

.auth-field {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.auth-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: rgba(255, 255, 255, 0.8);
    margin-left: 0.25rem;
}

.auth-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.auth-input {
    width: 100%;
    height: 48px;
    padding: 0 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    font-size: 16px !important;
    font-family: inherit;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.07);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    outline: none;
    transition: border-color 0.18s cubic-bezier(0.23, 1, 0.32, 1), background 0.18s cubic-bezier(0.23, 1, 0.32, 1), box-shadow 0.18s cubic-bezier(0.23, 1, 0.32, 1);
    box-sizing: border-box;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.15);
}

.auth-input.has-toggle {
    padding-right: 44px;
}

.auth-pwd-toggle {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    opacity: 0.85;
    border-radius: 10px;
    transition: opacity 0.15s ease, background 0.15s ease, transform 0.14s cubic-bezier(0.23, 1, 0.32, 1);
    z-index: 10;
    -webkit-tap-highlight-color: transparent;
}

.auth-pwd-toggle:hover {
    color: #ffffff;
    opacity: 1;
    background: rgba(255, 255, 255, 0.14);
    transform: translateY(-50%) scale(1.05);
}

.auth-pwd-toggle:active {
    transform: translateY(-50%) scale(0.92);
}

.auth-pwd-toggle i,
.auth-pwd-toggle svg {
    width: 20px;
    height: 20px;
    stroke: #ffffff;
    stroke-width: 2;
    pointer-events: none;
    display: block;
}

.auth-input::placeholder {
    color: rgba(255, 255, 255, 0.35);
}

.auth-input:focus {
    border-color: rgba(255, 255, 255, 0.45);
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        0 0 0 3px rgba(255, 255, 255, 0.15);
}

.auth-btn-primary {
    width: 100% !important;
    box-sizing: border-box !important;
    height: 48px;
    min-height: 48px;
    padding: 0 20px !important;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.28) 0%, rgba(255, 255, 255, 0.12) 100%);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.32);
    border-radius: 16px;
    font-size: 0.98rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    margin-top: 0.4rem;
    transition: transform 0.14s cubic-bezier(0.23, 1, 0.32, 1), background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 
        inset 0 1px 0 rgba(255, 255, 255, 0.45),
        0 8px 24px rgba(0, 0, 0, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.auth-btn-primary:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.34) 0%, rgba(255, 255, 255, 0.16) 100%);
    border-color: rgba(255, 255, 255, 0.45);
    box-shadow: 
        inset 0 1px 0 rgba(255, 255, 255, 0.6),
        0 10px 30px rgba(0, 0, 0, 0.32);
}

.auth-btn-primary:active {
    transform: scale(0.98);
    background: rgba(255, 255, 255, 0.2);
}

.auth-btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.auth-error-banner {
    padding: 0.85rem 1.1rem;
    background: rgba(255, 69, 58, 0.09);
    border: 1px solid rgba(255, 69, 58, 0.28);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 16px;
    color: #ff9b97;
    font-size: 0.88rem;
    font-weight: 600;
    display: none;
    margin-bottom: 0.85rem;
    line-height: 1.45;
    text-align: center;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.auth-success-banner {
    padding: 0.85rem 1.1rem;
    background: rgba(52, 199, 89, 0.1);
    border: 1px solid rgba(52, 199, 89, 0.3);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 16px;
    color: #34c759;
    font-size: 0.88rem;
    font-weight: 600;
    display: none;
    margin-bottom: 0.85rem;
    line-height: 1.45;
    text-align: center;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.auth-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1.35rem;
    text-align: center;
}

.auth-link {
    font-size: 0.84rem;
    color: rgba(255, 255, 255, 0.68);
    cursor: pointer;
    text-decoration: none;
    transition: color 0.16s ease, transform 140ms cubic-bezier(0.23, 1, 0.32, 1), opacity 140ms ease;
}

.auth-link:hover {
    color: #ffffff;
}

.auth-link:active {
    transform: scale(0.97);
    opacity: 0.8;
}

/* =============================================================================
   Profile & User Card Liquid Glass Component Styles
   ============================================================================= */

.profile-user-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.05) 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.14) !important;
    border-radius: 24px !important;
    backdrop-filter: blur(var(--glass-blur, 40px)) saturate(var(--glass-saturate, 140%)) !important;
    -webkit-backdrop-filter: blur(var(--glass-blur, 40px)) saturate(var(--glass-saturate, 140%)) !important;
    box-shadow: none !important;
    padding: 18px 16px !important;
    display: flex !important;
    align-items: center !important;
    gap: 16px !important;
    margin-bottom: 14px !important;
    cursor: pointer !important;
    user-select: none !important;
    transition: transform 0.18s cubic-bezier(0.16, 1, 0.3, 1), background 0.2s ease !important;
}

.profile-user-card:active {
    transform: scale(0.985) !important;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0.08) 100%) !important;
}

.profile-avatar-label {
    display: inline-flex;
    cursor: pointer;
    margin: 0;
    padding: 0;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}


.profile-avatar-wrapper {
    position: relative;
    flex-shrink: 0;
}

.profile-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.25) 0%, rgba(255, 255, 255, 0.08) 100%);
    border: 1.5px solid rgba(255, 255, 255, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 700;
    color: #ffffff;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.5);
    overflow: hidden;
    position: relative;
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}

.avatar-camera-badge {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #007aff;
    border: 2px solid rgba(255, 255, 255, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
    pointer-events: none;
}

.avatar-camera-badge svg {
    width: 10px;
    height: 10px;
}


.profile-info-block {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.profile-name-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
}

.profile-user-name {
    margin: 0;
    font-size: 17px;
    font-weight: 600;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: -0.01em;
}

.profile-role-badge {
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 12px;
    background: rgba(52, 199, 89, 0.18);
    border: 1px solid rgba(52, 199, 89, 0.4);
    color: #30d158;
    font-weight: 600;
    letter-spacing: 0.02em;
    flex-shrink: 0;
}

.profile-user-email {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.65);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.profile-salon-row {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.48);
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 2px;
}

.profile-salon-row svg {
    width: 12px;
    height: 12px;
    color: rgba(255, 255, 255, 0.5);
}

/* =============================================================================
   Full-Screen Master Profile & Edit Profile Screens (Liquid Glass)
   ============================================================================= */

.master-profile-screen,
.edit-profile-screen {
    box-sizing: border-box !important;
    position: fixed !important;
    inset: 0 !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    min-width: 100% !important;
    height: 100% !important;
    min-height: -webkit-fill-available !important;
    min-height: var(--app-vh-safe, 100dvh) !important;
    max-height: var(--app-vh-safe, 100dvh) !important;
    overflow: hidden !important;
    overscroll-behavior: none !important;
    display: none;
    flex-direction: column !important;
    padding: calc(16px + env(safe-area-inset-top)) var(--page-x) 0 var(--page-x) !important;
    z-index: 990 !important;
}

.master-profile-screen.is-active,
.edit-profile-screen.is-active {
    display: flex !important;
}

.master-profile-scroll-content,
.edit-profile-scroll-content {
    flex: 1 1 0% !important;
    min-height: 0 !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    -webkit-overflow-scrolling: touch !important;
    overscroll-behavior: contain !important;
    touch-action: pan-y !important;
    padding-top: 12px !important;
    padding-bottom: calc(var(--tabbar-height) + 48px + env(safe-area-inset-bottom)) !important;
    box-sizing: border-box !important;
}

.master-profile-scroll-content::-webkit-scrollbar,
.edit-profile-scroll-content::-webkit-scrollbar {
    display: none !important;
}


/* Master Screen Header matching .home-header exact placement & typography */
.master-screen-header {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 14px !important;
    margin-bottom: var(--header-gap, 16px) !important;
    padding: 0 4px !important;
    box-sizing: border-box !important;
}

.master-screen-header .settings-back-btn {
    flex-shrink: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 40px !important;
    height: 40px !important;
    border-radius: 50% !important;
    background: rgba(255, 255, 255, 0.12) !important;
    border: 1px solid rgba(255, 255, 255, 0.22) !important;
    color: #ffffff !important;
    cursor: pointer !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    transition: transform 0.14s cubic-bezier(0.23, 1, 0.32, 1), background 0.16s ease !important;
    box-shadow: none !important;
    padding: 0 !important;
}

.master-screen-header .settings-back-btn:active {
    transform: scale(0.94) !important;
    background: rgba(255, 255, 255, 0.22) !important;
}

.master-screen-header .settings-back-btn i,
.master-screen-header .settings-back-btn svg {
    width: 20px !important;
    height: 20px !important;
    stroke-width: 2.2 !important;
    color: #ffffff !important;
}

.master-screen-header .home-welcome {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    text-align: left !important;
    flex: 1 !important;
    gap: 2px !important;
}

.master-screen-header .home-title {
    font-size: 28px !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    margin: 0 !important;
    letter-spacing: -0.5px !important;
    line-height: 1.15 !important;
}

.master-screen-header .home-date {
    font-size: 13px !important;
    font-weight: 500 !important;
    color: rgba(255, 255, 255, 0.65) !important;
    letter-spacing: -0.1px !important;
}

/* Compact Master Hero Card without heavy shadows */
.master-hero-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 18px 16px 16px !important;
    margin-bottom: 12px !important;
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.16) !important;
    border-radius: 24px !important;
    backdrop-filter: blur(35px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(35px) saturate(180%) !important;
    box-shadow: none !important;
}

.master-hero-avatar-wrapper {
    position: relative;
    margin-bottom: 8px;
}

.master-hero-avatar {
    width: 76px !important;
    height: 76px !important;
    font-size: 32px !important;
    border-radius: 50% !important;
    border: 2px solid rgba(255, 255, 255, 0.3) !important;
    box-shadow: none !important;
    background: linear-gradient(135deg, rgba(10, 132, 255, 0.85) 0%, rgba(94, 92, 230, 0.85) 100%) !important;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.master-hero-name {
    margin: 0 0 4px 0 !important;
    font-size: 20px !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    letter-spacing: -0.3px;
}

.master-hero-badges {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

/* Элегантный зеленый статус Владелец */
.badge-role,
#hero-role-badge {
    display: inline-flex !important;
    align-items: center !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    color: #30d158 !important;
    background: rgba(48, 209, 88, 0.15) !important;
    border: 1px solid rgba(48, 209, 88, 0.32) !important;
    padding: 2px 9px !important;
    border-radius: 999px !important;
    letter-spacing: -0.01em !important;
    line-height: 1.2 !important;
}

#info-role {
    color: #30d158 !important;
    font-weight: 600 !important;
}

.badge-dot {
    color: rgba(255, 255, 255, 0.35);
    font-size: 12px;
}

.master-hero-salon {
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
}

.master-hero-email {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.55);
    word-break: break-all;
}

/* Subtle Glass Edit Pill Button */
.master-edit-pill-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    padding: 8px 18px;
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: transform 0.14s cubic-bezier(0.23, 1, 0.32, 1), background 0.16s ease;
    box-shadow: none !important;
}

.master-edit-pill-btn:active {
    transform: scale(0.96);
    background: rgba(255, 255, 255, 0.2);
}

.master-edit-pill-btn i,
.master-edit-pill-btn svg {
    width: 14px;
    height: 14px;
    color: #ffffff;
}

/* Grouped iOS-Style Profile Details Card */
.master-grouped-list {
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    overflow: hidden;
    margin-top: 10px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: none !important;
}

.master-grouped-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    gap: 12px;
}

.master-grouped-row:last-child {
    border-bottom: none;
}

.master-row-left {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.master-row-icon {
    width: 32px;
    height: 32px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.master-row-icon i,
.master-row-icon svg {
    width: 16px;
    height: 16px;
}

.master-row-label {
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
    white-space: nowrap;
}

.master-row-val {
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
    text-align: right;
    word-break: break-word;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Security & Password Action Item (Fixed Arrow Icon & No Shadows) */
.account-actions-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
}

.account-action-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 18px;
    color: #ffffff;
    cursor: pointer;
    text-align: left;
    transition: transform 0.14s cubic-bezier(0.23, 1, 0.32, 1), background 0.16s ease;
    box-sizing: border-box;
    box-shadow: none !important;
}

.account-action-item:active {
    transform: scale(0.98);
    background: rgba(255, 255, 255, 0.12);
}

.account-action-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    overflow: hidden;
}

.account-action-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(255, 159, 10, 0.15);
    color: #ff9f0a;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.account-action-icon i,
.account-action-icon svg {
    width: 18px !important;
    height: 18px !important;
}

.account-action-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    overflow: hidden;
}

.account-action-title {
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
}

.account-action-sub {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
}

.account-action-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    color: rgba(255, 255, 255, 0.4);
    flex-shrink: 0;
}

.account-action-arrow i,
.account-action-arrow svg {
    width: 18px !important;
    height: 18px !important;
    max-width: 18px !important;
    max-height: 18px !important;
}

/* Master Logout Glass Button */
.master-logout-glass-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    height: 50px;
    background: rgba(255, 69, 58, 0.12);
    border: 1px solid rgba(255, 69, 58, 0.3);
    border-radius: 18px;
    color: #ff453a;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    backdrop-filter: blur(25px) saturate(180%);
    -webkit-backdrop-filter: blur(25px) saturate(180%);
    box-shadow: none !important;
    transition: transform 0.14s cubic-bezier(0.23, 1, 0.32, 1), background 0.16s ease;
}

.master-logout-glass-btn:active {
    transform: scale(0.97);
    background: rgba(255, 69, 58, 0.2);
}

.master-logout-glass-btn i,
.master-logout-glass-btn svg {
    width: 18px;
    height: 18px;
}

/* Pure Liquid Glass Action Buttons (Matching .master-edit-pill-btn style) */
.master-save-btn-white,
.master-save-btn-glass {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    width: 100% !important;
    height: 52px !important;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0.08) 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.24) !important;
    border-radius: 999px !important;
    color: #ffffff !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    backdrop-filter: blur(25px) saturate(140%) !important;
    -webkit-backdrop-filter: blur(25px) saturate(140%) !important;
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.35) !important;
    text-shadow: none !important;
    transition: transform 0.14s cubic-bezier(0.23, 1, 0.32, 1), background 0.16s ease, border-color 0.16s ease !important;
}

.master-save-btn-white:active,
.master-save-btn-glass:active {
    transform: scale(0.97) !important;
    background: rgba(255, 255, 255, 0.24) !important;
    border-color: rgba(255, 255, 255, 0.35) !important;
}

.master-avatar-btn-white,
.master-avatar-btn-glass {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0.08) 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.24) !important;
    color: #ffffff !important;
    font-weight: 600 !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.35) !important;
}

.master-avatar-btn-white:active,
.master-avatar-btn-glass:active {
    background: rgba(255, 255, 255, 0.24) !important;
}

/* Avatar action pills */
.master-avatar-action-btn {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    border-radius: 999px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    padding: 8px 18px !important;
    backdrop-filter: blur(15px) !important;
    -webkit-backdrop-filter: blur(15px) !important;
    transition: transform 0.14s cubic-bezier(0.23, 1, 0.32, 1), background 0.16s ease !important;
}

.master-avatar-action-btn:active {
    transform: scale(0.95) !important;
}

/* Change Password Bottom Sheet (Pure Liquid Glass Matching All Sheets) */
.change-password-sheet {
    height: auto !important;
    max-height: 90dvh !important;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0.08) 100%) !important;
    border: 1.5px solid rgba(255, 255, 255, 0.24) !important;
    border-bottom: none !important;
    border-radius: 36px 36px 0 0 !important;
    backdrop-filter: blur(45px) saturate(140%) !important;
    -webkit-backdrop-filter: blur(45px) saturate(140%) !important;
    box-shadow: 
        inset 0 1px 1px rgba(255, 255, 255, 0.35),
        inset 0 20px 40px rgba(255, 255, 255, 0.05),
        0 -16px 45px rgba(0, 0, 0, 0.3) !important;
    padding: 14px 20px calc(env(safe-area-inset-bottom) + 90px) 20px !important;
    box-sizing: border-box !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
}

.change-password-sheet .sheet-handle {
    width: 48px !important;
    height: 5px !important;
    background: rgba(255, 255, 255, 0.35) !important;
    border-radius: 999px !important;
    margin: 0 auto 12px auto !important;
    flex-shrink: 0 !important;
}

.change-password-sheet .sheet-head {
    flex-shrink: 0 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12) !important;
    padding-bottom: 12px !important;
    margin-bottom: 12px !important;
}

.change-password-sheet .auth-input {
    height: 48px !important;
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.16) !important;
    font-size: 16px !important;
    color: #ffffff !important;
    border-radius: 14px !important;
    box-shadow: none !important;
}

.change-password-sheet .auth-input:focus {
    border-color: rgba(255, 255, 255, 0.4) !important;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.15) !important;
}

/* ==========================================================================
   Liquid Glass Invitation Form (Pixel-perfect Apple Design System)
   ========================================================================== */
#auth-form-invite {
    width: 100% !important;
    box-sizing: border-box !important;
}

#inv-valid-state {
    display: flex !important;
    flex-direction: column !important;
    gap: 14px !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.inv-salon-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.05) 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.22) !important;
    border-radius: 20px !important;
    padding: 16px 18px !important;
    box-shadow: 
        inset 0 1px 0 rgba(255, 255, 255, 0.4),
        0 8px 24px rgba(0, 0, 0, 0.16) !important;
    backdrop-filter: blur(24px) saturate(160%) !important;
    -webkit-backdrop-filter: blur(24px) saturate(160%) !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    box-sizing: border-box !important;
    width: 100% !important;
    margin-bottom: 2px !important;
}

.inv-salon-header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 10px !important;
}

.inv-salon-badge-title {
    font-size: 11px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.06em !important;
    font-weight: 700 !important;
    color: rgba(255, 255, 255, 0.6) !important;
}

.inv-role-badge {
    display: inline-flex !important;
    align-items: center !important;
    padding: 3px 10px !important;
    border-radius: 999px !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    letter-spacing: 0.02em !important;
    background: rgba(52, 199, 89, 0.18) !important;
    color: #30d158 !important;
    border: 1px solid rgba(52, 199, 89, 0.36) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
}

.inv-role-badge.is-admin {
    background: rgba(10, 132, 255, 0.18) !important;
    color: #0a84ff !important;
    border-color: rgba(10, 132, 255, 0.36) !important;
}

.inv-salon-title {
    font-size: 17px !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    letter-spacing: -0.02em !important;
    line-height: 1.3 !important;
    margin: 0 !important;
}

.inv-salon-desc {
    font-size: 13px !important;
    color: rgba(255, 255, 255, 0.72) !important;
    line-height: 1.4 !important;
    margin: 0 !important;
}

.auth-input.is-readonly {
    background: rgba(255, 255, 255, 0.04) !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
    color: rgba(255, 255, 255, 0.85) !important;
    cursor: default !important;
    user-select: all !important;
}

.auth-field-hint {
    font-size: 11px !important;
    line-height: 1.35 !important;
    color: rgba(255, 255, 255, 0.45) !important;
    margin-top: 2px !important;
    padding-left: 2px !important;
}

#inv-error-state {
    background: linear-gradient(135deg, rgba(255, 69, 58, 0.16) 0%, rgba(255, 69, 58, 0.08) 100%) !important;
    border: 1px solid rgba(255, 69, 58, 0.35) !important;
    border-radius: 20px !important;
    padding: 20px 18px !important;
    text-align: center !important;
    backdrop-filter: blur(24px) !important;
    -webkit-backdrop-filter: blur(24px) !important;
    box-shadow: 
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        0 8px 24px rgba(0, 0, 0, 0.2) !important;
    box-sizing: border-box !important;
    width: 100% !important;
    margin-bottom: 12px !important;
}

#btn-submit-invite {
    width: 100% !important;
    min-height: 50px !important;
    margin-top: 6px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    letter-spacing: -0.01em !important;
}




