/* ========================================
   BENEFICIARIES - Feature styles
   ======================================== */

.bn-search-wrap {
    position: relative;
}

.bn-search-wrap i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 0.85rem;
}

.bn-search-wrap input {
    padding-left: 34px;
    border-radius: 999px;
    border-color: #dbe2ea;
}

.bn-search-wrap input:focus {
    border-color: #6a49ff;
    box-shadow: 0 0 0 3px rgba(106, 73, 255, 0.12);
}

.bn-filter-bar {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.bn-filter-bar::-webkit-scrollbar {
    display: none;
}

.bn-filter-pill {
    border: 1px solid #dbe2ea;
    background: #ffffff;
    color: #475569;
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 0.78rem;
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
}

.bn-filter-pill.active {
    background: linear-gradient(to right, #667eea 0%, #764ba2 100%);
    border-color: transparent;
    color: #ffffff;
}

.bn-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.bn-empty {
    background: #ffffff;
    border: 1px dashed #dbe2ea;
    border-radius: 12px;
    padding: 22px;
    text-align: center;
    color: #64748b;
    font-size: 0.9rem;
}

.bn-row {
    width: 100%;
    border: 1px solid #e5e7eb;
    background: #ffffff;
    border-radius: 12px;
    padding: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    text-align: left;
    cursor: pointer;
}

.bn-row:hover {
    border-color: #cbd5e1;
}

.bn-left {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1 1 auto;
}

.bn-avatar {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 0.88rem;
    font-weight: 700;
    flex-shrink: 0;
}

.bn-avatar.account {
    background: linear-gradient(135deg, #0ea5e9, #0284c7);
}

.bn-avatar.phone {
    background: linear-gradient(135deg, #22c55e, #16a34a);
}

.bn-avatar.username {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.bn-name {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 600;
    color: #111827;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.bn-identifier {
    margin: 2px 0 0;
    font-size: 0.77rem;
    color: #64748b;
}

.bn-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    flex-shrink: 0;
}

.bn-type-tag {
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 999px;
    padding: 3px 8px;
    font-weight: 700;
}

.bn-type-tag.account {
    background: #dbeafe;
    color: #1e3a8a;
}

.bn-type-tag.phone {
    background: #dcfce7;
    color: #166534;
}

.bn-type-tag.username {
    background: #fef3c7;
    color: #92400e;
}

.bn-date {
    font-size: 0.72rem;
    color: #94a3b8;
}

.bn-detail-overlay {
    position: fixed;
    inset: 0;
    background: rgba(2, 6, 23, 0.58);
    z-index: 1200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.bn-detail-card {
    width: 100%;
    max-width: 460px;
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 18px 38px rgba(15, 23, 42, 0.25);
    overflow: hidden;
}

.bn-detail-header {
    padding: 12px 14px;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.bn-detail-title {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 700;
}

.bn-detail-body {
    padding: 10px 14px 14px;
}

.bn-detail-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
    padding: 9px 0;
    border-bottom: 1px solid #f1f5f9;
}

.bn-detail-row:last-child {
    border-bottom: none;
}

.bn-detail-label {
    font-size: 0.8rem;
    color: #64748b;
}

.bn-detail-value {
    font-size: 0.86rem;
    color: #0f172a;
    font-weight: 600;
    text-align: right;
    word-break: break-word;
}

.bn-detail-actions {
    padding-top: 12px;
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.bn-form-overlay {
    position: fixed;
    inset: 0;
    background: rgba(2, 6, 23, 0.58);
    z-index: 1210;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.bn-form-card {
    width: 100%;
    max-width: 500px;
    max-height: calc(100vh - 32px);
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 18px 38px rgba(15, 23, 42, 0.25);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.bn-form-header {
    padding: 12px 14px;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.bn-form-body {
    padding: 14px;
    overflow-y: auto;
}
