/* PlayLot Dashboard — Luxury Marketplace Theme */

:root {
  --bg-deep: #080808;
  --bg-card: #111116;
  --bg-surface: #16161c;
  --bg-hover: #1c1c24;
  --gold: #D4AF37;
  --gold-light: #FFE178;
  --gold-dim: rgba(212, 175, 55, 0.15);
  --text-main: #eaeaf0;
  --text-sec: #b0b0bc;
  --text-muted: #7a7a88;
  --border: rgba(255, 255, 255, 0.06);
  --border-hover: rgba(212, 175, 55, 0.3);
  --radius-sm: 8px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-pill: 20px;
  --top-h: 60px;
  --games-h: 50px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg-deep);
  color: var(--text-main);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  transition: background 0.35s ease, color 0.35s ease;
}

/* Scrollbar */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.18); }

/* Floating Particles Canvas */
.bg-particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
}

/* ======================== TOP BAR ======================== */
.top-bar {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--top-h);
  background: rgba(8, 8, 8, 0.82);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
}

.top-bar-inner {
  max-width: 1400px;
  margin: 0 auto;
  height: 100%;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
  padding: 0 24px;
}

.logo-link {
  display: flex; align-items: center; gap: 8px;
  text-decoration: none; color: var(--gold-light);
  justify-self: start;
}
.logo-crown { color: var(--gold); }
.logo-text {
  font-size: 18px; font-weight: 700;
  letter-spacing: -0.3px;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Search */
.search-wrap {
  width: 500px;
  max-width: 100%;
  position: relative;
  display: flex; align-items: center;
  justify-self: center;
}
.search-icon {
  position: absolute; left: 14px;
  color: var(--text-muted);
  pointer-events: none;
}
.search-input {
  width: 100%;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 9px 16px 9px 38px;
  color: var(--text-main);
  font-size: 13.5px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.search-input::placeholder { color: var(--text-muted); }
.search-input:focus {
  border-color: rgba(212,175,55,0.5);
  box-shadow: 0 0 0 3px rgba(212,175,55,0.08);
}

/* Top Actions */
.top-actions {
  display: flex; align-items: center; gap: 8px;
  justify-self: end;
}

.btn-create {
  display: flex; align-items: center; gap: 6px;
  background: transparent;
  border: 1.5px solid var(--gold);
  color: var(--gold-light);
  padding: 7px 16px;
  border-radius: var(--radius-pill);
  font-size: 13px; font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.25s ease;
}
.btn-create:hover {
  background: var(--gold-dim);
  border-color: var(--gold-light);
}

.action-icon {
  position: relative;
  background: none; border: none;
  color: var(--text-sec);
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.2s ease;
}
.action-icon:hover { background: var(--bg-hover); color: var(--gold-light); }

.badge {
  position: absolute; top: 4px; right: 3px;
  background: linear-gradient(135deg, #e84040, #ff5757);
  color: #fff;
  font-size: 10px; font-weight: 700;
  min-width: 16px; height: 16px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 10px;
  padding: 0 4px;
  line-height: 1;
}

/* Profile */
.profile-trigger {
  position: relative;
  display: flex; align-items: center; gap: 6px;
  cursor: pointer;
  padding: 4px;
  border-radius: var(--radius-sm);
  transition: background 0.2s ease;
}
.profile-trigger:hover { background: var(--bg-hover); }
.profile-avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: #080808;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700;
}
.profile-arrow {
  color: var(--text-muted);
  transition: transform 0.25s var(--ease);
}
.profile-trigger.open .profile-arrow { transform: rotate(180deg); }

/* Profile Dropdown */
.profile-dropdown {
  position: absolute; top: calc(100% + 8px); right: 0;
  width: 210px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 6px;
  opacity: 0;
  transform: scale(0.95) translateY(-6px);
  transform-origin: top right;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.25s var(--ease);
  box-shadow: 0 12px 40px rgba(0,0,0,0.5);
  z-index: 200;
}
.profile-trigger.open .profile-dropdown {
  opacity: 1;
  transform: scale(1) translateY(0);
  pointer-events: auto;
}

.dd-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px;
  color: var(--text-sec);
  text-decoration: none;
  font-size: 13.5px; font-weight: 500;
  border-radius: var(--radius-sm);
  transition: all 0.15s ease;
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  font-family: inherit;
  cursor: pointer;
}
.dd-item svg { flex-shrink: 0; color: var(--text-muted); }
.dd-item:hover { background: var(--bg-hover); color: var(--text-main); }
.dd-item:hover svg { color: var(--gold-light); }
.dd-logout { color: #e84545; }
.dd-logout svg { color: #e84545 !important; }
.dd-divider { height: 1px; background: var(--border); margin: 4px 6px; }

/* ======================== PROJECTS BAR ======================== */
.projects-bar {
  position: fixed;
  top: var(--top-h); left: 0; right: 0;
  height: var(--games-h);
  background: rgba(8, 8, 8, 0.8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  z-index: 90;
  display: flex; align-items: center;
}

.projects-bar-inner {
  display: flex; align-items: center; gap: 14px;
  padding: 0 24px;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
}

.projects-dropdown-wrap {
  position: relative;
  display: inline-flex;
}

.projects-trigger-btn {
  display: flex; align-items: center; gap: 9px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  color: var(--text-main);
  padding: 7px 18px;
  border-radius: var(--radius-pill);
  font-size: 13px; font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.25s ease;
}
.projects-trigger-btn:hover,
.projects-dropdown-wrap:hover .projects-trigger-btn,
.projects-dropdown-wrap.open .projects-trigger-btn {
  background: var(--bg-card);
  border-color: var(--gold);
  color: var(--gold-light);
  box-shadow: 0 0 16px rgba(212,175,55,0.18);
}
.projects-trigger-btn.has-filter {
  background: rgba(212, 175, 55, 0.12);
  border-color: var(--gold);
  color: var(--gold-light);
}

.projects-icon {
  color: var(--gold);
  flex-shrink: 0;
}
.projects-chevron {
  color: var(--text-muted);
  transition: transform 0.25s var(--ease);
  flex-shrink: 0;
}
.projects-dropdown-wrap:hover .projects-chevron,
.projects-dropdown-wrap.open .projects-chevron {
  transform: rotate(180deg);
  color: var(--gold-light);
}

/* Dropdown Menu - Opens on Hover & Click */
.projects-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 270px;
  background: #121217;
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.75), 0 0 25px rgba(212, 175, 55, 0.1);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  z-index: 150;
}
.projects-dropdown-wrap:hover .projects-dropdown-menu,
.projects-dropdown-wrap.open .projects-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.pdd-header {
  font-size: 10.5px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  padding: 6px 12px 8px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 4px;
}

.pdd-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  background: none;
  border: none;
  border-radius: 8px;
  color: var(--text-sec);
  font-size: 13.5px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  text-align: left;
  transition: all 0.15s ease;
}
.pdd-item:hover {
  background: var(--bg-hover);
  color: var(--text-main);
  transform: translateX(3px);
}
.pdd-item.active {
  background: rgba(212, 175, 55, 0.12);
  color: var(--gold-light);
  font-weight: 600;
}

.pdd-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  flex-shrink: 0;
}
.pdd-dot.all-dot {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  box-shadow: 0 0 6px rgba(212, 175, 55, 0.5);
}

.pdd-name {
  flex: 1;
}

.pdd-badge {
  font-size: 11px;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.05);
  padding: 2px 7px;
  border-radius: 10px;
}

/* Active Project Filter Pill */
.active-project-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: var(--radius-pill);
  font-size: 12.5px;
  color: var(--gold-light);
  animation: fadeIn 0.2s ease;
}
.pill-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}
.pill-label {
  font-weight: 600;
}
.pill-clear-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0 2px;
  font-size: 12px;
  line-height: 1;
  transition: color 0.15s ease;
}
.pill-clear-btn:hover {
  color: #ff5757;
}

/* ======================== MAIN CONTENT ======================== */
.main-content {
  position: relative;
  z-index: 10;
  display: flex; gap: 24px;
  max-width: 1360px;
  margin: 0 auto;
  padding: calc(var(--top-h) + var(--games-h) + 20px) 20px 100px;
}

/* Sidebar */
.sidebar {
  width: 240px;
  flex-shrink: 0;
  display: flex; flex-direction: column; gap: 16px;
  position: sticky;
  top: calc(var(--top-h) + var(--games-h) + 16px);
  align-self: flex-start;
  max-height: calc(100vh - var(--top-h) - var(--games-h) - 28px);
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 6px;
  padding-bottom: 20px;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.15) transparent;
}

.sidebar::-webkit-scrollbar {
  width: 5px;
}
.sidebar::-webkit-scrollbar-track {
  background: transparent;
}
.sidebar::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
}
.sidebar::-webkit-scrollbar-thumb:hover {
  background: var(--gold);
}
body[data-theme="amazing"] .sidebar {
  scrollbar-color: rgba(0, 0, 0, 0.15) transparent;
}
body[data-theme="amazing"] .sidebar::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.15);
}
body[data-theme="amazing"] .sidebar::-webkit-scrollbar-thumb:hover {
  background: var(--amazing-red);
}

.filter-section {
  flex-shrink: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px;
}
.filter-title {
  font-size: 13px; font-weight: 700;
  color: var(--text-sec);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

.filter-pills {
  display: flex; flex-wrap: wrap; gap: 6px;
}
.pill {
  padding: 6px 12px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  color: var(--text-muted);
  font-size: 12px; font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s ease;
}
.pill:hover { color: var(--text-main); border-color: rgba(255,255,255,0.12); }
.pill.active {
  background: var(--gold-dim);
  border-color: var(--gold);
  color: var(--gold-light);
  font-weight: 600;
}

/* Brand Filter Specific Styles */
.filter-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.filter-header-row .filter-title {
  margin-bottom: 0;
}
.filter-count-badge {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  padding: 2px 7px;
  border-radius: var(--radius-pill);
}
.model-search-wrap {
  position: relative;
  margin-bottom: 10px;
}
.model-search-icon {
  position: absolute;
  left: 9px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}
.model-search-input {
  width: 100%;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 6px 10px 6px 28px;
  color: var(--text-main);
  font-size: 12px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.model-search-input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 2px var(--gold-dim);
}
.model-pills-scroll {
  max-height: 200px;
  overflow-y: auto;
  padding-right: 4px;
}
.model-pills-scroll::-webkit-scrollbar {
  width: 4px;
}
.model-pills-scroll::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 4px;
}
body[data-theme="amazing"] .model-pills-scroll::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.15);
}


/* Price Range */
.price-range {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 10px;
}
.price-input-wrap {
  flex: 1;
  position: relative;
}
.price-input-wrap input {
  width: 100%;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 28px 8px 10px;
  color: var(--text-main);
  font-size: 13px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s ease;
  -moz-appearance: textfield;
}
.price-input-wrap input::-webkit-outer-spin-button,
.price-input-wrap input::-webkit-inner-spin-button { -webkit-appearance: none; }
.price-input-wrap input:focus { border-color: rgba(212,175,55,0.5); }
.price-input-wrap input::placeholder { color: var(--text-muted); }
.price-currency {
  position: absolute; right: 10px; top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted); font-size: 12px;
}
.price-dash { color: var(--text-muted); font-size: 14px; }

.btn-apply-price {
  width: 100%;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px;
  color: var(--text-sec);
  font-size: 12.5px; font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn-apply-price:hover { border-color: var(--gold); color: var(--gold-light); }

/* ======================== FEED ======================== */
.feed { flex: 1; min-width: 0; }

.feed-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 16px;
}
.feed-count {
  font-size: 14px; font-weight: 600;
  color: var(--text-sec);
}

/* Listings Grid */
.listings-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

/* ======================== LISTING CARD ======================== */
.listing-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px;
  display: flex; flex-direction: column;
  cursor: pointer;
  transition: transform 0.3s var(--ease), box-shadow 0.3s ease, border-color 0.3s ease;
  position: relative;
  /* Scroll animation */
  opacity: 0;
  transform: translateY(24px);
}
.listing-card.is-visible {
  opacity: 1;
  transform: translateY(0);
  transition: transform 0.5s var(--ease), opacity 0.5s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.listing-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-hover);
  box-shadow: 0 8px 32px rgba(212, 175, 55, 0.08), 0 2px 12px rgba(0,0,0,0.4);
}

.card-top {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  padding-right: 44px; /* Ensure badges never touch or overlap favorite heart button */
  flex-wrap: wrap;
}

.card-game-badge {
  padding: 3px 9px;
  border-radius: 6px;
  font-size: 11px; font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.card-category-tag {
  padding: 3px 8px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 10.5px; font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.card-title {
  font-size: 14.5px; font-weight: 700;
  color: var(--text-main);
  line-height: 1.35;
  margin-bottom: 6px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-desc {
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.45;
  margin-bottom: 14px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.card-divider {
  height: 1px;
  background: var(--border);
  margin-bottom: 12px;
}

.card-bottom {
  display: flex; align-items: center; justify-content: space-between;
}

.card-seller {
  display: flex; align-items: center; gap: 8px;
}
.seller-avatar {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--bg-hover);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 700;
  color: var(--text-muted);
}
.seller-info { display: flex; align-items: center; }
.seller-name { font-size: 12px; font-weight: 600; color: var(--text-sec); }

.card-price {
  font-size: 18px; font-weight: 800;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  white-space: nowrap;
}

/* No results */
.no-results {
  text-align: center; padding: 60px 20px;
  color: var(--text-muted);
}
.no-results svg { color: var(--text-muted); margin-bottom: 16px; }
.no-results p { font-size: 18px; font-weight: 700; color: var(--text-sec); margin-bottom: 6px; }
.no-results span { font-size: 13px; }

/* ======================== BOTTOM NAV (MOBILE) ======================== */
.bottom-nav {
  display: none;
  position: fixed; bottom: 0; left: 0; right: 0;
  height: 64px;
  background: rgba(8, 8, 8, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--border);
  align-items: center; justify-content: space-around;
  padding: 0 8px;
  z-index: 100;
}

.bnav-item {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  background: none; border: none;
  color: var(--text-muted);
  font-size: 10px; font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  position: relative;
  padding: 6px 10px;
  transition: color 0.2s ease;
}
.bnav-item.active { color: var(--gold-light); }

.bnav-create .bnav-plus {
  width: 44px; height: 44px;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #080808;
  margin-top: -18px;
  box-shadow: 0 4px 16px rgba(212,175,55,0.35);
  transition: transform 0.2s var(--ease), box-shadow 0.2s ease;
}
.bnav-create:hover .bnav-plus { transform: scale(1.08); box-shadow: 0 6px 20px rgba(212,175,55,0.5); }
.bnav-create span { margin-top: 2px; }

.bnav-badge {
  position: absolute; top: 0; right: 2px;
  background: linear-gradient(135deg, #e84040, #ff5757);
  color: #fff;
  font-size: 9px; font-weight: 700;
  min-width: 14px; height: 14px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 8px;
  padding: 0 3px;
}

/* ======================== RESPONSIVE ======================== */
@media (max-width: 1100px) {
  .listings-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 960px) {
  .top-bar-inner {
    display: flex;
    justify-content: space-between;
    gap: 12px;
  }
  .search-wrap {
    width: auto;
    flex: 1;
    max-width: 360px;
  }
}

@media (max-width: 768px) {
  .sidebar { display: none; }
  .btn-create span { display: none; }
  .btn-create { padding: 7px 10px; }
  .search-wrap { max-width: none; }
  .bottom-nav { display: flex; }
  .main-content { padding-bottom: 80px; }
  .listings-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .listing-card { padding: 12px; }
  .card-price { font-size: 15px; }
  .card-title { font-size: 13px; }
  .card-desc { font-size: 11.5px; }
}

@media (max-width: 480px) {
  .listings-grid { grid-template-columns: 1fr; }
  .top-bar-inner { gap: 10px; padding: 0 12px; }
  .games-scroll { padding: 0 12px; }
  .main-content { padding-left: 12px; padding-right: 12px; }
}

/* ==========================================================================
   AMAZING ONLINE LAUNCHER THEME (CLEAN WHITE & VIBRANT RED AESTHETIC)
   Activated dynamically when Amazing Online project is selected
   ========================================================================== */
body[data-theme="amazing"] {
  --bg-deep: #F7F8FC;
  --bg-card: #FFFFFF;
  --bg-surface: #F0F2F7;
  --bg-hover: #E7EAF3;
  --gold: #E52638;
  --gold-light: #FF334B;
  --gold-dim: rgba(229, 38, 56, 0.12);
  --text-main: #121217;
  --text-sec: #4E4E60;
  --text-muted: #7E7E94;
  --border: rgba(0, 0, 0, 0.08);
  --border-hover: rgba(229, 38, 56, 0.45);
  background: #F8F9FD;
  color: #121217;
}

/* Top Bar & Branding */
body[data-theme="amazing"] .top-bar {
  background: rgba(255, 255, 255, 0.90);
  border-bottom: 1px solid rgba(229, 38, 56, 0.16);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

body[data-theme="amazing"] .logo-crown {
  color: #E52638;
  filter: drop-shadow(0 2px 8px rgba(229, 38, 56, 0.4));
}

body[data-theme="amazing"] .logo-text {
  background: linear-gradient(135deg, #121217 25%, #E52638 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Search */
body[data-theme="amazing"] .search-input {
  background: #F0F2F7;
  border-color: rgba(0, 0, 0, 0.08);
  color: #121217;
}

body[data-theme="amazing"] .search-input::placeholder {
  color: #8E8EA2;
}

body[data-theme="amazing"] .search-input:focus {
  background: #FFFFFF;
  border-color: #E52638;
  box-shadow: 0 0 0 3px rgba(229, 38, 56, 0.15), 0 2px 12px rgba(229, 38, 56, 0.08);
}

body[data-theme="amazing"] .search-icon {
  color: #8E8EA2;
}

/* Create Button */
body[data-theme="amazing"] .btn-create {
  background: linear-gradient(135deg, #FF334B 0%, #D81B2D 100%);
  color: #FFFFFF;
  font-weight: 700;
  box-shadow: 0 4px 16px rgba(229, 38, 56, 0.35);
}

body[data-theme="amazing"] .btn-create:hover {
  box-shadow: 0 6px 24px rgba(229, 38, 56, 0.55);
  transform: translateY(-1px);
}

/* Top Icons & Badges */
body[data-theme="amazing"] .action-icon {
  background: #FFFFFF;
  border-color: rgba(0, 0, 0, 0.08);
  color: #4A4A5E;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

body[data-theme="amazing"] .action-icon:hover {
  border-color: #E52638;
  color: #E52638;
  background: #FFF4F5;
}

body[data-theme="amazing"] .action-icon .badge {
  background: linear-gradient(135deg, #FF334B, #D81B2D);
  color: #FFFFFF;
  box-shadow: 0 2px 6px rgba(229, 38, 56, 0.45);
}

body[data-theme="amazing"] .profile-trigger:hover {
  background: #F0F2F7;
}

body[data-theme="amazing"] .profile-avatar {
  background: linear-gradient(135deg, #FF334B, #D81B2D);
  color: #FFFFFF;
  box-shadow: 0 2px 10px rgba(229, 38, 56, 0.35);
}

body[data-theme="amazing"] .profile-dropdown {
  background: #FFFFFF;
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
}

body[data-theme="amazing"] .dd-item {
  color: #3C3C4E;
}

body[data-theme="amazing"] .dd-item:hover {
  background: #F5F6FA;
  color: #121217;
}

body[data-theme="amazing"] .dd-item:hover svg {
  color: #E52638;
}

body[data-theme="amazing"] .dd-divider {
  background: rgba(0, 0, 0, 0.06);
}

/* Projects Bar & Dropdown */
body[data-theme="amazing"] .projects-bar {
  border-bottom: 1px solid rgba(229, 38, 56, 0.14);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

body[data-theme="amazing"] .projects-icon {
  color: #E52638;
}

body[data-theme="amazing"] .projects-trigger-btn {
  background: #FFFFFF;
  border-color: rgba(0, 0, 0, 0.09);
  color: #222233;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

body[data-theme="amazing"] .projects-trigger-btn:hover,
body[data-theme="amazing"] .projects-dropdown-wrap:hover .projects-trigger-btn,
body[data-theme="amazing"] .projects-dropdown-wrap.open .projects-trigger-btn {
  border-color: #E52638;
  color: #E52638;
  background: #FFF4F5;
}

body[data-theme="amazing"] .projects-trigger-btn.has-filter {
  background: #FFF0F2;
  border-color: #E52638;
  color: #E52638;
  box-shadow: 0 2px 12px rgba(229, 38, 56, 0.15);
}

body[data-theme="amazing"] .projects-dropdown-wrap:hover .projects-chevron,
body[data-theme="amazing"] .projects-dropdown-wrap.open .projects-chevron {
  color: #E52638;
}

body[data-theme="amazing"] .projects-dropdown-menu {
  background: #FFFFFF;
  border: 1px solid rgba(229, 38, 56, 0.25);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12), 0 0 20px rgba(229, 38, 56, 0.06);
}

body[data-theme="amazing"] .pdd-header {
  color: #8C8C9E;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

body[data-theme="amazing"] .pdd-item {
  color: #444455;
}

body[data-theme="amazing"] .pdd-item:hover {
  background: #F5F6FA;
  color: #121217;
}

body[data-theme="amazing"] .pdd-item.active {
  background: #FFF0F2;
  color: #E52638;
  font-weight: 700;
}

body[data-theme="amazing"] .pdd-badge {
  background: rgba(0, 0, 0, 0.05);
  color: #7E7E94;
}

body[data-theme="amazing"] .active-project-pill {
  background: #FFF0F2;
  border-color: rgba(229, 38, 56, 0.35);
  color: #E52638;
  box-shadow: 0 2px 10px rgba(229, 38, 56, 0.12);
}

body[data-theme="amazing"] .active-project-pill .pill-dot {
  box-shadow: 0 0 8px #FF334B;
}

body[data-theme="amazing"] .pill-clear-btn {
  color: #E52638;
}

/* Sidebar Filters */
body[data-theme="amazing"] .filter-section {
  background: #FFFFFF;
  border: 1px solid rgba(0, 0, 0, 0.07);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
}

body[data-theme="amazing"] .filter-title {
  color: #121217;
}

body[data-theme="amazing"] .pill {
  background: #F0F2F7;
  border: 1px solid transparent;
  color: #525266;
}

body[data-theme="amazing"] .pill:hover {
  background: #E7EAF3;
  color: #121217;
}

body[data-theme="amazing"] .filter-pills .pill.active {
  background: linear-gradient(135deg, #FF334B, #D81B2D);
  border-color: #E52638;
  color: #FFFFFF;
  font-weight: 600;
  box-shadow: 0 3px 12px rgba(229, 38, 56, 0.35);
}

body[data-theme="amazing"] .price-input-wrap input {
  background: #F0F2F7;
  border: 1px solid rgba(0, 0, 0, 0.08);
  color: #121217;
}

body[data-theme="amazing"] .price-input-wrap input:focus {
  background: #FFFFFF;
  border-color: #E52638;
  box-shadow: 0 0 0 2px rgba(229, 38, 56, 0.15);
}

body[data-theme="amazing"] .btn-apply-price {
  background: #F0F2F7;
  border: 1px solid rgba(0, 0, 0, 0.08);
  color: #121217;
}

body[data-theme="amazing"] .btn-apply-price:hover {
  background: linear-gradient(135deg, #FF334B, #D81B2D);
  border-color: #E52638;
  color: #FFFFFF;
  box-shadow: 0 3px 14px rgba(229, 38, 56, 0.35);
}

/* Feed & Listings */
body[data-theme="amazing"] .feed-count {
  color: #222233;
}

body[data-theme="amazing"] .listing-card {
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: #FFFFFF;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.04);
}

body[data-theme="amazing"] .listing-card:hover {
  border-color: rgba(229, 38, 56, 0.5);
  box-shadow: 0 12px 36px rgba(229, 38, 56, 0.18), 0 4px 14px rgba(0, 0, 0, 0.06);
  transform: translateY(-4px);
}

body[data-theme="amazing"] .card-game-badge {
  box-shadow: 0 2px 8px rgba(229, 38, 56, 0.35);
}

body[data-theme="amazing"] .card-category-tag {
  background: #F0F2F7;
  border: 1px solid rgba(0, 0, 0, 0.06);
  color: #66667C;
}

body[data-theme="amazing"] .card-title {
  color: #121217;
}

body[data-theme="amazing"] .card-desc {
  color: #555568;
}

body[data-theme="amazing"] .card-divider {
  background: rgba(0, 0, 0, 0.06);
}

body[data-theme="amazing"] .seller-avatar {
  background: #F0F2F7;
  border: 1px solid rgba(0, 0, 0, 0.08);
  color: #121217;
}

body[data-theme="amazing"] .seller-name {
  color: #252535;
}

body[data-theme="amazing"] .card-price {
  background: linear-gradient(135deg, #D81B2D 0%, #FF334B 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Mobile Bottom Nav */
body[data-theme="amazing"] .bottom-nav {
  background: rgba(255, 255, 255, 0.92);
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.05);
}

body[data-theme="amazing"] .bnav-item {
  color: #7E7E94;
}

body[data-theme="amazing"] .bnav-item.active {
  color: #E52638;
}

body[data-theme="amazing"] .bnav-create .bnav-plus {
  background: linear-gradient(135deg, #FF334B, #D81B2D);
  color: #FFFFFF;
  box-shadow: 0 4px 18px rgba(229, 38, 56, 0.45);
}

/* Light scrollbar in Amazing theme */
body[data-theme="amazing"]::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.15);
}
body[data-theme="amazing"]::-webkit-scrollbar-thumb:hover {
  background: rgba(229, 38, 56, 0.4);
}

/* ======================== CARD ENHANCEMENTS (IMAGE & SERVER) ======================== */
.card-server-tag {
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.3px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.14);
}
.card-server-tag::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  background: currentColor;
}

.card-server-tag.server-fire { color: #FF6600; background: rgba(255, 102, 0, 0.12); border-color: rgba(255, 102, 0, 0.35); }
.card-server-tag.server-titan { color: #9D4EDD; background: rgba(157, 78, 221, 0.12); border-color: rgba(157, 78, 221, 0.35); }
.card-server-tag.server-red { color: #E52638; background: rgba(229, 38, 56, 0.12); border-color: rgba(229, 38, 56, 0.35); }
.card-server-tag.server-yellow { color: #F5A623; background: rgba(245, 166, 35, 0.12); border-color: rgba(245, 166, 35, 0.35); }
.card-server-tag.server-green { color: #2ECC71; background: rgba(46, 204, 113, 0.12); border-color: rgba(46, 204, 113, 0.35); }
.card-server-tag.server-azure { color: #2979FF; background: rgba(41, 121, 255, 0.12); border-color: rgba(41, 121, 255, 0.35); }
.card-server-tag.server-silver { color: #CBD5E1; background: rgba(203, 213, 225, 0.12); border-color: rgba(203, 213, 225, 0.35); }
.card-server-tag.server-rose { color: #FF4081; background: rgba(255, 64, 129, 0.12); border-color: rgba(255, 64, 129, 0.35); }
.card-server-tag.server-black { color: #A1A1AA; background: rgba(30, 30, 36, 0.8); border-color: rgba(255, 255, 255, 0.25); }
.card-server-tag.server-sky { color: #00D2FF; background: rgba(0, 210, 255, 0.12); border-color: rgba(0, 210, 255, 0.35); }
.card-server-tag.server-x { color: #EF4444; background: rgba(161, 19, 61, 0.15); border-color: rgba(239, 68, 68, 0.35); }
.card-server-tag.server-lime { color: #A3E635; background: rgba(180, 255, 0, 0.12); border-color: rgba(180, 255, 0, 0.35); }

/* Server Hexagon & Dropdown Elements */
.server-hex {
  width: 14px;
  height: 14px;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  flex-shrink: 0;
}
.server-hex-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  margin-right: 5px;
  vertical-align: middle;
}
.server-online-badge {
  font-size: 11px;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.05);
  padding: 2px 7px;
  border-radius: 10px;
  font-weight: 500;
}
.server-online-badge.full-badge {
  color: #ff5757;
  background: rgba(255, 87, 87, 0.12);
  font-weight: 600;
}
.server-online-badge.new-badge {
  color: #b4ff00;
  background: rgba(180, 255, 0, 0.12);
  font-weight: 600;
}

.servers-dropdown-menu {
  max-height: 380px;
  overflow-y: auto;
  min-width: 290px;
}
.servers-dropdown-menu::-webkit-scrollbar {
  width: 5px;
}
.servers-dropdown-menu::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
}
.server-pills-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  max-height: 220px;
  overflow-y: auto;
  padding-right: 2px;
}
.server-pills-wrap::-webkit-scrollbar {
  width: 4px;
}
.server-pills-wrap::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 4px;
}

.card-img-wrap {
  position: relative;
  width: 100%;
  height: 155px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: 12px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
}
.card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
  display: block;
}
.listing-card:hover .card-img {
  transform: scale(1.04);
}
.card-img-count {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(8, 8, 8, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* ======================== CREATE LISTING MODAL ======================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-wrap {
  width: 100%;
  max-width: 620px;
  max-height: 90vh;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6), 0 0 40px rgba(212, 175, 55, 0.08);
  display: flex;
  flex-direction: column;
  transform: translateY(20px) scale(0.96);
  transition: transform 0.25s var(--ease);
  overflow: hidden;
}
.modal-overlay.open .modal-wrap {
  transform: translateY(0) scale(1);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-surface);
}

.modal-title-group {
  display: flex;
  align-items: center;
  gap: 12px;
}
.modal-title-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--gold-dim);
  color: var(--gold);
  border: 1px solid rgba(212, 175, 55, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.modal-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.25;
}
.modal-subtitle {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}
.modal-close-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-hover);
  border: 1px solid var(--border);
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: all 0.2s ease;
}
.modal-close-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  transform: rotate(90deg);
}

.modal-form {
  padding: 24px;
  overflow-y: auto;
  max-height: calc(90vh - 140px);
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.modal-form::-webkit-scrollbar {
  width: 5px;
}
.modal-form::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.form-row {
  display: flex;
  gap: 14px;
}
.flex-1 { flex: 1; }
.flex-2 { flex: 2; }

.form-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.form-label {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-sec);
}
.required-star {
  color: #ff5757;
  font-weight: 700;
}
.photo-counter, .char-counter {
  font-size: 11.5px;
  color: var(--text-muted);
  font-weight: 500;
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  color: var(--text-main);
  font-size: 13.5px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-dim);
}
.form-select option {
  background: var(--bg-surface);
  color: var(--text-main);
}
.form-input:disabled, .form-select:disabled, .form-textarea:disabled {
  opacity: 0.85;
  cursor: not-allowed;
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.09);
  color: var(--text-main);
}
.project-locked-hint {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  font-weight: 500;
  color: var(--gold);
  margin-top: 5px;
}
.form-textarea {
  resize: vertical;
  min-height: 80px;
  line-height: 1.5;
}

/* Photo Upload Zone */
.photo-upload-zone {
  border: 2px dashed rgba(212, 175, 55, 0.35);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.02);
  padding: 24px 16px;
  text-align: center;
  cursor: pointer;
  transition: all 0.25s ease;
}
.photo-upload-zone:hover, .photo-upload-zone.dragover {
  border-color: var(--gold);
  background: var(--gold-dim);
  transform: scale(0.995);
}
.upload-zone-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.upload-icon-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--gold-dim);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
}
.upload-main-text {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-main);
}
.upload-link {
  color: var(--gold-light);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.upload-hints {
  font-size: 11.5px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: center;
}
.hint-dot {
  color: var(--text-muted);
  opacity: 0.6;
}

/* Uploaded Photos Grid */
.uploaded-photos-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin-top: 12px;
}
.uploaded-photo-item {
  position: relative;
  aspect-ratio: 1;
  border-radius: 10px;
  overflow: hidden;
  border: 1.5px solid var(--border);
  background: var(--bg-surface);
  animation: fadeIn 0.25s ease;
}
.uploaded-photo-item.is-cover::after {
  content: "Главное фото";
  position: absolute;
  top: 4px;
  left: 4px;
  background: rgba(0, 0, 0, 0.75);
  color: var(--gold-light);
  font-size: 9px;
  font-weight: 700;
  padding: 2px 5px;
  border-radius: 4px;
  pointer-events: none;
}
.uploaded-photo-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.uploaded-photo-remove {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(220, 38, 38, 0.9);
  color: #fff;
  border: none;
  font-size: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.9;
  transition: all 0.15s ease;
}
.uploaded-photo-remove:hover {
  opacity: 1;
  transform: scale(1.15);
}
.uploaded-photo-size {
  position: absolute;
  bottom: 3px;
  left: 3px;
  right: 3px;
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
  font-size: 8.5px;
  text-align: center;
  padding: 1px 3px;
  border-radius: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.photo-error-msg, .form-alert-error {
  padding: 10px 14px;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.35);
  border-radius: 8px;
  color: #ff6b6b;
  font-size: 12.5px;
  font-weight: 500;
  animation: fadeIn 0.2s ease;
}

/* Modal Footer */
.modal-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}
.btn-cancel {
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 9px 20px;
  color: var(--text-sec);
  font-size: 13.5px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn-cancel:hover {
  background: var(--bg-hover);
  color: var(--text-main);
}
.btn-submit {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: #0a0a0a;
  border: none;
  border-radius: var(--radius-pill);
  padding: 10px 24px;
  font-size: 13.5px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(212, 175, 55, 0.3);
  transition: all 0.2s ease;
}
.btn-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(212, 175, 55, 0.45);
}

/* Toast Notification */
.toast-notification {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 2000;
  display: flex;
  align-items: center;
  gap: 12px;
  background: #18181f;
  border: 1px solid rgba(212, 175, 55, 0.4);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.5);
  color: #fff;
  padding: 14px 22px;
  border-radius: 12px;
  font-size: 13.5px;
  font-weight: 600;
  animation: slideUp 0.3s ease;
}
.toast-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #10b981;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Amazing Theme Overrides for Modal */
body[data-theme="amazing"] .modal-wrap {
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.15), 0 0 40px rgba(229, 38, 56, 0.08);
}
body[data-theme="amazing"] .modal-title-icon {
  background: rgba(229, 38, 56, 0.1);
  color: #E52638;
  border-color: rgba(229, 38, 56, 0.25);
}
body[data-theme="amazing"] .photo-upload-zone {
  border-color: rgba(229, 38, 56, 0.35);
  background: rgba(229, 38, 56, 0.02);
}
body[data-theme="amazing"] .photo-upload-zone:hover,
body[data-theme="amazing"] .photo-upload-zone.dragover {
  border-color: #E52638;
  background: rgba(229, 38, 56, 0.06);
}
body[data-theme="amazing"] .upload-icon-circle {
  background: rgba(229, 38, 56, 0.1);
  color: #E52638;
}
body[data-theme="amazing"] .upload-link {
  color: #E52638;
}
body[data-theme="amazing"] .form-input:focus,
body[data-theme="amazing"] .form-select:focus,
body[data-theme="amazing"] .form-textarea:focus {
  border-color: #E52638;
  box-shadow: 0 0 0 3px rgba(229, 38, 56, 0.12);
}
body[data-theme="amazing"] .form-input:disabled,
body[data-theme="amazing"] .form-select:disabled,
body[data-theme="amazing"] .form-textarea:disabled {
  background: #F1F3F8;
  border-color: rgba(229, 38, 56, 0.22);
  color: #1A1A24;
}
body[data-theme="amazing"] .project-locked-hint {
  color: #E52638;
}
body[data-theme="amazing"] .uploaded-photo-item.is-cover::after {
  color: #FF334B;
}
body[data-theme="amazing"] .btn-submit {
  background: linear-gradient(135deg, #FF334B 0%, #D81B2D 100%);
  color: #ffffff;
  box-shadow: 0 4px 18px rgba(229, 38, 56, 0.35);
}
body[data-theme="amazing"] .btn-submit:hover {
  box-shadow: 0 6px 24px rgba(229, 38, 56, 0.5);
}
body[data-theme="amazing"] .toast-notification {
  background: #ffffff;
  color: #121217;
  border-color: rgba(229, 38, 56, 0.3);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.12);
}

@media (max-width: 640px) {
  .modal-wrap { max-height: 94vh; }
  .modal-form { padding: 16px; gap: 14px; }
  .form-row { flex-direction: column; gap: 14px; }
  .uploaded-photos-grid { grid-template-columns: repeat(3, 1fr); }
  .toast-notification { left: 16px; right: 16px; bottom: 85px; justify-content: center; }
}

/* ========================================================
   LOT DETAIL & SELLER CHAT MODAL
   ======================================================== */
.lot-modal-wrap {
  max-width: 1080px;
  width: 100%;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
}

.lot-header-badges {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}

.lot-header-title {
  font-size: 19px;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.25;
}

.lot-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.lot-action-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--bg-hover);
  border: 1px solid var(--border);
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.lot-action-btn:hover {
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-1px);
}

.lot-action-btn.active {
  color: #FF334B;
  border-color: rgba(255, 51, 75, 0.4);
  background: rgba(255, 51, 75, 0.12);
}

.lot-modal-body {
  display: grid;
  grid-template-columns: 1fr 390px;
  gap: 24px;
  padding: 24px;
  overflow-y: auto;
  max-height: calc(92vh - 78px);
}

.lot-main-col {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
}

.lot-side-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

/* Gallery & Media */
.lot-gallery-container {
  border-radius: 14px;
  overflow: hidden;
  background: var(--bg-surface);
  border: 1px solid var(--border);
}

.lot-gallery-main {
  width: 100%;
  min-height: 280px;
  max-height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #09090D;
  position: relative;
  overflow: hidden;
}

.lot-gallery-main-img {
  max-width: 100%;
  max-height: 380px;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.lot-gallery-thumbs {
  display: flex;
  gap: 8px;
  padding: 10px;
  overflow-x: auto;
  background: rgba(0, 0, 0, 0.25);
  border-top: 1px solid var(--border);
}

.lot-thumb {
  width: 62px;
  height: 48px;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  opacity: 0.65;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.lot-thumb.active, .lot-thumb:hover {
  opacity: 1;
  border-color: var(--gold);
}

.lot-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Atmospheric Banner when lot has no custom photos */
.lot-banner-placeholder {
  padding: 40px 24px;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.08), rgba(15, 15, 20, 0.8));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-align: center;
}

.lot-banner-icon {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  background: var(--gold-dim);
  border: 1px solid rgba(212, 175, 55, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
}

.lot-banner-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-main);
}

.lot-banner-hint {
  font-size: 12px;
  color: var(--text-muted);
}

/* Price & Meta */
.lot-heading-block {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.lot-price {
  font-size: 30px;
  font-weight: 800;
  color: var(--gold);
  letter-spacing: -0.5px;
}

.lot-meta-row {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 12px;
  color: var(--text-muted);
  flex-wrap: wrap;
}

.lot-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.lot-secure-badge {
  color: #00E676;
  font-weight: 600;
}

/* Specs Grid */
.lot-specs-card, .lot-desc-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px 20px;
}

.lot-specs-title, .lot-desc-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.lot-specs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.lot-spec-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: var(--bg-hover);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 12px;
}

.lot-spec-label {
  font-size: 11px;
  color: var(--text-muted);
}

.lot-spec-val {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 6px;
}

.lot-desc-text {
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-main);
  white-space: pre-wrap;
  word-break: break-word;
}

/* Guarantee Banner */
.lot-guarantee-banner {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px;
  border-radius: 12px;
  background: rgba(0, 230, 118, 0.06);
  border: 1px solid rgba(0, 230, 118, 0.2);
}

.guarantee-icon {
  color: #00E676;
  flex-shrink: 0;
  margin-top: 2px;
}

.guarantee-text strong {
  display: block;
  font-size: 13px;
  color: var(--text-main);
  margin-bottom: 3px;
}

.guarantee-text p {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.45;
  margin: 0;
}

/* Seller Profile Card */
.seller-card-box {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.seller-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.seller-card-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, #D4AF37, #996515);
  color: #0E0E12;
  font-weight: 800;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.seller-card-name-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.seller-card-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-main);
}

.seller-verified-badge {
  color: #00D2FF;
  display: inline-flex;
}

.seller-card-status {
  font-size: 11.5px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 3px;
}

.status-online-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #00E676;
  box-shadow: 0 0 6px #00E676;
  display: inline-block;
}

/* Realistic Seller Last Seen Card */
.seller-lastseen-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-hover);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 11px 14px;
}

.lastseen-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--gold-dim);
  border: 1px solid rgba(212, 175, 55, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  flex-shrink: 0;
}

.lastseen-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.lastseen-label {
  font-size: 11px;
  color: var(--text-muted);
}

.lastseen-time {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main);
}

.chat-open-messenger-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--gold);
  background: var(--gold-dim);
  border: 1px solid rgba(212, 175, 55, 0.3);
  padding: 5px 10px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.chat-open-messenger-link:hover {
  background: var(--gold);
  color: #0E0E12;
  border-color: var(--gold);
}

/* Realtime Interactive Chat Box */
.lot-chat-box {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  height: 440px;
  overflow: hidden;
}

.chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-surface);
}

.chat-header-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-main);
}

.chat-online-pill {
  font-size: 10.5px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 20px;
  background: rgba(0, 230, 118, 0.12);
  color: #00E676;
  border: 1px solid rgba(0, 230, 118, 0.3);
}

.chat-messages {
  flex: 1;
  padding: 14px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.chat-bubble {
  max-width: 84%;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 13px;
  line-height: 1.45;
  word-break: break-word;
  animation: fadeInUp 0.2s ease;
}

.chat-bubble.seller {
  align-self: flex-start;
  background: var(--bg-hover);
  color: var(--text-main);
  border: 1px solid var(--border);
  border-bottom-left-radius: 4px;
}

.chat-bubble.user {
  align-self: flex-end;
  background: linear-gradient(135deg, #D4AF37, #E5C158);
  color: #0E0E12;
  font-weight: 500;
  border-bottom-right-radius: 4px;
  box-shadow: 0 2px 10px rgba(212, 175, 55, 0.25);
}

.chat-bubble.system {
  align-self: center;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-muted);
  font-size: 11px;
  text-align: center;
  border-radius: 8px;
  padding: 6px 12px;
  border: 1px dashed var(--border);
  max-width: 90%;
}

.chat-msg-time {
  font-size: 10px;
  opacity: 0.7;
  margin-top: 4px;
  text-align: right;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 3px;
}

.chat-typing-indicator {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  font-size: 11.5px;
  color: var(--text-muted);
  background: var(--bg-hover);
  border-top: 1px solid var(--border);
}

.typing-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold);
  animation: typingBlink 1.2s infinite;
}

.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingBlink {
  0%, 100% { opacity: 0.3; transform: translateY(0); }
  50% { opacity: 1; transform: translateY(-3px); }
}

.chat-quick-chips {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 8px 12px;
  border-top: 1px solid var(--border);
  background: var(--bg-surface);
  scrollbar-width: none;
}
.chat-quick-chips::-webkit-scrollbar { display: none; }

.quick-chip {
  white-space: nowrap;
  padding: 5px 11px;
  border-radius: 20px;
  font-size: 11px;
  background: var(--bg-hover);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.quick-chip:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: var(--gold-dim);
}

.chat-input-bar {
  display: flex;
  gap: 8px;
  padding: 10px 12px;
  border-top: 1px solid var(--border);
  background: var(--bg-surface);
}

.chat-input {
  flex: 1;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 9px 12px;
  color: var(--text-main);
  font-size: 13px;
  outline: none;
  transition: border-color 0.2s ease;
}

.chat-input:focus {
  border-color: var(--gold);
}

.chat-send-btn {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, #D4AF37, #FFE178);
  border: none;
  color: #0E0E12;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.chat-send-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 14px rgba(212, 175, 55, 0.4);
}

/* ========================================================
   AMAZING ONLINE THEME OVERRIDES FOR LOT MODAL & CHAT
   ======================================================== */
body[data-theme="amazing"] .lot-modal-wrap {
  background: #FFFFFF;
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.16);
}

body[data-theme="amazing"] .lot-modal-body {
  background: #F7F8FA;
}

body[data-theme="amazing"] .lot-price {
  color: #E52638;
}

body[data-theme="amazing"] .lot-gallery-container,
body[data-theme="amazing"] .lot-specs-card,
body[data-theme="amazing"] .lot-desc-card,
body[data-theme="amazing"] .seller-card-box,
body[data-theme="amazing"] .lot-chat-box {
  background: #FFFFFF;
  border-color: rgba(0, 0, 0, 0.07);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

body[data-theme="amazing"] .lot-spec-item {
  background: #F8F9FC;
  border-color: rgba(0, 0, 0, 0.05);
}

body[data-theme="amazing"] .lot-banner-placeholder {
  background: linear-gradient(135deg, rgba(229, 38, 56, 0.08), rgba(255, 255, 255, 0.95));
}

body[data-theme="amazing"] .lot-banner-icon {
  background: rgba(229, 38, 56, 0.1);
  border-color: rgba(229, 38, 56, 0.25);
  color: #E52638;
}

body[data-theme="amazing"] .seller-card-avatar {
  background: linear-gradient(135deg, #FF334B, #D81B2D);
  color: #FFFFFF;
}

body[data-theme="amazing"] .seller-lastseen-card {
  background: #F8F9FC;
  border-color: rgba(0, 0, 0, 0.06);
}

body[data-theme="amazing"] .lastseen-icon {
  background: rgba(229, 38, 56, 0.1);
  border-color: rgba(229, 38, 56, 0.25);
  color: #E52638;
}

body[data-theme="amazing"] .chat-open-messenger-link {
  color: #E52638;
  background: #FFF0F2;
  border-color: rgba(229, 38, 56, 0.3);
}

body[data-theme="amazing"] .chat-open-messenger-link:hover {
  background: #E52638;
  color: #FFFFFF;
}

body[data-theme="amazing"] .chat-bubble.seller {
  background: #F1F3F8;
  color: #1A1A24;
  border-color: rgba(0, 0, 0, 0.06);
}

body[data-theme="amazing"] .chat-bubble.user {
  background: linear-gradient(135deg, #FF334B, #D81B2D);
  color: #FFFFFF;
  box-shadow: 0 2px 12px rgba(229, 38, 56, 0.25);
}

body[data-theme="amazing"] .chat-bubble.system {
  background: #F4F5F8;
  color: #6C7280;
  border-color: rgba(0, 0, 0, 0.08);
}

body[data-theme="amazing"] .chat-input:focus {
  border-color: #E52638;
}

body[data-theme="amazing"] .chat-send-btn {
  background: linear-gradient(135deg, #FF334B, #D81B2D);
  color: #FFFFFF;
  box-shadow: 0 2px 10px rgba(229, 38, 56, 0.3);
}

body[data-theme="amazing"] .lot-action-btn:hover {
  border-color: #E52638;
  color: #E52638;
}

/* ========================================================
   MESSENGER MODAL (MY CHATS)
   ======================================================== */
.messenger-modal-wrap {
  max-width: 980px;
  width: 100%;
  height: 84vh;
  max-height: 740px;
  display: flex;
  flex-direction: column;
}

.messenger-header {
  border-bottom: 1px solid var(--border);
}

.messenger-title-icon {
  background: var(--gold-dim);
  color: var(--gold);
}

.messenger-body {
  display: grid;
  grid-template-columns: 320px 1fr;
  height: calc(100% - 78px);
  overflow: hidden;
}

/* Dialogs Sidebar */
.messenger-dialogs-sidebar {
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  background: var(--bg-surface);
  overflow: hidden;
}

.dialogs-search-box {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  position: relative;
  display: flex;
  align-items: center;
}

.dialogs-search-box svg {
  position: absolute;
  left: 26px;
  color: var(--text-muted);
}

.dialogs-search-input {
  width: 100%;
  background: var(--bg-hover);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px 12px 8px 34px;
  color: var(--text-main);
  font-size: 13px;
  outline: none;
  font-family: inherit;
  transition: border-color 0.2s;
}

.dialogs-search-input:focus {
  border-color: var(--gold);
}

.dialogs-list {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.dialog-item {
  display: flex;
  gap: 12px;
  padding: 13px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  cursor: pointer;
  transition: all 0.15s ease;
  position: relative;
}

.dialog-item:hover {
  background: var(--bg-hover);
}

.dialog-item.active {
  background: var(--gold-dim);
  border-left: 3px solid var(--gold);
}

.dialog-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #D4AF37, #996515);
  color: #0E0E12;
  font-weight: 700;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  flex-shrink: 0;
}

.dialog-avatar-dot {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  border: 2px solid var(--bg-surface);
}

.dialog-avatar-dot.online {
  background: #00E676;
  box-shadow: 0 0 6px #00E676;
}

.dialog-avatar-dot.offline {
  background: #8E8E93;
}

.dialog-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.dialog-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.dialog-name {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dialog-time {
  font-size: 11px;
  color: var(--text-muted);
}

.dialog-lot-badge {
  font-size: 11.5px;
  color: var(--gold);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 500;
}

.dialog-bottom-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.dialog-last-msg {
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
}

.dialog-unread-badge {
  background: var(--gold);
  color: #0E0E12;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 10px;
  flex-shrink: 0;
}

/* Active Chat Pane */
.messenger-chat-pane {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  min-width: 0;
}

.active-chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-surface);
}

.active-chat-user {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-back-dialogs {
  display: none;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--bg-hover);
  border: 1px solid var(--border);
  color: var(--text-main);
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.2s;
}

.btn-back-dialogs:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.active-chat-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #D4AF37, #996515);
  color: #0E0E12;
  font-weight: 700;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.active-chat-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.active-chat-name {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--text-main);
}

.active-chat-presence {
  font-size: 11.5px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.active-chat-lot-pill {
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  background: var(--gold-dim);
  border: 1px solid rgba(212, 175, 55, 0.3);
  color: var(--gold);
  max-width: 280px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.active-chat-stream {
  flex: 1;
  padding: 18px 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.active-chat-input-bar {
  display: flex;
  gap: 10px;
  padding: 14px 18px;
  border-top: 1px solid var(--border);
  background: var(--bg-surface);
}

.active-chat-input {
  flex: 1;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 14px;
  color: var(--text-main);
  font-size: 13.5px;
  outline: none;
  font-family: inherit;
  transition: border-color 0.2s;
}

.active-chat-input:focus {
  border-color: var(--gold);
}

.active-chat-send-btn {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, #D4AF37, #FFE178);
  border: none;
  color: #0E0E12;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  flex-shrink: 0;
}

.active-chat-send-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 14px rgba(212, 175, 55, 0.4);
}

/* ========================================================
   AMAZING THEME OVERRIDES FOR MESSENGER
   ======================================================== */
body[data-theme="amazing"] .messenger-modal-wrap {
  background: #FFFFFF;
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.16);
}

body[data-theme="amazing"] .messenger-title-icon {
  background: rgba(229, 38, 56, 0.1);
  color: #E52638;
}

body[data-theme="amazing"] .messenger-dialogs-sidebar {
  background: #FAFAFC;
  border-color: rgba(0, 0, 0, 0.08);
}

body[data-theme="amazing"] .dialogs-search-input {
  background: #FFFFFF;
  border-color: rgba(0, 0, 0, 0.08);
}

body[data-theme="amazing"] .dialogs-search-input:focus {
  border-color: #E52638;
}

body[data-theme="amazing"] .dialog-item {
  border-bottom-color: rgba(0, 0, 0, 0.05);
}

body[data-theme="amazing"] .dialog-item:hover {
  background: #F1F3F8;
}

body[data-theme="amazing"] .dialog-item.active {
  background: #FFF4F5;
  border-left-color: #E52638;
}

body[data-theme="amazing"] .dialog-avatar,
body[data-theme="amazing"] .active-chat-avatar {
  background: linear-gradient(135deg, #FF334B, #D81B2D);
  color: #FFFFFF;
}

body[data-theme="amazing"] .dialog-lot-badge {
  color: #E52638;
}

body[data-theme="amazing"] .dialog-unread-badge {
  background: #E52638;
  color: #FFFFFF;
}

body[data-theme="amazing"] .messenger-chat-pane {
  background: #FFFFFF;
}

body[data-theme="amazing"] .active-chat-lot-pill {
  background: #FFF0F2;
  border-color: rgba(229, 38, 56, 0.25);
  color: #E52638;
}

body[data-theme="amazing"] .active-chat-input {
  background: #F8F9FC;
  border-color: rgba(0, 0, 0, 0.08);
}

body[data-theme="amazing"] .active-chat-input:focus {
  border-color: #E52638;
}

body[data-theme="amazing"] .active-chat-send-btn {
  background: linear-gradient(135deg, #FF334B, #D81B2D);
  color: #FFFFFF;
  box-shadow: 0 2px 10px rgba(229, 38, 56, 0.3);
}

body[data-theme="amazing"] .btn-back-dialogs {
  background: #F1F3F8;
  border-color: rgba(0, 0, 0, 0.08);
  color: #1A1A1A;
}

body[data-theme="amazing"] .btn-back-dialogs:hover {
  background: #E5E7EB;
}

/* Responsive Modal Layout */
@media (max-width: 900px) {
  .lot-modal-body {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 16px;
  }
  .lot-chat-box {
    height: 380px;
  }
  .messenger-body {
    grid-template-columns: 1fr;
  }
  .messenger-dialogs-sidebar {
    display: flex;
  }
  .messenger-body.viewing-chat .messenger-dialogs-sidebar {
    display: none;
  }
  .messenger-body.viewing-chat .btn-back-dialogs {
    display: inline-flex;
  }
  .messenger-body.viewing-dialogs .messenger-chat-pane {
    display: none;
  }
}

/* ========================================================
   CARD FAVORITE BUTTON & ACTIVE LOT FAV
   ======================================================== */
.card-fav-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 10;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(18, 18, 24, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.25, 0.8, 0.25, 1);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
  padding: 0;
  margin: 0;
  outline: none;
}

.card-fav-btn:hover {
  transform: scale(1.12);
  color: #FF4757;
  border-color: rgba(255, 71, 87, 0.4);
  background: rgba(18, 18, 24, 0.9);
}

.card-fav-btn.active {
  color: #FF4757;
  border-color: rgba(255, 71, 87, 0.5);
  background: rgba(255, 71, 87, 0.15);
}

.card-fav-btn.active svg {
  fill: #FF4757;
}

.lot-action-btn.active {
  color: #FF4757 !important;
  border-color: rgba(255, 71, 87, 0.45) !important;
  background: rgba(255, 71, 87, 0.12) !important;
}

.lot-action-btn.active svg {
  fill: #FF4757 !important;
}

/* ========================================================
   PANEL MODAL (MY LISTINGS & FAVORITES)
   ======================================================== */
.panel-modal-wrap {
  max-width: 820px;
  width: 100%;
  max-height: 86vh;
  display: flex;
  flex-direction: column;
}

.fav-title-icon {
  background: rgba(255, 71, 87, 0.12) !important;
  color: #FF4757 !important;
  border-color: rgba(255, 71, 87, 0.3) !important;
}

.panel-modal-body {
  padding: 20px 24px;
  overflow-y: auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.panel-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
  gap: 12px;
  flex-wrap: wrap;
}

.panel-stats-count {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-sec);
}

.panel-btn-action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 10px;
  background: linear-gradient(135deg, #D4AF37, #FFE178);
  border: none;
  font-size: 13px;
  font-weight: 700;
  color: #0E0E12;
  cursor: pointer;
  transition: all 0.2s;
}

.panel-btn-action:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(212, 175, 55, 0.35);
}

.panel-btn-clear {
  background: none;
  border: 1px solid var(--border);
  color: var(--text-muted);
  border-radius: 8px;
  padding: 7px 14px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.panel-btn-clear:hover {
  border-color: #FF4757;
  color: #FF4757;
  background: rgba(255, 71, 87, 0.08);
}

.panel-items-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.panel-item-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  border-radius: 14px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  transition: all 0.2s;
}

.panel-item-card:hover {
  border-color: var(--border-hover);
  background: var(--bg-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.panel-item-thumb {
  width: 76px;
  height: 76px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
}

.panel-item-placeholder {
  width: 76px;
  height: 76px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--gold);
  flex-shrink: 0;
}

.panel-item-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.panel-item-badges {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.panel-item-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.panel-item-meta {
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

.panel-item-price-wrap {
  text-align: right;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.panel-item-price {
  font-size: 17px;
  font-weight: 800;
  color: var(--gold);
  white-space: nowrap;
}

.panel-item-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.panel-btn-open {
  padding: 6px 14px;
  border-radius: 8px;
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid rgba(212, 175, 55, 0.35);
  color: var(--gold-light);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.panel-btn-open:hover {
  background: linear-gradient(135deg, #D4AF37, #FFE178);
  color: #0E0E12;
  border-color: transparent;
}

.panel-btn-delete {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: none;
  border: 1px solid var(--border);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}

.panel-btn-delete:hover {
  border-color: #FF4757;
  color: #FF4757;
  background: rgba(255, 71, 87, 0.12);
}

.panel-empty-state {
  text-align: center;
  padding: 50px 20px;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.panel-empty-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.panel-empty-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-sec);
}

.panel-empty-subtitle {
  font-size: 13.5px;
  color: var(--text-muted);
  max-width: 380px;
  line-height: 1.5;
}

/* ========================================================
   SETTINGS MODAL
   ======================================================== */
.settings-modal-wrap {
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
}

.settings-modal-form {
  padding: 20px 24px;
  overflow-y: auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.settings-group-box {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.settings-group-header {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 2px;
}

.settings-group-tag {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--gold);
}

.settings-group-tag.danger {
  color: #FF4757;
}

.settings-group-title {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--text-main);
  margin: 0;
}

/* Custom Toggle Switch */
.settings-toggle-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.toggle-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.toggle-title {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-main);
}

.toggle-desc {
  font-size: 12px;
  color: var(--text-muted);
}

.custom-toggle {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}

.custom-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  transition: 0.3s;
  border-radius: 24px;
}

.toggle-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 2px;
  bottom: 2px;
  background-color: var(--text-muted);
  transition: 0.3s;
  border-radius: 50%;
}

.custom-toggle input:checked + .toggle-slider {
  background: rgba(212, 175, 55, 0.25);
  border-color: var(--gold);
}

.custom-toggle input:checked + .toggle-slider:before {
  transform: translateX(20px);
  background-color: var(--gold);
  box-shadow: 0 0 8px rgba(212, 175, 55, 0.5);
}

.settings-danger-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.btn-setting-danger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 10px;
  background: rgba(255, 71, 87, 0.08);
  border: 1px solid rgba(255, 71, 87, 0.3);
  color: #FF4757;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  width: 100%;
  justify-content: center;
}

.btn-setting-danger:hover {
  background: rgba(255, 71, 87, 0.16);
  border-color: #FF4757;
}

.settings-modal-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  padding: 16px 24px;
  border-top: 1px solid var(--border);
  background: var(--bg-surface);
}

/* ========================================================
   AMAZING THEME OVERRIDES FOR NEW MODALS
   ======================================================== */
body[data-theme="amazing"] .panel-modal-wrap,
body[data-theme="amazing"] .settings-modal-wrap {
  background: #FFFFFF;
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.16);
}

body[data-theme="amazing"] .panel-item-card,
body[data-theme="amazing"] .settings-group-box,
body[data-theme="amazing"] .settings-modal-footer {
  background: #FAFAFC;
  border-color: rgba(0, 0, 0, 0.06);
}

body[data-theme="amazing"] .panel-item-card:hover {
  background: #F4F5F9;
  border-color: rgba(229, 38, 56, 0.25);
}

body[data-theme="amazing"] .panel-btn-action {
  background: linear-gradient(135deg, #FF334B 0%, #D81B2D 100%);
  color: #FFFFFF;
  box-shadow: 0 4px 14px rgba(229, 38, 56, 0.35);
}

body[data-theme="amazing"] .panel-btn-open {
  background: rgba(229, 38, 56, 0.08);
  border-color: rgba(229, 38, 56, 0.3);
  color: #E52638;
}

body[data-theme="amazing"] .panel-btn-open:hover {
  background: linear-gradient(135deg, #FF334B 0%, #D81B2D 100%);
  color: #FFFFFF;
  border-color: transparent;
}

body[data-theme="amazing"] .panel-item-price {
  color: #E52638;
}

body[data-theme="amazing"] .settings-group-tag {
  color: #E52638;
}

body[data-theme="amazing"] .custom-toggle input:checked + .toggle-slider {
  background: rgba(229, 38, 56, 0.25);
  border-color: #E52638;
}

body[data-theme="amazing"] .custom-toggle input:checked + .toggle-slider:before {
  background-color: #E52638;
  box-shadow: 0 0 8px rgba(229, 38, 56, 0.5);
}




/* ===== TELEGRAM & MODERATION ADDITIONS ===== */

/* Telegram Top Action Button */
.btn-tg-action {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(14, 14, 18, 0.85);
  border: 1.5px solid rgba(41, 182, 246, 0.4);
  color: #29b6f6;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  padding: 7px 16px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.25s ease;
  white-space: nowrap;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.btn-tg-action:hover {
  background: rgba(41, 182, 246, 0.15);
  border-color: #29b6f6;
  box-shadow: 0 0 14px rgba(41, 182, 246, 0.35);
  transform: translateY(-1px);
}

.btn-tg-action.connected {
  border-color: rgba(46, 213, 115, 0.45);
  color: #2ed573;
}

.btn-tg-action.connected:hover {
  background: rgba(46, 213, 115, 0.15);
  box-shadow: 0 0 14px rgba(46, 213, 115, 0.35);
}

/* Moderation Top Action Button */
.btn-mod-action {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(14, 14, 18, 0.85);
  border: 1.5px solid rgba(212, 175, 55, 0.4);
  color: var(--gold-light, #FFE178);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  padding: 7px 16px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.25s ease;
  white-space: nowrap;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.btn-mod-action:hover {
  background: var(--gold-dim, rgba(212, 175, 55, 0.15));
  border-color: var(--gold, #D4AF37);
  box-shadow: 0 0 14px var(--gold-glow, rgba(212, 175, 55, 0.3));
  transform: translateY(-1px);
}

.mod-badge-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 10px;
  background: #ff4757;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
}

/* Notice in Create Modal */
.create-mod-notice {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  background: rgba(212, 175, 55, 0.08);
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: 10px;
  margin-bottom: 18px;
}

.mod-notice-icon {
  font-size: 18px;
  flex-shrink: 0;
  line-height: 1.2;
}

.mod-notice-text {
  font-size: 12.5px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.85);
}

.mod-notice-text strong {
  color: var(--gold-light);
}

/* Telegram Input Wrapper */
.tg-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.tg-input-at {
  position: absolute;
  left: 14px;
  color: var(--gold);
  font-weight: 600;
  font-size: 15px;
  pointer-events: none;
}

.tg-form-input {
  padding-left: 32px !important;
}

/* Telegram Modal Content */
.tg-status-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  background: #141416;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  margin-bottom: 16px;
}

.tg-status-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(36, 161, 222, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.tg-status-info {
  flex: 1;
}

.tg-status-label {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 3px;
}

.tg-status-value {
  font-size: 15px;
  font-weight: 600;
  color: #fff;
}

.tg-status-pill {
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.7);
}

.tg-status-pill.online {
  background: rgba(46, 213, 115, 0.15);
  color: #2ed573;
  border: 1px solid rgba(46, 213, 115, 0.3);
}

.tg-info-box {
  padding: 16px;
  background: rgba(212, 175, 55, 0.05);
  border: 1px solid rgba(212, 175, 55, 0.15);
  border-radius: 12px;
  margin-bottom: 20px;
}

.tg-info-title {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--gold-light);
  margin-bottom: 8px;
}

.tg-bot-link-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #0d0d0f;
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  margin-bottom: 10px;
}

.tg-bot-username {
  font-family: monospace;
  font-size: 14px;
  color: #29b6f6;
  font-weight: 600;
}

.btn-open-bot {
  background: #24a1de;
  color: #fff;
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  transition: all 0.2s;
}

.btn-open-bot:hover {
  background: #208fcf;
  box-shadow: 0 0 10px rgba(36, 161, 222, 0.4);
}

.tg-info-desc {
  font-size: 12px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.6);
  margin: 0;
}

.btn-tg-save {
  width: 100%;
  margin-top: 12px;
  padding: 12px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--gold), #b38f28);
  border: none;
  color: #000;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-tg-save:hover {
  filter: brightness(1.1);
  box-shadow: 0 0 16px var(--gold-glow);
}

/* Moderation Modal Styles */
.moderation-modal-wrap {
  max-width: 740px !important;
  width: 95%;
}

.mod-stats-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.mod-stat-item {
  background: #141416;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 12px 14px;
  text-align: center;
}

.mod-stat-val {
  display: block;
  font-size: 20px;
  font-weight: 700;
  color: var(--gold-light);
  margin-bottom: 2px;
}

.mod-stat-lbl {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.mod-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-height: 520px;
  overflow-y: auto;
  padding-right: 4px;
}

.mod-card {
  background: #121214;
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: all 0.2s;
}

.mod-card:hover {
  border-color: var(--gold);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.mod-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.mod-card-title-group {
  flex: 1;
}

.mod-card-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
}

.mod-tag-game {
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  background: #E52638;
}

.mod-tag-server {
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
}

.mod-tag-cat {
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 11px;
  color: var(--gold-light);
  background: var(--gold-dim);
}

.mod-card-title {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}

.mod-card-seller {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.55);
}

.mod-card-seller strong {
  color: rgba(255, 255, 255, 0.9);
}

.mod-card-price {
  font-size: 18px;
  font-weight: 800;
  color: var(--gold);
  white-space: nowrap;
}

.mod-card-desc {
  font-size: 13px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.75);
  background: #0a0a0c;
  padding: 10px 12px;
  border-radius: 8px;
  border-left: 3px solid var(--gold);
  margin: 0;
}

.mod-card-photos {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.mod-thumb {
  width: 64px;
  height: 64px;
  border-radius: 6px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.1);
  cursor: pointer;
}

.mod-card-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.btn-mod-approve {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border-radius: 8px;
  background: linear-gradient(135deg, #2ed573, #1e90ff);
  border: none;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-mod-approve:hover {
  filter: brightness(1.15);
  box-shadow: 0 0 14px rgba(46, 213, 115, 0.4);
  transform: translateY(-1px);
}

.btn-mod-reject {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 8px;
  background: rgba(255, 71, 87, 0.1);
  border: 1px solid rgba(255, 71, 87, 0.35);
  color: #ff4757;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-mod-reject:hover {
  background: rgba(255, 71, 87, 0.2);
  border-color: #ff4757;
}

/* Status Badges for Listings */
.lot-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.lot-status-pending {
  background: rgba(255, 165, 2, 0.15);
  border: 1px solid rgba(255, 165, 2, 0.35);
  color: #ffa502;
}

.lot-status-approved {
  background: rgba(46, 213, 115, 0.15);
  border: 1px solid rgba(46, 213, 115, 0.35);
  color: #2ed573;
}

.lot-status-rejected {
  background: rgba(255, 71, 87, 0.15);
  border: 1px solid rgba(255, 71, 87, 0.35);
  color: #ff4757;
}
