/* === Shared Components: Cards, Buttons, Badges, Nav, Modals === */

/* --- Bento Card --- */

.bento-card {
  background: var(--color-surface);
  backdrop-filter: var(--blur-md);
  -webkit-backdrop-filter: var(--blur-md);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-2xl);
  padding: 18px;
  transition: border-color var(--transition-base), transform var(--transition-fast);
}

.bento-card:hover {
  border-color: var(--color-border-hover);
}

/* --- Card Title Row --- */

.card-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.card-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--color-text);
}

.see-all-btn {
  background: none;
  border: none;
  color: var(--color-primary);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: opacity var(--transition-base);
}

.see-all-btn:hover {
  opacity: 0.7;
}

/* --- Icon Button --- */

.icon-btn {
  width: 40px;
  height: 40px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-base);
}

.icon-btn:hover {
  background: var(--color-surface-active);
  color: var(--color-text);
}

/* --- Primary Button --- */

.btn-primary {
  width: 100%;
  padding: 14px 24px;
  background: var(--color-primary);
  color: #000;
  border: none;
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: all var(--transition-base);
  letter-spacing: 0.5px;
}

.btn-primary:hover {
  background: var(--color-primary-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-primary);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-primary.btn-danger {
  background: var(--color-danger);
  color: #fff;
}

.btn-primary.btn-danger:hover {
  background: #e03e34;
  box-shadow: var(--shadow-danger);
}

/* --- Secondary Button --- */

.btn-secondary {
  padding: 14px 24px;
  background: rgba(255,255,255,0.06);
  color: var(--color-text-muted);
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all var(--transition-base);
}

.btn-secondary:hover {
  background: var(--color-surface-active);
  color: var(--color-text);
  border-color: rgba(255,255,255,0.2);
}

/* --- Top Nav (Desktop) --- */

.top-nav {
  display: none;
}

/* --- Bottom Nav (Mobile) --- */

.bottom-nav {
  position: fixed;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(30, 30, 40, 0.85);
  backdrop-filter: var(--blur-lg);
  -webkit-backdrop-filter: var(--blur-lg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  padding: 8px 12px;
  z-index: 1000;
  box-shadow: var(--shadow-nav);
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  background: none;
  border: none;
  color: var(--color-text-dim);
  cursor: pointer;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  transition: all var(--transition-base);
  font-family: inherit;
}

.nav-item:hover {
  color: var(--color-text-muted);
}

.nav-icon-wrap {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-item.active .nav-icon-wrap {
  background: var(--color-primary);
  color: #000;
  box-shadow: var(--shadow-primary-glow);
}

.nav-item.active {
  color: var(--color-primary);
}

.nav-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.3px;
}

.nav-item.active .nav-label {
  color: var(--color-primary);
}

/* --- Hero Heading --- */

.hero-heading {
  margin-bottom: 24px;
}

.hero-heading h1 {
  font-size: 28px;
  font-weight: 800;
  line-height: 1.2;
  color: var(--color-text);
  letter-spacing: -0.5px;
}

.hero-sub {
  font-size: 14px;
  color: var(--color-text-muted);
  margin-top: 8px;
  font-weight: 400;
}

/* --- Modal --- */

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2000;
  animation: fadeIn 0.3s ease-out;
}

.modal-overlay.hidden {
  display: none;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-box {
  background: rgba(30, 30, 40, 0.95);
  backdrop-filter: var(--blur-lg);
  -webkit-backdrop-filter: var(--blur-lg);
  border: 1px solid var(--color-border-strong);
  padding: 36px 44px;
  border-radius: 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 320px;
  box-shadow: var(--shadow-modal);
}

.modal-box h2 {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.modal-box p {
  font-size: 14px;
  color: var(--color-text-muted);
  font-weight: 400;
}

.modal-buttons {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 8px;
}

#end-game-title.win { color: var(--color-primary); }
#end-game-title.lose { color: var(--color-text-dim); }
#end-game-title.tie { color: var(--color-accent); }

/* --- Combo Display --- */

#combo-display {
  position: fixed;
  top: 45%;
  left: 35%;
  transform: translate(-50%, -50%);
  font-size: 44px;
  font-weight: 800;
  color: var(--color-primary);
  text-shadow: 0 0 30px rgba(var(--color-primary-rgb), 0.5), 0 2px 4px rgba(0,0,0,0.5);
  pointer-events: none;
  opacity: 0;
  z-index: 500;
  letter-spacing: -1px;
}

#combo-display.show {
  animation: comboPopup 0.8s ease-out forwards;
}

@keyframes comboPopup {
  0%   { opacity: 1; transform: translate(-50%, -50%) scale(0.5); }
  30%  { opacity: 1; transform: translate(-50%, -50%) scale(1.3); }
  60%  { opacity: 1; transform: translate(-50%, -50%) scale(1.0); }
  100% { opacity: 0; transform: translate(-50%, -70%) scale(1.0); }
}

/* === Feedback Effects === */

#fx-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1000;
  overflow: hidden;
}

.fx-text {
  position: absolute;
  transform: translate(-50%, -50%) scale(0.5);
  font-weight: 900;
  text-align: center;
  pointer-events: none;
  text-shadow: 0 4px 12px rgba(0,0,0,0.8);
  opacity: 0;
  white-space: nowrap;
}

.fx-text.double {
  color: var(--color-primary);
  font-size: 36px;
  animation: fxTextPop 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
  text-shadow: 0 4px 12px rgba(212, 255, 0, 0.5);
}

.fx-text.triple {
  color: var(--color-primary);
  font-size: 36px;
  animation: fxTextPop 1s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
  text-shadow: 0 4px 12px rgba(212, 255, 0, 0.5);
}

.fx-text.oh-wow {
  color: var(--color-primary);
  font-size: 36px;
  animation: fxTextPop 1s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
  text-shadow: 0 4px 12px rgba(212, 255, 0, 0.5);
}

@keyframes fxTextPop {
  0% { transform: translate(-50%, -50%) scale(0.5); opacity: 0; }
  20% { transform: translate(-50%, -50%) scale(1.2); opacity: 1; }
  80% { transform: translate(-50%, -60%) scale(1); opacity: 1; }
  100% { transform: translate(-50%, -70%) scale(0.8); opacity: 0; }
}

@keyframes fxColorShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.fx-shockwave {
  position: absolute;
  transform: translate(-50%, -50%) scale(0);
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 4px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 0 20px rgba(255,255,255,0.5), inset 0 0 20px rgba(255,255,255,0.5);
  backdrop-filter: blur(4px) brightness(1.2);
  -webkit-backdrop-filter: blur(4px) brightness(1.2);
  opacity: 1;
  pointer-events: none;
  animation: fxShockwave 0.6s cubic-bezier(0.1, 0.8, 0.3, 1) forwards;
}

@keyframes fxShockwave {
  0% { transform: translate(-50%, -50%) scale(0); opacity: 1; border-width: 10px; }
  100% { transform: translate(-50%, -50%) scale(8); opacity: 0; border-width: 0px; }
}

/* Shake Extensions */
.shake-medium {
  animation: shakeMedium 0.2s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}
.hero-heading {
  margin-bottom: 24px;
}

.hero-heading h1 {
  font-size: 28px;
  font-weight: 800;
  line-height: 1.2;
  color: var(--color-text);
  letter-spacing: -0.5px;
}

.hero-sub {
  font-size: 14px;
  color: var(--color-text-muted);
  margin-top: 8px;
  font-weight: 400;
}

/* --- Modal --- */

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2000;
  animation: fadeIn 0.3s ease-out;
}

.modal-overlay.hidden {
  display: none;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-box {
  background: rgba(30, 30, 40, 0.95);
  backdrop-filter: var(--blur-lg);
  -webkit-backdrop-filter: var(--blur-lg);
  border: 1px solid var(--color-border-strong);
  padding: 36px 44px;
  border-radius: 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 320px;
  box-shadow: var(--shadow-modal);
}

.modal-box h2 {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.modal-box p {
  font-size: 14px;
  color: var(--color-text-muted);
  font-weight: 400;
}

.modal-buttons {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 8px;
}

#end-game-title.win { color: var(--color-primary); }
#end-game-title.lose { color: var(--color-text-dim); }
#end-game-title.tie { color: var(--color-accent); }

/* --- Combo Display --- */

#combo-display {
  position: fixed;
  top: 45%;
  left: 35%;
  transform: translate(-50%, -50%);
  font-size: 44px;
  font-weight: 800;
  color: var(--color-primary);
  text-shadow: 0 0 30px rgba(var(--color-primary-rgb), 0.5), 0 2px 4px rgba(0,0,0,0.5);
  pointer-events: none;
  opacity: 0;
  z-index: 500;
  letter-spacing: -1px;
}

#combo-display.show {
  animation: comboPopup 0.8s ease-out forwards;
}

@keyframes comboPopup {
  0%   { opacity: 1; transform: translate(-50%, -50%) scale(0.5); }
  30%  { opacity: 1; transform: translate(-50%, -50%) scale(1.3); }
  60%  { opacity: 1; transform: translate(-50%, -50%) scale(1.0); }
  100% { opacity: 0; transform: translate(-50%, -70%) scale(1.0); }
}

/* === Feedback Effects === */

#fx-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1000;
  overflow: hidden;
}

.fx-text {
  position: absolute;
  transform: translate(-50%, -50%) scale(0.5);
  font-weight: 900;
  text-align: center;
  pointer-events: none;
  text-shadow: 0 4px 12px rgba(0,0,0,0.8);
  opacity: 0;
  white-space: nowrap;
}

.fx-text.double {
  color: var(--color-primary);
  font-size: 36px;
  animation: fxTextPop 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
  text-shadow: 0 4px 12px rgba(212, 255, 0, 0.5);
}

.fx-text.triple {
  color: var(--color-primary);
  font-size: 36px;
  animation: fxTextPop 1s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
  text-shadow: 0 4px 12px rgba(212, 255, 0, 0.5);
}

.fx-text.oh-wow {
  color: var(--color-primary);
  font-size: 36px;
  animation: fxTextPop 1s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
  text-shadow: 0 4px 12px rgba(212, 255, 0, 0.5);
}

@keyframes fxTextPop {
  0% { transform: translate(-50%, -50%) scale(0.5); opacity: 0; }
  20% { transform: translate(-50%, -50%) scale(1.2); opacity: 1; }
  80% { transform: translate(-50%, -60%) scale(1); opacity: 1; }
  100% { transform: translate(-50%, -70%) scale(0.8); opacity: 0; }
}

@keyframes fxColorShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.fx-shockwave {
  position: absolute;
  transform: translate(-50%, -50%) scale(0);
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 4px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 0 20px rgba(255,255,255,0.5), inset 0 0 20px rgba(255,255,255,0.5);
  backdrop-filter: blur(4px) brightness(1.2);
  -webkit-backdrop-filter: blur(4px) brightness(1.2);
  opacity: 1;
  pointer-events: none;
  animation: fxShockwave 0.6s cubic-bezier(0.1, 0.8, 0.3, 1) forwards;
}

@keyframes fxShockwave {
  0% { transform: translate(-50%, -50%) scale(0); opacity: 1; border-width: 10px; }
  100% { transform: translate(-50%, -50%) scale(8); opacity: 0; border-width: 0px; }
}

/* Shake Extensions */
.shake-medium {
  animation: shakeMedium 0.2s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

.shake-heavy {
  animation: shakeHeavy 0.25s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

@keyframes shakeMedium {
  0%, 100% { transform: translate3d(0, 0, 0); }
  25% { transform: translate3d(-1px, 1px, 0); }
  50% { transform: translate3d(1px, -1px, 0); }
  75% { transform: translate3d(-1px, -1px, 0); }
}

@keyframes shakeHeavy {
  0%, 100% { transform: translate3d(0, 0, 0); }
  25% { transform: translate3d(-2px, 2px, 0); }
  50% { transform: translate3d(2px, -1px, 0); }
  75% { transform: translate3d(-1px, 2px, 0); }
}
/* === Time Dilation & Physics Collapse === */
body.time-dilation .fx-text,
body.time-dilation .fx-impact-flash,
body.time-dilation .fx-glow-aura,
body.time-dilation .fx-shockwave,
body.time-dilation .shake-medium,
body.time-dilation .shake-heavy {
  animation-duration: 5s !important;
}

#physics-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 50;
  overflow: visible;
}

.physics-entity {
  position: absolute;
  will-change: transform;
  pointer-events: none;
}

/* === PvB Modal === */

.pvb-modal {
  text-align: left;
  max-width: 480px;
  width: 90vw;
  gap: 20px;
  max-height: 90vh;
  overflow-y: auto;
}

.pvb-modal-title {
  text-align: center;
  background: linear-gradient(135deg, var(--color-accent), var(--color-accent-dark));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.pvb-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pvb-label {
  font-size: 11px;
  color: var(--color-text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

/* Starting Player Toggle */

.pvb-toggle {
  display: flex;
  gap: 8px;
}

.pvb-toggle-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  color: var(--color-text-muted);
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s ease;
}

.pvb-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--color-border-hover);
}

.pvb-toggle-btn.active {
  background: rgba(168, 85, 247, 0.12);
  border-color: var(--color-accent);
  color: var(--color-text);
  box-shadow: 0 0 12px rgba(168, 85, 247, 0.15);
}

.pvb-toggle-btn svg {
  flex-shrink: 0;
}

/* Difficulty Cards */

.pvb-difficulty-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.pvb-diff-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 14px 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
  position: relative;
  overflow: hidden;
}

.pvb-diff-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.pvb-diff-card:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--color-border-hover);
  transform: translateY(-1px);
}

.pvb-diff-card.active {
  background: rgba(168, 85, 247, 0.1);
  border-color: var(--color-accent);
  box-shadow: 0 0 16px rgba(168, 85, 247, 0.15);
}

.pvb-diff-card.active::after {
  opacity: 1;
  background: radial-gradient(circle at center, rgba(168, 85, 247, 0.08), transparent 70%);
}

.pvb-diff-emoji {
  font-size: 24px;
  line-height: 1;
}

.pvb-diff-name {
  font-size: 11px;
  font-weight: 600;
  color: var(--color-text);
  text-align: center;
  line-height: 1.3;
  margin: auto 0;
}

.pvb-diff-tag {
  font-size: 10px;
  font-weight: 700;
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 2px 8px;
  background: rgba(168, 85, 247, 0.1);
  border-radius: var(--radius-full);
}

/* Gamemode Grid */

.pvb-mode-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.pvb-mode-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 12px 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.pvb-mode-btn:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--color-border-hover);
}

.pvb-mode-btn.active {
  background: rgba(212, 255, 0, 0.08);
  border-color: var(--color-primary);
  box-shadow: 0 0 12px rgba(212, 255, 0, 0.1);
}

.pvb-mode-icon {
  font-size: 20px;
  line-height: 1;
}

.pvb-mode-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--color-text);
}

.pvb-mode-desc {
  font-size: 10px;
  color: var(--color-text-muted);
  font-weight: 500;
}

/* Start Button */

.pvb-start-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 4px;
  font-size: 15px;
  letter-spacing: 1px;
}

.pvb-start-btn svg {
  flex-shrink: 0;
}

/* Scrollbar for modal */
.pvb-modal::-webkit-scrollbar {
  width: 4px;
}

.pvb-modal::-webkit-scrollbar-track {
  background: transparent;
}

.pvb-modal::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
}

/* --- Notification Bell & Panel --- */

.top-nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-bell-wrapper {
  position: relative;
}

.nav-bell-btn {
  background: transparent;
  border: none;
  color: var(--color-text-muted);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.nav-bell-btn:hover {
  background: var(--color-surface-active);
  color: var(--color-text);
}

.nav-badge {
  position: absolute;
  top: 4px;
  right: 4px;
  background: var(--color-danger);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--color-bg);
  box-shadow: 0 0 8px rgba(255, 65, 85, 0.4);
}

.notification-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 320px;
  background: rgba(22, 22, 30, 0.96);
  backdrop-filter: var(--blur-lg);
  -webkit-backdrop-filter: var(--blur-lg);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 14px;
  padding: 6px;
  box-shadow: 0 16px 48px rgba(0,0,0,0.55), 0 4px 12px rgba(0,0,0,0.3);
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transform: translateY(-6px) scale(0.97);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
  z-index: 1200;
  overflow: hidden;
  transform-origin: top right;
}

.notification-panel.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.notification-panel-header {
  padding: 8px 12px 12px 12px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  margin-bottom: 6px;
  background: none;
}

.notification-panel-header h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: var(--color-text);
}

.notification-panel-list {
  max-height: 360px;
  overflow-y: auto;
}

.empty-notif {
  padding: 32px 20px;
  text-align: center;
  color: var(--color-text-muted);
  font-size: 14px;
}

.notif-item {
  padding: 9px 12px;
  border-radius: 9px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 2px;
  transition: background var(--transition-base), color var(--transition-base);
}

.notif-item:hover {
  background: rgba(255,255,255,0.06);
}

.notif-item:last-child {
  margin-bottom: 0;
}

.notif-icon-box {
  width: 32px;
  height: 32px;
  background-color: var(--color-primary, #e2ff00);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #000;
  flex-shrink: 0;
  align-self: center;
}
.notif-icon-box.bg-blue {
  background-color: #3b82f6;
  color: #ffffff;
}

.notif-content {
  flex: 1;
}

.notif-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 4px;
}

.notif-desc {
  font-size: 13px;
  color: var(--color-text-muted);
  line-height: 1.4;
}

.notif-time {
  font-size: 11px;
  color: var(--color-text-muted);
  opacity: 0.7;
  white-space: nowrap;
}

/* --- Toast Container --- */

.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 9999;
  pointer-events: none;
}

.toast {
  background: rgba(22, 24, 28, 0.9);
  backdrop-filter: blur(12px);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 16px;
  width: 300px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  transform: translateX(120%);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: auto;
}

.toast.show {
  transform: translateX(0);
  opacity: 1;
}

.toast-success {
  border-left: 4px solid #28a745;
}

.toast-icon {
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.toast-text {
  flex: 1;
}

.toast-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 4px;
}

.toast-desc {
  font-size: 13px;
  color: var(--color-text-muted);
  line-height: 1.4;
}
