/* شاشة الإقلاع — هوية + شعار */
:root {
    --hami-boot-canvas: #0a0f1c;
    --hami-boot-canvas-deep: #05060d;
    --hami-boot-gold: #e6c673;
    color-scheme: dark;
}

html {
    color-scheme: dark;
    background: var(--hami-boot-canvas, #0a0f1c);
}

.hami-boot-cinematic,
#hami-static-boot {
    position: fixed;
    inset: 0;
    z-index: 99990;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    min-height: 100dvh;
    width: 100%;
    overflow: hidden;
    background: var(--hami-boot-canvas, #0a0f1c);
    direction: rtl;
    pointer-events: auto;
}

#hami-static-boot,
.hami-boot-cinematic {
    opacity: 1;
    transition: opacity 180ms linear;
}

.hami-boot-cinematic--exiting {
    opacity: 0 !important;
    pointer-events: none;
    animation: none !important;
}

@media (prefers-reduced-motion: reduce) {
    #hami-static-boot,
    .hami-boot-cinematic,
    .hami-boot-cinematic--exiting {
        transition: none !important;
    }
}

html.hami-boot-static-active,
html.hami-boot-static-active body {
    background: var(--hami-board-surface-bg, var(--hami-boot-canvas));
}

html[data-hami-app='handheld'] {
    -webkit-tap-highlight-color: transparent;
    overscroll-behavior-y: none;
    overscroll-behavior-x: none;
}

html.hami-native-shell .hami-lawyer-header,
html[data-hami-native='1'] .hami-lawyer-header {
    transform: translateZ(0);
    backface-visibility: hidden;
}

.hami-lawyer-header[aria-hidden='true'],
.hami-lawyer-header[data-header-visible='false'] {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

html[data-hami-app='handheld'] body {
    min-height: 100dvh;
    overscroll-behavior-y: none;
    touch-action: manipulation;
    background: var(--hami-board-surface-bg, var(--hami-boot-canvas));
}

html[data-hami-app='handheld'] #root {
    min-height: 100dvh;
    background: var(--hami-board-surface-bg, var(--hami-boot-canvas));
}

html[data-hami-native='1'] .hami-boot-cinematic,
html[data-hami-native='1'] #hami-static-boot,
html.hami-native-shell .hami-boot-cinematic,
html.hami-native-shell #hami-static-boot {
    background: var(--hami-board-surface-bg, var(--hami-boot-canvas, #0a0f1c)) !important;
}

/* طبقة الإقلاع — شعار مقفول النسبة + شريط CSS */
.hami-boot-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 28px;
    pointer-events: none;
}

.hami-boot-logo {
    display: block;
    width: 160px;
    height: 160px;
    object-fit: contain;
    object-position: center;
}

.hami-boot-progress {
    position: relative;
    width: 168px;
    height: 3px;
    border-radius: 999px;
    background: rgba(197, 160, 89, 0.2);
    overflow: hidden;
    pointer-events: none;
}

.hami-boot-progress-fill {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 34%;
    border-radius: inherit;
    background: linear-gradient(90deg, #c5a059, #d4af37, #e6c673);
    transform: none;
    will-change: left;
}

html[data-hami-global-search-open='1'] #hami-static-boot {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
    z-index: -1 !important;
}
