/* Notification Alert*/

.ah-notification-area {
    position: fixed;
    top: 18px;
    right: 18px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 9999;
    pointer-events: none;
    max-width: calc(100vw - 48px);
}

.ah-notification {
    pointer-events: auto;
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 320px;
    max-width: 420px;
    padding: 12px 14px;
    border-radius: 14px;
    backdrop-filter: blur(8px) saturate(120%);
    -webkit-backdrop-filter: blur(8px) saturate(120%);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 28px rgba(10, 10, 12, 0.4);
    color: #fff;
    transform-origin: right top;
    transform: translateX(16px) translateY(-6px) scale(0.98);
    opacity: 0;
    transition: transform 420ms cubic-bezier(.2, .9, .2, 1), opacity 320ms ease;
    overflow: hidden;
    position: relative;
}

.ah-notification::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(120deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.02) 40%, rgba(255, 255, 255, 0.10) 60%, rgba(255, 255, 255, 0) 100%);
    mix-blend-mode: overlay;
    border-radius: 14px;
}

.ah-notification.show {
    transform: translateX(0) translateY(0) scale(1);
    opacity: 1;
}

.ah-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
    box-shadow: inset 0 -3px 6px rgba(0, 0, 0, 0.18);
    flex: 0 0 44px;
    color: white;
}

.ah-message {
    flex: 1 1 auto;
    font-size: 14px;
    line-height: 1.25;
    color: #f5f5f7;
    margin-right: 10px;
    font-weight: 500;
}

.ah-close {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.8);
    font-size: 18px;
    padding: 6px;
    border-radius: 8px;
    cursor: pointer;
    align-self: flex-start;
}

.ah-close:focus {
    outline: 2px solid rgba(255, 255, 255, 0.14);
}

.ah-progress {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 4px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04));
    transform-origin: left center;
    --duration: 6500ms;
    animation: ah-progress var(--duration) linear forwards;
}

@keyframes ah-progress {
    from {
        transform: scaleX(1);
    }

    to {
        transform: scaleX(0);
    }
}

.ah-notification.success .ah-icon {
    background: linear-gradient(180deg, #6ae58b, #28c76f);
    color: #05210a;
}

.ah-notification.error .ah-icon {
    background: linear-gradient(180deg, #ff8a8a, #ff4b4b);
    color: #2a0404;
}

.ah-notification.info .ah-icon {
    background: linear-gradient(180deg, #9fd1ff, #48a8ff);
    color: #032033;
}

.ah-notification.warning .ah-icon {
    background: linear-gradient(180deg, #ffd89a, #ffb347);
    color: #332104;
}

@media (max-width: 420px) {
    .ah-notification {
        min-width: 280px;
        max-width: calc(100vw - 36px);
        right: 12px;
    }

    .ah-notification-area {
        left: 12px;
        right: 12px;
        top: 12px;
        align-items: stretch;
    }
}




/* Cookies Alert */




:root {
    --cb-bg: rgba(255, 255, 255, 0.12);
    --cb-bg2: rgba(255, 255, 255, 0.06);
    --cb-border: rgba(255, 255, 255, 0.22);
    --cb-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
    --cb-text: #f5f7fb;
    --cb-muted: #cfd6e6;
    --cb-accent1: #7cc4ff;
    --cb-accent2: #b38bff;
    --cb-success: #8ef1c7;
    --cb-ghost: rgba(255, 255, 255, 0.18);
}

.cookiebar {
    position: fixed;
    inset-inline: 0;
    bottom: 0;
    z-index: 9999;
    display: grid;
    place-items: center;
    padding: 18px;
    pointer-events: none;
}

.cookiebar-inner {
    pointer-events: auto;
    width: min(980px, calc(100vw - 24px));
    color: var(--cb-text);
    border-radius: 16px;
    backdrop-filter: blur(16px) saturate(140%);
    -webkit-backdrop-filter: blur(16px) saturate(140%);
    background:
        radial-gradient(120% 120% at 0% 100%, rgba(124, 196, 255, 0.20) 0%, transparent 60%),
        radial-gradient(120% 120% at 100% 0%, rgba(179, 139, 255, 0.20) 0%, transparent 60%),
        linear-gradient(180deg, var(--cb-bg), var(--cb-bg2));
    border: 1px solid var(--cb-border);
    box-shadow: var(--cb-shadow);
    overflow: hidden;

    transform: translateY(24px);
    opacity: 0;
    animation: cookiebar-in 540ms cubic-bezier(.2, .8, .2, 1) forwards;
}

@media (prefers-reduced-motion: reduce) {
    .cookiebar-inner {
        animation: none;
        transform: none;
        opacity: 1;
    }
}

@keyframes cookiebar-in {
    from {
        transform: translateY(32px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.cookiebar-content {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 14px;
    padding: 18px 18px 0 18px;
}

.cookiebar-icon {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    color: #ffffff;
    border-radius: 12px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 0.05));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25),
        0 8px 18px rgba(0, 0, 0, 0.25);
}

.cookiebar-text h3 {
    margin: 0 0 6px;
    font-size: 1.05rem;
    letter-spacing: .2px;
}

.cookiebar-text p {
    margin: 0;
    line-height: 1.45;
    color: var(--cb-muted);
}

.cookiebar-link {
    display: inline-block;
    margin-top: 8px;
    font-size: .95rem;
    color: var(--cb-accent1);
    text-decoration: none;
    position: relative;
}

.cookiebar-link::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -2px;
    height: 1px;
    background: linear-gradient(90deg, var(--cb-accent1), var(--cb-accent2));
    opacity: .7;
    transform: scaleX(.4);
    transform-origin: left;
    transition: transform .28s ease, opacity .28s ease;
}

.cookiebar-link:hover::after {
    transform: scaleX(1);
    opacity: 1;
}

.cookiebar-actions {
    display: flex;
    gap: 10px;
    padding: 14px 18px 18px;
    flex-wrap: wrap;
    justify-content: flex-end;
    margin-top: -40px;
}

.btn {
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    appearance: none;
    border: 0;
    border-radius: 999px;
    padding: 10px 16px;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    transition: transform .14s ease, box-shadow .2s ease, background .2s ease, opacity .2s ease;
    position: relative;
    overflow: hidden;
    will-change: transform, box-shadow;
}

.btn::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(255, 255, 255, .35), rgba(255, 255, 255, 0) 45%);
    mix-blend-mode: screen;
    opacity: .7;
}

.btn-primary {
    color: #0d1020;
    background:
        linear-gradient(135deg, #c3e6ff 0%, #bfa9ff 100%);
    box-shadow: 0 10px 24px rgba(124, 196, 255, .35), 0 8px 18px rgba(179, 139, 255, .25);
}

.btn-primary:hover {
    transform: translateY(-1px);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-ghost {
    color: var(--cb-text);
    background: var(--cb-ghost);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.26);
    transform: translateY(-1px);
}

.btn-ghost:active {
    transform: translateY(0);
}

.cookiebar--hide {
    animation: cookiebar-fade-out 400ms ease forwards;
}

@keyframes cookiebar-fade-out {
    from {
        opacity: 1;
        transform: translateY(0);
    }

    to {
        opacity: 0;
        transform: translateY(0);
    }
}

@media (max-width: 560px) {
    .cookiebar-inner {
        border-radius: 14px;
    }

    .cookiebar-content {
        grid-template-columns: 1fr;
    }

    .cookiebar-icon {
        width: 36px;
        height: 36px;
        border-radius: 10px;
    }

    .cookiebar-actions {
        justify-content: stretch;
        margin-top: 0px;
    }

    .cookiebar-actions .btn {
        flex: 1;
        text-align: center;
    }
}