#ghawia-toast-stack {
    position: fixed;
    z-index: 2147483000;
    inset-inline-end: 22px;
    bottom: 104px;
    display: grid;
    gap: 10px;
    width: min(390px, calc(100vw - 32px));
    pointer-events: none;
    direction: rtl;
}
.ghawia-toast {
    --toast-accent: #c99a43;
    position: relative;
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) 24px;
    align-items: center;
    gap: 11px;
    padding: 13px 12px 13px 14px;
    overflow: hidden;
    border: 1px solid rgba(201, 154, 67, .58);
    border-inline-start: 4px solid var(--toast-accent);
    border-radius: 16px;
    background: linear-gradient(135deg, #16191f 0%, #20283a 100%);
    color: #fffaf0;
    box-shadow: 0 18px 40px rgba(17, 18, 22, .32), inset 0 1px 0 rgba(255, 255, 255, .08);
    font-family: Tajawal, Arial, sans-serif;
    pointer-events: auto;
    animation: ghawiaToastIn .38s cubic-bezier(.22, .8, .24, 1) both;
}
.ghawia-toast::after {
    content: '';
    position: absolute;
    inset-inline-start: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--toast-accent), transparent 72%);
    opacity: .85;
}
.ghawia-toast--success { --toast-accent: #c99a43; }
.ghawia-toast--error { --toast-accent: #d97569; }
.ghawia-toast--warning { --toast-accent: #e2ae54; }
.ghawia-toast--info { --toast-accent: #82a4cb; }
.ghawia-toast__icon {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border: 1px solid rgba(255, 239, 203, .6);
    border-radius: 12px;
    background: rgba(201, 154, 67, .18);
    color: var(--toast-accent);
    font-family: Arial, sans-serif;
    font-size: 19px;
    font-weight: 900;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1);
}
.ghawia-toast--error .ghawia-toast__icon { background: rgba(217, 117, 105, .18); }
.ghawia-toast--warning .ghawia-toast__icon { background: rgba(226, 174, 84, .18); }
.ghawia-toast--info .ghawia-toast__icon { background: rgba(130, 164, 203, .18); }
.ghawia-toast__message {
    min-width: 0;
    color: #fffaf0;
    font-size: .9rem;
    font-weight: 800;
    line-height: 1.55;
    text-wrap: balance;
}
.ghawia-toast__close {
    width: 24px;
    height: 24px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #e7d8be;
    cursor: pointer;
    font-size: 20px;
    line-height: 1;
    opacity: .8;
    transition: .18s;
}
.ghawia-toast__close:hover { background: rgba(255, 255, 255, .1); color: #fff; opacity: 1; }
.ghawia-toast.is-leaving { animation: ghawiaToastOut .28s ease forwards; }
@keyframes ghawiaToastIn {
    from { opacity: 0; transform: translate3d(18px, 10px, 0) scale(.96); }
    to { opacity: 1; transform: translate3d(0, 0, 0) scale(1); }
}
@keyframes ghawiaToastOut {
    to { opacity: 0; transform: translate3d(18px, 6px, 0) scale(.97); }
}
@media (max-width: 640px) {
    #ghawia-toast-stack { inset-inline: 16px; bottom: 88px; width: auto; }
    .ghawia-toast { grid-template-columns: 38px minmax(0, 1fr) 23px; padding: 12px; }
    .ghawia-toast__icon { width: 35px; height: 35px; border-radius: 11px; }
    .ghawia-toast__message { font-size: .85rem; }
}
@media (prefers-reduced-motion: reduce) {
    .ghawia-toast, .ghawia-toast.is-leaving { animation: none; }
}

.ghawia-confirm-backdrop {
    position: fixed;
    z-index: 2147483001;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 20px;
    background: rgba(8, 10, 14, .62);
    backdrop-filter: blur(7px);
    -webkit-backdrop-filter: blur(7px);
    animation: ghawiaConfirmBackdropIn .22s ease both;
}
.ghawia-confirm-card {
    width: min(430px, 100%);
    overflow: hidden;
    border: 1px solid rgba(201, 154, 67, .78);
    border-radius: 21px;
    background: linear-gradient(145deg, #171a21 0%, #222b3e 100%);
    color: #fffaf0;
    box-shadow: 0 28px 70px rgba(0, 0, 0, .46), inset 0 1px 0 rgba(255, 255, 255, .1);
    font-family: Tajawal, Arial, sans-serif;
    direction: rtl;
    animation: ghawiaConfirmIn .3s cubic-bezier(.22, .8, .24, 1) both;
}
.ghawia-confirm-card__top { display: flex; align-items: flex-start; gap: 13px; padding: 22px 22px 13px; }
.ghawia-confirm-card__icon {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    border: 1px solid rgba(224, 127, 112, .65);
    border-radius: 14px;
    background: rgba(217, 117, 105, .16);
    color: #e7a094;
    font-family: Arial, sans-serif;
    font-size: 23px;
    font-weight: 900;
}
.ghawia-confirm-card__content { min-width: 0; }
.ghawia-confirm-card__title { margin: 1px 0 5px; color: #fffaf0; font-size: 1.05rem; font-weight: 900; }
.ghawia-confirm-card__message { margin: 0; color: #e5dbc9; font-size: .9rem; font-weight: 700; line-height: 1.65; }
.ghawia-confirm-card__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 16px 22px 22px; }
.ghawia-confirm-card__button {
    min-height: 43px;
    border: 1px solid transparent;
    border-radius: 12px;
    cursor: pointer;
    font: 800 .88rem Tajawal, Arial, sans-serif;
    transition: transform .18s, filter .18s, background .18s;
}
.ghawia-confirm-card__button:hover { transform: translateY(-1px); filter: brightness(1.06); }
.ghawia-confirm-card__button--cancel { border-color: rgba(231, 216, 190, .28); background: rgba(255, 255, 255, .07); color: #f1e5cf; }
.ghawia-confirm-card__button--delete { border-color: rgba(224, 127, 112, .78); background: linear-gradient(135deg, #9c423b, #c85c51); color: #fffaf5; box-shadow: 0 9px 19px rgba(128, 47, 40, .25); }
.ghawia-confirm-backdrop.is-leaving { animation: ghawiaConfirmBackdropOut .18s ease forwards; }
.ghawia-confirm-backdrop.is-leaving .ghawia-confirm-card { animation: ghawiaConfirmOut .18s ease forwards; }
@keyframes ghawiaConfirmBackdropIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes ghawiaConfirmBackdropOut { to { opacity: 0; } }
@keyframes ghawiaConfirmIn { from { opacity: 0; transform: translateY(14px) scale(.96); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes ghawiaConfirmOut { to { opacity: 0; transform: translateY(8px) scale(.98); } }
@media (max-width: 480px) {
    .ghawia-confirm-backdrop { padding: 16px; align-items: end; }
    .ghawia-confirm-card { border-radius: 19px; }
    .ghawia-confirm-card__top { padding: 18px 18px 11px; }
    .ghawia-confirm-card__actions { padding: 14px 18px 18px; }
}
@media (prefers-reduced-motion: reduce) {
    .ghawia-confirm-backdrop, .ghawia-confirm-card, .ghawia-confirm-backdrop.is-leaving, .ghawia-confirm-backdrop.is-leaving .ghawia-confirm-card { animation: none; }
}
