/* ==========================================================================
   Sino de notificações (shell layouts.fifateste)
   Mensagens que a casa envia ao usuário — só leitura, sem resposta.
   Prefixo .ln-* para não colidir com o CSS do shell.
   ========================================================================== */

.ln-menu {
    position: relative;
    display: flex;
    align-items: center;
}

.ln-bell {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--hairline, rgba(255, 255, 255, 0.07));
    color: var(--text-secondary, #b8bcc2);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all 0.18s var(--ease, ease);
}

.ln-bell:hover,
.ln-menu.open .ln-bell {
    color: var(--text-main, #fff);
    border-color: var(--primary, #00ff88);
    box-shadow: var(--glow-primary, 0 0 0 1px rgba(0, 255, 136, 0.4));
}

.ln-bell svg {
    width: 19px;
    height: 19px;
}

/* Balança quando chega notificação nova */
.ln-bell.ln-ring svg {
    animation: ln-swing 0.6s ease-in-out 2;
    transform-origin: 50% 3px;
}

@keyframes ln-swing {

    0%,
    100% {
        transform: rotate(0);
    }

    20% {
        transform: rotate(14deg);
    }

    40% {
        transform: rotate(-11deg);
    }

    60% {
        transform: rotate(7deg);
    }

    80% {
        transform: rotate(-4deg);
    }
}

.ln-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 17px;
    height: 17px;
    padding: 0 4px;
    border-radius: 9px;
    background: var(--brand-red, #e63946);
    color: #fff;
    font-size: 0.62rem;
    font-weight: 800;
    line-height: 17px;
    text-align: center;
    box-shadow: 0 0 0 2px #004937;
}

/* ===== Painel ===== */
.ln-panel {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 380px;
    max-height: min(70vh, 520px);
    display: flex;
    flex-direction: column;
    background: var(--card-bg, #1e2227);
    border: 1px solid var(--border, #2d3238);
    border-radius: 12px;
    box-shadow: 0 16px 44px rgba(0, 0, 0, 0.55);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.18s var(--ease, ease), transform 0.18s var(--ease, ease), visibility 0.18s;
    z-index: 1100;
    overflow: hidden;
}

.ln-menu.open .ln-panel {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.ln-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 14px;
    border-bottom: 1px solid var(--border, #2d3238);
    background: var(--bg-secondary, #1a1d21);
}

.ln-panel-title {
    font-size: 0.86rem;
    font-weight: 700;
    color: var(--text-main, #fff);
}

.ln-mark-all {
    background: transparent;
    border: none;
    color: var(--primary, #00ff88);
    font-family: inherit;
    font-size: 0.72rem;
    font-weight: 600;
    cursor: pointer;
    padding: 4px 6px;
    border-radius: 6px;
}

.ln-mark-all:hover {
    background: rgba(0, 255, 136, 0.08);
}

.ln-mark-all[hidden] {
    display: none;
}

.ln-list {
    overflow-y: auto;
    overscroll-behavior: contain;
    flex: 1;
}

.ln-item {
    display: block;
    width: 100%;
    text-align: left;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--border, #2d3238);
    padding: 12px 14px;
    cursor: pointer;
    font-family: inherit;
    color: var(--text-secondary, #b8bcc2);
    transition: background 0.15s;
}

.ln-item:hover {
    background: var(--card-hover, #262a30);
}

.ln-item.unread {
    background: rgba(0, 255, 136, 0.045);
}

.ln-item-top {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ln-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--primary, #00ff88);
    flex-shrink: 0;
}

.ln-item:not(.unread) .ln-dot {
    background: transparent;
}

.ln-item-title {
    flex: 1;
    min-width: 0;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-main, #fff);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ln-item-date {
    font-size: 0.66rem;
    color: var(--text-dim, #6c7177);
    flex-shrink: 0;
}

.ln-item-body {
    margin: 5px 0 0 15px;
    font-size: 0.78rem;
    line-height: 1.45;
    color: var(--text-secondary, #b8bcc2);
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ln-item.expanded .ln-item-body {
    display: block;
    -webkit-line-clamp: unset;
}

.ln-tag {
    display: inline-block;
    margin: 8px 0 0 15px;
    padding: 2px 7px;
    border-radius: 5px;
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.ln-tag.info {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-secondary, #b8bcc2);
}

.ln-tag.promo {
    background: rgba(112, 0, 255, 0.18);
    color: #b18cff;
}

.ln-tag.bonus {
    background: rgba(255, 215, 0, 0.14);
    color: var(--accent, #ffd700);
}

.ln-tag.aviso {
    background: rgba(255, 165, 2, 0.16);
    color: var(--warning, #ffa502);
}

.ln-cta {
    display: inline-block;
    margin: 10px 0 2px 15px;
    padding: 7px 14px;
    border-radius: 8px;
    background: var(--primary, #00ff88);
    color: #05130c;
    font-size: 0.76rem;
    font-weight: 800;
    text-decoration: none;
}

.ln-cta:hover {
    background: var(--primary-dark, #00cc6a);
}

.ln-empty,
.ln-loading {
    padding: 34px 16px;
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-dim, #6c7177);
}

.ln-more {
    width: 100%;
    padding: 11px;
    background: transparent;
    border: none;
    border-top: 1px solid var(--border, #2d3238);
    color: var(--text-secondary, #b8bcc2);
    font-family: inherit;
    font-size: 0.76rem;
    font-weight: 600;
    cursor: pointer;
}

.ln-more:hover {
    background: var(--card-hover, #262a30);
    color: var(--text-main, #fff);
}

/* ===== Toast (notificação chegando com a página aberta) ===== */
.ln-toasts {
    position: fixed;
    top: 60px;
    right: 14px;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-width: calc(100vw - 28px);
}

.ln-toast {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    width: 320px;
    max-width: 100%;
    padding: 12px 13px;
    border-radius: 11px;
    background: var(--card-bg, #1e2227);
    border: 1px solid var(--primary, #00ff88);
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.5);
    color: var(--text-main, #fff);
    cursor: pointer;
    animation: ln-toast-in 0.25s var(--ease, ease);
}

.ln-toast.out {
    animation: ln-toast-out 0.25s var(--ease, ease) forwards;
}

@keyframes ln-toast-in {
    from {
        opacity: 0;
        transform: translateX(24px);
    }
}

@keyframes ln-toast-out {
    to {
        opacity: 0;
        transform: translateX(24px);
    }
}

.ln-toast svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    color: var(--primary, #00ff88);
    margin-top: 1px;
}

.ln-toast-title {
    font-size: 0.82rem;
    font-weight: 700;
    margin-bottom: 2px;
}

.ln-toast-body {
    font-size: 0.74rem;
    color: var(--text-secondary, #b8bcc2);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    overflow-wrap: anywhere;
}

/* ===== Mobile: painel ocupa a tela ===== */
@media (max-width: 640px) {
    .ln-bell {
        width: 32px;
        height: 32px;
    }

    .ln-bell svg {
        width: 17px;
        height: 17px;
    }

    .ln-panel {
        position: fixed;
        top: 48px;
        left: 8px;
        right: 8px;
        width: auto;
        max-height: calc(100dvh - 62px);
    }

    .ln-toasts {
        top: 54px;
        left: 8px;
        right: 8px;
    }

    .ln-toast {
        width: auto;
    }
}
