/* 52-access-gate.css — full-screen access screens after sign-in (js/firebase/access-gate.js):
   «حمّل التطبيق أولاً», «الحساب موقوف», «الحساب محظور», «صيانة», and closed / not verified.
   Same card as the sign-in screen (27-login.css), light theme only, tokens only. */
.access-gate {
    position: fixed; inset: 0; z-index: 10000;
    display: flex; align-items: center; justify-content: center;
    padding: var(--sp-5) var(--sp-4);
    padding-block-end: calc(var(--sp-5) + env(safe-area-inset-bottom, 0px));
    background: var(--c-bg);
    overflow-y: auto;
    font-family: var(--font-ui);
}
.access-gate__card {
    width: min(100%, 410px);
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--el-3);
    padding: var(--sp-8) var(--sp-6) var(--sp-5);
    text-align: center;
    animation: accessGateIn var(--mo-slow) var(--ease) both;
}
.access-gate__tile {
    width: 64px; height: 64px; margin: 0 auto var(--sp-4);
    border-radius: var(--radius-lg);
    display: grid; place-items: center;
    font-size: 1.6rem;
}
.access-gate__tile--brand { background: var(--c-primary-soft); color: var(--c-primary); }
.access-gate__tile--warn { background: var(--st-warn-soft); color: var(--st-warn); }
.access-gate__tile--bad { background: var(--st-bad-soft); color: var(--st-bad); }
.access-gate__tile--neutral { background: var(--st-neutral-soft); color: var(--st-neutral); }
.access-gate__title {
    margin: 0 0 var(--sp-2);
    color: var(--c-text);
    font-size: var(--fs-xl); font-weight: 800; line-height: var(--lh-tight);
}
.access-gate__title:focus { outline: none; }
.access-gate__text {
    margin: 0 auto var(--sp-4); max-width: 330px;
    color: var(--c-text-muted);
    font-size: var(--fs-md); font-weight: 600; line-height: var(--lh-body);
}
.access-gate__until {
    display: flex; flex-direction: column; gap: var(--sp-1);
    margin: 0 auto var(--sp-4); padding: var(--sp-3) var(--sp-4);
    max-width: 330px;
    background: var(--c-surface-2);
    border-radius: var(--radius-md);
}
.access-gate__until-label { color: var(--c-text-muted); font-size: var(--fs-xs); font-weight: 700; }
.access-gate__until-value { color: var(--c-text); font-size: var(--fs-md); font-weight: 800; }
.access-gate__account {
    display: flex; align-items: center; justify-content: center; gap: var(--sp-2);
    margin: 0 0 var(--sp-5);
    color: var(--c-text); font-size: var(--fs-sm); font-weight: 700;
    overflow-wrap: anywhere;
}
.access-gate__account i { color: var(--c-text-muted); }
.access-gate__actions { display: grid; gap: var(--sp-2); }
.access-gate__btn {
    display: flex; align-items: center; justify-content: center; gap: var(--sp-2);
    min-height: var(--tap); width: 100%;
    padding: var(--sp-3) var(--sp-4);
    border: 1px solid transparent; border-radius: var(--radius-md);
    font: inherit; font-size: var(--fs-md); font-weight: 800;
    text-decoration: none; cursor: pointer;
    transition: transform var(--mo-fast) var(--ease), background-color var(--mo-fast) var(--ease);
}
.access-gate__btn:active { transform: scale(0.98); }
.access-gate__btn:focus-visible { outline: 2px solid var(--c-primary); outline-offset: 2px; }
.access-gate__btn[disabled] { opacity: 0.6; cursor: default; }
.access-gate__btn--primary { background: var(--c-primary); color: var(--c-on-primary); }
.access-gate__btn--secondary { background: var(--c-primary-soft); color: var(--c-primary); }
.access-gate__btn--quiet { background: transparent; color: var(--c-text-muted); border-color: var(--c-border); }
@keyframes accessGateIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .access-gate__card { animation: none; } }
