:root {
    --shark-notification-primary: #00f3ff;
    --shark-notification-secondary: #28ffc3;
    --shark-notification-text: #f8fafc;
    --shark-notification-button: #00f3ff;
    --shark-notification-border: rgba(255, 255, 255, 0.18);
}

.shark-notification-stack {
    position: fixed;
    inset: auto 18px 18px auto;
    z-index: 2147482600;
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: min(390px, calc(100vw - 28px));
    pointer-events: none;
}

.shark-notification-stack--top-right { top: 18px; right: 18px; bottom: auto; left: auto; }
.shark-notification-stack--top-left { top: 18px; left: 18px; right: auto; bottom: auto; }
.shark-notification-stack--bottom-right { right: 18px; bottom: 18px; left: auto; top: auto; }
.shark-notification-stack--bottom-left { left: 18px; bottom: 18px; right: auto; top: auto; }
.shark-notification-stack--top-center { top: 18px; left: 50%; right: auto; bottom: auto; transform: translateX(-50%); }
.shark-notification-stack--bottom-center { bottom: 18px; left: 50%; right: auto; top: auto; transform: translateX(-50%); }
.shark-notification-stack--center { top: 50%; left: 50%; right: auto; bottom: auto; transform: translate(-50%, -50%); }

.shark-notification {
    --shark-n-primary: var(--shark-notification-primary);
    --shark-n-secondary: var(--shark-notification-secondary);
    --shark-n-text: var(--shark-notification-text);
    --shark-n-button: var(--shark-notification-button);
    --shark-n-border-color: rgba(255, 255, 255, 0.18);
    --shark-n-glass: 0.72;
    --shark-n-blur: 22px;
    position: relative;
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr) 30px;
    gap: 13px;
    align-items: start;
    width: 100%;
    min-height: 82px;
    padding: 14px;
    color: var(--shark-n-text);
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.04)),
        rgba(8, 12, 22, var(--shark-n-glass));
    border: 1px solid var(--shark-n-border-color);
    border-radius: 22px;
    box-shadow:
        0 22px 70px rgba(0, 0, 0, 0.34),
        0 0 0 1px rgba(255, 255, 255, 0.04) inset,
        0 0 36px color-mix(in srgb, var(--shark-n-primary) 24%, transparent);
    backdrop-filter: blur(var(--shark-n-blur)) saturate(160%);
    -webkit-backdrop-filter: blur(var(--shark-n-blur)) saturate(160%);
    overflow: hidden;
    pointer-events: auto;
    isolation: isolate;
    transform: translateY(12px) scale(0.985);
    opacity: 0;
    transition:
        opacity 320ms ease,
        transform 430ms cubic-bezier(.2, .85, .28, 1),
        filter 240ms ease;
}

.shark-notification::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(115deg, color-mix(in srgb, var(--shark-n-primary) 16%, transparent), transparent 42%),
        linear-gradient(245deg, color-mix(in srgb, var(--shark-n-secondary) 13%, transparent), transparent 44%);
    opacity: 0.95;
}

.shark-notification::after {
    content: "";
    position: absolute;
    top: 0;
    left: 18px;
    right: 18px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.7), transparent);
    opacity: 0.46;
}

.shark-notification.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.shark-notification.is-leaving {
    opacity: 0;
    transform: translateY(-8px) scale(0.965);
    filter: blur(2px);
}

.shark-notification--soft-scale { transform: scale(0.94); }
.shark-notification--spring { transition-duration: 520ms; transition-timing-function: cubic-bezier(.16, 1.25, .42, 1); }
.shark-notification--rise { transform: translateY(24px); }
.shark-notification--drop { transform: translateY(-24px); }

.shark-notification-icon {
    display: inline-grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    color: var(--shark-n-text);
    background:
        linear-gradient(145deg, color-mix(in srgb, var(--shark-n-primary) 86%, white 8%), color-mix(in srgb, var(--shark-n-secondary) 82%, black 10%));
    box-shadow:
        0 10px 28px color-mix(in srgb, var(--shark-n-primary) 32%, transparent),
        0 1px 0 rgba(255, 255, 255, 0.45) inset;
}

.shark-notification-icon i {
    font-size: 18px;
    line-height: 1;
}

.shark-notification-emoji {
    font-size: 20px;
    line-height: 1;
}

.shark-notification-icon--soft {
    color: var(--shark-n-primary);
    background: rgba(255, 255, 255, 0.12);
}

.shark-notification-icon--outline {
    color: var(--shark-n-primary);
    background: transparent;
    border: 1px solid color-mix(in srgb, var(--shark-n-primary) 60%, transparent);
}

.shark-notification-icon--glow {
    filter: drop-shadow(0 0 12px color-mix(in srgb, var(--shark-n-primary) 42%, transparent));
}

.shark-notification-body {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.shark-notification-title {
    margin: 0;
    max-width: 100%;
    color: var(--shark-n-text);
    font-size: 15px;
    line-height: 1.28;
    font-weight: 700;
    letter-spacing: 0;
    overflow-wrap: anywhere;
}

.shark-notification-message {
    margin: 0;
    color: color-mix(in srgb, var(--shark-n-text) 82%, transparent);
    font-size: 13px;
    line-height: 1.45;
    overflow-wrap: anywhere;
    white-space: pre-line;
}

.shark-notification-image {
    width: 100%;
    aspect-ratio: 16 / 8;
    object-fit: cover;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    margin-top: 4px;
}

.shark-notification-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 6px;
}

.shark-notification-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    max-width: 100%;
    padding: 8px 14px;
    border-radius: 999px;
    border: 0;
    color: #020617;
    background: linear-gradient(135deg, var(--shark-n-button), color-mix(in srgb, var(--shark-n-button) 76%, white));
    box-shadow: 0 10px 28px color-mix(in srgb, var(--shark-n-button) 28%, transparent);
    font-size: 12px;
    line-height: 1.2;
    font-weight: 800;
    text-decoration: none;
    overflow-wrap: anywhere;
    transition: transform 180ms ease, filter 180ms ease;
}

.shark-notification-cta:hover {
    color: #020617;
    filter: brightness(1.08);
    transform: translateY(-1px);
}

.shark-notification-close {
    display: inline-grid;
    place-items: center;
    width: 30px;
    height: 30px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    color: color-mix(in srgb, var(--shark-n-text) 72%, transparent);
    background: rgba(255, 255, 255, 0.08);
    cursor: pointer;
    transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.shark-notification-close:hover {
    color: var(--shark-n-text);
    background: rgba(255, 255, 255, 0.15);
    transform: scale(1.04);
}

.shark-notification--apple-toast {
    max-width: 390px;
}

.shark-notification--side-card {
    grid-template-columns: 52px minmax(0, 1fr) 30px;
    min-height: 132px;
    border-radius: 24px;
}

.shark-notification--floating-bubble {
    grid-template-columns: 44px minmax(0, 1fr) 30px;
    border-radius: 999px;
    min-height: 76px;
}

.shark-notification--floating-bubble .shark-notification-message,
.shark-notification--floating-bubble .shark-notification-image,
.shark-notification--floating-bubble .shark-notification-actions {
    display: none;
}

.shark-notification--top-bar,
.shark-notification--bottom-bar {
    position: fixed;
    left: 50%;
    width: min(980px, calc(100vw - 24px));
    border-radius: 18px;
    grid-template-columns: 42px minmax(0, 1fr) auto 30px;
}

.shark-notification--top-bar {
    top: 14px;
    transform: translate(-50%, -18px);
}

.shark-notification--bottom-bar {
    bottom: 14px;
    transform: translate(-50%, 18px);
}

.shark-notification--top-bar.is-visible,
.shark-notification--bottom-bar.is-visible {
    transform: translate(-50%, 0);
}

.shark-notification--top-bar .shark-notification-actions,
.shark-notification--bottom-bar .shark-notification-actions {
    margin-top: 0;
    align-self: center;
}

.shark-notification-overlay {
    position: fixed;
    inset: 0;
    z-index: 2147482500;
    display: grid;
    place-items: center;
    padding: 22px;
    background: rgba(2, 6, 23, 0.32);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 260ms ease;
}

.shark-notification-overlay.is-visible {
    opacity: 1;
    pointer-events: auto;
}

.shark-notification-overlay .shark-notification {
    width: min(520px, calc(100vw - 34px));
}

.shark-notification--glass-modal {
    grid-template-columns: 58px minmax(0, 1fr) 34px;
    min-height: 180px;
    padding: 20px;
    border-radius: 30px;
}

.shark-notification--glass-modal .shark-notification-icon,
.shark-notification--fullscreen-promo .shark-notification-icon {
    width: 58px;
    height: 58px;
}

.shark-notification--glass-modal .shark-notification-title,
.shark-notification--fullscreen-promo .shark-notification-title {
    font-size: 20px;
}

.shark-notification--glass-modal .shark-notification-message,
.shark-notification--fullscreen-promo .shark-notification-message {
    font-size: 14px;
}

.shark-notification--fullscreen-promo {
    width: min(780px, calc(100vw - 32px)) !important;
    min-height: min(620px, calc(100vh - 40px));
    grid-template-columns: 64px minmax(0, 1fr) 34px;
    align-content: start;
    padding: 24px;
    border-radius: 32px;
}

.shark-notification--fullscreen-promo .shark-notification-image {
    aspect-ratio: 16 / 7;
}

.shark-notification--success { --shark-n-primary: #28ffc3; }
.shark-notification--warning { --shark-n-primary: #ffd166; }
.shark-notification--danger { --shark-n-primary: #ff5470; }
.shark-notification--promo { --shark-n-primary: #00f3ff; --shark-n-secondary: #28ffc3; }
.shark-notification--order { --shark-n-primary: #8bd3ff; }
.shark-notification--deposit { --shark-n-primary: #7dd3fc; }
.shark-notification--delivery { --shark-n-primary: #86efac; }
.shark-notification--ticket { --shark-n-primary: #c4b5fd; }
.shark-notification--maintenance { --shark-n-primary: #fbbf24; }

.shark-notification-preview-zone {
    min-height: 220px;
    position: relative;
    display: grid;
    place-items: center;
    overflow: hidden;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background:
        linear-gradient(135deg, rgba(0, 243, 255, 0.12), rgba(40, 255, 195, 0.05)),
        #070b14;
}

.shark-notification-preview-zone .shark-notification-stack,
.shark-notification-preview-zone .shark-notification-overlay {
    position: absolute;
    z-index: 2;
}

.shark-admin-notifications .shark-stat-card {
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.035);
    border-radius: 8px;
    padding: 14px;
}

.shark-admin-notifications .shark-stat-card strong {
    display: block;
    font-size: 22px;
    line-height: 1.1;
    color: var(--accent-color, #00f3ff);
}

.shark-admin-notifications .shark-form-card {
    border: 1px solid rgba(255, 255, 255, 0.08);
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.018)),
        var(--primary-color, #111827);
    border-radius: 8px;
    padding: 18px;
    margin-bottom: 18px;
}

.shark-admin-notifications .shark-form-card h3 {
    font-size: 16px;
    margin: 0 0 16px;
    color: var(--accent-color, #00f3ff);
    font-weight: 700;
}

.shark-admin-notifications .shark-color-row {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
}

.shark-admin-notifications input[type="color"] {
    width: 44px;
    height: 38px;
    padding: 3px;
    border-radius: 8px;
}

.shark-customer-bell {
    position: relative;
}

.shark-customer-bell__button {
    position: relative;
    display: inline-grid;
    place-items: center;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 50%;
    color: var(--text-color, #f8fafc);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.22);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    cursor: pointer;
}

.shark-customer-bell__button:hover,
.shark-customer-bell__button[aria-expanded="true"] {
    color: var(--accent-color, #00f3ff);
    border-color: color-mix(in srgb, var(--accent-color, #00f3ff) 55%, transparent);
}

.shark-customer-bell__count {
    position: absolute;
    top: -4px;
    right: -5px;
    display: inline-grid;
    place-items: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    color: #020617;
    background: var(--cta-color, #28ffc3);
    border: 1px solid rgba(255, 255, 255, 0.72);
    font-size: 10px;
    font-weight: 900;
    line-height: 1;
}

.shark-customer-bell__count.is-empty {
    display: none;
}

.shark-customer-bell__menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    z-index: 2147482400;
    display: none;
    width: min(360px, calc(100vw - 24px));
    padding: 0;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 8px;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.045)),
        rgba(8, 12, 22, 0.92);
    box-shadow: 0 22px 62px rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(22px) saturate(155%);
    -webkit-backdrop-filter: blur(22px) saturate(155%);
}

.shark-customer-bell.is-open .shark-customer-bell__menu,
.shark-customer-bell__menu.show {
    display: block;
}

.shark-customer-bell__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 13px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.10);
    color: var(--text-color, #f8fafc);
}

.shark-customer-bell__head button,
.shark-customer-bell__read {
    border: 0;
    color: var(--accent-color, #00f3ff);
    background: transparent;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
}

.shark-customer-bell__list {
    max-height: 360px;
    overflow: auto;
}

.shark-customer-bell__item {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.shark-customer-bell__item.is-unread {
    background: color-mix(in srgb, var(--accent-color, #00f3ff) 7%, transparent);
}

.shark-customer-bell__item-link {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 10px;
    padding: 12px 10px 12px 13px;
    color: var(--text-color, #f8fafc);
    text-decoration: none;
    min-width: 0;
}

.shark-customer-bell__item-link:hover {
    color: var(--text-color, #f8fafc);
    background: rgba(255, 255, 255, 0.05);
}

.shark-customer-bell__item-icon {
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.09);
    font-size: 17px;
}

.shark-customer-bell__item-body {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.shark-customer-bell__item-body strong,
.shark-customer-bell__item-body small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.shark-customer-bell__item-body strong {
    color: var(--text-color, #f8fafc);
    font-size: 13px;
}

.shark-customer-bell__item-body small,
.shark-customer-bell__item-body em {
    color: color-mix(in srgb, var(--text-color, #f8fafc) 68%, transparent);
    font-size: 11px;
    font-style: normal;
}

.shark-customer-bell__read {
    padding: 6px 10px;
    margin-right: 8px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.07);
}

.shark-customer-bell__empty {
    padding: 28px 16px;
    color: color-mix(in srgb, var(--text-color, #f8fafc) 68%, transparent);
    text-align: center;
    font-size: 13px;
}

.shark-customer-bell__all {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    color: var(--accent-color, #00f3ff);
    text-decoration: none;
    font-size: 13px;
    font-weight: 800;
    background: rgba(255, 255, 255, 0.04);
}

.shark-customer-bell__all:hover {
    color: var(--accent-color, #00f3ff);
    background: rgba(255, 255, 255, 0.07);
}

@media (max-width: 768px) {
    .shark-notification-stack {
        left: 14px;
        right: 14px;
        width: auto;
    }

    .shark-notification-stack--top-center,
    .shark-notification-stack--bottom-center,
    .shark-notification-stack--center {
        left: 14px;
        right: 14px;
        transform: none;
    }

    .shark-notification {
        grid-template-columns: 42px minmax(0, 1fr) 30px;
        border-radius: 20px;
        padding: 13px;
    }

    .shark-notification-title {
        font-size: 14px;
    }

    .shark-notification-message {
        font-size: 12.5px;
    }

    .shark-notification--top-bar,
    .shark-notification--bottom-bar {
        left: 10px;
        right: 10px;
        width: auto;
        grid-template-columns: 42px minmax(0, 1fr) 30px;
        transform: translateY(-18px);
    }

    .shark-notification--bottom-bar {
        transform: translateY(18px);
    }

    .shark-notification--top-bar.is-visible,
    .shark-notification--bottom-bar.is-visible {
        transform: translateY(0);
    }

    .shark-notification--top-bar .shark-notification-actions,
    .shark-notification--bottom-bar .shark-notification-actions {
        grid-column: 2 / 3;
        justify-content: flex-start;
        margin-top: 6px;
    }

    .shark-notification--glass-modal,
    .shark-notification--fullscreen-promo {
        grid-template-columns: 48px minmax(0, 1fr) 32px;
        padding: 16px;
        border-radius: 24px;
    }

    .shark-notification--fullscreen-promo {
        min-height: auto;
    }
}

@media (prefers-reduced-motion: reduce) {
    .shark-notification,
    .shark-notification-overlay,
    .shark-notification-cta,
    .shark-notification-close {
        transition: none !important;
    }
}
