/* Home side actions: daily gift only (notifications live in header) */

.app-main--menu {
  position: relative;
}

.hud-mail-btn .notif-bell-badge {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 10px;
  height: 10px;
  border-radius: 50% !important;
  background: #e0474b;
  border: 1.5px solid #1c1c1e;
  box-shadow: 0 0 0 1px rgba(224, 71, 75, 0.35);
  pointer-events: none;
  display: block;
  flex-shrink: 0;
}

.hud-mail-btn .notif-bell-badge[hidden] {
  display: none !important;
}

.notif-panel {
  position: fixed;
  top: 0;
  bottom: 0;
  left: var(--app-frame-left, 0px);
  width: min(100%, var(--app-frame-max-width, 100%));
  z-index: 80;
  pointer-events: none;
  visibility: hidden;
}

.notif-panel.is-open {
  pointer-events: auto;
  visibility: visible;
}

.notif-panel-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  opacity: 0;
  transition: opacity 0.22s ease;
}

.notif-panel.is-open .notif-panel-backdrop {
  opacity: 1;
}

.notif-panel-sheet {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  max-height: min(72vh, 560px);
  background: #1c1c1e;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0 0 18px 18px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
  transform: translateY(-105%);
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding-top: env(safe-area-inset-top, 0px);
}

.notif-panel.is-open .notif-panel-sheet {
  transform: translateY(0);
}

.notif-panel-list {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 12px 16px 8px;
  flex: 1;
  min-height: 0;
}

.notif-empty {
  margin: 28px 8px;
  text-align: center;
  color: #9a9a9a;
  font-size: 14px;
  line-height: 1.6;
}

.notif-item {
  padding: 12px 4px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.notif-item:last-child {
  border-bottom: none;
}

.notif-item-date {
  display: block;
  font-size: 11px;
  color: #8e8e93;
  margin-bottom: 6px;
  line-height: 1.4;
}

.notif-item-body {
  margin: 0;
  font-size: 14px;
  line-height: 1.75;
  color: #ededed;
  white-space: pre-wrap;
  word-break: break-word;
  direction: rtl;
  text-align: right;
}

.notif-panel-footer {
  padding: 8px 16px 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  text-align: center;
}

.notif-show-more {
  background: none;
  border: none;
  color: #ffd66a;
  font: inherit;
  font-size: 14px;
  cursor: pointer;
  padding: 8px 12px;
}

.notif-show-more:disabled {
  opacity: 0.5;
  cursor: wait;
}

.notif-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(0, 0, 0, 0.55);
}

.notif-modal-overlay.is-open {
  display: flex;
}

.notif-modal {
  width: min(100%, 420px);
  max-height: min(80vh, 640px);
  background: #1c1c1e;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.notif-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.notif-modal-title {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: #ffd66a;
}

.notif-modal-close {
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  color: #ededed;
  font-size: 18px;
  cursor: pointer;
}

.notif-modal-list {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 8px 16px 16px;
  flex: 1;
  min-height: 0;
}
