.qa-bell { position: relative; display: inline-flex; }
.qa-bell-button {
    background: transparent;
    border: 0;
    padding: var(--space-2);
    cursor: pointer;
    color: var(--color-text-primary);
    border-radius: var(--radius-md);
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background-color var(--duration-fast) var(--ease-decelerate);
}
.qa-bell-button:hover { background: var(--color-surface-muted); }
.qa-bell-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    background: var(--palette-red-600);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
    padding: 3px 5px;
    border-radius: 999px;
    min-width: 18px;
    text-align: center;
    box-shadow: 0 0 0 2px var(--color-surface-base);
}

.qa-bell-popover .qa-popover {
    padding: 0;
    max-width: none;
    width: 380px;
    overflow: hidden;
}

.qa-bell-panel {
    width: 100%;
    background: var(--color-surface-base);
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
}
.qa-bell-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-3) var(--space-4);
    border-bottom: 1px solid var(--color-border-subtle);
    min-height: 48px;
}
.qa-bell-panel-title {
    font-weight: 700;
    color: var(--color-text-primary);
    font-size: var(--font-size-md);
    letter-spacing: -0.01em;
}
.qa-bell-panel-footer {
    border-top: 1px solid var(--color-border-subtle);
    padding: var(--space-2);
    display: flex;
    justify-content: center;
}
.qa-bell-panel-footer a {
    color: var(--color-text-accent);
    font-size: var(--font-size-sm);
    font-weight: 600;
    padding: var(--space-2) var(--space-3);
    border-radius: var(--radius-md);
    text-decoration: none;
    transition: background-color var(--duration-fast) var(--ease-decelerate);
}
.qa-bell-panel-footer a:hover {
    background: var(--color-surface-muted);
}

.qa-bell-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: var(--space-3);
    padding: var(--space-7) var(--space-4);
    color: var(--color-text-muted);
    font-size: var(--font-size-sm);
}
.qa-bell-empty .qa-icon {
    color: var(--color-text-subtle);
    opacity: 0.7;
}

.qa-bell-list {
    max-height: 420px;
    overflow-y: auto;
}
.qa-bell-row {
    display: flex;
    gap: var(--space-3);
    padding: var(--space-3) var(--space-4);
    cursor: pointer;
    align-items: flex-start;
    border-bottom: 1px solid var(--color-border-subtle);
    transition: background-color var(--duration-fast) var(--ease-decelerate);
}
.qa-bell-row:hover { background: var(--color-surface-muted); }
.qa-bell-row:last-child { border-bottom: 0; }
.qa-bell-row--unread { background: rgba(29, 78, 216, 0.04); }
.qa-bell-row--unread .qa-bell-row-title { font-weight: 700; }

.qa-bell-row-icon {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    border-radius: var(--radius-md);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.qa-bell-row-icon--info { background: #dbeafe; color: #1d4ed8; }
.qa-bell-row-icon--success { background: #d1fae5; color: #047857; }
.qa-bell-row-icon--warning { background: #fef3c7; color: #b45309; }
.qa-bell-row-icon--danger { background: #fee2e2; color: #b91c1c; }
.qa-bell-row-icon--neutral { background: var(--color-surface-muted); color: var(--color-text-primary); }

.qa-bell-row-body { flex: 1; min-width: 0; }
.qa-bell-row-title { font-size: var(--font-size-sm); color: var(--color-text-primary); line-height: 1.35; }
.qa-bell-row-sub { font-size: var(--font-size-xs); color: var(--color-text-muted); margin-top: 2px; line-height: 1.4; }
.qa-bell-row-time { font-size: var(--font-size-xs); color: var(--color-text-muted); margin-top: 4px; }

.qa-notif-page {
    background: var(--color-surface-base);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border-subtle);
}
.qa-notif-row {
    padding: var(--space-3) var(--space-4);
    border-bottom: 1px solid var(--color-border-subtle);
    display: flex;
    gap: var(--space-3);
    align-items: flex-start;
}
.qa-notif-row:last-child { border-bottom: 0; }
