#notif-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
  width: 320px;
  max-width: calc(100vw - 32px);
}

.notif-toast {
  pointer-events: all;
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 40px 12px 14px;
  background: #111827;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.07);
  box-shadow:
    0 2px 4px rgba(0,0,0,.3),
    0 10px 30px rgba(0,0,0,.45),
    inset 0 1px 0 rgba(255,255,255,.06);
  user-select: none;
  touch-action: pan-y;
  animation: toastIn .3s cubic-bezier(.34,1.56,.64,1) forwards;
}

/* Left accent stripe */
.notif-toast.notif-success { border-left: 3px solid #10b981; }
.notif-toast.notif-error   { border-left: 3px solid #ef4444; }
.notif-toast.notif-info    { border-left: 3px solid #3b82f6; }
.notif-toast.notif-warning { border-left: 3px solid #f59e0b; }

/* Icon bubble */
.notif-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .85rem;
  font-weight: 800;
  flex-shrink: 0;
  margin-top: 1px;
}
.notif-success .notif-icon { background: rgba(16,185,129,.15); color: #10b981; }
.notif-error   .notif-icon { background: rgba(239,68,68,.15);  color: #ef4444; }
.notif-info    .notif-icon { background: rgba(59,130,246,.15); color: #3b82f6; }
.notif-warning .notif-icon { background: rgba(245,158,11,.15); color: #f59e0b; }

/* Body */
.notif-body { flex: 1; min-width: 0; }

.notif-msg {
  font-size: .875rem;
  font-weight: 500;
  color: #e2e8f0;
  line-height: 1.45;
  word-break: break-word;
  margin-bottom: 9px;
}

/* Progress bar */
.notif-progress {
  height: 3px;
  background: rgba(255,255,255,.08);
  border-radius: 99px;
  overflow: hidden;
}
.notif-bar {
  height: 100%;
  width: 100%;
  border-radius: 99px;
  transition: width linear;
}
.notif-success .notif-bar { background: #10b981; }
.notif-error   .notif-bar { background: #ef4444; }
.notif-info    .notif-bar { background: #3b82f6; }
.notif-warning .notif-bar { background: #f59e0b; }

/* Close button */
.notif-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 22px;
  height: 22px;
  background: transparent;
  border: none;
  color: #475569;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .12s, color .12s;
  padding: 0;
}
.notif-close:hover {
  background: rgba(255,255,255,.1);
  color: #e2e8f0;
}

/* Animations */
@keyframes toastIn {
  from { transform: translateX(24px) scale(.96); opacity: 0; }
  to   { transform: translateX(0)    scale(1);   opacity: 1; }
}
@keyframes toastOut {
  from { opacity: 1; transform: translateX(0); }
  to   { opacity: 0; transform: translateX(32px); }
}

/* Mobile: full-width at bottom on very small screens */
@media (max-width: 400px) {
  #notif-container {
    top: auto;
    bottom: 16px;
    right: 12px;
    left: 12px;
    width: auto;
  }
  @keyframes toastIn {
    from { transform: translateY(16px) scale(.96); opacity: 0; }
    to   { transform: translateY(0)    scale(1);   opacity: 1; }
  }
}


/* =================================================================
   SIDEBAR / LEFT MENU
   ================================================================= */

.leftmenu,
.left-menu,
aside.sidebar {
  background: #0c1422 !important;
  border-right: 1px solid #182030 !important;
  display: flex !important;
  flex-direction: column !important;
  height: 100vh;
  position: sticky;
  top: 0;
  overflow: hidden;
}

/* Logo / brand area */
.leftmenu .logo,
.leftmenu .sidebar-logo,
.leftmenu .brand,
.leftmenu__logo {
  display: flex;
  align-items: center;
  padding: 20px 18px 18px;
  border-bottom: 1px solid #182030;
  flex-shrink: 0;
  gap: 10px;
  text-decoration: none !important;
}
.leftmenu .logo img,
.leftmenu .sidebar-logo img {
  height: 32px;
  width: auto;
  filter: drop-shadow(0 0 8px rgba(59,130,246,.4));
}
.leftmenu .logo span,
.leftmenu .brand span {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff !important;
  letter-spacing: -.01em;
}

/* Scrollable body */
.leftmenu .menu-body,
.leftmenu .menu-scroll,
.leftmenu .nav-wrap,
.leftmenu ul,
.leftmenu nav {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 10px 0 16px;
}
.leftmenu ul { list-style: none; margin: 0; padding: 6px 0; }

/* Scrollbar */
.leftmenu ::-webkit-scrollbar { width: 4px; }
.leftmenu ::-webkit-scrollbar-track { background: transparent; }
.leftmenu ::-webkit-scrollbar-thumb {
  background: #1e2d42;
  border-radius: 2px;
}

/* Section heading */
.leftmenu .menu-section,
.leftmenu .nav-section,
.leftmenu .sidebar-section {
  padding: 18px 22px 6px !important;
  font-size: .65rem !important;
  font-weight: 700 !important;
  color: #2d3f58 !important;
  text-transform: uppercase !important;
  letter-spacing: .1em !important;
}

/* Nav links / items */
.leftmenu a,
.leftmenu .nav-item,
.leftmenu li > a,
.leftmenu .menu-item {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  padding: 9px 14px !important;
  margin: 1px 8px !important;
  color: #64748b !important;
  font-size: .875rem !important;
  font-weight: 500 !important;
  text-decoration: none !important;
  border-radius: 8px !important;
  transition: background .15s, color .15s, box-shadow .15s !important;
  position: relative !important;
  white-space: nowrap;
  overflow: hidden;
}

/* Icon inside link */
.leftmenu a i,
.leftmenu li > a i,
.leftmenu .nav-item i {
  width: 18px !important;
  text-align: center !important;
  font-size: .9rem !important;
  flex-shrink: 0 !important;
  transition: color .15s !important;
}

/* Hover */
.leftmenu a:hover,
.leftmenu li > a:hover,
.leftmenu .nav-item:hover,
.leftmenu .menu-item:hover {
  background: rgba(255,255,255,.05) !important;
  color: #cbd5e1 !important;
}
.leftmenu a:hover i { color: #94a3b8 !important; }

/* Active / current page */
.leftmenu a.active,
.leftmenu li.active > a,
.leftmenu .nav-item.active,
.leftmenu .menu-item.active {
  background: rgba(59,130,246,.12) !important;
  color: #fff !important;
  font-weight: 600 !important;
}
.leftmenu a.active::before,
.leftmenu li.active > a::before {
  content: '';
  position: absolute;
  left: 0; top: 20%; bottom: 20%;
  width: 3px;
  background: #3b82f6;
  border-radius: 0 2px 2px 0;
}
.leftmenu a.active i,
.leftmenu li.active > a i {
  color: #3b82f6 !important;
}

/* Balance / user block at bottom */
.leftmenu .sidebar-user,
.leftmenu .user-block,
.leftmenu .sidebar-footer {
  border-top: 1px solid #182030;
  padding: 14px 16px;
  flex-shrink: 0;
}
.leftmenu .sidebar-user .user-name {
  font-size: .8rem;
  font-weight: 600;
  color: #e2e8f0;
}
.leftmenu .sidebar-user .user-balance {
  font-size: .75rem;
  color: #3b82f6;
  font-weight: 700;
}

/* Divider */
.leftmenu hr,
.leftmenu .menu-divider {
  border: none !important;
  border-top: 1px solid #182030 !important;
  margin: 8px 16px !important;
}

/* Badge / tag on nav item (e.g. "NEW") */
.leftmenu .badge,
.leftmenu .nav-badge {
  margin-left: auto;
  padding: 2px 7px;
  font-size: .6rem;
  font-weight: 700;
  border-radius: 99px;
  background: #1d4ed8;
  color: #fff;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.leftmenu .badge.badge-new { background: #059669; }
.leftmenu .badge.badge-hot { background: #dc2626; }