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

:root {
  --bg: #05050d;
  --glass: rgba(255,255,255,0.03);
  --glass-border: rgba(255,255,255,0.07);
  --glass-hover: rgba(255,255,255,0.05);
  --card: rgba(255,255,255,0.04);
  --card-hover: rgba(255,255,255,0.07);
  --border: rgba(255,255,255,0.06);
  --border-hover: rgba(99,102,241,0.45);
  --text: #dddde8;
  --text-muted: #6a6a88;
  --text-dim: #38384e;
  --accent: #5254cc;
  --accent2: #7072e8;
  --accent-glow: rgba(82,84,204,0.15);
  --price: #4d9de0;
  --sidebar-w: 185px;
  --panel-w: 240px;
}

body {
  font-family: 'Space Grotesk', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  overflow: hidden;
}

/* Background glow blobs */
body::before, body::after {
  content: '';
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  filter: blur(110px);
}
body::before {
  width: 480px; height: 480px;
  background: rgba(82,84,204,0.09);
  top: -100px; left: 28%;
}
body::after {
  width: 360px; height: 360px;
  background: rgba(100,40,160,0.06);
  bottom: -80px; right: 18%;
}

/* ── Stars ── */
.stars { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.star {
  position: absolute;
  background: white;
  border-radius: 50%;
  animation:
    twinkle var(--d, 3s) ease-in-out infinite var(--delay, 0s),
    drift var(--drift, 55s) linear infinite var(--drift-delay, 0s);
}
@keyframes twinkle {
  0%, 100% { opacity: 0.06; }
  50%       { opacity: 0.48; }
}
@keyframes drift {
  from { transform: translateX(0)      scale(var(--sz, 1)); }
  to   { transform: translateX(100vw)  scale(var(--sz, 1)); }
}

/* ── Sidebar ── */
.sidebar {
  width: var(--sidebar-w);
  min-height: 100vh;
  background: rgba(4,4,10,0.82);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-right: 1px solid var(--glass-border);
  display: flex;
  flex-direction: column;
  position: fixed;
  left: 0; top: 0; bottom: 0;
  z-index: 10;
}

.logo {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
}
.logo img {
  width: 64px;
  height: 64px;
  object-fit: contain;
}

.nav-section {
  padding: 18px 14px 8px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-dim);
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  margin: 1px 8px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  transition: all 0.15s;
  text-decoration: none;
}
.nav-item:hover  { background: var(--glass); color: var(--text); }
.nav-item.active {
  background: var(--accent-glow);
  color: var(--accent2);
  border: 1px solid rgba(99,102,241,0.28);
}

.nav-icon { width: 18px; height: 18px; flex-shrink: 0; }

.sidebar-footer {
  margin-top: auto;
  padding: 16px 14px;
  border-top: 1px solid var(--border);
}
.support-btn {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; border-radius: 10px;
  font-size: 14px; font-weight: 500; color: var(--text-muted);
  cursor: pointer; transition: all 0.15s;
}
.support-btn:hover { background: var(--glass); color: var(--text); }

/* ── Main ── */
.main {
  margin-left: var(--sidebar-w);
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  position: relative;
  z-index: 1;
}

.top-bar {
  padding: 20px 32px 16px;
  border-bottom: 1px solid var(--glass-border);
  background: rgba(4,4,10,0.55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.top-bar h1 { font-size: 16px; font-weight: 500; color: var(--text-muted); letter-spacing: 0.3px; }

.content-area { display: flex; flex: 1; }

/* ── Grid area – centred ── */
.grid-area {
  flex: 1;
  padding: 28px 32px;
  overflow-y: auto;
  max-height: calc(100vh - 62px);
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ── Error / loading banner ── */
.load-banner {
  background: rgba(99,102,241,0.07);
  backdrop-filter: blur(8px);
  border: 1px dashed rgba(99,102,241,0.3);
  border-radius: 16px;
  padding: 26px 32px;
  text-align: center;
  margin-bottom: 26px;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
  width: 100%;
  max-width: 900px;
}
.load-banner code {
  color: var(--accent2);
  font-family: monospace;
  background: rgba(99,102,241,0.12);
  padding: 2px 7px;
  border-radius: 5px;
}

/* ── Stats bar ── */
#stats-bar { width: 100%; max-width: 900px; }
.page-info {
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

/* ── Grid ── */
.username-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 22px;
  width: 100%;
  max-width: 900px;
}

.username-card {
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  padding: 15px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all 0.2s;
}
.username-card:hover {
  background: rgba(255,255,255,0.09);
  border-color: rgba(99,102,241,0.4);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0,0,0,0.3);
}

.platform-icon {
  width: 32px; height: 32px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  background: linear-gradient(135deg, #833ab4, #fd1d1d, #f77737);
}

.username-text {
  flex: 1;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.price-tag {
  font-size: 14px;
  font-weight: 700;
  color: var(--price);
  white-space: nowrap;
  margin-right: 6px;
}

.buy-btn {
  display: flex; align-items: center; gap: 6px;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 8px;
  padding: 6px 13px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
  font-family: inherit;
}
.buy-btn:hover { background: var(--accent2); transform: scale(1.04); }
.buy-btn svg   { width: 12px; height: 12px; }

/* ── Pagination ── */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 16px 0 8px;
  flex-wrap: wrap;
  width: 100%;
  max-width: 900px;
}
.page-btn {
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(8px);
  border: 1px solid var(--glass-border);
  color: var(--text-muted);
  padding: 8px 14px;
  border-radius: 9px;
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
  font-family: inherit;
}
.page-btn:hover:not(:disabled) { background: rgba(255,255,255,0.09); border-color: rgba(99,102,241,0.35); color: var(--text); }
.page-btn.active   { background: var(--accent); border-color: var(--accent); color: white; }
.page-btn:disabled { opacity: 0.3; cursor: not-allowed; }
.page-ellipsis     { color: var(--text-dim); font-size: 13px; padding: 0 4px; }

/* ── Empty state ── */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}
.empty-state .big-icon { font-size: 48px; margin-bottom: 16px; }
.empty-state h3 { font-size: 17px; margin-bottom: 8px; color: var(--text); }
.empty-state p  { font-size: 14px; line-height: 1.6; }

/* ── Right panel ── */
.right-panel {
  width: var(--panel-w);
  flex-shrink: 0;
  background: rgba(4,4,10,0.65);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-left: 1px solid var(--glass-border);
  padding: 24px 18px;
  overflow-y: auto;
  max-height: calc(100vh - 62px);
}

.filter-label {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 10px;
}

.search-box { position: relative; margin-bottom: 20px; }
.search-box input {
  width: 100%;
  background-color: #0e0e1e;
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  color: var(--text);
  padding: 10px 12px 10px 36px;
  font-size: 13.5px;
  outline: none;
  font-family: inherit;
  transition: border-color 0.15s;
}
.search-box input:focus       { border-color: rgba(99,102,241,0.5); }
.search-box input::placeholder { color: var(--text-dim); }
.search-icon { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: var(--text-dim); font-size: 14px; }

.filter-section { margin-bottom: 20px; }

.filter-select {
  width: 100%;
  background-color: #0e0e1e;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%237878a0' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  color: var(--text);
  padding: 10px 12px;
  font-size: 13.5px;
  outline: none;
  font-family: inherit;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}
.filter-select option {
  background-color: #0e0e1e;
  color: var(--text);
}

.price-options { display: flex; flex-direction: column; gap: 9px; margin-bottom: 18px; }
.price-option  { display: flex; align-items: center; gap: 9px; cursor: pointer; }
.price-option input[type="checkbox"] { accent-color: var(--accent); width: 15px; height: 15px; cursor: pointer; }
.price-option label { font-size: 13.5px; color: var(--text-muted); cursor: pointer; }
.price-option input:checked + label { color: var(--text); }

.price-inputs { display: flex; flex-direction: column; gap: 10px; }
.price-input-wrap label { display: block; font-size: 12px; color: var(--text-muted); margin-bottom: 5px; font-weight: 500; }
.price-input-wrap input {
  width: 100%;
  background-color: #0e0e1e;
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  color: var(--text);
  padding: 9px 12px;
  font-size: 13.5px;
  outline: none;
  font-family: inherit;
}
.price-input-wrap input:focus       { border-color: rgba(99,102,241,0.5); }
.price-input-wrap input::placeholder { color: var(--text-dim); }

.divider { height: 1px; background: var(--glass-border); margin: 20px 0; }

/* ── Toast ── */
.toast {
  position: fixed; bottom: 28px; right: 28px;
  background: rgba(18,18,34,0.88);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(99,102,241,0.35);
  border-radius: 12px; padding: 12px 18px;
  font-size: 13.5px; color: var(--text);
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
  z-index: 100; opacity: 0; pointer-events: none;
  transition: opacity 0.3s, transform 0.3s;
  transform: translateY(8px);
}
.toast.show { opacity: 1; pointer-events: auto; transform: translateY(0); }

/* ── Scrollbar ── */
::-webkit-scrollbar       { width: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.08); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.15); }

/* ── Buy Modal ── */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 200;
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.modal-overlay.open { opacity: 1; pointer-events: auto; }

.modal-box {
  background: rgba(6,6,14,0.92);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border: 1px solid rgba(255,255,255,0.11);
  border-radius: 22px;
  padding: 38px 34px 32px;
  width: 390px;
  max-width: calc(100vw - 40px);
  display: flex; flex-direction: column; align-items: center;
  position: relative;
  box-shadow: 0 32px 80px rgba(0,0,0,0.55), 0 0 0 1px rgba(255,255,255,0.04) inset;
  transform: translateY(18px) scale(0.97);
  transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1), opacity 0.25s ease;
}
.modal-overlay.open .modal-box { transform: translateY(0) scale(1); }

.modal-close {
  position: absolute; top: 14px; right: 14px;
  width: 30px; height: 30px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 50%;
  color: var(--text-muted); font-size: 13px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.15s; font-family: inherit;
}
.modal-close:hover { background: rgba(255,255,255,0.14); color: var(--text); }

.modal-platform-icon {
  width: 72px; height: 72px; border-radius: 20px;
  background: linear-gradient(135deg, #833ab4, #fd1d1d, #f77737);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 22px;
  box-shadow: 0 10px 32px rgba(253,29,29,0.22);
}

.modal-username { font-size: 24px; font-weight: 700; color: var(--text); margin-bottom: 8px; letter-spacing: -0.3px; }
.modal-type     { font-size: 13.5px; color: var(--text-muted); margin-bottom: 8px; }
.modal-price-label { font-size: 22px; font-weight: 700; color: var(--price); margin-bottom: 26px; }

.order-id-badge {
  font-size: 11.5px;
  color: var(--text-dim);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  padding: 5px 12px;
  margin-bottom: 18px;
  letter-spacing: 0.5px;
}
.order-id-badge strong {
  color: var(--accent2);
  font-family: monospace;
  letter-spacing: 1px;
}

.modal-contact-label {
  font-size: 12px; color: var(--text-dim); font-weight: 500;
  margin-bottom: 14px; text-transform: uppercase; letter-spacing: 0.9px;
}

.modal-crypto-btns { display: flex; flex-wrap: wrap; gap: 8px; width: 100%; margin-bottom: 12px; }

.modal-crypto-btn {
  flex: 1 1 calc(33% - 8px); min-width: 70px;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  padding: 11px 8px; border-radius: 12px; font-size: 13px; font-weight: 700;
  border: 1px solid transparent; cursor: pointer; transition: all 0.15s;
  font-family: inherit; letter-spacing: 0.5px;
}
.modal-crypto-btn.btc {
  background: rgba(247,147,26,0.12);
  color: #f7931a;
  border-color: rgba(247,147,26,0.3);
}
.modal-crypto-btn.btc:hover {
  background: rgba(247,147,26,0.22);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(247,147,26,0.2);
}
.modal-crypto-btn.eth {
  background: rgba(98,126,234,0.12);
  color: #627eea;
  border-color: rgba(98,126,234,0.3);
}
.modal-crypto-btn.eth:hover {
  background: rgba(98,126,234,0.22);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(98,126,234,0.2);
}
.modal-crypto-btn.ltc {
  background: rgba(191,191,191,0.1);
  color: #bebebf;
  border-color: rgba(191,191,191,0.25);
}
.modal-crypto-btn.ltc:hover {
  background: rgba(191,191,191,0.18);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(191,191,191,0.12);
}
.modal-crypto-btn.usdt {
  background: rgba(38,161,123,0.12);
  color: #26a17b;
  border-color: rgba(38,161,123,0.3);
}
.modal-crypto-btn.usdt:hover {
  background: rgba(38,161,123,0.22);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(38,161,123,0.2);
}
.modal-crypto-btn.usdc {
  background: rgba(39,117,202,0.12);
  color: #2775ca;
  border-color: rgba(39,117,202,0.3);
}
.modal-crypto-btn.usdc:hover {
  background: rgba(39,117,202,0.22);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(39,117,202,0.2);
}

.modal-share-btn {
  width: 100%; display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px; background: var(--accent); color: white; border: none;
  border-radius: 12px; font-size: 14.5px; font-weight: 600; cursor: pointer;
  transition: all 0.15s; font-family: inherit; margin-top: 2px;
}
.modal-share-btn:hover { background: var(--accent2); transform: translateY(-1px); }

/* ── Crypto Payment Modal ── */
.crypto-modal-box { gap: 0; }

.crypto-coin-icon {
  width: 72px; height: 72px; border-radius: 20px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}

.crypto-address-label {
  font-size: 11px; font-weight: 600; letter-spacing: 1.4px;
  text-transform: uppercase; color: var(--text-dim);
  margin: 18px 0 8px;
}

.crypto-address-box {
  width: 100%;
  display: flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 12px 12px 12px 14px;
}

.crypto-address-text {
  flex: 1;
  font-size: 12px;
  font-family: monospace;
  color: var(--text);
  word-break: break-all;
  line-height: 1.5;
}

.crypto-copy-btn {
  display: flex; align-items: center; gap: 6px;
  padding: 7px 12px; border-radius: 8px;
  font-size: 12.5px; font-weight: 600;
  border: 1px solid; cursor: pointer;
  white-space: nowrap; font-family: inherit;
  transition: all 0.15s; flex-shrink: 0;
}
.crypto-copy-btn:hover { opacity: 0.85; transform: scale(1.04); }

.crypto-note {
  font-size: 12px; color: var(--text-muted);
  text-align: center; line-height: 1.6;
  margin-top: 14px; padding: 0 4px;
}

/* ── Live amount display ── */
.crypto-amount-box {
  width: 100%;
  margin: 14px 0 4px;
}

.crypto-amount-loading {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  font-size: 13px; color: var(--text-muted);
  padding: 14px;
}

.crypto-spinner {
  width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.1);
  border-top-color: white;
  animation: spin 0.7s linear infinite;
  flex-shrink: 0;
}
@keyframes spin { to { transform: rotate(360deg); } }

.crypto-amount-display {
  display: flex; flex-direction: column; align-items: center;
  padding: 14px 18px; border-radius: 12px;
  border: 1px solid; gap: 4px;
}

.crypto-amount-value {
  font-size: 22px; font-weight: 800; letter-spacing: -0.5px;
}

.crypto-amount-usd {
  font-size: 12px; color: var(--text-muted);
}

.crypto-amount-error {
  font-size: 13px; color: var(--text-muted);
  text-align: center; padding: 10px 0;
}

/* ── Confirmation status bar ── */
.confirm-status {
  width: 100%;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 14px;
  margin: 14px 0 6px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.confirm-status.confirmed { border-color: rgba(34,197,94,0.4); background: rgba(34,197,94,0.07); }
.confirm-status.pending   { border-color: rgba(247,147,26,0.4); background: rgba(247,147,26,0.07); }

.confirm-row {
  display: flex; align-items: center; gap: 10px;
}

.confirm-spinner {
  width: 14px; height: 14px; border-radius: 50%; flex-shrink: 0;
  border: 2px solid rgba(255,255,255,0.1);
  border-top-color: rgba(255,255,255,0.6);
  animation: spin 0.8s linear infinite;
}
.confirm-status.confirmed .confirm-spinner { display: none; }
.confirm-status.confirmed #confirm-msg { color: #22c55e; font-weight: 600; }
.confirm-status.pending   #confirm-msg { color: #f7931a; }

#confirm-msg {
  font-size: 13px;
  color: var(--text-muted);
}

.confirm-progress-track {
  width: 100%; height: 5px;
  background: rgba(255,255,255,0.08);
  border-radius: 99px; overflow: hidden;
}

.confirm-progress-fill {
  height: 100%; border-radius: 99px;
  background: rgba(255,255,255,0.15);
  transition: width 0.6s ease, background 0.4s ease;
}

.confirm-count {
  font-size: 11.5px;
  color: var(--text-dim);
  text-align: right;
}

/* ── Contact form (post-confirmation) ── */
.contact-form-section {
  width: 100%;
  background: rgba(34,197,94,0.06);
  border: 1px solid rgba(34,197,94,0.25);
  border-radius: 14px;
  padding: 16px;
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  animation: slideUp 0.4s cubic-bezier(0.34,1.56,0.64,1);
}
@keyframes slideUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.contact-form-header {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; color: #22c55e;
}

.contact-type-tabs {
  display: flex; gap: 6px;
}

.contact-tab {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px;
  padding: 8px 6px; border-radius: 9px; font-size: 12.5px; font-weight: 600;
  border: 1px solid var(--glass-border); background: rgba(255,255,255,0.04);
  color: var(--text-muted); cursor: pointer; transition: all 0.15s; font-family: inherit;
}
.contact-tab:hover { background: rgba(255,255,255,0.08); color: var(--text); }
.contact-tab.active {
  background: rgba(34,197,94,0.12);
  border-color: rgba(34,197,94,0.35);
  color: #22c55e;
}

.contact-input-wrap {
  display: flex; gap: 8px;
}

.contact-input {
  flex: 1;
  background-color: #0e0e1e;
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  color: var(--text);
  padding: 10px 12px;
  font-size: 13.5px;
  outline: none;
  font-family: inherit;
  transition: border-color 0.15s;
}
.contact-input:focus { border-color: rgba(34,197,94,0.5); }
.contact-input::placeholder { color: var(--text-dim); }
.contact-input.contact-input-error {
  border-color: rgba(239,68,68,0.6);
  animation: shake 0.3s ease;
}
@keyframes shake {
  0%,100% { transform: translateX(0); }
  25%      { transform: translateX(-5px); }
  75%      { transform: translateX(5px); }
}

.contact-submit-btn {
  display: flex; align-items: center; gap: 6px;
  padding: 10px 16px; border-radius: 10px;
  background: rgba(34,197,94,0.15); color: #22c55e;
  border: 1px solid rgba(34,197,94,0.35);
  font-size: 13.5px; font-weight: 600; cursor: pointer;
  transition: all 0.15s; font-family: inherit; white-space: nowrap;
}
.contact-submit-btn:hover { background: rgba(34,197,94,0.25); transform: translateY(-1px); }

.contact-form-note {
  font-size: 11.5px; color: var(--text-dim); text-align: center;
}

.contact-submitted {
  display: flex; align-items: flex-start; gap: 12px;
}
.contact-submitted-title {
  font-size: 13.5px; font-weight: 700; color: #22c55e; margin-bottom: 3px;
}
.contact-submitted-sub {
  font-size: 12.5px; color: var(--text-muted); line-height: 1.5;
}

/* ── Support nav item: hidden on desktop (footer handles it), visible on mobile tab bar ── */
.nav-support-item { display: none; }

@media (max-width: 768px) {
  .nav-support-item { display: flex; }
  /* Hide the sidebar footer on mobile since support is now a tab */
  .sidebar-footer { display: none; }

  /* Pending order banner: push content down so it isn't covered */
  #pending-order-banner + .main,
  body:has(#pending-order-banner) .main {
    padding-top: 0;
  }
  #pending-order-banner {
    font-size: 12px;
    padding: 10px 14px;
  }
}
  max-width: 460px;
}

.support-textarea {
  font-family: inherit;
  min-height: 100px;
}

.support-submit-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px;
  background: linear-gradient(135deg, #3b82f6, #6366f1);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 14.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s;
  font-family: inherit;
  letter-spacing: 0.3px;
  box-shadow: 0 4px 20px rgba(99,102,241,0.25);
}
.support-submit-btn:hover:not(:disabled) {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(99,102,241,0.35);
}
.support-submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* Override contact-tab active colour for support modal */
#support-modal .contact-tab.active {
  background: rgba(99,102,241,0.14);
  border-color: rgba(99,102,241,0.4);
  color: #818cf8;
}
#support-modal .contact-input:focus {
  border-color: rgba(99,102,241,0.5);
}

/* ══════════════════════════════════════════════
   MOBILE RESPONSIVE STYLES
   ══════════════════════════════════════════════ */

@media (max-width: 768px) {

  /* ── Body: allow vertical scroll ── */
  body {
    overflow-x: hidden;
    overflow-y: auto;
    flex-direction: column;
  }

  /* ── Sidebar → bottom tab bar ── */
  .sidebar {
    width: 100%;
    min-height: unset;
    height: 60px;
    position: fixed;
    left: 0;
    top: auto;
    bottom: 0;
    right: 0;
    flex-direction: row;
    align-items: center;
    justify-content: space-around;
    padding: 0 4px;
    border-right: none;
    border-top: 1px solid var(--glass-border);
    z-index: 100;
    overflow: hidden;
  }

  /* Hide sidebar text labels, section headings, footer, logo */
  .sidebar .logo,
  .sidebar .nav-section,
  .sidebar .sidebar-footer,
  .nav-item span,
  .nav-item:not(:has(svg)) { /* service items without icons */
    display: none;
  }

  /* Show only icon-based nav items as tab buttons */
  .nav-item {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 8px 10px;
    margin: 0;
    border-radius: 10px;
    font-size: 10px;
    min-width: 44px;
    flex: 1;
    max-width: 70px;
  }

  /* Show the text label underneath the icon on mobile */
  .nav-item::after {
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.3px;
    color: inherit;
  }

  .nav-icon {
    width: 22px;
    height: 22px;
  }

  /* ── Main: full width, add bottom padding for tab bar ── */
  .main {
    margin-left: 0;
    padding-bottom: 60px;
    min-height: 100vh;
    width: 100%;
  }

  /* ── Top bar ── */
  .top-bar {
    padding: 14px 16px 12px;
    position: sticky;
    top: 0;
    z-index: 50;
  }
  .top-bar h1 {
    font-size: 14px;
  }

  /* ── Content area: stack vertically ── */
  .content-area {
    flex-direction: column;
  }

  /* ── Grid area: full width, reduced padding ── */
  .grid-area {
    padding: 16px 12px;
    max-height: none;
    overflow-y: visible;
    align-items: stretch;
  }

  /* ── Right panel: horizontal filter bar at top ── */
  .right-panel {
    width: 100%;
    order: -1; /* Move filters above the grid */
    border-left: none;
    border-bottom: 1px solid var(--glass-border);
    padding: 14px 14px 10px;
    max-height: none;
    overflow-y: visible;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: flex-start;
  }

  /* Search box takes full row */
  .right-panel .search-box {
    flex: 1 1 100%;
    margin-bottom: 0;
  }

  /* Category select and price options side by side */
  .right-panel .filter-section {
    flex: 1 1 calc(50% - 5px);
    min-width: 130px;
    margin-bottom: 0;
  }

  .right-panel .filter-label {
    margin-bottom: 6px;
  }

  /* Price options row */
  .right-panel .price-options {
    flex: 1 1 calc(50% - 5px);
    min-width: 130px;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 0;
  }

  /* Price inputs: side by side */
  .right-panel .price-inputs {
    flex: 1 1 100%;
    flex-direction: row;
    gap: 8px;
  }
  .right-panel .price-inputs .price-input-wrap {
    flex: 1;
  }

  /* Divider hidden on mobile */
  .right-panel .divider {
    display: none;
  }

  /* ── Username grid: 2 columns on mobile ── */
  .username-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  /* Adjust card layout for smaller screens */
  .username-card {
    padding: 10px 10px;
    gap: 8px;
    flex-wrap: wrap;
  }

  .username-text {
    font-size: 13px;
  }

  .price-tag {
    font-size: 12px;
    margin-right: 2px;
  }

  .buy-btn {
    padding: 5px 9px;
    font-size: 12px;
  }

  .platform-icon {
    width: 26px;
    height: 26px;
    border-radius: 6px;
  }

  /* ── Load banner ── */
  .load-banner {
    padding: 18px 16px;
    font-size: 13px;
  }

  /* ── Pagination: tighter ── */
  .pagination {
    gap: 4px;
    padding: 12px 0 6px;
  }
  .page-btn {
    padding: 7px 11px;
    font-size: 12.5px;
  }

  /* ── Stats bar ── */
  #stats-bar {
    max-width: 100%;
  }

  /* ── Toast: full width at bottom ── */
  .toast {
    bottom: 72px; /* above tab bar */
    right: 12px;
    left: 12px;
    text-align: center;
  }

  /* ── Modals: full screen on mobile ── */
  .modal-box {
    width: calc(100vw - 24px);
    max-width: 100%;
    padding: 28px 20px 24px;
    border-radius: 18px;
  }

  .modal-username { font-size: 20px; }
  .modal-price-label { font-size: 19px; }

  /* ── Support modal ── */
  .support-modal-box {
    max-width: calc(100vw - 24px);
  }
}

/* ── Extra small phones (< 400px): 1 column ── */
@media (max-width: 399px) {
  .username-grid {
    grid-template-columns: 1fr;
  }

  .right-panel .filter-section,
  .right-panel .price-options {
    flex: 1 1 100%;
  }

  .username-card {
    flex-wrap: nowrap;
  }
}
