/* ============================================================
   EclipseID · Notifications v3 (квадратный)
   ============================================================ */
.notif-wrap { position: relative; display: inline-flex; align-items: center; }
.notif-bell {
  position: relative;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--r);
  width: 38px;
  height: 38px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--fg);
  display: inline-flex; align-items: center; justify-content: center;
  transition: border-color .15s, color .15s;
}
.notif-bell:hover { border-color: var(--accent); color: var(--accent); }
.notif-badge {
  position: absolute; top: -6px; right: -6px;
  background: var(--accent); color: var(--bg);
  font-family: var(--mono);
  font-size: 10px; font-weight: 700;
  border-radius: 2px; padding: 1px 5px;
  min-width: 16px; text-align: center; line-height: 1.4;
}
.notif-dropdown {
  position: absolute; right: 0; top: calc(100% + 8px);
  width: 340px; max-width: calc(100vw - 24px);
  max-height: 440px; overflow-y: auto;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  z-index: 200;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}
.notif-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  font-size: 13px; font-weight: 600;
}
.notif-readall {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--fg-2);
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 8px;
  border-radius: var(--r);
  cursor: pointer;
}
.notif-readall:hover { color: var(--accent); border-color: var(--accent); }
.notif-list { display: block; }
.notif-item {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background .12s;
}
.notif-item:last-child { border-bottom: none; }
.notif-item:hover { background: rgba(255, 255, 255, 0.02); }
.notif-item.unread { background: rgba(142, 240, 168, 0.05); }
.notif-item.unread:hover { background: rgba(142, 240, 168, 0.09); }
.notif-item-title { font-size: 13px; font-weight: 600; color: var(--fg); margin-bottom: 4px; line-height: 1.3; }
.notif-item-body { font-size: 12px; color: var(--fg-2); line-height: 1.45; }
.notif-item-time { font-size: 10px; color: var(--fg-3); margin-top: 6px; font-family: var(--mono); }
.notif-empty { padding: 30px 14px; text-align: center; font-size: 12px; color: var(--fg-3); }

.tg-card {
  margin-top: 16px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 16px 18px;
}
.tg-card-head { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; }
.tg-card-title { font-size: 14px; font-weight: 600; color: var(--fg); margin-bottom: 4px; }
.tg-card-status { font-size: 12px; color: var(--fg-2); line-height: 1.45; }

@media (max-width: 640px) {
  .notif-wrap { margin-right: 6px; }
  .notif-dropdown {
    position: fixed; top: 60px; left: 12px; right: 12px;
    width: auto; max-width: none; max-height: calc(100vh - 80px);
  }
}
