/* ================================================================
   notif.css — SG OverGearGaming Notification System
   ================================================================ */

/* ── Bell button overrides ── */
.notif-btn {
  position: relative;
  width: 38px; height: 38px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.03);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background .2s, border-color .2s;
  flex-shrink: 0;
  text-decoration: none;
}
.notif-btn:hover { background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.1); }
.notif-btn svg   { color: var(--t2); transition: color .2s; }
.notif-btn:hover svg { color: var(--t1); }
.notif-btn.has-unread svg { color: var(--acc); }

/* Badge on bell */
.notif-dot {
  position: absolute;
  top: -5px; right: -5px;
  min-width: 18px; height: 18px;
  background: #ff3e6c;
  border-radius: 9px;
  font-size: .58rem; font-weight: 800; color: #fff;
  display: none;
  align-items: center; justify-content: center;
  padding: 0 4px;
  border: 2px solid var(--bg);
  font-family: 'Outfit', sans-serif;
  z-index: 2;
}
.notif-dot.show { display: flex; }

/* ── Dropdown panel ── */
.notif-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: -10px;
  width: 360px;
  background: #0e1122;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0,0,0,.7), 0 0 0 1px rgba(255,255,255,.04);
  z-index: 999;
  overflow: hidden;
  transform: translateY(-8px) scale(.97);
  opacity: 0;
  pointer-events: none;
  transition: all .22s cubic-bezier(.4,0,.2,1);
  transform-origin: top right;
}
.notif-dropdown.open {
  transform: translateY(0) scale(1);
  opacity: 1;
  pointer-events: all;
}

/* Header */
.nd-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px 12px;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.nd-title {
  font-family: 'Rajdhani', sans-serif;
  font-size: 1rem; font-weight: 700; color: #eef0ff;
  display: flex; align-items: center; gap: 8px;
}
.nd-title-badge {
  font-family: 'Outfit', sans-serif;
  font-size: .6rem; font-weight: 800;
  background: #ff3e6c; color: #fff;
  border-radius: 7px; padding: 2px 6px;
  display: none;
}
.nd-title-badge.show { display: inline-block; }
.nd-mark-all {
  font-size: .7rem; font-weight: 700; color: #00f5d4;
  background: none; border: none; cursor: pointer;
  font-family: 'Outfit', sans-serif;
  transition: opacity .2s;
  padding: 0;
}
.nd-mark-all:hover { opacity: .7; }

/* List */
.nd-list {
  max-height: 380px;
  overflow-y: auto;
}
.nd-list::-webkit-scrollbar { width: 3px; }
.nd-list::-webkit-scrollbar-thumb { background: rgba(255,255,255,.08); border-radius: 3px; }

/* Empty state */
.nd-empty {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 3rem 1.5rem;
  gap: 10px; color: #2e3354;
  text-align: center;
}
.nd-empty svg { opacity: .4; }
.nd-empty-t { font-size: .85rem; font-weight: 700; color: #3d4570; }
.nd-empty-s { font-size: .72rem; color: #2e3354; line-height: 1.5; }

/* Individual notification item */
.nd-item {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 13px 16px;
  cursor: pointer;
  transition: background .18s;
  border-bottom: 1px solid rgba(255,255,255,.03);
  position: relative;
}
.nd-item:hover { background: rgba(255,255,255,.04); }
.nd-item.unread { background: rgba(0,245,212,.03); }
.nd-item.unread::before {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  width: 3px; height: 60%;
  background: var(--acc);
  border-radius: 0 3px 3px 0;
}

/* Icon */
.nd-icon {
  width: 38px; height: 38px; border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.nd-icon.type-order_new   { background: rgba(255,233,78,.1);  border: 1px solid rgba(255,233,78,.2); }
.nd-icon.type-order_new svg { color: #ffe94e; }
.nd-icon.type-order_confirmed { background: rgba(0,245,212,.1); border: 1px solid rgba(0,245,212,.2); }
.nd-icon.type-order_confirmed svg { color: #00f5d4; }
.nd-icon.type-chat_msg    { background: rgba(0,245,212,.08); border: 1px solid rgba(0,245,212,.15); }
.nd-icon.type-chat_msg svg { color: #00f5d4; }
.nd-icon.type-sale        { background: rgba(0,245,212,.08); border: 1px solid rgba(0,245,212,.2); }
.nd-icon.type-sale svg    { color: #00f5d4; }
.nd-icon.type-info        { background: rgba(123,130,168,.1); border: 1px solid rgba(123,130,168,.2); }
.nd-icon.type-info svg    { color: #7b82a8; }
.nd-icon.type-alert       { background: rgba(255,62,108,.1);  border: 1px solid rgba(255,62,108,.2); }
.nd-icon.type-alert svg   { color: #ff3e6c; }

.nd-content { flex: 1; min-width: 0; }
.nd-item-title {
  font-size: .8rem; font-weight: 700; color: #eef0ff;
  line-height: 1.3; margin-bottom: 3px;
}
.nd-item.unread .nd-item-title { color: #fff; }
.nd-item-body {
  font-size: .72rem; color: #7b82a8;
  line-height: 1.45;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.nd-item-time { font-size: .62rem; color: #2e3354; margin-top: 4px; }

/* Chat CTA button inside notification */
.nd-chat-cta {
  margin-top: 7px;
  display: inline-flex; align-items: center; gap: 5px;
  background: rgba(0,245,212,.1);
  border: 1px solid rgba(0,245,212,.22);
  border-radius: 7px;
  padding: 5px 10px;
  font-size: .7rem; font-weight: 700; color: #00f5d4;
  cursor: pointer;
  transition: background .2s;
  font-family: 'Outfit', sans-serif;
  white-space: nowrap;
}
.nd-chat-cta:hover { background: rgba(0,245,212,.18); }

/* Footer */
.nd-footer {
  padding: 10px 16px;
  border-top: 1px solid rgba(255,255,255,.06);
  text-align: center;
}
.nd-footer a {
  font-size: .72rem; color: #7b82a8;
  text-decoration: none; transition: color .2s;
}
.nd-footer a:hover { color: #00f5d4; }

/* ── NEW ORDER POPUP (full width banner at top) ── */
.order-notif-banner {
  position: fixed;
  top: 72px; right: 20px;
  width: 360px;
  background: #0e1122;
  border: 1px solid rgba(0,245,212,.25);
  border-radius: 16px;
  box-shadow: 0 8px 36px rgba(0,0,0,.6), 0 0 0 1px rgba(0,245,212,.06);
  z-index: 9000;
  padding: 0;
  overflow: hidden;
  transform: translateX(420px);
  transition: transform .38s cubic-bezier(.4,0,.2,1);
}
.order-notif-banner.show {
  transform: translateX(0);
}
.onb-bar {
  height: 3px;
  background: linear-gradient(90deg, #00f5d4, #00b4d8);
  transform-origin: left;
  animation: onbBar 6s linear forwards;
}
@keyframes onbBar { from { transform: scaleX(1); } to { transform: scaleX(0); } }
.onb-body {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 14px 16px 14px;
}
.onb-icon {
  width: 42px; height: 42px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.onb-icon.sell { background: rgba(255,233,78,.12); border: 1px solid rgba(255,233,78,.25); }
.onb-icon.sell svg { color: #ffe94e; }
.onb-icon.buy  { background: rgba(0,245,212,.1);  border: 1px solid rgba(0,245,212,.2); }
.onb-icon.buy  svg { color: #00f5d4; }
.onb-info { flex: 1; min-width: 0; }
.onb-label {
  font-size: .62rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: 1px; margin-bottom: 3px;
}
.onb-icon.sell ~ .onb-info .onb-label { color: #ffe94e; }
.onb-icon.buy  ~ .onb-info .onb-label { color: #00f5d4; }
.onb-title {
  font-size: .88rem; font-weight: 700; color: #eef0ff;
  line-height: 1.3; margin-bottom: 3px;
}
.onb-sub { font-size: .73rem; color: #7b82a8; line-height: 1.4; }
.onb-close {
  background: none; border: none; color: #2e3354;
  cursor: pointer; padding: 0; flex-shrink: 0;
  width: 22px; height: 22px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 6px; transition: background .2s, color .2s;
  margin-top: -2px;
}
.onb-close:hover { background: rgba(255,255,255,.07); color: #7b82a8; }
.onb-actions {
  display: flex; gap: 8px;
  padding: 0 16px 14px;
}
.onb-btn-chat {
  flex: 1; padding: 9px 12px;
  background: #00f5d4; color: #000;
  border: none; border-radius: 9px;
  font-size: .78rem; font-weight: 800;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  transition: background .2s;
  font-family: 'Outfit', sans-serif;
}
.onb-btn-chat:hover { background: #00dfc0; }
.onb-btn-dismiss {
  padding: 9px 14px;
  background: transparent;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 9px;
  font-size: .78rem; font-weight: 600; color: #7b82a8;
  cursor: pointer;
  font-family: 'Outfit', sans-serif;
  transition: background .2s;
}
.onb-btn-dismiss:hover { background: rgba(255,255,255,.05); }

/* Mobile */
@media (max-width: 520px) {
  .notif-dropdown { width: calc(100vw - 24px); right: -8px; }
  .order-notif-banner { width: calc(100vw - 24px); right: 12px; top: 68px; }
}