/* Black Swan Notification Center v2026-08-16
   Kept in a dedicated file so Notification Center / Email / Push UI can be
   refreshed independently from the long-lived account.css browser cache. */

/* ---------- Header bell ---------- */
.notification-center-root{
  position:relative;
  display:none;
  align-items:center;
  z-index:60;
}
.notification-center-root.is-ready{display:flex}
.notification-bell{
  position:relative;
  width:42px;
  height:42px;
  display:grid;
  place-items:center;
  border:1px solid rgba(17,19,24,.11);
  border-radius:12px;
  background:rgba(255,255,255,.92);
  color:#17191d;
  cursor:pointer;
  transition:transform .18s ease,border-color .18s ease,background .18s ease,box-shadow .18s ease;
  box-shadow:0 4px 18px rgba(17,19,24,.035);
}
.notification-bell:hover{
  transform:translateY(-1px);
  border-color:rgba(17,19,24,.22);
  background:#fff;
  box-shadow:0 8px 22px rgba(17,19,24,.07);
}
.notification-bell:focus-visible{outline:3px solid rgba(217,31,45,.12);outline-offset:2px}
.notification-bell svg{width:18px;height:18px;display:block}
.notification-bell-count{
  position:absolute;
  right:-5px;
  top:-5px;
  min-width:18px;
  height:18px;
  padding:0 5px;
  border-radius:999px;
  background:#d91f2d;
  color:#fff;
  border:2px solid #fff;
  font-size:9px;
  font-weight:800;
  line-height:14px;
  text-align:center;
  box-shadow:0 3px 10px rgba(217,31,45,.22);
}
.notification-bell-count[hidden]{display:none}
.notification-dropdown{
  position:absolute;
  right:0;
  top:calc(100% + 12px);
  width:min(390px,calc(100vw - 24px));
  background:#fff;
  border:1px solid rgba(17,19,24,.10);
  border-radius:18px;
  box-shadow:0 22px 60px rgba(17,19,24,.16);
  overflow:hidden;
  transform-origin:top right;
  animation:notificationDropIn .14s ease-out;
}
.notification-dropdown[hidden]{display:none}
@keyframes notificationDropIn{
  from{opacity:0;transform:translateY(-5px) scale(.985)}
  to{opacity:1;transform:translateY(0) scale(1)}
}
.notification-dropdown-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding:16px 17px 13px;
  border-bottom:1px solid rgba(17,19,24,.08);
}
.notification-dropdown-head strong{font-size:14px;font-weight:700}
.notification-dropdown-head button{
  border:0;
  background:none;
  color:#777d86;
  font:inherit;
  font-size:10px;
  cursor:pointer;
  padding:5px 0;
}
.notification-dropdown-head button:hover{color:#111318}
.notification-dropdown-list{max-height:430px;overflow:auto}
.notification-item{
  position:relative;
  display:grid;
  grid-template-columns:36px 1fr;
  gap:11px;
  width:100%;
  padding:13px 16px;
  border:0;
  border-bottom:1px solid rgba(17,19,24,.065);
  background:#fff;
  color:#111318;
  text-align:left;
  text-decoration:none;
  font:inherit;
  cursor:pointer;
  transition:background .15s ease;
}
.notification-item:hover{background:#fafaf8}
.notification-item.unread{background:#fffdfd}
.notification-item.unread::after{
  content:"";
  position:absolute;
  right:14px;
  top:17px;
  width:6px;
  height:6px;
  border-radius:50%;
  background:#d91f2d;
}
.notification-item-icon{
  width:34px;
  height:34px;
  border-radius:11px;
  background:#f4f4f1;
  display:grid;
  place-items:center;
  font-size:12px;
  font-weight:750;
  color:#535861;
}
.notification-item[data-category="DEAL"] .notification-item-icon{background:#f2f3f5;color:#20242a}
.notification-item[data-category="KYC"] .notification-item-icon{background:#edf8f2;color:#14804c}
.notification-item[data-category="NEWS"] .notification-item-icon{background:#fff6e9;color:#a66500}
.notification-item[data-category="SYSTEM"] .notification-item-icon{background:#fff0f1;color:#b51d29}
.notification-item[data-category="SECURITY"] .notification-item-icon{background:#eef0f4;color:#2f3745}
.notification-item-main{min-width:0;padding-right:10px}
.notification-item-title{display:block;font-size:11.5px;font-weight:700;line-height:1.35;margin-bottom:4px}
.notification-item-message{
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
  color:#737982;
  font-size:10px;
  line-height:1.45;
}
.notification-item-time{display:block;color:#a0a4aa;font-size:9px;margin-top:6px}
.notification-dropdown-empty{padding:34px 18px;text-align:center;color:#8a8f97;font-size:11px;line-height:1.5}
.notification-dropdown-foot{display:flex;justify-content:center;padding:12px 15px;background:#fafaf8}
.notification-dropdown-foot a{font-size:10.5px;color:#111318;text-decoration:none;font-weight:700}
.notification-dropdown-foot a:hover{text-decoration:underline}
.notification-header-host{display:flex;align-items:center}
.account-header-actions .notification-center-root,
.order-header-actions .notification-center-root,
.kyc-header-inner .notification-center-root{flex:0 0 auto}

/* ---------- Notification Center inside account ---------- */
.account-nav button[data-account-section="notifications"]{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}
.account-nav-count{
  min-width:20px;
  height:20px;
  padding:0 6px;
  border-radius:999px;
  background:#d91f2d;
  color:#fff;
  font-size:9px;
  font-weight:800;
  line-height:20px;
  text-align:center;
}
.account-notification-title-row{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:24px;
}
.account-notification-title-row h1{margin-bottom:0}
.account-notification-title-row .account-btn{flex:0 0 auto}
.account-notification-filters{
  display:flex;
  flex-wrap:wrap;
  gap:7px;
  margin:18px 0 16px;
}
.account-notification-filters button{
  min-height:34px;
  border:1px solid var(--account-line,rgba(17,19,24,.10));
  background:rgba(255,255,255,.72);
  color:var(--account-muted,#777c84);
  border-radius:999px;
  padding:0 13px;
  font:inherit;
  font-size:10.5px;
  font-weight:550;
  cursor:pointer;
  transition:background .16s ease,color .16s ease,border-color .16s ease,transform .16s ease;
}
.account-notification-filters button:hover{
  border-color:rgba(17,19,24,.22);
  color:var(--account-text,#111318);
  background:#fff;
  transform:translateY(-1px);
}
.account-notification-filters button.active{
  background:#111318;
  color:#fff;
  border-color:#111318;
  box-shadow:0 5px 14px rgba(17,19,24,.10);
}
.account-notification-panel{
  overflow:hidden;
  box-shadow:0 8px 30px rgba(17,19,24,.025);
}
.account-notification-panel .account-panel-head{
  background:linear-gradient(180deg,#fff,#fdfdfc);
}
.account-notification-list{display:grid}
.account-notification-row{
  position:relative;
  display:grid;
  grid-template-columns:42px minmax(0,1fr) auto;
  gap:13px;
  align-items:start;
  width:100%;
  padding:16px 18px;
  border:0;
  border-bottom:1px solid var(--account-line,rgba(17,19,24,.10));
  background:#fff;
  color:var(--account-text,#111318);
  font:inherit;
  text-align:left;
  text-decoration:none;
  cursor:pointer;
  transition:background .15s ease,transform .15s ease;
}
.account-notification-row:last-child{border-bottom:0}
.account-notification-row:hover{background:#fafaf8}
.account-notification-row.unread{background:linear-gradient(90deg,#fff7f7 0,#fff 24%)}
.account-notification-row.unread::before{
  content:"";
  position:absolute;
  left:7px;
  top:22px;
  width:6px;
  height:6px;
  border-radius:50%;
  background:#d91f2d;
  box-shadow:0 0 0 4px rgba(217,31,45,.07);
}
.account-notification-icon{
  width:40px;
  height:40px;
  border-radius:12px;
  background:#f2f3f4;
  display:grid;
  place-items:center;
  font-size:13px;
  font-weight:800;
  color:#4f555d;
}
.account-notification-row[data-category="KYC"] .account-notification-icon{background:#edf8f2;color:#14804c}
.account-notification-row[data-category="NEWS"] .account-notification-icon{background:#fff6e9;color:#a66500}
.account-notification-row[data-category="SYSTEM"] .account-notification-icon{background:#fff0f1;color:#b51d29}
.account-notification-row[data-category="SECURITY"] .account-notification-icon{background:#eef0f4;color:#2f3745}
.account-notification-body{min-width:0}
.account-notification-body strong{display:block;font-size:12.5px;margin:1px 0 5px;font-weight:650}
.account-notification-body p{margin:0;color:var(--account-muted,#777c84);font-size:10.5px;line-height:1.55}
.account-notification-time{white-space:nowrap;color:#9a9fa6;font-size:9px;padding-top:2px}
.account-notification-more-wrap{display:flex;justify-content:center;padding:14px;border-top:1px solid var(--account-line,rgba(17,19,24,.10));background:#fcfcfb}

/* ---------- Shared channel cards: Email + Push ---------- */
.account-email-settings-panel,
.account-push-settings-panel{
  margin-top:18px;
  overflow:hidden;
  box-shadow:0 8px 30px rgba(17,19,24,.025);
}
.account-email-settings-panel .account-panel-head,
.account-push-settings-panel .account-panel-head{
  min-height:72px;
  background:linear-gradient(180deg,#fff,#fdfdfc);
}
.account-email-settings-panel .account-panel-head > span,
.account-push-settings-panel .account-panel-head > span{
  flex:0 0 auto;
  padding:6px 9px;
  border:1px solid rgba(17,19,24,.07);
  border-radius:999px;
  background:#f5f5f3;
  color:#6f747b;
  font-size:9.5px;
  font-weight:600;
}
.account-panel-subtitle{
  margin:5px 0 0;
  color:var(--account-muted,#777c84);
  font-size:11px;
  line-height:1.5;
  font-weight:400;
}
.account-email-settings,
.account-push-settings{padding:0 20px 20px}
.account-email-setting,
.account-email-language-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
  min-height:68px;
  padding:14px 0;
  border-bottom:1px solid rgba(17,19,24,.07);
}
.account-email-setting > div,
.account-email-language-row > div{min-width:0}
.account-email-setting strong,
.account-email-language-row strong{
  display:block;
  color:#17181a;
  font-size:12.5px;
  line-height:1.35;
  font-weight:650;
}
.account-email-setting p,
.account-email-language-row p{
  margin:5px 0 0;
  color:var(--account-muted,#777c84);
  font-size:10.5px;
  line-height:1.5;
  max-width:580px;
}
.account-email-setting.locked{opacity:1}
.account-email-setting.locked > div::before{
  content:"";
  display:inline-block;
  width:6px;
  height:6px;
  margin:0 7px 1px 0;
  border-radius:50%;
  background:#22a064;
}
.account-email-required{
  flex:0 0 auto;
  padding:6px 9px;
  border:1px solid rgba(22,122,73,.10);
  border-radius:999px;
  background:#edf8f2;
  color:#167a49;
  font-size:9.5px;
  font-weight:650;
  white-space:nowrap;
}

/* Accessible toggle switch. If these styles ever fail to load, the native checkbox remains usable. */
.account-email-toggle{
  appearance:none;
  -webkit-appearance:none;
  width:44px;
  height:26px;
  flex:0 0 44px;
  margin:0;
  border:1px solid #d3d5d7;
  border-radius:999px;
  background:#e8e9e9;
  position:relative;
  transition:background .2s ease,border-color .2s ease,box-shadow .2s ease;
  cursor:pointer;
}
.account-email-toggle::before{
  content:"";
  position:absolute;
  width:20px;
  height:20px;
  left:2px;
  top:2px;
  border-radius:50%;
  background:#fff;
  box-shadow:0 1px 5px rgba(0,0,0,.17);
  transition:transform .2s ease;
}
.account-email-toggle:hover{border-color:#bfc2c5}
.account-email-toggle:focus-visible{outline:0;box-shadow:0 0 0 4px rgba(217,31,45,.09)}
.account-email-toggle:checked{background:#17181a;border-color:#17181a}
.account-email-toggle:checked::before{transform:translateX(18px)}
.account-email-language-row select{
  min-width:170px;
  height:42px;
  padding:0 36px 0 12px;
  border:1px solid var(--account-line,rgba(17,19,24,.10));
  border-radius:10px;
  background:#fff;
  color:#17181a;
  outline:0;
  font-size:11px;
}
.account-email-language-row select:focus{
  border-color:rgba(217,31,45,.5);
  box-shadow:0 0 0 3px rgba(217,31,45,.07);
}
.account-email-actions{
  padding-top:18px;
  display:flex;
  justify-content:flex-end;
}

/* ---------- Push device card ---------- */
.account-push-device{
  margin:18px 20px 4px;
  padding:17px 18px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  border:1px solid rgba(17,19,24,.09);
  border-radius:14px;
  background:linear-gradient(135deg,#fbfbfa,#fff 55%);
}
.account-push-device-main{display:flex;align-items:center;gap:14px;min-width:0}
.account-push-device-icon{
  width:42px;
  height:42px;
  flex:0 0 42px;
  border-radius:13px;
  display:grid;
  place-items:center;
  background:#17181a;
  color:#fff;
  box-shadow:0 8px 18px rgba(17,19,24,.12);
}
.account-push-device-icon svg{width:21px;height:21px;display:block}
.account-push-device-main strong{display:block;font-size:12.5px;font-weight:650}
.account-push-device-main p{margin:5px 0 0;color:var(--account-muted,#777c84);font-size:10.5px;line-height:1.5}
.account-push-device-actions{display:flex;gap:8px;flex:0 0 auto}
.account-push-device-actions .account-btn{min-height:38px;font-size:10.5px}
.account-push-ios{
  margin:14px 20px 4px;
  padding:15px 16px;
  border:1px solid rgba(217,31,45,.17);
  border-radius:12px;
  background:#fff7f7;
  color:#4b2427;
}
.account-push-ios strong{display:block;font-size:12px}
.account-push-ios p,
.account-push-ios ol{font-size:10.5px;line-height:1.55}
.account-push-ios p{margin:5px 0 8px}
.account-push-ios ol{margin:0;padding-left:18px}
.account-push-meta{
  display:flex;
  justify-content:space-between;
  gap:18px;
  padding:15px 0 0;
  color:var(--account-muted,#777c84);
  font-size:9.5px;
  line-height:1.5;
}
.account-push-meta span:first-child{color:#17181a;font-weight:650;white-space:nowrap}

/* ---------- Responsive ---------- */
@media(max-width:700px){
  .notification-bell{width:40px;height:40px;border-radius:11px}
  .notification-dropdown{position:fixed;left:12px;right:12px;top:72px;width:auto;max-height:calc(100vh - 90px)}
  .notification-dropdown-list{max-height:calc(100vh - 205px)}
  .notification-dropdown-head{padding:14px 15px}
  .notification-item{padding:12px 14px}
  .notification-bell-count{border-color:#fff}

  .account-notification-title-row{display:block}
  .account-notification-title-row .account-btn{margin-top:12px}
  .account-notification-filters{overflow-x:auto;flex-wrap:nowrap;padding-bottom:3px;scrollbar-width:none}
  .account-notification-filters::-webkit-scrollbar{display:none}
  .account-notification-filters button{white-space:nowrap}
  .account-notification-row{grid-template-columns:38px 1fr;padding:14px 13px}
  .account-notification-icon{width:36px;height:36px}
  .account-notification-time{grid-column:2;white-space:normal;margin-top:-4px}
  .account-notification-row.unread::before{left:4px;top:20px}

  .account-email-settings,
  .account-push-settings{padding-left:16px;padding-right:16px}
  .account-email-setting,
  .account-email-language-row{align-items:flex-start;gap:14px;min-height:0}
  .account-email-language-row{flex-direction:column}
  .account-email-language-row select{width:100%}
  .account-email-required{white-space:normal;text-align:center}
  .account-email-actions{justify-content:stretch}
  .account-email-actions .account-btn{width:100%}

  .account-push-device{margin:16px;align-items:flex-start;flex-direction:column}
  .account-push-device-actions{width:100%;flex-direction:column}
  .account-push-device-actions .account-btn{width:100%}
  .account-push-ios{margin:14px 16px 4px}
  .account-push-meta{flex-direction:column;gap:5px}
  .account-push-meta span:first-child{white-space:normal}
}
