/* V36.6: notification center and multi-bank payout UI */
[hidden] { display: none !important; }
.notification-center { position: relative; z-index: 1200; flex: 0 0 auto; }
.notification-bell { position: relative; display: inline-grid; place-items: center; width: 40px; height: 40px; padding: 9px; color: var(--text-main, #f8fafc); background: rgba(13,25,54,.68); border: 1px solid rgba(145,170,220,.3); border-radius: 13px; cursor: pointer; transition: border-color .2s, background .2s, transform .2s; }
.notification-bell:hover { border-color: rgba(129,190,255,.8); background: rgba(36,65,116,.72); transform: translateY(-1px); }
.notification-bell svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.notification-count { position: absolute; top: -6px; right: -6px; min-width: 18px; height: 18px; padding: 0 4px; display: grid; place-items: center; border-radius: 999px; color: #fff; background: #ef4444; font-size: 10px; line-height: 1; font-weight: 800; border: 2px solid #0b1530; }
.notification-popover { position: absolute; z-index: 13000; top: calc(100% + 10px); right: 0; width: min(380px, calc(100vw - 24px)); max-height: min(540px, 72vh); overflow: hidden; display: flex; flex-direction: column; border: 1px solid rgba(147,164,218,.38); border-radius: 16px; background: rgba(9,18,43,.97); box-shadow: 0 20px 55px rgba(0,0,0,.46); backdrop-filter: blur(18px); color: #eef3ff; }
.notification-popover-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border-bottom: 1px solid rgba(148,163,184,.18); }
.notification-popover-head strong { font-size: 14px; }
.notification-read-all { background: transparent; border: 0; color: #9cc9ff; font: inherit; font-size: 11px; cursor: pointer; }
.notification-list { overflow-y: auto; overscroll-behavior: contain; }
.notification-item { display: flex; width: 100%; gap: 10px; text-align: left; padding: 12px 14px; color: inherit; background: transparent; border: 0; border-bottom: 1px solid rgba(148,163,184,.12); cursor: pointer; }
.notification-item:hover { background: rgba(103,145,208,.15); }
.notification-item.is-unread { background: rgba(54,101,169,.13); }
.notification-dot { flex: 0 0 8px; width: 8px; height: 8px; margin-top: 6px; border-radius: 50%; background: #56b7ff; box-shadow: 0 0 10px rgba(86,183,255,.65); }
.notification-item.is-read .notification-dot { opacity: .15; box-shadow: none; }
.notification-copy { display: grid; gap: 4px; min-width: 0; }
.notification-copy strong { font-size: 12px; line-height: 1.4; }
.notification-copy span { font-size: 11px; line-height: 1.5; color: #b9c6df; white-space: normal; overflow-wrap: anywhere; }
.notification-copy small { color: #8192b2; font-size: 10px; }
.notification-empty { padding: 18px; color: #97a7c4; font-size: 12px; text-align: center; }

.bank-management-card { margin-top: 18px; padding: clamp(14px,2vw,22px); border: 1px solid var(--border-color, rgba(148,163,184,.32)); border-radius: 18px; background: rgba(10,22,48,.68); box-shadow: 0 12px 32px rgba(0,0,0,.15); color: var(--text-main,#f8fafc); }
.bank-management-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 14px; }
.bank-management-heading h3 { margin: 0 0 5px; font-size: 16px; }
.bank-management-heading p { margin: 0; max-width: 760px; color: var(--text-muted,#b3c0d8); font-size: 12px; line-height: 1.55; }
.bank-shield-icon { display: grid; place-items: center; width: 38px; height: 38px; flex: 0 0 38px; color: #74cfff; background: rgba(67,149,220,.14); border: 1px solid rgba(103,190,255,.25); border-radius: 12px; font-size: 24px; }
.bank-add-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)) auto; gap: 9px; align-items: center; }
.customer-bank-list { display: grid; gap: 8px; margin-top: 14px; }
.customer-bank-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 12px; border: 1px solid rgba(140,160,207,.23); border-radius: 12px; background: rgba(10,20,45,.5); }
.customer-bank-main { display: grid; gap: 4px; min-width: 0; }
.customer-bank-main strong { font-size: 12px; overflow-wrap: anywhere; }
.customer-bank-main > span { color: var(--text-muted,#b3c0d8); font-size: 11px; }
.customer-bank-main small { color: var(--text-muted,#9caecc); font-size: 10px; line-height: 1.5; }
.customer-bank-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.bank-status { display: inline-flex; align-items: center; padding: 2px 7px; border-radius: 999px; font-size: 10px; font-weight: 800; }
.bank-status.verified { color: #86efac; background: rgba(34,197,94,.13); border: 1px solid rgba(34,197,94,.32); }
.bank-status.pending { color: #fcd34d; background: rgba(245,158,11,.12); border: 1px solid rgba(245,158,11,.28); }
.bank-status.incorrect { color: #fca5a5; background: rgba(239,68,68,.12); border: 1px solid rgba(239,68,68,.3); }
.auto-payout-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 16px; padding: 13px 14px; border-radius: 13px; border: 1px solid rgba(92,164,225,.24); background: rgba(38,89,147,.12); }
.auto-payout-row strong { display: block; font-size: 13px; }
.auto-payout-row p { margin: 4px 0 0; color: var(--text-muted,#b3c0d8); font-size: 11px; line-height: 1.55; }
.switch-control { flex: 0 0 auto; position: relative; display: inline-flex; width: 48px; height: 27px; }
.switch-control input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.switch-control span { position: absolute; inset: 0; cursor: pointer; border-radius: 99px; background: #475569; transition: .2s; }
.switch-control span::after { content: ""; position: absolute; width: 19px; height: 19px; top: 4px; left: 4px; border-radius: 50%; background: #fff; transition: .2s; box-shadow: 0 1px 4px rgba(0,0,0,.35); }
.switch-control input:checked + span { background: #168cda; }
.switch-control input:checked + span::after { transform: translateX(21px); }
.switch-control input:focus-visible + span { outline: 2px solid #93c5fd; outline-offset: 3px; }
.bank-admin-section { overflow: hidden; }
.bank-admin-section .custom-table td { vertical-align: middle; }

@media (max-width: 850px) {
  .notification-popover { position: fixed; top: 66px; right: 10px; width: min(380px, calc(100vw - 20px)); max-height: min(70vh, 520px); }
  .bank-add-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .bank-add-grid .btn-convert { min-height: 42px; }
}
@media (max-width: 560px) {
  .header-controls { gap: 7px; }
  .notification-bell { width: 36px; height: 36px; }
  .bank-add-grid { grid-template-columns: 1fr; }
  .customer-bank-item { align-items: flex-start; flex-direction: column; }
  .customer-bank-actions { justify-content: flex-start; }
  .auto-payout-row { align-items: flex-start; }
}
