/* Accmaa (AI) + admin contact dock — stamp 20260907f */
.axg-dock {
    position: fixed;
    z-index: 9180;
    inset-inline-end: max(14px, env(safe-area-inset-right, 0px) + 10px);
    bottom: max(18px, env(safe-area-inset-bottom, 0px) + 14px);
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
}
.axg-open .axg-dock { display: none; }

.axg-dock__btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid #FFD54F;
    background: #0A3669;
    color: #FFD54F;
    display: inline-grid;
    place-items: center;
    text-decoration: none;
    box-shadow: 0 8px 18px rgba(4, 24, 48, 0.32);
    transition: transform 0.18s ease, background 0.18s ease;
}
.axg-dock__btn i {
    font-size: 1.15rem;
    line-height: 1;
}
.axg-dock__btn:hover,
.axg-dock__btn:focus-visible {
    transform: translateY(-2px);
    outline: none;
}
.axg-dock__btn--wa {
    background: #128C7E;
    border-color: #25D366;
    color: #fff;
}
.axg-dock__btn--wa:hover,
.axg-dock__btn--wa:focus-visible {
    background: #0e7a6d;
}
.axg-dock__btn--phone {
    background: #0A3669;
    border-color: #C9A227;
    color: #FFD54F;
    box-shadow: 0 8px 18px rgba(4, 24, 48, 0.38), inset 0 0 0 1px rgba(201, 162, 39, 0.35);
}
.axg-dock__btn--phone:hover,
.axg-dock__btn--phone:focus-visible {
    background: #082a52;
    border-color: #FFD54F;
    color: #FFE082;
}
.axg-dock__btn--phone .axg-dock__svg {
    display: block;
}

.axg-fab {
    position: relative;
    z-index: 1;
    inset: auto;
    min-height: 52px;
    padding: 6px 14px 6px 8px;
    border-radius: 999px;
    border: 2px solid #FFD54F;
    background: #0A3669;
    color: #fff;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font: 800 0.95rem/1 Cairo, Tahoma, sans-serif;
    letter-spacing: 0;
    box-shadow: 0 8px 22px rgba(4, 24, 48, 0.36);
    cursor: pointer;
    -webkit-font-smoothing: antialiased;
    text-rendering: geometricPrecision;
    transform: none;
    image-rendering: auto;
}
.axg-fab__mark,
.axg__mark {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #FFD54F;
    color: #0A3669;
    display: inline-grid;
    place-items: center;
    flex: 0 0 34px;
    overflow: hidden;
    border: 2px solid #fff;
    box-shadow: 0 2px 8px rgba(6, 31, 61, 0.2);
}
.axg-fab__mark img,
.axg__mark img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.axg-fab__mark i,
.axg__mark i {
    font-size: 14px;
    line-height: 1;
    color: #0A3669;
}
.axg-hit .axg-privacy {
    margin: 8px 0 0;
    font-size: 0.78rem;
    line-height: 1.5;
    color: #4b5d73;
}
.axg-fab__txt { white-space: nowrap; }

.axg { position: relative; z-index: 9400; }
.axg[hidden],
.axg[inert] {
    display: none !important;
    pointer-events: none !important;
    visibility: hidden !important;
}
.axg[aria-hidden="true"] {
    pointer-events: none !important;
}
.axg__scrim {
    position: fixed; inset: 0;
    background: rgba(6, 24, 48, 0.42);
}
.axg__sheet {
    position: fixed;
    inset-inline-end: max(12px, env(safe-area-inset-right, 0px) + 8px);
    bottom: max(16px, env(safe-area-inset-bottom, 0px) + 12px);
    width: min(440px, calc(100vw - 24px));
    max-height: min(86vh, 760px);
    overflow: auto;
    background: #fff;
    color: #0A3669;
    border-radius: 18px;
    border: 1px solid #e6dcc4;
    box-shadow: 0 18px 44px rgba(10, 54, 105, 0.2);
    padding: 18px 18px 16px;
    -webkit-font-smoothing: antialiased;
}
.axg__head { display: flex; gap: 12px; align-items: flex-start; justify-content: space-between; }
.axg__eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    color: #8a6d12; font-size: 0.8rem; font-weight: 800;
}
.axg__head h2 { margin: 6px 0 6px; font-size: 1.35rem; color: #0A3669; }
.axg__head p { margin: 0; color: #334155; line-height: 1.65; font-size: 0.92rem; }
.axg__x {
    width: 36px; height: 36px; border: 0; border-radius: 10px;
    background: #f4efe2; color: #0A3669; cursor: pointer;
}
.axg__form { display: flex; gap: 8px; margin: 16px 0 14px; }
.axg__form input {
    flex: 1; min-width: 0; height: 44px; border-radius: 12px;
    border: 1px solid #d7cba8; padding: 0 12px; font: inherit; color: #0A3669;
    background: #fffaf0;
}
.axg-group { margin: 0 0 12px; }
.axg-group h3 {
    margin: 0 0 6px;
    font-size: 0.78rem;
    letter-spacing: 0.02em;
    color: #6b5a2a;
}
.axg__chips { display: flex; flex-wrap: wrap; gap: 6px; }
.axg-chip {
    border: 1px solid #e6dcc4; background: #f7f4ea; color: #0A3669;
    border-radius: 999px; padding: 7px 12px; font: 700 0.8rem/1.2 inherit; cursor: pointer;
}
.axg-chip:hover { border-color: #D4AF37; background: #fff; }
.axg__answer { margin-top: 8px; min-height: 0; }
.axg-hit, .axg-miss {
    background: #f7f4ea; border: 1px solid #e6dcc4; border-radius: 12px;
    padding: 12px 14px; color: #0A3669; line-height: 1.7; margin: 0;
}
.axg__note { margin: 12px 0 0; font-size: 0.78rem; color: #4b5d73; line-height: 1.55; }
.axg__foot { margin-top: 12px; }
.axg-btn {
    display: inline-flex; align-items: center; gap: 8px;
    border-radius: 12px; border: 1px solid transparent;
    padding: 10px 14px; font: 700 0.9rem/1 inherit; cursor: pointer;
}
.axg-btn--navy, .axg-btn--gold { background: #0A3669; color: #fff; }
.axg-btn--gold { border-color: #D4AF37; }
.axg-btn--ghost { background: #fff; border-color: #d7cba8; color: #0A3669; }
.axg__sr {
    position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0);
}
@media (max-width: 640px) {
    .axg__sheet { inset-inline: 8px; width: auto; bottom: 8px; }
    .axg-fab { padding: 6px 12px 6px 7px; }
    .axg-fab__txt { font-size: 0.82rem; }
}

/* 20260907p — إلغاء طبقات شبحية (مودال/بحث/دليل مغلق) */
html body .modal-overlay:not(.show),
html body #loginModal:not(.show) {
    display: none !important;
    pointer-events: none !important;
    visibility: hidden !important;
}
html body #searchOverlay:not(.show),
html body .search-overlay:not(.show) {
    pointer-events: none !important;
}
html body:not(.ax-tour-active) .ax-tour-mask,
html body:not(.ax-tour-active) .ax-tour-hud,
html body:not(.ax-tour-active) .ax-tour-spotlight,
html body:not(.ax-tour-active) [data-ax-tour-layer] {
    display: none !important;
    pointer-events: none !important;
}
