/* ═══════════════════════════════════════════════
   PRICE FILTER
═══════════════════════════════════════════════ */
.price-filter-row {
  padding: 0 16px 8px;
}
.price-filter-inner {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px 12px;
}
.price-filter-label {
  font-size: 11px;
  color: var(--t3);
  font-family: var(--mono);
  white-space: nowrap;
}
.price-inputs {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1;
}
.price-input {
  width: 70px;
  background: var(--bg3);
  border: 1px solid var(--border2);
  border-radius: 6px;
  padding: 5px 8px;
  font-size: 12px;
  color: var(--t1);
  font-family: var(--mono);
  outline: none;
  transition: border-color .2s;
}
.price-input:focus { border-color: var(--accent2); }
.price-input::placeholder { color: var(--t3); }
.price-sep { font-size: 12px; color: var(--t3); }
.price-reset { font-size: 11px; opacity: .7; }

/* ═══════════════════════════════════════════════
   CHECKOUT STEPS
═══════════════════════════════════════════════ */
.checkout-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 16px 20px 8px;
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
}
.checkout-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  cursor: default;
  opacity: .4;
  transition: opacity .2s;
}
.checkout-step.active { opacity: 1; }
.cs-num {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--bg3);
  border: 2px solid var(--border2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  font-family: var(--mono);
  transition: background .2s, border-color .2s;
}
.checkout-step.active .cs-num {
  background: var(--accent2);
  border-color: var(--accent2);
  color: #fff;
}
.cs-label {
  font-size: 10px;
  color: var(--t3);
  font-family: var(--mono);
}
.checkout-step.active .cs-label { color: var(--accent2); }
.cs-line {
  flex: 1;
  height: 2px;
  background: var(--border);
  margin: 0 6px;
  margin-bottom: 14px;
  transition: background .3s;
  min-width: 24px;
}
.cs-line.done { background: var(--accent2); }

.checkout-review {
  background: var(--bg3);
  border: 1px solid var(--border2);
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 16px;
}
.cr-label {
  font-size: 11px;
  color: var(--t3);
  font-family: var(--mono);
  margin-bottom: 6px;
}
.cr-title {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
}
.cr-price {
  font-family: var(--mono);
  font-size: 28px;
  font-weight: 700;
  color: var(--accent2);
  margin-bottom: 8px;
}
.cr-track {
  font-size: 11px;
  color: var(--t3);
  font-family: var(--mono);
}
.cr-track span { color: var(--accent2); }
.cr-discount {
  margin-top: 10px;
  font-size: 12px;
  color: var(--green);
}
.cr-final {
  margin-top: 12px;
  font-size: 13px;
  color: var(--t2);
}
.cr-final span {
  font-family: var(--mono);
  font-weight: 700;
  color: var(--accent2);
}
.checkout-coupon {
  background: var(--bg3);
  border: 1px solid var(--border2);
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 4px;
}

/* ═══════════════════════════════════════════════
   NOTIFICATIONS
═══════════════════════════════════════════════ */
.notif-panel {
  position: fixed;
  top: 0;
  right: -340px;
  width: 320px;
  height: 100vh;
  background: var(--bg2);
  border-left: 1px solid var(--border);
  z-index: 1100;
  transition: right .3s cubic-bezier(.4,0,.2,1);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}
.notif-panel.open { right: 0; }

.notif-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  border-bottom: 1px solid var(--border);
  font-weight: 700;
  font-size: 14px;
  position: sticky;
  top: 0;
  background: var(--bg2);
  z-index: 1;
}
.notif-panel-head button {
  background: none;
  border: none;
  color: var(--t2);
  font-size: 16px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
}
.notif-panel-head button:hover { background: var(--bg3); }

.notif-empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--t3);
  font-size: 13px;
  font-family: var(--mono);
}

.notif-item {
  display: flex;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  transition: background .15s;
}
.notif-item:hover { background: var(--bg3); }
.notif-unread { background: rgba(59,130,246,.05); }
.notif-unread::before {
  content: '';
  position: absolute;
  right: 0;
  width: 3px;
  height: 100%;
  background: var(--accent2);
}
.notif-item { position: relative; }

.notif-item-icon { font-size: 20px; flex-shrink: 0; margin-top: 2px; }
.notif-item-body { flex: 1; min-width: 0; }
.notif-item-title { font-size: 13px; font-weight: 600; margin-bottom: 3px; }
.notif-item-text { font-size: 12px; color: var(--t2); line-height: 1.5; }
.notif-item-time { font-size: 11px; color: var(--t3); font-family: var(--mono); margin-top: 4px; }

/* Toast popup for notifications */
.notif-toast {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 16px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  max-width: 300px;
  width: calc(100vw - 40px);
  box-shadow: 0 8px 32px rgba(0,0,0,.3);
  z-index: 2000;
  opacity: 0;
  transition: opacity .3s, transform .3s;
  pointer-events: none;
}
.notif-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.notif-toast-icon { font-size: 18px; flex-shrink: 0; }
.notif-toast-title { font-size: 13px; font-weight: 600; margin-bottom: 2px; }
.notif-toast-body { font-size: 12px; color: var(--t2); }

/* ═══════════════════════════════════════════════
   FIX: Profile Panel Overlay (freeze bug)
═══════════════════════════════════════════════ */
.profile-panel-overlay {
  position: fixed;
  inset: 0;
  z-index: 1050;
  background: rgba(0,0,0,.5);
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s;
}
.profile-panel-overlay.open,
.profile-panel-overlay.active {
  opacity: 1;
  pointer-events: all;
}
.profile-panel {
  position: fixed;
  top: 0;
  left: 0;
  width: 85%;
  max-width: 340px;
  height: 100vh;
  background: var(--bg2);
  border-right: 1px solid var(--border);
  z-index: 1100;
  transform: translateX(-100%);
  transition: transform .3s cubic-bezier(.4,0,.2,1);
  overflow-y: auto;
}
.profile-panel.open {
  transform: translateX(0);
}

/* ═══════════════════════════════════════════════
   FIX: Notif panel (RTL — come from left)
═══════════════════════════════════════════════ */
.notif-panel {
  right: auto;
  left: -340px;
  border-left: none;
  border-right: 1px solid var(--border);
  transition: left .3s cubic-bezier(.4,0,.2,1);
}
.notif-panel.open {
  left: 0;
  right: auto;
}

/* ═══════════════════════════════════════════════
   FIX: Navbar mobile — prevent overflow
═══════════════════════════════════════════════ */
@media (max-width: 520px) {
  #navbar {
    padding: 0 10px;
    gap: 6px;
  }
  .nav-center {
    padding: 3px;
  }
  .nav-tab {
    padding: 5px 10px;
    font-size: 12px;
  }
  .nav-right {
    gap: 5px;
  }
  .btn-discord-nav span {
    display: none;
  }
  .btn-discord-nav {
    padding: 6px 8px;
  }
  .user-pill {
    padding: 5px 8px;
    max-width: 70px;
  }
  #uName {
    max-width: 50px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .cart-btn {
    padding: 6px 8px;
  }
  .logo-text {
    display: none;
  }
}

@media (max-width: 380px) {
  .user-pill { display: none; }
  .nav-tab { padding: 5px 8px; font-size: 11px; }
}
