/* ============================================================================
   Base Styles
   ========================================================================= */
/* cache-bust 2025-12-05-green */
:root {
  --brand-primary: #10b981;
  --brand-secondary: #064e3b;
  --accent: #34d399;
  --warning: #f59e0b;
  --danger: #dc2626;
  --martal-orange: #10b981;
  --surface: #ffffff;
  --muted-surface: #ecfdf5;
  --border: #a7f3d0;
  --text: #1f2933;
  --text-muted: #374151;
}

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

html {
  height: auto;
  overflow-y: scroll;
}

body {
  margin: 0;
  height: auto;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Oxygen, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  font-size: 15px;
  line-height: 1;
  color: var(--text);
  background: var(--muted-surface);
  min-height: 100vh;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: var(--brand-primary);
}

.muted {
  color: var(--text-muted);
}

.text-danger {
  color: var(--danger);
  font-weight: 600;
}

button,
input,
select,
textarea {
  font: inherit;
}

/* ============================================================================
   Public navigation + layout
   ========================================================================= */
.navbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: #ffffff;
  border-bottom: 1px solid var(--border);
  box-shadow: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  overflow: hidden;
}

.navbar.navbar--hidden {
  transform: translateY(-110%);
}

.navbar.navbar--raised {
  box-shadow: 0 12px 30px rgba(15, 24, 46, 0.08);
}

.navbar-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.6rem 1.25rem;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) auto auto;
  column-gap: 1rem;
  align-items: stretch;
}

.navbar-column {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.navbar-column--logo {
  align-items: flex-start;
  gap: 0.35rem;
}

.navbar-links {
  display: flex;
  gap: 1rem;
  flex-wrap: nowrap;
  align-items: center;
}

.navbar-links .nav-link {
  white-space: nowrap;
}

.nav-logo-textual {
  font-family: "Bungee Spice", "Playfair Display", "Times New Roman", serif;
  font-size: clamp(2.3rem, 4vw, 3.8rem);
  letter-spacing: 0.06em;
  color: #1f1e1c;
  text-decoration: none;
  text-transform: none;
}

.nav-logo-textual:hover {
  color: var(--brand-primary);
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
  color: #ffffff;
  position: relative;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-link--disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

.nav-link--with-badge,
.mobile-menu__link--with-badge {
  position: relative;
}

.nav-link-badge-notif {
  position: absolute;
  top: -6px;
  right: -8px;
  font-size: 0.55rem;
  font-weight: 700;
  text-transform: uppercase;
  background: #ef4444;
  color: #fff;
  padding: 0.15rem 0.35rem;
  border-radius: 8px;
  line-height: 1;
  box-shadow: 0 2px 4px rgba(239, 68, 68, 0.4);
}

.nav-link--icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.4rem;
}

.nav-link--icon svg {
  display: block;
}

.mobile-menu__link--icon {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.mobile-menu__link--icon svg {
  flex-shrink: 0;
}

.mobile-menu__link--disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

.nav-icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.35rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(15, 24, 46, 0.05);
  box-shadow: 0 4px 14px rgba(15, 24, 46, 0.08);
}

.nav-icon-link {
  border-width: 2px;
  padding: 0.45rem;
}
.nav-icon-link img {
  height: 60px;
  width: auto;
  display: block;
}

.nav-link:hover,
.nav-link:focus-visible {
  color: #ffffff;
  background: rgba(80, 88, 230, 0.12);
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 10%;
  right: 10%;
  bottom: -0.4rem;
  height: 6px;
  border-radius: 999px;
  background: transparent;
  transition: background 0.2s ease;
}

.nav-link--active {
  color: #ffffff;
}

.nav-link--active::after {
  background: var(--martal-orange);
}

.nav-link--cta {
  background: linear-gradient(135deg, var(--martal-orange), #ffb347);
  color: #fff;
  border-radius: 999px;
  box-shadow: 0 12px 25px rgba(255, 122, 26, 0.3);
}

.nav-link--cta:hover,
.nav-link--cta:focus-visible {
  background: linear-gradient(135deg, #ffb347, var(--martal-orange));
  color: #fff;
}

.nav-link--cta::after {
  bottom: -0.55rem;
}

.nav-link-logo {
  display: inline-flex;
  padding: 0.25rem;
  border-radius: 6px;
}

.navbar-column--stats {
  justify-content: center;
  align-items: center;
}

.navbar-column--wallet {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.5rem;
  min-width: 240px;
}

.navbar-wallet-actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.navbar-wallet-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.5rem 1.4rem;
  font-weight: 600;
  font-size: 0.92rem;
  border: none;
  cursor: pointer;
  min-width: 150px;
  text-align: center;
  box-shadow: 0 10px 25px rgba(15, 24, 46, 0.15);
}

.navbar-wallet-btn--primary {
  background: linear-gradient(135deg, #6b73ff, #000dff);
  color: #fff;
}

.navbar-wallet-btn--ghost {
  background: #fff;
  color: var(--text);
  border: 1px solid rgba(15, 24, 46, 0.08);
  box-shadow: 0 8px 18px rgba(15, 24, 46, 0.12);
}

.navbar-wallet-btn--outline {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: #fff;
  box-shadow: none;
}

@media (max-width: 768px) {
  .navbar-column--wallet {
    align-items: center;
    width: 100%;
  }

  .navbar-account-label {
    text-align: center;
    align-items: center;
  }

  .navbar-wallet-actions {
    flex-direction: column;
    width: 100%;
  }

  .navbar-wallet-actions .navbar-wallet-btn,
  .navbar-wallet-actions .nav-link-phantom {
    width: 100%;
  }
}

.navbar-mobile-lang {
  display: none;
  margin-top: 0.25rem;
}

@media (max-width: 992px) {
  .navbar-links {
    flex-wrap: wrap;
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .navbar-container {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
  }

  .navbar-column {
    align-items: center;
  }

  .navbar-column--logo {
    align-items: center;
  }

  .navbar-links {
    justify-content: center;
  }

  .navbar-column--wallet {
    width: 100%;
    align-items: stretch;
  }

  .navbar-mobile-lang {
    display: flex;
    justify-content: center;
    width: 100%;
  }
}

.nav-link-phantom {
  border: none;
  border-radius: 999px;
  padding: 0.45rem 1.4rem;
  background: linear-gradient(135deg, #ffb347, #ff5a1f);
  font-weight: 600;
  color: #fff;
  box-shadow: 0 12px 25px rgba(255, 90, 31, 0.3);
}

.nav-link-phantom:hover {
  background: linear-gradient(135deg, #ff7a1a, #ffb347);
  color: #fff;
}

@media (min-width: 769px) {
  .nav-link-phantom[data-mobile-only="true"] {
    display: none;
  }
}

.wallet-balance-chip {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 0.6rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1.1rem;
  min-width: 280px;
  box-shadow: 0 8px 20px rgba(16, 24, 40, 0.08);
}

.balance-chip-icons {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.balance-chip-icon img {
  height: 32px;
  width: auto;
  display: block;
}

.balance-chip-icon-guez {
  margin-top: 0.35rem;
}

.balance-chip-icon-guez img {
  height: 45px;
  width: 45px;
  object-fit: contain;
  display: block;
}

.balance-lines {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.wallet-balance-chip .balance-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-size: 0.95rem;
}

.wallet-balance-chip .balance-label {
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.wallet-balance-chip .balance-value {
  font-family: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 1rem;
  font-weight: 700;
}

#wallet-address {
  font-family: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
  background: var(--surface);
  padding: 0.4rem 0.75rem;
  border-radius: 6px;
  border: 1px solid var(--border);
  color: var(--text-muted);
}

.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.5rem 1.25rem;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
  transition: background 0.2s ease, color 0.2s ease,
    box-shadow 0.2s ease, transform 0.2s ease;
}

.btn-primary {
  background: var(--brand-primary);
  color: #fff;
  box-shadow: 0 2px 6px rgba(80, 88, 230, 0.25);
}

.btn-primary:hover {
  background: #3a41be;
  transform: translateY(-1px);
}

.btn-primary:disabled {
  opacity: 0.5;
  pointer-events: none;
}

.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  border-color: var(--brand-primary);
  color: var(--brand-primary);
}

.btn-block {
  width: 100%;
  justify-content: center;
}

.btn-lg {
  padding: 0.8rem 1.75rem;
  font-size: 1rem;
}

.btn-muted {
  background: rgba(15, 24, 46, 0.05);
  color: var(--text);
  border: none;
}

.container-main {
  max-width: 1100px;
  margin: 1.5rem auto 2.5rem;
  padding: 0 1rem;
}

.alert {
  padding: 0.75rem 1rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  font-weight: 600;
}

.alert-success {
  background: rgba(18, 185, 129, 0.1);
  color: var(--accent);
  border: 1px solid rgba(18, 185, 129, 0.3);
}

.alert-error {
  background: rgba(220, 38, 38, 0.1);
  color: var(--danger);
  border: 1px solid rgba(220, 38, 38, 0.25);
}

.toast-stack {
  position: fixed;
  top: 88px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  z-index: 2000;
  width: min(320px, calc(100vw - 2rem));
}

.toast {
  background: #ffffff;
  border-radius: 16px;
  padding: 0.85rem 1rem;
  box-shadow: 0 25px 60px rgba(15, 24, 46, 0.2);
  display: flex;
  gap: 0.75rem;
  align-items: center;
  border: 1px solid rgba(15, 24, 46, 0.06);
  font-weight: 600;
  color: var(--text);
}

.toast-icon {
  font-size: 1.1rem;
}

.toast--success {
  border-color: rgba(18, 185, 129, 0.45);
  background: #ecfdf5;
  color: #047857;
}

.toast--warning {
  border-color: rgba(245, 158, 11, 0.4);
  background: #fef3c7;
  color: #92400e;
}

.toast--error {
  border-color: rgba(220, 38, 38, 0.4);
  background: #fee2e2;
  color: #b91c1c;
}

.toast--info {
  border-color: rgba(80, 88, 230, 0.4);
  background: #eef2ff;
  color: var(--brand-primary);
}

.hidden {
  display: none !important;
}

/* ============================================================================
   Marketplace layout
   ========================================================================= */
/* Auctions page specific background */
body.auctions-page {
  background: linear-gradient(135deg, var(--brand-primary) 0%, #064e3b 100%);
  min-height: 100vh;
}

/* Light text on dark background for auction page elements */
body.auctions-page .page-title {
  color: #ffffff;
}

body.auctions-page .market-header p {
  color: rgba(255, 255, 255, 0.9);
}

.market-hint {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 0.75rem;
  padding: 0.75rem 1rem;
  background: rgba(244, 180, 95, 0.15);
  border-left: 3px solid #f4b45f;
  border-radius: 6px;
  font-size: 0.9rem;
  line-height: 1.5;
}

.market-hint .hint-icon {
  font-size: 1.1rem;
}

.market-hint .hint-en {
  display: block;
  width: 100%;
  margin-top: 0.25rem;
  font-size: 0.8rem;
  opacity: 0.75;
  font-style: italic;
}

body.auctions-page .empty-state {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

body.auctions-page .empty-state-title,
body.auctions-page .empty-state-text {
  color: #ffffff;
}

body.auctions-page .empty-state-icon {
  color: rgba(255, 255, 255, 0.8);
}

.market-wrap {
  width: 92%;
  margin: 1.5rem auto 3rem;
  padding: 0 0 2rem;
}

.sales-analytics {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(15, 24, 46, 0.08);
  border-radius: 28px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 25px 50px rgba(15, 24, 46, 0.12);
  overflow: hidden;
  color: #0f172a;
}

.sales-analytics__header {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  align-items: stretch;
}

.sales-analytics__intro {
  flex: 1;
  min-width: 240px;
}

.sales-analytics__eyebrow {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0;
  color: var(--brand-primary);
  font-weight: 700;
}

.sales-analytics__intro h2 {
  margin: 0.25rem 0 0.35rem;
  font-size: 1.6rem;
  color: #0b1a2f;
}

.sales-analytics__lead {
  margin: 0;
  color: #4b5563;
  line-height: 1.4;
}

.sales-analytics__meta {
  margin-top: 0.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.sales-analytics__meta-pill {
  font-size: 0.85rem;
  font-weight: 600;
  color: #0b1a2f;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.4);
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
}

.sales-analytics__filters {
  flex: 1.2;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.65rem 0.85rem;
  align-items: end;
}

.sales-analytics__filter label {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.2rem;
  color: #1f2937;
}

.sales-analytics__filter select,
.sales-analytics__filter input[type="date"] {
  width: 100%;
  border-radius: 10px;
  border: 1px solid rgba(15, 24, 46, 0.12);
  background: #f9fafb;
  padding: 0.45rem 0.6rem;
  font-size: 0.92rem;
  color: #0b1a2f;
}

.sales-analytics__filter--actions {
  display: flex;
  align-items: flex-end;
}

.sales-analytics__custom-range {
  display: grid;
  grid-template-columns: repeat(2, minmax(120px, 1fr));
  gap: 0.65rem;
}

.sales-analytics__reset {
  width: 100%;
  border: none;
  border-radius: 999px;
  padding: 0.5rem 1rem;
  font-weight: 600;
  background: rgba(255, 99, 132, 0.12);
  color: #b91c1c;
  cursor: pointer;
}

.sales-analytics__reset:hover {
  background: rgba(185, 28, 28, 0.18);
}

.sales-analytics__chart-wrapper {
  position: relative;
  margin-top: 1.5rem;
  border-radius: 24px;
  padding: 0.75rem 0.75rem 1rem;
  min-height: 340px;
  background: radial-gradient(circle at 20% 20%, rgba(16, 185, 129, 0.25), rgba(6, 78, 59, 0.7));
  overflow: hidden;
}

.sales-analytics__chart-wrapper canvas {
  width: 100% !important;
  height: 320px !important;
  display: block;
}

.sales-analytics__loading,
.sales-analytics__empty {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(15, 23, 42, 0.85);
  color: #fff;
  padding: 0.9rem 1.2rem;
  border-radius: 999px;
  font-weight: 600;
  text-align: center;
  box-shadow: 0 10px 35px rgba(15, 23, 42, 0.35);
}

.sales-analytics__empty {
  background: rgba(255, 255, 255, 0.92);
  color: #0f172a;
  border: 1px solid rgba(15, 23, 42, 0.1);
}

.sales-analytics__tooltip {
  position: absolute;
  pointer-events: none;
  background: rgba(4, 16, 26, 0.95);
  border-radius: 16px;
  padding: 0.75rem;
  width: 220px;
  box-shadow: 0 25px 45px rgba(4, 16, 26, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.08);
  z-index: 5;
  color: #e2e8f0;
}

.sales-analytics__tooltip.hidden {
  display: none;
}

.sales-analytics__tooltip-header {
  display: flex;
  gap: 0.6rem;
  align-items: center;
}

.sales-analytics__tooltip-thumb {
  width: 54px;
  height: 54px;
  border-radius: 12px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.sales-analytics__tooltip-summary {
  flex: 1;
  min-width: 0;
}

.sales-analytics__tooltip-title {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: #f1f5f9;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sales-analytics__tooltip-date {
  display: block;
  font-size: 0.72rem;
  color: rgba(226, 232, 240, 0.85);
}

.sales-analytics__tooltip-price {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  color: #34d399;
  margin-top: 0.15rem;
}

.sales-analytics__tooltip-subtext {
  display: block;
  font-size: 0.72rem;
  color: rgba(226, 232, 240, 0.8);
}

.sales-analytics__tooltip-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  margin: 0.6rem 0;
}

.sales-analytics__tooltip .sales-analytics__trait-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  margin: 0.4rem 0;
}

.sales-analytics__tooltip .sales-analytics__trait-badge {
  font-size: 0.7rem;
  background: rgba(15, 23, 42, 0.4);
  border-radius: 999px;
  padding: 0.2rem 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(248, 250, 252, 0.85);
}

.sales-analytics__tooltip-metrics {
  list-style: none;
  padding: 0;
  margin: 0.4rem 0 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.35rem 0.5rem;
}

.sales-analytics__metric {
  display: flex;
  flex-direction: column;
  font-size: 0.72rem;
  color: rgba(226, 232, 240, 0.7);
}

.sales-analytics__metric strong {
  font-size: 0.85rem;
  color: #f8fafc;
}

@media (max-width: 960px) {
  .sales-analytics__filters {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  }
}

@media (max-width: 768px) {
  .sales-analytics {
    padding: 1rem;
  }
  .sales-analytics__chart-wrapper canvas {
    height: 260px !important;
  }
  .sales-analytics__header {
    flex-direction: column;
  }
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding: 1rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(15, 24, 46, 0.06);
  box-shadow: 0 10px 30px rgba(15, 24, 46, 0.04);
}

.filters-multi-row {
  flex-direction: column;
  gap: 0.5rem;
}

.filters-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.filters-row .form-control {
  min-width: 120px;
  flex: 1;
  max-width: 180px;
}

.filters-row .form-control-sm {
  min-width: 80px;
  max-width: 100px;
  flex: 0;
}

.filter-checkbox {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: #fff;
  font-size: 0.85rem;
  cursor: pointer;
  white-space: nowrap;
}

.filter-checkbox input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--brand-primary);
}

@media (max-width: 768px) {
  .filters-row {
    flex-direction: column;
    align-items: stretch;
  }
  .filters-row .form-control,
  .filters-row .form-control-sm {
    max-width: 100%;
    min-width: 100%;
  }
}

.filters .form-control {
  min-width: 160px;
  padding: 0.55rem 0.8rem;
  border-radius: 8px;
  border: 1px solid var(--border);
}

.filters .form-control-sm {
  min-width: 90px;
  max-width: 110px;
}

.input-with-action {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.input-with-action .form-control {
  flex: 1;
}

.auction-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}

/* Dynamic column classes */
.auction-grid--cols-1 { grid-template-columns: 1fr; }
.auction-grid--cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.auction-grid--cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.auction-grid--cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.auction-grid--cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.auction-grid--cols-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }

@media (max-width: 1100px) {
  .auction-grid:not([class*="--cols-"]) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .auction-grid--cols-4,
  .auction-grid--cols-5,
  .auction-grid--cols-6 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .auction-grid,
  .auction-grid[class*="--cols-"] {
    grid-template-columns: 1fr !important;
  }
  .grid-controls {
    display: none !important;
  }
}

/* Grid controls */
.grid-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  justify-content: flex-end;
  margin-bottom: 0.75rem;
}

.grid-controls-label {
  font-size: 0.8rem;
  color: #fff;
  margin-right: 0.5rem;
}

.grid-controls-btn {
  width: 32px;
  height: 32px;
  border: 1px solid var(--border, #e5e7eb);
  border-radius: 6px;
  background: var(--surface, #fff);
  color: var(--text, #111);
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.grid-controls-btn:hover {
  background: var(--primary, #4f46e5);
  color: #fff;
  border-color: var(--primary, #4f46e5);
}

.grid-controls-btn:active {
  transform: scale(0.95);
}

.grid-controls-count {
  min-width: 24px;
  text-align: center;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text, #111);
}

/* Auction card animations */
.auction-card--moving {
  transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ========== PHASE-BASED REORDER ANIMATION ========== */

/* All affected cards flash red during reorder */
.auction-card--affected {
  animation: affected-flash 2s ease-out;
}

@keyframes affected-flash {
  0%, 100% {
    box-shadow: 0 18px 45px rgba(15, 24, 46, 0.08);
    border-color: rgba(15, 24, 46, 0.08);
  }
  15%, 40%, 65%, 90% {
    box-shadow: 0 0 35px 12px rgba(239, 68, 68, 0.8), 0 18px 45px rgba(15, 24, 46, 0.08);
    border-color: rgba(239, 68, 68, 0.95);
  }
  25%, 50%, 75% {
    box-shadow: 0 0 20px 8px rgba(239, 68, 68, 0.5), 0 18px 45px rgba(15, 24, 46, 0.08);
    border-color: rgba(239, 68, 68, 0.6);
  }
}

/* PHASE 1: Lifting - card rises up with dramatic effect */
.auction-card--lifting {
  z-index: 500 !important;
  position: relative;
  animation: lift-up 0.5s ease-out forwards;
}

@keyframes lift-up {
  0% {
    transform: scale(1) translateY(0);
    box-shadow: 0 18px 45px rgba(15, 24, 46, 0.08);
  }
  50% {
    transform: scale(1.08) translateY(-40px);
    box-shadow: 0 50px 80px rgba(239, 68, 68, 0.4), 0 0 40px 12px rgba(239, 68, 68, 0.35);
  }
  100% {
    transform: scale(1.15) translateY(-80px);
    box-shadow: 0 80px 120px rgba(239, 68, 68, 0.6), 0 0 60px 20px rgba(239, 68, 68, 0.5);
  }
}

/* PHASE 2: Flying - card moves horizontally while elevated */
.auction-card--flying {
  z-index: 500 !important;
  position: relative;
  transform: scale(1.15) translateY(-80px);
  box-shadow: 0 80px 120px rgba(239, 68, 68, 0.6), 0 0 60px 20px rgba(239, 68, 68, 0.5);
  animation: fly-horizontal 0.9s cubic-bezier(0.25, 0.1, 0.25, 1) forwards;
}

@keyframes fly-horizontal {
  0% {
    transform: scale(1.15) translateY(-80px) translateX(0);
    box-shadow: 0 80px 120px rgba(239, 68, 68, 0.6), 0 0 60px 20px rgba(239, 68, 68, 0.5);
  }
  40% {
    transform: scale(1.18) translateY(-90px) translateX(calc(var(--move-x, 100px) * 0.4));
    box-shadow: 0 100px 150px rgba(239, 68, 68, 0.7), 0 0 80px 25px rgba(239, 68, 68, 0.6);
  }
  100% {
    transform: scale(1.15) translateY(-80px) translateX(var(--move-x, 100px));
    box-shadow: 0 80px 120px rgba(239, 68, 68, 0.5), 0 0 60px 18px rgba(239, 68, 68, 0.4);
  }
}

/* PHASE 3: Landing - card descends smoothly to new position */
.auction-card--landing {
  z-index: 500 !important;
  position: relative;
  transform: scale(1.15) translateY(-80px) translateX(var(--move-x, 100px));
  animation: land-down 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes land-down {
  0% {
    transform: scale(1.15) translateY(-80px) translateX(var(--move-x, 100px));
    box-shadow: 0 80px 120px rgba(239, 68, 68, 0.5), 0 0 60px 18px rgba(239, 68, 68, 0.4);
  }
  40% {
    transform: scale(1.08) translateY(-20px) translateX(var(--move-x, 100px));
    box-shadow: 0 30px 60px rgba(239, 68, 68, 0.25), 0 0 30px 10px rgba(239, 68, 68, 0.2);
  }
  70% {
    transform: scale(1.02) translateY(5px) translateX(var(--move-x, 100px));
    box-shadow: 0 15px 35px rgba(15, 24, 46, 0.1), 0 0 15px 5px rgba(239, 68, 68, 0.1);
  }
  100% {
    transform: scale(1) translateY(0) translateX(var(--move-x, 100px));
    box-shadow: 0 18px 45px rgba(15, 24, 46, 0.08);
  }
}

/* Other cards slide smoothly to make room - starts 200ms after flying card */
.auction-card--sliding {
  transition: transform 0.7s cubic-bezier(0.25, 0.1, 0.25, 1);
  transform: translateX(var(--slide-x, 0)) translateY(var(--slide-y, 0));
}


.auction-card--sniped {
  animation: snipe-pulse 2s ease-out;
}

@keyframes snipe-pulse {
  0%, 100% {
    box-shadow: 0 18px 45px rgba(15, 24, 46, 0.08);
  }
  10%, 30%, 50% {
    box-shadow: 0 0 20px 5px rgba(239, 68, 68, 0.5), 0 18px 45px rgba(15, 24, 46, 0.08);
  }
  20%, 40% {
    box-shadow: 0 18px 45px rgba(15, 24, 46, 0.08);
  }
}

/* New bid flash effect */
.auction-card--new-bid {
  animation: new-bid-flash 3s ease-in-out;
}

@keyframes new-bid-flash {
  0%, 100% {
    box-shadow: 0 18px 45px rgba(15, 24, 46, 0.08);
    transform: scale(1);
  }
  10%, 30%, 50%, 70% {
    box-shadow: 0 0 35px 12px rgba(250, 204, 21, 0.8), 0 18px 45px rgba(15, 24, 46, 0.08);
    transform: scale(1.02);
  }
  20%, 40%, 60%, 80% {
    box-shadow: 0 0 15px 5px rgba(250, 204, 21, 0.4), 0 18px 45px rgba(15, 24, 46, 0.08);
    transform: scale(1);
  }
}

.auction-card {
  background: #ffffff;
  border: 1px solid rgba(15, 24, 46, 0.08);
  border-radius: 18px;
  box-shadow: 0 18px 45px rgba(15, 24, 46, 0.08);
  display: flex;
  flex-direction: column;
  overflow: visible;
  min-height: 430px;
  position: relative;
}

.auction-card-media {
  position: relative;
  aspect-ratio: 4 / 5;
  background: #f3f4f6;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.auction-card-media > .auction-card-user-state {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  z-index: 3;
}

/* Ensure bundle cards have same banner position */
.auction-card--bundle .auction-card-media > .auction-card-user-state {
  top: 50%;
  transform: translateY(-50%);
}

.auction-card-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0.4rem 0.8rem 0.55rem;
  background: linear-gradient(180deg, rgba(7, 11, 26, 0) 0%, rgba(5, 8, 20, 0.9) 65%, rgba(5, 8, 20, 0.95) 100%);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.auction-card-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: radial-gradient(circle at top, rgba(255, 255, 255, 0.8), transparent);
}

.auction-card-top-meta {
  padding: 0.6rem 1rem 0.3rem;
  border-bottom: 1px solid var(--border);
}

.top-meta-line {
  display: flex;
  justify-content: space-between;
  gap: 0.6rem;
  font-weight: 600;
}

.top-meta-line.secondary {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-top: 0.2rem;
  gap: 0.4rem;
}

.top-meta-name {
  font-size: 1rem;
}

.top-meta-number {
  font-family: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.auction-card-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.auction-pill {
  position: absolute;
  top: 14px;
  right: 14px;
  background: #f97316;
  color: #fff;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.auction-card-body {
  padding: 0.75rem 1rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  flex: 1;
}

.auction-card-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  width: 100%;
  justify-content: center;
}

.auction-reserve-pill {
  margin-top: 0.4rem;
  align-self: flex-start;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 600;
}

.auction-reserve-pill--pending {
  background: rgba(15, 24, 46, 0.78);
  color: #fff;
}

.auction-reserve-pill--met {
  background: rgba(16, 185, 129, 0.85);
  color: #fff;
  box-shadow: 0 6px 14px rgba(16, 185, 129, 0.35);
}

.auction-card-status-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.6rem 1rem 0.25rem;
}

.auction-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.15rem 0.65rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.auction-status-pill--running {
  background: rgba(80, 88, 230, 0.1);
  color: var(--brand-primary);
}

.auction-status-pill--ending {
  background: rgba(245, 158, 11, 0.15);
  color: var(--warning);
}

.auction-status-pill--upcoming {
  background: rgba(15, 24, 46, 0.08);
  color: var(--text);
}

.auction-status-pill--ended {
  background: rgba(220, 38, 38, 0.12);
  color: var(--danger);
}

.auction-card-countdown {
  margin-left: auto;
  font-family: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  background: linear-gradient(135deg, #111b3a, #2b4dff);
  color: #fff;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  box-shadow: 0 4px 12px rgba(18, 24, 58, 0.25);
}

.auction-card-countdown-group {
  margin-left: auto;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.2rem;
}

.auction-card-end-time {
  font-size: 0.75rem;
  color: #000;
}

.auction-attr-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  background: rgba(3, 6, 18, 0.85);
  color: #f8fafc;
  text-transform: uppercase;
  flex: 1 1 auto;
  min-width: fit-content;
  justify-content: space-between;
  white-space: nowrap;
}

.auction-attr-pill strong {
  font-size: 0.85rem;
  color: #fff;
}

.auction-attr-pill--ep {
  background: #111c44;
  color: #93c5fd;
}

.auction-attr-pill--ep strong {
  color: #bfdbfe;
}

.auction-attr-pill--stones {
  background: #050b16;
  color: #22d3ee;
}

.auction-attr-pill--stones strong {
  color: #67e8f9;
}

.cta-hint {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.76rem;
}

.auction-accordion {
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-top: 0.45rem;
  padding: 0.45rem 0.65rem;
  background: rgba(249, 250, 255, 0.7);
}

.auction-accordion summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9rem;
}

.auction-accordion summary::-webkit-details-marker {
  display: none;
}

.auction-accordion summary::after {
  content: "+";
  font-weight: 700;
  color: var(--text-muted);
}

.auction-accordion[open] summary::after {
  content: "-";
}

.accordion-meta {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.auction-accordion-body {
  margin-top: 0.35rem;
  padding-top: 0.4rem;
  border-top: 1px dashed rgba(15, 24, 46, 0.15);
}

.cta-breakdown {
  list-style: none;
  margin: 0.4rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.cta-breakdown li {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
}

.cta-breakdown li span {
  color: var(--text-muted);
}

.cta-breakdown li strong {
  font-size: 0.9rem;
}

.cta-breakdown li.total {
  border-top: 1px solid rgba(15, 24, 46, 0.1);
  padding-top: 0.35rem;
  margin-top: 0.15rem;
}

.auction-history-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.auction-history-list li {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
}

.auction-history-list li span {
  font-family: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.auction-history-list li .bid-guez-points {
  color: #7c3aed;
  font-weight: 600;
  font-size: 0.7rem;
}

.history-empty {
  margin: 0;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.connect-wallet-page {
  min-height: 40vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 0;
}

.connect-wallet-card {
  max-width: 480px;
  text-align: center;
  background: #fff;
  border-radius: 20px;
  border: 1px solid var(--border);
  padding: 2rem;
  box-shadow: 0 30px 70px rgba(15, 24, 46, 0.12);
}

.connect-wallet-card h1 {
  margin: 0.5rem 0 1rem;
}

.connect-wallet-card ul {
  text-align: left;
  margin: 1rem 0 1.5rem;
}

.connect-wallet-icon {
  font-size: 2rem;
}

.auction-card-winner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  border: 1px dashed rgba(80, 88, 230, 0.2);
  border-radius: 10px;
  padding: 0.4rem 0.6rem;
}

.auction-card-winner span {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.7rem;
  color: var(--text-muted);
}

.auction-card-winner strong {
  color: var(--text-primary, #1a1a2e);
  font-weight: 600;
}

/* Bundle cards: light text on dark background */
.auction-card--bundle .auction-card-winner span {
  color: rgba(255, 255, 255, 0.7);
}

.auction-card--bundle .auction-card-winner strong {
  color: #e0e7ff;
}

.auction-card-price-panel {
  text-align: center;
  margin-top: 0.35rem;
}

.price-label {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.auction-card-price {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--brand-primary);
  margin-top: 0.25rem;
}

.auction-card-footer {
  padding: 0 1rem 0.8rem;
}

.auction-card-button {
  display: block;
  width: 100%;
  text-align: center;
  padding: 0.55rem;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--brand-primary), #46a1ff);
  color: #fff;
  font-weight: 600;
  font-size: 0.85rem;
}

.auction-card-button.disabled {
  background: rgba(15, 24, 46, 0.08);
  color: var(--text-muted);
  pointer-events: none;
}

.auction-card-button.ghost {
  margin-top: 0.5rem;
  background: transparent;
  color: var(--brand-primary);
  border: 1px solid rgba(80, 88, 230, 0.3);
}

/* Auction state indicators */
.auction-card-user-state {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  gap: 0.35rem;
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.45rem 0.85rem;
  border-radius: 0;
  background: linear-gradient(135deg, rgba(9, 13, 32, 0.95), rgba(32, 40, 99, 0.95));
  color: #fff;
  box-shadow: 0 0 18px rgba(35, 74, 255, 0.45);
  animation: bannerHalo 2.2s ease-in-out infinite;
}

.auction-card-user-state--leading {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.95), rgba(5, 150, 105, 0.95));
  color: #fff;
  font-weight: 800;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.6), 0 0 40px rgba(16, 185, 129, 0.3);
  animation: leadingBlink 1.5s ease-in-out infinite;
}

@keyframes leadingBlink {
  0%, 100% {
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.6), 0 0 40px rgba(16, 185, 129, 0.3);
    transform: scale(1);
    opacity: 1;
  }
  25%, 75% {
    box-shadow: 0 0 35px rgba(16, 185, 129, 1), 0 0 70px rgba(16, 185, 129, 0.7);
    transform: scale(1.05);
    opacity: 1;
  }
  50% {
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.4), 0 0 30px rgba(16, 185, 129, 0.2);
    transform: scale(0.98);
    opacity: 0.85;
  }
}

.auction-card-user-state--outbid {
  background: rgba(220, 38, 38, 0.85);
  color: #fff;
  animation: pillPulse 1.5s infinite;
}

.auction-card-user-state--won {
  background: rgba(80, 88, 230, 0.85);
  color: #fff;
}

.auction-card-user-state--lost {
  background: rgba(100, 100, 120, 0.85);
  color: #fff;
}

.auction-card.auction-state-leading,
.auction-visual-card.auction-state-leading {
  border-color: rgba(18, 185, 129, 0.5);
  box-shadow: 0 20px 40px rgba(18, 185, 129, 0.18);
}

/* Delivery status banners */
.auction-card-delivery-banner {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1rem;
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  z-index: 4;
  backdrop-filter: blur(8px);
  animation: slideInUp 0.4s ease-out;
}

.auction-card-delivery-banner--delivered {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.95), rgba(16, 185, 129, 0.95));
  color: #ffffff;
  box-shadow: 0 -4px 12px rgba(34, 197, 94, 0.35);
}

.auction-card-delivery-banner--pending {
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.92), rgba(245, 158, 11, 0.92));
  color: #ffffff;
  box-shadow: 0 -4px 12px rgba(251, 191, 36, 0.3);
  animation: slideInUp 0.4s ease-out, pulseGlow 2s infinite;
}

.auction-card-delivery-banner--reserve-not-met {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.92), rgba(185, 28, 28, 0.92));
  color: #ffffff;
  box-shadow: 0 -4px 12px rgba(239, 68, 68, 0.3);
}

.auction-card-delivery-banner--no-bidder {
  background: linear-gradient(135deg, rgba(107, 114, 128, 0.92), rgba(75, 85, 99, 0.92));
  color: #ffffff;
  box-shadow: 0 -4px 12px rgba(107, 114, 128, 0.3);
}

@keyframes slideInUp {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes fadeInScale {
  from {
    transform: translate(-50%, -50%) scale(0.8);
    opacity: 0;
  }
  to {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
  }
}

@keyframes fadeInBanner {
  from {
    transform: translateY(-50%) scale(0.95);
    opacity: 0;
  }
  to {
    transform: translateY(-50%) scale(1);
    opacity: 1;
  }
}

@keyframes pulseGlow {
  0%, 100% {
    box-shadow: 0 -4px 12px rgba(251, 191, 36, 0.3);
  }
  50% {
    box-shadow: 0 -4px 20px rgba(251, 191, 36, 0.5);
  }
}

@keyframes pulseGlowCenter {
  0%, 100% {
    box-shadow: 0 4px 12px rgba(251, 191, 36, 0.3);
  }
  50% {
    box-shadow: 0 4px 20px rgba(251, 191, 36, 0.5);
  }
}

.auction-card.auction-state-outbid,
.auction-visual-card.auction-state-outbid {
  border-color: rgba(220, 38, 38, 0.4);
  box-shadow: 0 20px 40px rgba(220, 38, 38, 0.18);
}

.auction-card.auction-state-ending-soon .auction-card-countdown,
.auction-visual-card.auction-state-ending-soon .chip-timer {
  animation: pulse-warning 1.6s infinite;
}

.auction-card.auction-state-ended,
.auction-visual-card.auction-state-ended {
  opacity: 0.65;
  filter: grayscale(0.05);
}

.countdown-ending-soon {
  background: rgba(255, 193, 7, 0.15) !important;
  color: #ff9800 !important;
}

.countdown-ended {
  background: rgba(220, 53, 69, 0.12) !important;
  color: #dc3545 !important;
}

@keyframes pulse-warning {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 193, 7, 0.4);
  }
  70% {
    box-shadow: 0 0 0 12px rgba(255, 193, 7, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 193, 7, 0);
  }
}

@keyframes bannerHalo {
  0% {
    box-shadow: 0 0 12px rgba(63, 120, 255, 0.45);
    opacity: 0.92;
  }
  50% {
    box-shadow: 0 0 25px rgba(63, 120, 255, 0.75);
    opacity: 1;
  }
  100% {
    box-shadow: 0 0 12px rgba(63, 120, 255, 0.45);
    opacity: 0.92;
  }
}

@keyframes pillPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.4);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(220, 38, 38, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(220, 38, 38, 0);
  }
}

/* Bid Form Disabled State */
.bid-form-disabled {
  opacity: 0.5;
  pointer-events: none;
  position: relative;
}

.bid-form-disabled::after {
  content: "Cette enchère est terminée";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 1rem 2rem;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 500;
  z-index: 100;
  white-space: nowrap;
}

.bid-form-disabled input,
.bid-form-disabled button {
  cursor: not-allowed !important;
  pointer-events: none !important;
}

.auction-soon {
  opacity: 0.9;
}

.status-badge {
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.status-available {
  background: rgba(18, 185, 129, 0.15);
  color: var(--accent);
}

.status-pending {
  background: rgba(245, 158, 11, 0.15);
  color: var(--warning);
}

.status-sold {
  background: rgba(220, 38, 38, 0.15);
  color: var(--danger);
}

.status-reserve-failed {
  background: rgba(251, 146, 60, 0.2);
  color: #fb923c;
}

.status-completed {
  background: rgba(34, 197, 94, 0.15);
  color: #22c55e;
}

.status-running {
  background: rgba(59, 130, 246, 0.15);
  color: #3b82f6;
}

.status-cancelled {
  background: rgba(107, 114, 128, 0.15);
  color: #374151;
}

.pending-badge {
  padding: 0.8rem;
  border-radius: 10px;
  font-weight: 600;
  text-align: center;
  background: rgba(245, 158, 11, 0.15);
  color: var(--warning);
  border: 1px dashed rgba(245, 158, 11, 0.5);
}

/* ============================================================================
   Modals
   ========================================================================= */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(14, 20, 35, 0.8);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  z-index: 50;
}

.modal.active {
  display: flex;
}

.modal-content {
  background: var(--surface);
  width: min(500px, 100%);
  border-radius: 12px;
  padding: 1.5rem;
  position: relative;
  border: 1px solid var(--border);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
}

.modal-content .close {
  position: absolute;
  top: 0.75rem;
  right: 1rem;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-muted);
}

#modal-status {
  margin-top: 1rem;
  border-radius: 8px;
  padding: 0.75rem;
  font-weight: 600;
  text-align: center;
}

.bid-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 80;
}

.bid-modal.active {
  display: flex;
}

.bid-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(8, 10, 20, 0.8);
  backdrop-filter: blur(4px);
}

.bid-modal-panel {
  position: relative;
  width: min(640px, calc(100% - 2rem));
  max-height: 90vh;
  overflow: auto;
  background: #fff;
  border-radius: 24px;
  border: 1px solid var(--border);
  padding: 2rem;
  box-shadow: 0 40px 80px rgba(15, 24, 46, 0.2);
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

@media (max-width: 640px) {
  .bid-modal-panel {
    padding: 1.25rem;
  }
}

.bid-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: rgba(15, 24, 46, 0.08);
  font-size: 1.2rem;
  cursor: pointer;
}

.bid-modal-header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.bid-modal-header img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 16px;
  border: 1px solid var(--border);
}

.bid-modal-body {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.bid-modal-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1rem;
  background: rgba(80, 88, 230, 0.03);
}

.bid-modal-stats span {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.bid-modal-stats strong {
  font-size: 1.1rem;
}

.bid-modal-input-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.bid-modal-input-row input {
  flex: 1;
}

.bid-modal-fill-btn {
  border-radius: 10px;
  padding: 0.4rem 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: 1px solid rgba(80, 88, 230, 0.35);
  background: rgba(80, 88, 230, 0.1);
  color: var(--brand-primary);
}

.bid-modal-fill-btn:hover {
  background: rgba(80, 88, 230, 0.2);
}

.bid-modal-actions {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  justify-content: flex-end;
  margin-top: 1rem;
}

.bid-modal-traits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 0.75rem;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(15, 24, 46, 0.03);
}

.bid-modal-traits-grid span {
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  font-size: 0.65rem;
}

.bid-modal-traits-grid strong {
  font-size: 0.95rem;
}

.bid-modal-confirm {
  border: 1px solid rgba(220, 38, 38, 0.2);
  border-radius: 14px;
  padding: 1rem;
  background: rgba(220, 38, 38, 0.05);
  margin-top: 1rem;
}

.bid-modal-summary {
  margin-bottom: 0.75rem;
}

.confirm-check {
  display: flex;
  gap: 0.35rem;
  align-items: center;
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}

#modal-status.success {
  background: rgba(18, 185, 129, 0.15);
  color: var(--accent);
}

#modal-status.error {
  background: rgba(220, 38, 38, 0.15);
  color: var(--danger);
}

#modal-status.pending {
  background: rgba(245, 158, 11, 0.15);
  color: var(--warning);
}

/* ============================================================================
   Links + helpers
   ========================================================================= */
.link-primary {
  color: var(--brand-primary);
  font-weight: 600;
}

.link-primary:hover {
  text-decoration: underline;
}

.link-back {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--brand-primary);
}

.link-back:hover {
  text-decoration: underline;
}

.btn-sm {
  padding: 0.3rem 0.85rem;
  font-size: 0.85rem;
}

/* ============================================================================
   Admin specific components
   ========================================================================= */
.admin-auctions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}

.admin-auction-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  box-shadow: 0 10px 18px rgba(15, 24, 46, 0.08);
}

.admin-card-image-wrapper {
  border-radius: 10px;
  overflow: hidden;
  background: #f3f4f6;
}

.admin-card-body {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.admin-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 0.75rem;
}

.admin-info-item {
  background: var(--muted-surface);
  padding: 0.75rem;
  border-radius: 8px;
  border: 1px dashed var(--border);
}

.admin-info-label {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.admin-info-value {
  font-weight: 600;
}

.nft-preview-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.25rem;
  box-shadow: 0 10px 20px rgba(15, 24, 46, 0.08);
}

.nft-preview-card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.nft-preview-image-wrapper {
  width: 100%;
  max-height: 220px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #f3f4f6;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
}

.nft-preview-image {
  max-height: 200px;
  width: auto;
  object-fit: contain;
}

.nft-preview-name {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
}

.nft-preview-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.5rem;
}

.nft-preview-info-item {
  background: var(--muted-surface);
  border-radius: 8px;
  border: 1px solid var(--border);
  padding: 0.55rem;
}

.nft-preview-info-label {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 0.2rem;
}

.nft-preview-info-value {
  font-weight: 600;
  word-break: break-word;
}

.nft-preview-info-value.mono {
  font-family: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 0.85rem;
}

.nft-preview-mint {
  margin-top: 0.75rem;
  font-size: 0.85rem;
  word-break: break-all;
  border-top: 1px solid var(--border);
  padding-top: 0.75rem;
}

.nft-preview-mint-label {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.nft-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.25rem;
  margin-top: 1rem;
}

.nft-gallery-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 8px 20px rgba(15, 24, 46, 0.08);
}

.nft-gallery-image-wrapper {
  position: relative;
  background: #f3f4f6;
  padding: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 180px;
}

.nft-gallery-image {
  max-height: 160px;
  width: auto;
  object-fit: contain;
}

.nft-rarity-badge-gallery {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.nft-rarity-badge-gallery.rarity-common { background: #9ca3af; }
.nft-rarity-badge-gallery.rarity-uncommon { background: #10b981; }
.nft-rarity-badge-gallery.rarity-rare { background: #3b82f6; }
.nft-rarity-badge-gallery.rarity-epic { background: #a855f7; }
.nft-rarity-badge-gallery.rarity-legendary { background: #f59e0b; }
.nft-rarity-badge-gallery.rarity-mythic { background: #fbbf24; }

.nft-gallery-card-body {
  padding: 1rem 1.25rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.nft-gallery-card-title {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.3;
}

.nft-gallery-traits {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.85rem;
}

.gallery-trait-row {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
}

.gallery-trait-label {
  color: var(--text-muted);
  font-weight: 500;
}

.gallery-trait-value {
  font-weight: 600;
  text-align: right;
  max-width: 140px;
}

.gallery-trait-mono {
  font-family: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 0.8rem;
}

.gallery-trait-power {
  color: var(--brand-primary);
}

.gallery-trait-foil {
  color: #f59e0b;
}

.nft-gallery-mint-address {
  font-family: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 0.8rem;
  background: var(--muted-surface);
  padding: 0.45rem 0.6rem;
  border-radius: 6px;
  border: 1px dashed var(--border);
}

.wallet-page-grid {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.wallet-primary {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.wallet-secondary {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.wallet-balance-chip {
  width: 100%;
}

.wallet-hero {
  background: #6366f1;
  border-radius: 20px;
  border: none;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  box-shadow: 0 20px 50px rgba(99, 102, 241, 0.3);
}

.wallet-hero-info {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.wallet-hero-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: none;
}

.wallet-hero-label {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.78rem;
  margin: 0;
}

.wallet-hero-title {
  margin: 0.2rem 0 0;
  font-size: clamp(1.8rem, 4vw, 2.3rem);
  color: #fff;
}

.wallet-hero-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1.25rem;
}

.wallet-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.wallet-action-btn {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.6rem 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.15);
  box-shadow: none;
  text-align: center;
  font-weight: 600;
  color: #fff;
}

.wallet-action-btn img {
  height: 42px;
  width: auto;
  display: block;
}

.wallet-action-caption {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.8);
}

.wallet-action-disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
  filter: grayscale(50%);
}

.wallet-refresh-btn:disabled {
  opacity: 0.6;
  cursor: wait;
}

/* New wallet action buttons */
.btn-wallet-deposit,
.btn-wallet-withdraw,
.btn-wallet-refresh {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.25rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn-wallet-deposit {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff;
}
.btn-wallet-deposit:hover {
  background: linear-gradient(135deg, #059669, #047857);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.btn-wallet-withdraw {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #fff;
}
.btn-wallet-withdraw:hover {
  background: linear-gradient(135deg, #d97706, #b45309);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.btn-wallet-refresh {
  background: linear-gradient(135deg, #6366f1, #4f46e5);
  color: #fff;
}
.btn-wallet-refresh:hover {
  background: linear-gradient(135deg, #4f46e5, #4338ca);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.btn-wallet-deposit.btn-disabled,
.btn-wallet-withdraw.btn-disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
  filter: grayscale(40%);
}

.btn-wallet-refresh:disabled {
  opacity: 0.6;
  cursor: wait;
}

.wallet-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 1.25rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  color: #1f2937;
}

.wallet-card-body {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.wallet-quick-actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.wallet-refresh-btn:disabled {
  opacity: 0.6;
  cursor: wait;
}

.wallet-address {
  flex: 1;
}

.wallet-address-label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #374151;
  margin-bottom: 0.3rem;
}

.wallet-address-value {
  font-family: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 1rem;
  line-height: 1.4;
  word-break: break-all;
  background: #f9fafb;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  padding: 0.6rem 0.75rem;
  color: #1f2937;
}

.wallet-copy-btn {
  white-space: nowrap;
}

.wallet-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.wallet-stat-card {
  border-radius: 12px;
  padding: 1rem;
  border: 1px solid #e5e7eb;
  background: #ffffff;
}

.wallet-stat-usable {
  border-left: 4px solid var(--accent);
}

.wallet-stat-locked {
  border-left: 4px solid var(--warning);
}

.wallet-stat-total {
  border-left: 4px solid var(--brand-primary);
}

.stat-label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.stat-value {
  margin-top: 0.35rem;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text);
}

.stat-unit {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-left: 0.3rem;
}

/* Wallet Hero - all text white */
.wallet-hero .stat-label {
  color: rgba(255, 255, 255, 0.8);
}

.wallet-hero .stat-value {
  color: #fff;
}

.wallet-hero .stat-unit {
  color: rgba(255, 255, 255, 0.8);
}

.wallet-hero .stat-guez .stat-label {
  color: rgba(255, 255, 255, 0.8);
}

.wallet-hero .stat-value-guez {
  color: #fcd34d;
}

.wallet-hero .guez-link {
  color: inherit;
  text-decoration: none;
}

.wallet-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
}

.wallet-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  white-space: normal;
  text-align: center;
}

.wallet-action-icon {
  font-size: 1.5rem;
}

.wallet-preferences-form .preferences-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.wallet-values-card {
  background: #6366f1;
  border-radius: 20px;
  padding: 1.5rem;
  color: #fff;
  border: none;
  box-shadow: 0 20px 50px rgba(99, 102, 241, 0.3);
}

.wallet-values-header h3 {
  margin: 0.4rem 0 0.5rem;
  font-size: 1.35rem;
}

.wallet-values-header p {
  margin: 0;
  color: rgba(255, 255, 255, 0.8);
}

.wallet-values-kicker {
  margin: 0;
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.85;
}

.wallet-values-card .form-label {
  color: rgba(255, 255, 255, 0.85);
}

.wallet-values-card .form-control {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff;
}

.wallet-values-card .form-control:focus {
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2);
}

.wallet-values-card .form-text,
.wallet-values-card .text-muted,
.wallet-values-card small {
  color: rgba(0, 0, 0, 0.7) !important;
}

.wallet-values-card .form-control::placeholder {
  color: rgba(0, 0, 0, 0.5);
}

.wallet-history-card .table {
  color: #1f2937;
  background: #ffffff;
}

.wallet-history-card .table thead {
  background: #e2e8f0;
  color: #111827;
}

.wallet-history-card .table th,
.wallet-history-card .table td,
.wallet-history-card .table-card-header span,
.wallet-history-card .empty-state-title,
.wallet-history-card .empty-state-text {
  color: #1f2937;
}

.wallet-history-card .table thead th {
  font-weight: 700;
}

.wallet-history-card .table tbody tr + tr {
  border-top: 1px solid #e5e7eb;
}

.wallet-history-card .table tbody tr:nth-child(even) {
  background: #f8fafc;
}

.wallet-history-card .text-muted,
.wallet-history-card .table td .text-muted,
.wallet-history-card .table td small.text-muted {
  color: #4b5563;
}

.wallet-history-card .empty-state-text {
  opacity: 0.85;
}

/* Account pages: keep table text readable even with quickwins styles loaded. */
.account-page .table th,
.account-page .table td {
  color: #1f2937 !important;
}

.account-page .table thead th {
  background-color: #e2e8f0 !important;
  color: #111827 !important;
}

.wallet-history-scroll {
  max-height: 320px;
  overflow-y: auto;
}

.wallet-history-scroll .table {
  margin-bottom: 0;
}

.wallet-delivery-input {
  width: 100%;
  min-width: 520px;
}

.wallet-delivery-placeholder {
  display: block;
  font-family: "JetBrains Mono", "Courier New", monospace;
  word-break: break-all;
  margin-top: 0.25rem;
}

@media (max-width: 720px) {
  .wallet-delivery-input {
    min-width: 0;
    font-size: 0.8rem;
  }
}

.wallet-values-submit {
  margin-top: 1.25rem;
  width: 100%;
}

.wallet-history-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.25rem;
}

.wallet-history-card {
  height: 100%;
}

@media (max-width: 640px) {
  .navbar-container {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .filters {
    flex-direction: column;
    align-items: stretch;
  }

  .filters .form-control,
  .filters .btn,
  .filters button[type="submit"] {
    width: 100%;
    min-width: 0;
  }

  .auction-grid {
    grid-template-columns: 1fr;
  }

  .auction-card {
    min-height: auto;
  }

  .auction-card-status-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .auction-card-countdown-group {
    margin-left: 0;
    align-items: flex-start;
  }

  .auction-card-countdown {
    margin-left: 0;
  }

  .wallet-page-grid {
    gap: 1rem;
  }

  .wallet-hero-info {
    flex-direction: column;
    align-items: flex-start;
  }

  .wallet-hero-actions {
    width: 100%;
    justify-content: space-between;
  }

  .wallet-action-btn {
    flex: 1;
  }

  .wallet-hero-metrics {
    grid-template-columns: 1fr;
  }

  .wallet-history-columns {
    grid-template-columns: 1fr;
  }
}

/* ============================================================================
   Auction detail layout
   ========================================================================= */
.auction-detail-screen {
  max-width: 1200px;
  margin: 2rem auto 4rem;
  padding: 0 1.25rem;
  display: grid;
  grid-template-columns: minmax(0, 420px) minmax(0, 1fr);
  gap: 2rem;
}

@media (max-width: 900px) {
  .auction-detail-screen {
    grid-template-columns: 1fr;
  }
}

.auction-visual {
  position: sticky;
  top: 6rem;
  align-self: start;
}

.auction-visual-card {
  background: linear-gradient(160deg, #0f172a, #1e1b4b);
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1rem;
  color: #fff;
  box-shadow: 0 40px 80px rgba(15, 23, 42, 0.35);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.auction-visual-image,
.auction-visual-placeholder {
  width: 100%;
  border-radius: 18px;
  min-height: 360px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.auction-visual-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  font-weight: 600;
  font-size: 1rem;
}

.link-back {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 0.85rem;
}

.nft-top-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.nft-top-badges {
  display: flex;
  gap: 0.35rem;
}

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

.card-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  font-weight: 600;
  font-size: 0.85rem;
}

.dot-live {
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  background: #f87171;
  box-shadow: 0 0 0 0 rgba(248, 113, 113, 0.6);
  animation: pulse-warning 1.5s infinite;
}

.visual-meta {
  display: none;
}

.visual-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
  margin-top: 1rem;
}

.visual-stat {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  padding: 0.65rem;
}

.visual-stat span {
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.7);
}

.visual-stat strong {
  display: block;
  font-size: 1.1rem;
  margin-top: 0.2rem;
}

.auction-panel {
  background: var(--surface);
  border-radius: 28px;
  border: 1px solid var(--border);
  box-shadow: 0 35px 70px rgba(15, 24, 46, 0.08);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.panel-header .eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--text-muted);
  font-size: 0.8rem;
  margin: 0;
}

.panel-title {
  margin: 0.35rem 0;
  font-size: clamp(1.75rem, 3vw, 2.3rem);
}

.panel-subtitle {
  color: var(--text-muted);
  font-size: 0.95rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
}

.panel-block {
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 1.25rem;
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.price-block {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.price-block-left .value {
  font-size: 2rem;
  font-weight: 700;
}

.price-block-meta {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.75rem;
}

.meta-line span {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.info-block {
  align-items: center;
  justify-content: space-between;
  flex-direction: row;
}

@media (max-width: 720px) {
  .info-block {
    flex-direction: column;
    align-items: flex-start;
  }
}

.bid-block .bid-input-row {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.bid-input {
  font-size: 1.5rem;
}

.bid-min {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
}

.info-item {
  border: 1px dashed var(--border);
  border-radius: 12px;
  padding: 0.9rem;
}

.info-item .label {
  color: var(--text-muted);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.info-item .value {
  font-weight: 600;
  font-size: 1.1rem;
}

.bids-timeline {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.bid-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 0.75rem;
  font-size: 0.95rem;
}

@media (max-width: 600px) {
  .bid-row {
    grid-template-columns: 1fr;
  }
}

.bid-wallet {
  font-weight: 600;
}

.bid-amount {
  color: var(--brand-primary);
  font-weight: 700;
}

.bid-time {
  color: var(--text-muted);
  font-size: 0.85rem;
  text-align: right;
}

.auction-panel .label {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.75rem;
  color: var(--text-muted);
}
.cta-preferences-card {
  background: linear-gradient(135deg, rgba(80, 88, 230, 0.08), rgba(18, 185, 129, 0.08));
}

.cta-preferences-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.cta-pref-info {
  background: rgba(255, 255, 255, 0.6);
  padding: 1rem;
  border-radius: 12px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.cta-pref-info h3 {
  margin: 0 0 0.3rem;
  font-size: 1rem;
}

.form-note {
  background: rgba(80, 88, 230, 0.08);
  border: 1px dashed rgba(80, 88, 230, 0.4);
  padding: 0.75rem 1rem;
  border-radius: 10px;
  font-size: 0.9rem;
  color: var(--text);
}

.form-hint {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.35rem;
}

.form-notice {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  padding: 0.9rem 1rem;
  border-radius: 12px;
  background: rgba(15, 24, 46, 0.04);
  border: 1px solid rgba(15, 24, 46, 0.08);
  font-size: 0.92rem;
}

.form-notice-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(15, 24, 46, 0.08);
}

.card-header {
  padding: 0.9rem 1.25rem;
  border-bottom: 1px solid var(--border);
  font-weight: 600;
  font-size: 1rem;
}

.card-body {
  padding: 1.25rem;
}

.table-card {
  overflow: hidden;
}

.table-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.table-card-body {
  padding: 0;
  overflow-x: auto;
}

.table-responsive {
  width: 100%;
  overflow-x: auto;
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.table th,
.table td {
  padding: 0.75rem 1rem;
  text-align: left;
}

.table thead {
  background: rgba(15, 23, 42, 0.04);
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.table tbody tr + tr {
  border-top: 1px solid var(--border);
}

.table tbody tr:nth-child(even) {
  background: rgba(15, 23, 42, 0.02);
}

.mono-small {
  font-family: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 0.8rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge-success {
  background: rgba(18, 185, 129, 0.15);
  color: var(--accent);
}

.badge-warning {
  background: rgba(245, 158, 11, 0.15);
  color: var(--warning);
}

.badge-info {
  background: rgba(80, 88, 230, 0.15);
  color: var(--brand-primary);
}

.badge-primary {
  background: rgba(80, 88, 230, 0.18);
  color: var(--brand-primary);
}

.badge-danger {
  background: rgba(220, 38, 38, 0.15);
  color: var(--danger);
}

.amount-positive {
  color: var(--accent);
}

.amount-negative {
  color: var(--danger);
}

.empty-state {
  padding: 2rem;
  text-align: center;
  color: var(--text-muted);
}

.empty-state-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.empty-state-title {
  font-size: 1rem;
  font-weight: 600;
}

.empty-state-text {
  font-size: 0.9rem;
}

/* ============================================================================
   Admin dashboard
   ========================================================================= */
.admin-dashboard {
  background: linear-gradient(180deg, #f7f9ff 0%, #f1f4ff 100%);
  border-radius: 24px;
  padding: 1.5rem;
  box-shadow: 0 25px 70px rgba(15, 24, 46, 0.08);
}

.admin-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
}

.admin-toolbar-label {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--text-muted);
  font-size: 0.78rem;
  margin: 0;
}

.admin-toolbar-title {
  margin: 0.2rem 0 0;
  font-size: clamp(1.8rem, 4vw, 2.4rem);
}

.admin-toolbar-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.admin-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.6rem 1.4rem;
  border-radius: 12px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.admin-btn.primary {
  background: linear-gradient(135deg, #4f46e5, #2563eb);
  color: #fff;
  box-shadow: 0 15px 40px rgba(79, 70, 229, 0.3);
}

.admin-btn.muted {
  background: rgba(15, 24, 46, 0.05);
  color: var(--text);
}

.admin-btn:hover {
  transform: translateY(-1px);
}

.admin-dashboard .bg-white {
  background: #ffffff;
  border: 1px solid rgba(15, 24, 46, 0.05);
  box-shadow: 0 10px 25px rgba(15, 24, 46, 0.08);
}

.admin-body {
  background: var(--muted-surface);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overflow-x: hidden;
}

.admin-body .direct-sales-admin {
  --text: #1f2937;
  --text-muted: #6b7280;
  --text-secondary: #6b7280;
  --accent-color: #3b82f6;
  --card-bg: #ffffff;
  --card-bg-secondary: #f9fafb;
  --surface: #f3f4f6;
  --surface-card: #ffffff;
  --border: rgba(0, 0, 0, 0.08);
  --border-color: rgba(0, 0, 0, 0.12);
  color: var(--text);
  background: var(--surface);
}

.admin-body .direct-sales-admin .text-muted {
  color: var(--text-secondary);
}

.admin-topbar {
  background: #050a1a;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 2rem;
  box-shadow: 0 10px 30px rgba(5, 10, 26, 0.4);
  position: sticky;
  top: 0;
  z-index: 40;
}

.admin-topbar-brand {
  display: flex;
  align-items: center;
}

.admin-brand-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #fff;
}

.admin-brand-name {
  background: linear-gradient(120deg, #7c3aed, #d946ef);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.admin-brand-pill {
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  background: rgba(255, 255, 255, 0.12);
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
}

.admin-nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.admin-nav-link {
  color: rgba(255, 255, 255, 0.6);
  padding: 0.45rem 0.9rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.92rem;
  transition: background 0.2s, color 0.2s;
}

.admin-nav-link:hover,
.admin-nav-link:focus-visible {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.admin-nav-link.active {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}

.admin-topbar-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.admin-topbar-actions form {
  margin: 0;
}

.admin-topbar-link {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}

.admin-topbar-link:hover {
  color: #fff;
}

.admin-wallet-tag {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  padding: 0.2rem 0.7rem;
  font-family: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 0.8rem;
}

.admin-logout-btn {
  background: linear-gradient(120deg, #ff5f6d, #ffc371);
  border: none;
  color: #050a1a;
  font-weight: 600;
  padding: 0.45rem 1.1rem;
  border-radius: 999px;
  cursor: pointer;
}

.admin-content {
  flex: 1;
  max-width: none;
  width: calc(100% - 2rem);
  margin: 0 auto;
  padding: 2rem 1.5rem 3rem;
}

.admin-body .container-main,
.admin-body .admin-dashboard,
.admin-body .admin-page {
  max-width: none;
  width: calc(100% - 2rem);
  margin-left: auto;
  margin-right: auto;
}

/* Admin mobile responsive */
@media (max-width: 1024px) {
  .admin-topbar {
    flex-wrap: wrap;
    padding: 0.75rem 1rem;
    gap: 0.5rem;
  }

  .admin-nav {
    order: 3;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 0.5rem;
    flex-wrap: nowrap;
  }

  .admin-nav-link {
    white-space: nowrap;
    font-size: 0.8rem;
    padding: 0.4rem 0.7rem;
  }

  .admin-content {
    padding: 1rem;
    overflow-x: auto;
  }
}

@media (max-width: 768px) {
  .admin-body {
    overflow-x: hidden;
    overflow-y: auto;
  }

  .admin-topbar-actions {
    font-size: 0.8rem;
  }

  .admin-wallet-tag {
    display: none;
  }

  .admin-content {
    padding: 0.75rem;
  }
}

.admin-flash {
  max-width: 800px;
  margin: 1rem auto 0;
  padding: 0.85rem 1.2rem;
  border-radius: 12px;
  font-weight: 600;
}

.admin-flash-success {
  background: rgba(16, 185, 129, 0.15);
  color: #047857;
}

.admin-flash-error {
  background: rgba(239, 68, 68, 0.15);
  color: #b91c1c;
}

.admin-footer {
  text-align: center;
  padding: 1.25rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.admin-stat-card {
  background: #fff;
  border: 1px solid rgba(15, 24, 46, 0.05);
  border-radius: 16px;
  padding: 1.25rem;
  display: flex;
  gap: 1rem;
  box-shadow: 0 15px 35px rgba(15, 24, 46, 0.05);
}

.admin-stat-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.admin-stat-body {
  flex: 1;
}

.admin-stat-label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
  margin: 0;
}

.admin-stat-value {
  font-size: 2rem;
  font-weight: 700;
  margin: 0.1rem 0 0.2rem;
}

.admin-stat-meta {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.admin-page {
  background: var(--surface);
  border: 1px solid rgba(15, 24, 46, 0.05);
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 8px 30px rgba(15, 24, 46, 0.08);
}

.admin-page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

.admin-page-header h1 {
  margin: 0.3rem 0;
  font-size: 1.8rem;
}

.admin-page-header .muted {
  margin: 0;
}

.admin-table-wrapper {
  overflow-x: auto;
  border: 1px solid rgba(15, 24, 46, 0.05);
  border-radius: 16px;
  /* No max-height - let the page scroll naturally */
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.admin-table th,
.admin-table td {
  padding: 0.65rem 0.75rem;
  text-align: left;
  background: var(--surface-card, #fff);
}

.admin-table th {
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.75rem;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 5;
}

.admin-table tbody tr + tr {
  border-top: 1px solid var(--border);
}

.admin-table--users th {
  font-size: 0.78rem;
  letter-spacing: 0.03em;
}

.admin-table--users,
.admin-table--inline,
.admin-table--inventory,
.pokedex-table {
  table-layout: fixed;
}

.admin-body .table {
  table-layout: fixed;
  width: 100%;
}

.admin-body .table th,
.admin-body .table td {
  white-space: normal;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.admin-table--users th,
.admin-table--users td,
.admin-table--inline th,
.admin-table--inline td,
.admin-table--inventory th,
.admin-table--inventory td,
.pokedex-table th,
.pokedex-table td {
  white-space: normal;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.admin-table--users th,
.admin-table--users td {
  padding: 0.35rem 0.45rem;
  font-size: 0.72rem;
}

.admin-table--inline {
  font-size: 0.8rem;
}

.admin-table--inline .inline-input {
  min-width: 3.2rem;
}

.admin-table--inline .inline-input--sm {
  min-width: 2.4rem;
}

.admin-table--inventory {
  font-size: 0.78rem;
}

.admin-table--inline th,
.admin-table--inline td {
  vertical-align: top;
}

.admin-table--inline td {
  padding: 0.55rem 0.6rem;
}

.inline-cell {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.inline-input {
  width: 100%;
  min-width: 4.5rem;
  padding: 0.3rem 0.45rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #fff;
  font-size: 0.78rem;
  font-family: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
}

.inline-input--sm {
  min-width: 3.5rem;
  padding: 0.25rem 0.35rem;
  font-size: 0.72rem;
}

.inline-input--dirty {
  border-color: #f59e0b;
  box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.15);
}

.inline-toggle {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  color: var(--text-muted);
}

.inline-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(70px, 1fr));
  gap: 0.35rem;
}

.inline-status {
  font-size: 0.7rem;
  color: var(--text-muted);
  min-height: 1rem;
}

.inline-row--dirty {
  background: rgba(251, 191, 36, 0.08);
}

.inline-row--saved {
  background: rgba(16, 185, 129, 0.08);
}

.inline-row--error {
  background: rgba(239, 68, 68, 0.08);
}

.inline-row--saving {
  opacity: 0.7;
}

.admin-traits {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
}

.trait-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.18rem 0.45rem;
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  background: rgba(15, 23, 42, 0.08);
  color: #475569;
}

.trait-foil {
  background: linear-gradient(135deg, #f59e0b, #fcd34d);
  color: #1f2937;
}

.trait-common { background: rgba(148, 163, 184, 0.25); color: #475569; }
.trait-uncommon { background: rgba(16, 185, 129, 0.18); color: #047857; }
.trait-rare { background: rgba(59, 130, 246, 0.18); color: #1d4ed8; }
.trait-special_rare { background: rgba(168, 85, 247, 0.2); color: #6d28d9; }
.trait-ultra_rare { background: rgba(234, 179, 8, 0.2); color: #92400e; }
.trait-mythic { background: rgba(239, 68, 68, 0.18); color: #b91c1c; }
.trait-exclusive { background: rgba(236, 72, 153, 0.2); color: #be185d; }

.table-mono {
  font-family: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 0.8rem;
  color: #4b5563;
}

.admin-users-controls {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.9rem;
  flex-wrap: wrap;
}

.admin-btn.admin-btn--sm {
  padding: 0.35rem 0.8rem;
  border-radius: 10px;
  font-size: 0.75rem;
}

.admin-user-row--hidden {
  opacity: 0.55;
}

.admin-user-hide-btn--hidden {
  background: rgba(16, 185, 129, 0.12);
  color: #047857;
}

/* Background based on last connection (seen) - subtle opacity */
.admin-table tr.seen-old,
.admin-table tr.seen-never { background: transparent; }
.admin-table tr.seen-2h { background: rgba(59, 130, 246, 0.08); }
.admin-table tr.seen-1h { background: rgba(34, 197, 94, 0.1); }
.admin-table tr.seen-30min { background: rgba(34, 197, 94, 0.15); }
.admin-table tr.seen-10min { background: rgba(250, 204, 21, 0.15); }
.admin-table tr.seen-1min { background: rgba(239, 68, 68, 0.15); }

/* Text color based on last bid */
.admin-table tr.bid-old td,
.admin-table tr.bid-never td { color: #9ca3af; }
.admin-table tr.bid-2h td { color: #d1d5db; }
.admin-table tr.bid-1h td { color: #60a5fa; }
.admin-table tr.bid-30min td { color: #4ade80; }
.admin-table tr.bid-10min td { color: #facc15; }
.admin-table tr.bid-1min td { color: #f87171; }

.wallet-cell {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 0.15rem;
  flex-wrap: wrap;
}

.wallet-chip {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.7rem;
  padding: 0.2rem 0.4rem;
  border-radius: 999px;
  background: rgba(15, 24, 46, 0.06);
  border: 1px solid rgba(15, 24, 46, 0.08);
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wallet-copy-btn {
  background: rgba(80, 88, 230, 0.08);
  border: 1px solid rgba(80, 88, 230, 0.15);
  color: #4f46e5;
  width: 22px;
  height: 22px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}

.wallet-copy-btn svg {
  width: 12px;
  height: 12px;
  stroke: currentColor;
  stroke-width: 1.7;
  fill: none;
}

.admin-table th.is-sortable {
  cursor: pointer;
  transition: color 0.2s ease;
  user-select: none;
}

.admin-table th.is-sortable::after {
  content: "⇅";
  font-size: 0.65rem;
  margin-left: 0.35rem;
  color: rgba(15, 24, 46, 0.3);
}

.admin-table th.is-sortable.is-sorted-asc::after {
  content: "▲";
  color: #4f46e5;
}

.admin-table th.is-sortable.is-sorted-desc::after {
  content: "▼";
  color: #4f46e5;
}

.admin-table th.is-sortable.is-sorted-asc,
.admin-table th.is-sortable.is-sorted-desc {
  color: #4f46e5;
}

/* Sortable headers for bundle edit table */
.admin-table th.sortable {
  cursor: pointer;
  transition: color 0.2s ease;
  user-select: none;
  position: relative;
}

.admin-table th.sortable:hover {
  color: #4f46e5;
}

.admin-table th.sortable::after {
  content: "⇅";
  font-size: 0.65rem;
  margin-left: 0.35rem;
  color: rgba(15, 24, 46, 0.3);
}

.admin-table th.sortable.sort-asc::after {
  content: "▲";
  color: #4f46e5;
}

.admin-table th.sortable.sort-desc::after {
  content: "▼";
  color: #4f46e5;
}

.admin-table th.sortable.sort-asc,
.admin-table th.sortable.sort-desc {
  color: #4f46e5;
}

.country-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  background: rgba(79, 70, 229, 0.08);
  font-size: 0.8rem;
  border: 1px solid rgba(79, 70, 229, 0.15);
}

.country-badge.country-unknown {
  background: rgba(15, 24, 46, 0.06);
  border-color: rgba(15, 24, 46, 0.1);
}

.wallet-copy-btn:hover,
.wallet-copy-btn.copied {
  background: rgba(80, 88, 230, 0.2);
  transform: translateY(-1px);
}

.table-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  padding: 0.2rem 0.35rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  background: rgba(15, 24, 46, 0.04);
  border: 1px solid rgba(15, 24, 46, 0.06);
}

.admin-table--users .table-pill {
  min-width: 0;
  max-width: 100%;
}

.table-pill.positive {
  color: #0f9c56;
  background: rgba(16, 185, 129, 0.14);
  border-color: rgba(16, 185, 129, 0.2);
}

.table-pill.warning {
  color: #b45309;
  background: rgba(251, 191, 36, 0.18);
  border-color: rgba(251, 191, 36, 0.3);
}

.table-pill.neutral {
  color: #2563eb;
  background: rgba(59, 130, 246, 0.14);
  border-color: rgba(59, 130, 246, 0.2);
}

.table-pill.success {
  color: #047857;
  background: rgba(16, 185, 129, 0.16);
  border-color: rgba(16, 185, 129, 0.24);
}

.table-pill.guez {
  color: #7c3aed;
  background: rgba(139, 92, 246, 0.16);
  border-color: rgba(139, 92, 246, 0.24);
  font-weight: 700;
}

.table-dot.success {
  color: #047857;
  background: rgba(16, 185, 129, 0.16);
  border-color: rgba(16, 185, 129, 0.24);
}

.wallet-chip.small {
  font-size: 0.7rem;
  padding: 0.15rem 0.4rem;
}

.table-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  font-weight: 600;
  font-size: 0.7rem;
  background: rgba(15, 24, 46, 0.05);
  border: 1px solid rgba(15, 24, 46, 0.07);
}

.status-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.status-card {
  border-radius: 14px;
  padding: 1.2rem 1.4rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #fff;
  border: 1px solid rgba(15, 24, 46, 0.05);
  box-shadow: 0 20px 45px rgba(15, 24, 46, 0.05);
}

.status-card.success .status-state {
  color: #16a34a;
}

.status-card.danger .status-state {
  color: #dc2626;
}

.status-label {
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin: 0;
}

.status-state {
  margin: 0.2rem 0 0;
  font-size: 1.3rem;
  font-weight: 700;
}

.status-meta {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.metric-card {
  border-radius: 18px;
  padding: 1.5rem;
  color: #fff;
  box-shadow: 0 25px 50px rgba(15, 24, 46, 0.25);
}

.metric-card.blue { background: linear-gradient(135deg, #6875f5, #4f46e5); }
.metric-card.green { background: linear-gradient(135deg, #34d399, #059669); }
.metric-card.purple { background: linear-gradient(135deg, #c084fc, #a855f7); }
.metric-card.orange { background: linear-gradient(135deg, #f97316, #ea580c); }

.panel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.panel-card {
  background: #fff;
  border-radius: 14px;
  border: 1px solid rgba(15, 24, 46, 0.05);
  padding: 1.5rem;
  box-shadow: 0 20px 45px rgba(15, 24, 46, 0.05);
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.8rem;
  color: var(--brand-primary);
  font-weight: 700;
}

/* ============================================================================
   Admin v2 preview
   ========================================================================= */
.admin2-body {
  background: radial-gradient(circle at 20% 20%, rgba(16, 185, 129, 0.1), transparent 40%),
              radial-gradient(circle at 80% 0%, rgba(79, 70, 229, 0.1), transparent 35%),
              #0b1021;
  min-height: 100vh;
  color: #0f172a;
}

.admin2-shell {
  display: grid;
  grid-template-columns: 280px 1fr;
  min-height: 100vh;
}

.admin2-sidebar {
  background: rgba(10, 15, 35, 0.9);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.5rem;
  color: #e5e7eb;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  position: sticky;
  top: 0;
  height: 100vh;
}

.admin2-brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
}

.admin2-logo {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.admin2-logo-mark {
  background: linear-gradient(135deg, #22d3ee, #6366f1);
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: #0b1021;
  box-shadow: 0 15px 35px rgba(99, 102, 241, 0.4);
}

.admin2-logo-title {
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #fff;
}

.admin2-logo-sub {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.8rem;
}

.admin2-branch-pill {
  background: rgba(255, 255, 255, 0.08);
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-size: 0.8rem;
  color: #cbd5e1;
}

.admin2-identity {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 14px;
  padding: 0.85rem 0.95rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.admin2-wallet-label {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.5);
}

.admin2-wallet-chip {
  font-family: "JetBrains Mono", monospace;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 0.4rem 0.65rem;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.admin2-identity-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.admin2-mini-link {
  color: #e5e7eb;
  font-size: 0.85rem;
  padding: 0.25rem 0.65rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
}

.admin2-mini-link:hover {
  background: rgba(255, 255, 255, 0.08);
}

.admin2-mini-link.danger {
  color: #fecdd3;
  border-color: rgba(248, 113, 113, 0.4);
}

.admin2-nav {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.admin2-nav-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: rgba(229, 231, 235, 0.8);
  padding: 0.65rem 0.8rem;
  border-radius: 12px;
  transition: background 0.2s, transform 0.15s;
}

.admin2-nav-link:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-1px);
}

.admin2-nav-link.is-active {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(16, 185, 129, 0.2));
  color: #fff;
}

.admin2-nav-icon {
  width: 18px;
  height: 18px;
  color: currentColor;
  display: inline-flex;
}

.admin2-nav-badge {
  margin-left: auto;
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  padding: 0.1rem 0.55rem;
  border-radius: 999px;
  font-size: 0.75rem;
  border: 1px solid rgba(52, 211, 153, 0.35);
}

.admin2-nav-badge.muted {
  background: rgba(255, 255, 255, 0.08);
  color: #cbd5e1;
  border-color: rgba(255, 255, 255, 0.1);
}

.admin2-bottom-links {
  margin-top: auto;
}

.admin2-main {
  background: #0f172a;
  color: #e2e8f0;
  padding: 1.5rem 2rem 2.5rem;
  min-height: 100vh;
}

.admin2-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.admin2-topbar-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.6);
}

.admin2-topbar-title {
  font-size: 1.65rem;
  font-weight: 700;
  color: #fff;
}

.admin2-topbar-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.admin2-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.7rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.07);
  font-size: 0.9rem;
}

.admin2-toggle .separator {
  width: 1px;
  height: 16px;
  background: rgba(255, 255, 255, 0.15);
}

.admin2-toggle .active {
  color: #34d399;
}

.admin2-toggle .inactive {
  color: #fbbf24;
}

.admin2-cta {
  background: linear-gradient(135deg, #6366f1, #22d3ee);
  color: #0b1021;
  border-radius: 12px;
  padding: 0.6rem 1rem;
  font-weight: 700;
  border: none;
  box-shadow: 0 12px 30px rgba(34, 211, 238, 0.35);
}

.admin2-flash {
  padding: 0.75rem 1rem;
  border-radius: 12px;
  margin-bottom: 1rem;
  font-weight: 600;
}

.admin2-flash.success {
  background: rgba(16, 185, 129, 0.18);
  color: #bbf7d0;
}

.admin2-flash.danger {
  background: rgba(248, 113, 113, 0.15);
  color: #fecdd3;
}

.admin2-content {
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.04));
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  padding: 1.5rem;
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.25);
  max-width: 1400px;
  width: min(100%, 1400px);
  margin: 0 auto;
}

.admin2-page {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.admin2-section {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 18px;
  padding: 1.25rem 1.1rem;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.2);
}

.admin2-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.8rem;
}

.admin2-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  background: radial-gradient(circle at 30% 30%, rgba(99, 102, 241, 0.25), transparent 40%),
              linear-gradient(120deg, rgba(99, 102, 241, 0.3), rgba(16, 185, 129, 0.2));
}

.admin2-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.78rem;
  color: #94a3b8;
  margin: 0;
}

.admin2-lead {
  color: #cbd5e1;
  max-width: 720px;
  margin: 0.4rem 0 0.6rem;
  line-height: 1.4;
}

.admin2-pill-row {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.admin2-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.05);
  font-weight: 600;
}

.admin2-pill.positive { color: #34d399; border-color: rgba(52, 211, 153, 0.4); }
.admin2-pill.warning { color: #fbbf24; border-color: rgba(251, 191, 36, 0.5); }
.admin2-pill.muted { color: #cbd5e1; }

.admin2-cta-stack {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  min-width: 220px;
}

.admin2-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #22d3ee, #14b8a6);
  color: #0b1021;
  border-radius: 12px;
  padding: 0.65rem 1rem;
  font-weight: 700;
}

.admin2-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.06);
  color: #e5e7eb;
  border-radius: 12px;
  padding: 0.55rem 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-weight: 600;
}

.admin2-link {
  color: #7dd3fc;
}

.admin2-chip {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 0.3rem 0.65rem;
  color: #cbd5e1;
  font-size: 0.85rem;
}

.admin2-chip.muted {
  color: #94a3b8;
}

.admin2-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.75rem;
}

.admin2-kpi {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 0.9rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.admin2-kpi .label {
  font-size: 0.85rem;
  color: #94a3b8;
  margin: 0 0 0.35rem;
}

.admin2-kpi .value {
  font-size: 1.4rem;
  font-weight: 700;
  margin: 0 0 0.35rem;
  color: #e2e8f0;
}

.admin2-kpi .value.positive { color: #34d399; }
.admin2-kpi .value.warning { color: #fbbf24; }

.admin2-kpi .hint {
  color: #94a3b8;
  font-size: 0.85rem;
  margin: 0;
}

.admin2-queue-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.75rem;
}

.admin2-queue-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.queue-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 700;
}

.queue-head .badge {
  padding: 0.15rem 0.65rem;
  border-radius: 999px;
  font-size: 0.85rem;
  border: 1px solid;
}

.badge.danger { background: rgba(248, 113, 113, 0.15); color: #fecdd3; border-color: rgba(248, 113, 113, 0.45); }
.badge.warning { background: rgba(251, 191, 36, 0.16); color: #fef3c7; border-color: rgba(251, 191, 36, 0.45); }
.badge.muted { background: rgba(255, 255, 255, 0.06); color: #cbd5e1; border-color: rgba(255, 255, 255, 0.1); }

.admin2-queue-card .hint {
  color: #94a3b8;
  margin: 0;
}

.admin2-queue-action {
  margin-top: auto;
  color: #7dd3fc;
  font-weight: 700;
}

.admin2-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0.9rem;
}

.admin2-block {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 14px;
  padding: 0.9rem;
}

.admin2-shortcuts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.65rem;
}

.admin2-shortcut {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 0.7rem 0.85rem;
  color: #e5e7eb;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.admin2-shortcut:hover {
  background: rgba(255, 255, 255, 0.08);
}

.admin2-timeline {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  max-height: 360px;
  overflow-y: auto;
}

.admin2-event {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.6rem;
  align-items: center;
}

.event-icon {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #a5b4fc;
}

.event-icon.deposit { background: #34d399; }
.event-icon.withdrawal { background: #fbbf24; }
.event-icon.bid { background: #a855f7; }

.event-body .event-line {
  font-weight: 600;
  color: #e2e8f0;
}

.event-meta {
  color: #94a3b8;
  font-size: 0.85rem;
}

.mono {
  font-family: "JetBrains Mono", monospace;
}

.admin2-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0.75rem;
}

.admin2-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.admin2-card h3 {
  margin: 0;
  color: #fff;
}

.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.9rem;
  color: #cbd5e1;
}

.card-id {
  font-family: "JetBrains Mono", monospace;
}

.card-sub {
  color: #94a3b8;
  margin: 0;
}

.card-meta {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  color: #cbd5e1;
  font-size: 0.9rem;
}

.status-pill {
  padding: 0.2rem 0.6rem;
  border-radius: 10px;
  font-size: 0.8rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  text-transform: capitalize;
}

.status-pill.running { color: #34d399; border-color: rgba(52, 211, 153, 0.45); }
.status-pill.completed { color: #a5b4fc; border-color: rgba(165, 180, 252, 0.4); }
.status-pill.cancelled { color: #fca5a5; border-color: rgba(252, 165, 165, 0.4); }

.card-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 0.4rem;
}

.admin2-filters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.8rem;
  align-items: end;
}

.admin2-filters .filter-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.admin2-filters label {
  color: #ffffff;
  font-size: 0.9rem;
}

.admin2-filters input,
.admin2-filters select {
  width: 100%;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.05);
  color: #e5e7eb;
  padding: 0.55rem 0.65rem;
}

.filter-actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.admin2-primary.small,
.admin2-ghost.small {
  padding: 0.45rem 0.75rem;
  font-size: 0.9rem;
}

.admin2-table-wrapper {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  overflow: hidden;
}

.admin2-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.admin2-table thead {
  background: rgba(255, 255, 255, 0.05);
}

.admin2-table th,
.admin2-table td {
  padding: 0.85rem 0.8rem;
  text-align: left;
  vertical-align: top;
}

.admin2-table th {
  color: #cbd5e1;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  font-size: 0.8rem;
}

.admin2-table tbody tr {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.admin2-table tbody tr:nth-child(odd) {
  background: rgba(255, 255, 255, 0.02);
}

.admin2-table tbody tr.is-active {
  background: rgba(52, 211, 153, 0.05);
}

.cell-main .muted {
  color: #94a3b8;
  font-size: 0.85rem;
}

.badge-row {
  display: flex;
  gap: 0.4rem;
  margin-top: 0.3rem;
}

.pill {
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  font-size: 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.pill.success { color: #34d399; border-color: rgba(52, 211, 153, 0.4); }
.pill.info { color: #a5b4fc; border-color: rgba(165, 180, 252, 0.4); }

.stack {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.stack .label {
  color: #94a3b8;
  font-size: 0.85rem;
}

.stack .value {
  font-weight: 700;
  color: #e2e8f0;
}

.stack .value.positive { color: #34d399; }
.stack .value.warning { color: #fbbf24; }

.actions-col {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

@media (max-width: 1024px) {
  .admin2-shell {
    grid-template-columns: 1fr;
  }

  .admin2-sidebar {
    position: static;
    height: auto;
  }
}
/* ============================================================================
   Landing page
   ========================================================================= */
.landing {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.landing .hero-section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1rem;
}

.landing .hero-image {
  width: 100%;
  border-radius: 16px;
  box-shadow: 0 25px 60px rgba(15, 24, 46, 0.25);
}

.landing-hero {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  padding: 0 1rem;
}

.hero-text h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin: 0.4rem 0;
}

.hero-lead {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 1.1rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.pill {
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  font-size: 0.8rem;
  background: rgba(80, 88, 230, 0.08);
  color: var(--brand-primary);
  font-weight: 600;
}

.pill-outline {
  background: transparent;
  border: 1px solid rgba(80, 88, 230, 0.4);
}

.hero-card {
  background: var(--surface);
  border-radius: 16px;
  border: 1px solid var(--border);
  box-shadow: 0 20px 40px rgba(15, 24, 46, 0.08);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.hero-steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.hero-steps li {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
}

.step-number {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: rgba(80, 88, 230, 0.15);
  color: var(--brand-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.landing-section {
  padding: 0 1rem;
}

.landing-section .section-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.process-grid,
.faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.25rem;
  max-width: 1100px;
  margin: 0 auto;
}

.process-card,
.faq-card,
.trust-card,
.rules-card,
.cta-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.4rem;
  box-shadow: 0 18px 35px rgba(15, 24, 46, 0.08);
}

.howto-wrap {
  max-width: 960px;
  margin: 2rem auto 4rem;
  padding: 0 1.25rem 3rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.howto-card {
  border-radius: 20px;
  border: 1px solid var(--border);
  padding: 2rem;
  background: #fff;
  box-shadow: 0 25px 60px rgba(15, 24, 46, 0.08);
}

.howto-hero h1 {
  margin-top: 0.5rem;
  font-size: clamp(2rem, 4vw, 2.8rem);
}

.howto-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.howto-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (max-width: 640px) {
  .howto-grid {
    gap: 0.75rem;
  }
}

.howto-step {
  border-radius: 16px;
  border: 1px solid var(--border);
  padding: 1.25rem;
  background: rgba(249, 250, 255, 0.7);
}

.howto-step h2 {
  margin-top: 0;
  font-size: 1.2rem;
}

.howto-step p,
.howto-hero p,
.howto-alerts p {
  text-align: justify;
  text-justify: inter-word;
}

.howto-step ul,
.howto-alerts ul {
  text-align: justify;
  text-justify: inter-word;
}

.howto-alerts {
  border-radius: 16px;
  border: 1px dashed rgba(220, 38, 38, 0.4);
  padding: 1.25rem 1.5rem;
  background: rgba(220, 38, 38, 0.05);
}

.process-icon {
  font-size: 1.8rem;
}

.process-list {
  padding-left: 1.1rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.trust-section .trust-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}

.trust-cards {
  display: grid;
  gap: 1rem;
}

.rules-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.cta-card {
  max-width: 1000px;
  margin: 0 auto 2rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
/* ============================================================================
   Utility classes (small Tailwind-like subset)
   ========================================================================= */
.flex {
  display: flex;
}

.inline-flex {
  display: inline-flex;
}

.grid {
  display: grid;
  gap: 1rem;
}

.grid-cols-1 {
  grid-template-columns: 1fr;
}

.gap-3 {
  gap: 0.75rem;
}

.gap-4 {
  gap: 1rem;
}

.gap-6 {
  gap: 1.5rem;
}

.items-center {
  align-items: center;
}

.items-start {
  align-items: flex-start;
}

.justify-between {
  justify-content: space-between;
}

.justify-center {
  justify-content: center;
}

.flex-col {
  flex-direction: column;
}

.flex-wrap {
  flex-wrap: wrap;
}

.flex-shrink-0 {
  flex-shrink: 0;
}

.hidden {
  display: none !important;
}

.w-full {
  width: 100%;
}

.min-w-full {
  min-width: 100%;
}

.w-5 {
  width: 1.25rem;
}

.h-5 {
  height: 1.25rem;
}

.w-6 {
  width: 1.5rem;
}

.h-6 {
  height: 1.5rem;
}

.h-16 {
  height: 4rem;
}

.text-left {
  text-align: left;
}

.text-center {
  text-align: center;
}

.text-right {
  text-align: right;
}

.uppercase {
  text-transform: uppercase;
}

.tracking-wider {
  letter-spacing: 0.08em;
}

.font-bold {
  font-weight: 700;
}

.font-medium {
  font-weight: 600;
}

.font-semibold {
  font-weight: 600;
}

.text-xs {
  font-size: 0.75rem;
}

.text-sm {
  font-size: 0.875rem;
}

.text-base {
  font-size: 1rem;
}

.text-lg {
  font-size: 1.1rem;
}

.text-xl {
  font-size: 1.3rem;
}

.text-2xl {
  font-size: 1.5rem;
}

.text-3xl {
  font-size: 1.7rem;
}

.text-4xl {
  font-size: 2rem;
}

.leading-tight {
  line-height: 1.25;
}

.text-white {
  color: #ffffff;
}

.text-white\/80 {
  color: rgba(255, 255, 255, 0.8);
}

.text-gray-300 {
  color: #d1d5db;
}

.text-gray-400 {
  color: #9ca3af;
}

.text-gray-500 {
  color: #374151;
}

.text-gray-600 {
  color: #4b5563;
}

.text-gray-700 {
  color: #374151;
}

.text-gray-800 {
  color: #1f2937;
}

.text-gray-900 {
  color: #111827;
}

.text-blue-600 {
  color: #2563eb;
}

.text-blue-800 {
  color: #1e40af;
}

.text-blue-900 {
  color: #1e3a8a;
}

.text-green-500 {
  color: #22c55e;
}

.text-green-600 {
  color: #16a34a;
}

.text-green-700,
.text-green-800,
.text-green-900 {
  color: #166534;
}

.text-red-500 {
  color: #ef4444;
}

.text-red-600 {
  color: #dc2626;
}

.text-red-700,
.text-red-800 {
  color: #b91c1c;
}

.text-yellow-600,
.text-yellow-700,
.text-yellow-800,
.text-yellow-900,
.text-warning {
  color: #b45309;
}

.text-guez {
  color: #8b5cf6;
  font-weight: 600;
}

.balance-line-guez {
  border-top: 1px solid rgba(139, 92, 246, 0.2);
  padding-top: 0.2rem;
  margin-top: 0.1rem;
}

.guez-icon-large {
  width: 50px;
  height: 50px;
  object-fit: contain;
  vertical-align: middle;
  margin-right: 0.5rem;
}

.stat-guez-header {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

/* Wallet $GUEZ Detail Section */
.wallet-guez-card {
  background: #6366f1;
  border: none;
  color: #fff;
}

.guez-header-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.guez-icon-medium {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.guez-breakdown {
  margin: 1rem 0;
  padding: 0.75rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
}

.guez-breakdown-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.4rem 0;
  font-size: 0.9rem;
  color: #ffffff;
}

.guez-breakdown-row strong {
  color: #fff;
  font-family: 'JetBrains Mono', monospace;
}

.guez-breakdown-row.guez-total {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  margin-top: 0.5rem;
  padding-top: 0.75rem;
  font-weight: 600;
}

.guez-breakdown-row.guez-total strong {
  color: #fff;
  font-size: 1.1rem;
}

.guez-history {
  margin-top: 1rem;
}

.guez-history-title {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.8);
  margin: 0 0 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.guez-history-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 200px;
  overflow-y: auto;
}

.guez-history-list li {
  display: flex;
  gap: 0.5rem;
  padding: 0.4rem 0;
  font-size: 0.8rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.guez-history-date {
  color: rgba(255, 255, 255, 0.7);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  flex-shrink: 0;
}

.guez-history-desc {
  flex: 1;
  color: #ffffff;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.guez-history-amount {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 600;
  flex-shrink: 0;
}

.guez-history-amount.positive {
  color: #34d399;
}

.guez-history-amount.negative {
  color: #f87171;
}

/* Wallet Referral Section */
.wallet-referral-card {
  background: #6366f1;
  border: none;
  color: #fff;
}

.referral-link-section {
  margin-bottom: 1rem;
}

.referral-link-row {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.referral-link-input {
  flex: 1;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
}

.btn-copy-referral {
  white-space: nowrap;
  padding: 0.5rem 1rem;
  background: #10b981;
  border: none;
  color: #fff;
}

.btn-copy-referral:hover {
  background: #059669;
}

.referral-code-display {
  font-size: 0.85rem;
  color: #ffffff;
  margin: 0;
}

.referral-code-display strong {
  color: #fcd34d;
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.1em;
}

.referral-locked {
  padding: 1rem;
  background: rgba(251, 191, 36, 0.1);
  border: 1px dashed rgba(251, 191, 36, 0.5);
  border-radius: 8px;
}

.referral-share-buttons {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.share-btn {
  flex: 1;
  min-width: 100px;
  padding: 0.6rem 0.75rem;
  border-radius: 8px;
  text-align: center;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.2s;
}

.share-btn-twitter {
  background: #000;
  color: #fff;
  border: 1px solid #333;
}

.share-btn-twitter:hover {
  background: #1a1a1a;
  color: #fff;
}

.share-btn-telegram {
  background: #0088cc;
  color: #fff;
}

.share-btn-telegram:hover {
  background: #006699;
  color: #fff;
}

.share-btn-whatsapp {
  background: #25d366;
  color: #fff;
}

.share-btn-whatsapp:hover {
  background: #1da851;
  color: #fff;
}

.referral-stats-mini {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
  padding: 0.75rem;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 8px;
}

.referral-stat {
  flex: 1;
  text-align: center;
}

.referral-stat-value {
  display: block;
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
}

.referral-stat-label {
  font-size: 0.75rem;
  color: #e0e0e0;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.referral-details-link {
  width: 100%;
  text-align: center;
}

/* Referral message section */
.referral-message-box {
  margin-bottom: 1rem;
}

.referral-message-textarea {
  width: 100%;
  padding: 0.75rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 8px;
  color: #fff;
  font-family: inherit;
  font-size: 0.9rem;
  line-height: 1.5;
  resize: none;
  height: 100px;
  margin-bottom: 0.5rem;
}

.btn-copy-message {
  width: 100%;
  padding: 0.75rem 1rem;
  background: #10b981;
  border: none;
  border-radius: 8px;
  color: white;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-copy-message:hover {
  background: #059669;
}

.referral-details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

@media (max-width: 600px) {
  .referral-details-grid {
    grid-template-columns: 1fr;
  }
}

.referral-detail-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.form-label-small {
  font-size: 0.75rem !important;
  margin-bottom: 0.25rem;
}

.referral-code-input {
  flex: 1;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.9rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fcd34d;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  text-align: center;
  font-weight: 600;
  letter-spacing: 1px;
}

.btn-copy-link,
.btn-copy-code {
  white-space: nowrap;
  padding: 0.5rem 0.75rem;
  font-size: 0.8rem;
}

.referral-mobile-tip {
  margin-top: 0.75rem;
  padding: 0.6rem 0.75rem;
  background: rgba(99, 102, 241, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.referral-mobile-tip .tip-icon {
  font-size: 1rem;
}

.referral-mobile-tip strong {
  color: #fcd34d;
}

.btn-block {
  display: block;
  width: 100%;
}

.text-purple-500 {
  color: #a855f7;
}

.text-purple-600 {
  color: #9333ea;
}

.text-purple-800 {
  color: #6b21a8;
}

.bg-white {
  background: #ffffff;
}

.bg-gray-50 {
  background: #f9fafb;
}

.bg-gray-100 {
  background: #f4f6fb;
}

.bg-gray-600 {
  background: #4b5563;
  color: #fff;
}

.bg-gray-700 {
  background: #374151;
  color: #fff;
}

.bg-gray-800 {
  background: #1f2937;
  color: #fff;
}

.bg-gray-900 {
  background: #111827;
  color: #fff;
}

.bg-blue-600 {
  background: #2563eb;
  color: #fff;
}

.bg-blue-700 {
  background: #1d4ed8;
  color: #fff;
}

.bg-blue-400 {
  background: #60a5fa;
  color: #0f172a;
}

.bg-green-50 {
  background: #ecfdf5;
}

.bg-green-100 {
  background: #d1fae5;
}

.bg-red-50 {
  background: #fef2f2;
}

.bg-red-100 {
  background: #fee2e2;
}

.bg-yellow-50 {
  background: #fffbeb;
}

.bg-yellow-100 {
  background: #fef3c7;
}

.bg-yellow-200 {
  background: #fde68a;
}

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

.border-transparent {
  border-color: transparent;
}

.border-gray-200 {
  border-color: #e5e7eb;
}

.border-gray-300 {
  border-color: #d1d5db;
}

.border-green-200 {
  border-color: #bbf7d0;
}

.border-green-500 {
  border-color: #22c55e;
}

.border-blue-400 {
  border-color: #60a5fa;
}

.border-yellow-200 {
  border-color: #fde68a;
}

.border-yellow-400 {
  border-color: #fbbf24;
}

.border-red-400 {
  border-color: #f87171;
}

.border-red-500 {
  border-color: #ef4444;
}

.border-l-4 {
  border-left: 4px solid var(--border);
}

.rounded {
  border-radius: 4px;
}

.rounded-md {
  border-radius: 8px;
}

.rounded-lg {
  border-radius: 12px;
}

.rounded-full {
  border-radius: 999px;
}

.shadow {
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.08);
}

.shadow-md {
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.12);
}

.shadow-lg {
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.18);
}

.p-3 {
  padding: 0.75rem;
}

.p-4 {
  padding: 1rem;
}

.p-5 {
  padding: 1.25rem;
}

.p-6 {
  padding: 1.5rem;
}

.px-2 {
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}

.px-3 {
  padding-left: 0.75rem;
  padding-right: 0.75rem;
}

.px-4 {
  padding-left: 1rem;
  padding-right: 1rem;
}

.px-6 {
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.py-1 {
  padding-top: 0.25rem;
  padding-bottom: 0.25rem;
}

.py-2 {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.py-3 {
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.py-4 {
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.py-6 {
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
}

.py-8 {
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

.mb-1 {
  margin-bottom: 0.25rem;
}

.mb-2 {
  margin-bottom: 0.5rem;
}

.mb-3 {
  margin-bottom: 0.75rem;
}

.mb-4 {
  margin-bottom: 1rem;
}

.mb-6 {
  margin-bottom: 1.5rem;
}

.mb-8 {
  margin-bottom: 2rem;
}

.mt-1 {
  margin-top: 0.25rem;
}

.mt-2 {
  margin-top: 0.5rem;
}

.mt-3 {
  margin-top: 0.75rem;
}

.mt-4 {
  margin-top: 1rem;
}

.mt-8 {
  margin-top: 2rem;
}

.mt-12 {
  margin-top: 3rem;
}

.ml-2 {
  margin-left: 0.5rem;
}

.ml-3 {
  margin-left: 0.75rem;
}

.mr-2 {
  margin-right: 0.5rem;
}

.space-y-4 > * + * {
  margin-top: 1rem;
}

.space-y-6 > * + * {
  margin-top: 1.5rem;
}

.space-x-4 > * + * {
  margin-left: 1rem;
}

.transition {
  transition: all 0.2s ease;
}

.hover\:bg-gray-700:hover {
  background-color: #374151;
  color: #fff;
}

.hover\:bg-blue-700:hover {
  background-color: #1d4ed8;
  color: #fff;
}

.hover\:bg-yellow-200:hover {
  background-color: #fde68a;
}

.hover\:bg-red-700:hover {
  background-color: #b91c1c;
  color: #fff;
}

.hover\:text-white:hover {
  color: #fff;
}

.hover\:text-gray-300:hover {
  color: #d1d5db;
}

.hover\:underline:hover {
  text-decoration: underline;
}

.btn.btn-secondary {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
}

.btn.btn-secondary:hover {
  background: #f7f7fb;
}

.btn.btn-primary {
  background: var(--brand-primary);
  color: #fff;
  border: none;
}

.btn.btn-primary:hover {
  background: #3a41be;
}

.bg-gradient-to-r {
  background-image: linear-gradient(
    to right,
    var(--brand-primary),
    #ec4899
  );
}

.from-purple-400 {
  background-color: #c084fc;
}

.to-pink-600 {
  background-color: #db2777;
}

.text-transparent {
  color: transparent;
}

.bg-clip-text {
  -webkit-background-clip: text;
  background-clip: text;
}

.divide-y {
  border-top: 1px solid var(--border);
}

.divide-y > * + * {
  border-top: 1px solid var(--border);
}

.divide-gray-200 > * + * {
  border-top: 1px solid #e5e7eb;
}

.overflow-hidden {
  overflow: hidden;
}

.object-cover {
  object-fit: cover;
}

.object-contain {
  object-fit: contain;
}

.min-h-screen {
  min-height: 100vh;
}

.text-anchor {
  text-decoration: underline;
}

/* Responsive utility variants */
@media (min-width: 640px) {
  .sm\:flex {
    display: flex;
  }

  .sm\:ml-6 {
    margin-left: 1.5rem;
  }

  .sm\:space-x-4 > * + * {
    margin-left: 1rem;
  }

  .sm\:px-6 {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

@media (min-width: 768px) {
  .md\:grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .md\:grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .lg\:px-8 {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

/* Tooltip personnalisé pour l'info CTA */
.cta-info {
  position: relative;
}

.cta-info:hover::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 125%;
  right: 50%;
  transform: translateX(50%);
  background: rgba(15, 24, 46, 0.95);
  color: #fff;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  font-size: 0.75rem;
  width: 240px;
  line-height: 1.4;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  z-index: 1000;
  pointer-events: none;
  white-space: normal;
}

.cta-info:hover::before {
  content: "";
  position: absolute;
  bottom: 100%;
  right: 50%;
  transform: translateX(50%);
  border-width: 5px;
  border-style: solid;
  border-color: rgba(15, 24, 46, 0.95) transparent transparent transparent;
  z-index: 1001;
}
/* ================================================================
   Auction History Modal
   ================================================================ */
.history-modal {
  position: fixed;
  inset: 0;
  background: rgba(5, 8, 20, 0.75);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999;
  padding: 1.5rem;
}

.history-modal--active {
  display: flex;
}

.history-modal-panel {
  background: #fff;
  border-radius: 18px;
  max-width: 640px;
  width: 100%;
  max-height: 80vh;
  overflow: hidden;
  position: relative;
  box-shadow: 0 30px 80px rgba(15, 23, 42, 0.35);
  display: flex;
  flex-direction: column;
}

.history-modal-overlay {
  position: absolute;
  inset: 0;
}

.history-modal-close {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: transparent;
  border: none;
  font-size: 1.5rem;
  color: var(--text-muted);
  cursor: pointer;
  z-index: 1;
}

.history-modal-header {
  padding: 1.5rem 1.8rem 0.5rem;
}

.history-modal-count {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 0.3rem;
}

.history-modal-loading,
.history-modal-error {
  padding: 1rem 1.8rem;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.history-modal-error {
  color: var(--danger);
}

.history-modal-body {
  padding: 0 1.8rem 1.8rem;
  overflow-y: auto;
}

.history-modal-empty {
  text-align: center;
  padding: 1.5rem 0;
  color: var(--text-muted);
}

.history-modal-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.history-modal-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.75rem;
  padding: 0.85rem;
  border-radius: 12px;
  background: rgba(80, 88, 230, 0.05);
  border: 1px solid rgba(80, 88, 230, 0.1);
}

.history-modal-rank {
  font-weight: 700;
  color: var(--brand-primary);
}

.history-modal-meta {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.history-modal-wallet {
  font-weight: 600;
}

.history-modal-time {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.history-modal-amount {
  font-weight: 700;
  color: var(--brand-secondary);
}
/* =========================================================================
   Navbar responsive redesign overrides
   ========================================================================= */
.logo-banner {
  text-align: center;
  padding: 0.35rem 0.5rem 0;
}

.logo-banner__title {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: "Bungee Spice", "Playfair Display", "Times New Roman", serif;
  font-size: clamp(2.5rem, 6vw, 4rem);
  letter-spacing: 0.08em;
  text-decoration: none;
}

.logo-banner__title img {
  height: 6rem;
  width: auto;
  display: block;
}

@media (max-width: 640px) {
  .logo-banner__title {
    flex-direction: column;
    font-size: clamp(1.8rem, 8vw, 3rem);
    gap: 0.4rem;
  }

  .logo-banner__title img {
    height: 4rem;
  }
}

.navbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: linear-gradient(135deg, rgba(64, 76, 255, 0.92), rgba(130, 82, 255, 0.92));
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(16px);
  box-shadow: 0 12px 40px rgba(15, 24, 46, 0.18);
}

.navbar-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.65rem 1.25rem;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) auto auto;
  column-gap: 0.85rem;
  align-items: center;
}

.navbar-column {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.navbar-column--logo {
  flex-direction: row;
  align-items: center;
  gap: 0.75rem;
}

.navbar-account-label {
  color: #fff;
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.navbar-account-label span {
  font-size: 0.85rem;
  opacity: 0.8;
}

.navbar-account-label strong {
  font-size: 1rem;
}

.navbar-links {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.navbar-links .nav-link {
  color: rgba(255, 255, 255, 0.9);
}

.navbar-column--stats {
  justify-content: center;
  align-items: center;
}

.navbar-column--wallet {
  align-items: stretch;
  gap: 0.4rem;
  min-width: 210px;
}

.navbar-column--wallet #wallet-address {
  width: 100%;
}

.desktop-only {
  display: flex;
}

.burger-menu {
  display: none;
  flex-direction: column;
  gap: 4px;
  border: none;
  background: none;
  padding: 0.25rem;
  border-radius: 8px;
  cursor: pointer;
}

.burger-menu span {
  width: 24px;
  height: 2px;
  border-radius: 999px;
  background: #fff;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.burger-menu.active span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.burger-menu.active span:nth-child(2) {
  opacity: 0;
}

.burger-menu.active span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.mobile-menu,
.mobile-menu-overlay {
  display: none;
}

@media (max-width: 768px) {
  .navbar-container {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
  }

  .navbar-column {
    width: 100%;
    align-items: center;
  }

  .navbar-links.desktop-only {
    display: none;
  }

  .burger-menu {
    display: inline-flex;
  }

  .navbar-column--wallet,
  .navbar-column--stats {
    width: 100%;
  }

  .navbar-column--wallet > * {
    width: 100%;
    text-align: center;
  }

  #connect-wallet-btn {
    display: none;
  }

  .mobile-menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(8, 11, 30, 0.6);
    display: none;
    z-index: 999;
  }

  .mobile-menu {
    position: fixed;
    inset: 0 auto 0 0;
    width: 80%;
    max-width: 320px;
    background: rgba(16, 24, 48, 0.98);
    color: #fff;
    transform: translateX(-105%);
    transition: transform 0.3s ease;
    z-index: 1000;
    display: block;
  }

  .mobile-menu__inner {
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
    gap: 1rem;
  }

  .mobile-menu__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    font-size: 1.1rem;
    flex-wrap: wrap;
    gap: 0.35rem;
  }

  .mobile-menu__lang {
    margin-top: 0.75rem;
    display: flex;
    justify-content: center;
    width: 100%;
  }

  .mobile-menu__close {
    border: none;
    background: none;
    font-size: 1.8rem;
    color: #fff;
    cursor: pointer;
  }

  .mobile-menu__content {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
  }

  .mobile-menu__link {
    color: #fff;
    font-size: 1rem;
    padding: 0.4rem 0;
  }

  body.menu-open {
    overflow: hidden;
  }

  .mobile-menu-overlay.is-visible {
    display: block;
  }

  .mobile-menu.is-open {
    transform: translateX(0);
  }
}

.how-it-works-section {
  grid-column: 1 / -1;
  margin: 2.5rem auto;
  padding: 2rem;
  border-radius: 1.25rem;
  background: linear-gradient(135deg, rgba(90, 103, 216, 0.12), rgba(129, 140, 248, 0.12));
  border: 1px solid rgba(99, 102, 241, 0.25);
  box-shadow: 0 24px 45px rgba(15, 24, 46, 0.08);
}

.how-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1.5rem;
}

.how-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: 0.75rem;
  color: #94a3b8;
  margin: 0 0 0.35rem;
}

.language-toggle {
  display: flex;
  gap: 0.5rem;
}

.lang-btn {
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(15, 23, 42, 0.35);
  color: #fff;
  font-weight: 600;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.lang-btn.active {
  background: #fff;
  color: #1e1b4b;
  transform: translateY(-1px);
}

.how-it-works-content {
  display: none;
}

.how-it-works-content.is-active {
  display: block;
}

.how-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.how-card {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 0 12px 30px rgba(15, 24, 46, 0.12);
  border: 1px solid rgba(148, 163, 184, 0.35);
}

.how-card h3 {
  margin: 0 0 0.75rem;
  font-size: 1.1rem;
  color: #0f172a;
}

.how-list {
  list-style: disc;
  padding-left: 1.1rem;
  color: #475569;
  font-size: 0.9rem;
}

.formula-block {
  background: #030712;
  color: #f8fafc;
  padding: 1rem;
  border-radius: 0.9rem;
  margin: 1rem 0;
  border: 1px solid rgba(148, 163, 184, 0.35);
}

.formula-label {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.6rem;
  color: rgba(248, 250, 252, 0.7);
}

.formula-block code {
  display: block;
  font-family: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 0.9rem;
  margin: 0.35rem 0;
  color: #fcd34d;
}

.formula-meta {
  font-size: 0.75rem;
  color: rgba(248, 250, 252, 0.75);
}

.faq-card {
  margin-top: 1.25rem;
  border-left: 4px solid #f97316;
}

.faq-question {
  font-weight: 600;
}

.faq-answer {
  color: #475569;
}

.balance-chip--placeholder {
  padding: 1rem 1.5rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.9);
  border: 1px dashed rgba(148, 163, 184, 0.6);
  font-weight: 500;
  color: #475569;
}

@media (max-width: 900px) {
  .how-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .how-it-works-section {
    padding: 1.25rem;
  }

  .language-toggle {
    width: 100%;
    justify-content: center;
  }
}

/* Language toggles */
.lang-toggle {
  display: inline-flex;
  gap: 0.35rem;
  padding: 0.25rem;
  border-radius: 999px;
  border: 1px solid rgba(15, 24, 46, 0.08);
  background: #fff;
  box-shadow: 0 4px 14px rgba(15, 24, 46, 0.1);
}

.lang-toggle--mobile {
  margin-top: 0.25rem;
}

.lang-toggle button {
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.75rem;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.lang-toggle button.active {
  background: var(--brand-primary);
  color: #fff;
  box-shadow: 0 6px 12px rgba(80, 88, 230, 0.3);
}

/* Mobile Menu Button */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  margin-left: auto;
  margin-right: 10px;
}

.mobile-menu-btn span {
  display: block;
  width: 25px;
  height: 3px;
  background: #fff;
  margin: 5px 0;
  transition: 0.3s;
  border-radius: 2px;
}

/* Mobile Menu Styles */
.mobile-menu__divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
  margin: 20px 0;
}

.mobile-menu__balance {
  padding: 0 10px;
}

.mobile-menu__balance .wallet-balance-chip {
  width: 100%;
  min-width: unset;
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

.mobile-menu__balance .balance-label {
  color: rgba(255, 255, 255, 0.7);
}

.mobile-menu__balance .balance-value {
  color: #fff;
}

.mobile-menu__wallet {
  padding: 16px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  margin-top: auto;
}

.mobile-wallet-info {
  margin-bottom: 12px;
}

.mobile-wallet-label {
  display: block;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.mobile-wallet-address {
  display: block;
  font-family: "JetBrains Mono", monospace;
  font-size: 14px;
  color: #fff;
}

.btn-disconnect-mobile {
  width: 100%;
  padding: 12px;
  background: rgba(255, 67, 54, 0.1);
  color: #ff4336;
  border: 1px solid rgba(255, 67, 54, 0.2);
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-disconnect-mobile:hover {
  background: rgba(255, 67, 54, 0.2);
  border-color: rgba(255, 67, 54, 0.3);
}

.btn-primary--mobile {
  width: 100%;
  padding: 14px;
  font-size: 16px;
  margin-top: 8px;
}

/* User Status LED Indicator */
.user-status-led {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 8px;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.user-status-led.online {
  background-color: #10b981;
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.15),
              0 0 8px rgba(16, 185, 129, 0.4);
  animation: pulse-green 2s infinite;
}

.user-status-led.offline {
  background-color: #9ca3af;
  box-shadow: 0 0 0 2px rgba(156, 163, 175, 0.1);
}

@keyframes pulse-green {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.6;
  }
}

/* Ensure wallet-cell items align properly with LED */
.wallet-cell {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .mobile-menu-btn {
    display: block;
  }

  .desktop-only {
    display: none !important;
  }

  .navbar-column--stats {
    display: none;
  }

  .navbar-actions {
    display: none;
  }
}

/* ============================================================================
   Bundle Modal Sortable Table
   ========================================================================= */
.bundle-modal th.is-sortable {
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
  transition: background 0.15s ease;
}

.bundle-modal th.is-sortable:hover {
  background: rgba(0, 0, 0, 0.05);
}

.bundle-modal th.is-sorted-asc::after {
  content: ' ▲';
  font-size: 0.7em;
  opacity: 0.7;
}

.bundle-modal th.is-sorted-desc::after {
  content: ' ▼';
  font-size: 0.7em;
  opacity: 0.7;
}

/* Admin table sortable headers */
.admin-table th.is-sortable {
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
  transition: background 0.15s ease;
}

.admin-table th.is-sortable:hover {
  background: rgba(255, 255, 255, 0.05);
}

.admin-table th.is-sorted-asc::after {
  content: ' ▲';
  font-size: 0.7em;
  opacity: 0.7;
}

.admin-table th.is-sorted-desc::after {
  content: ' ▼';
  font-size: 0.7em;
  opacity: 0.7;
}

/* Bundle Edit Toolbar */
.bundle-edit-toolbar {
  margin-bottom: 1rem;
  padding: 1rem;
  background: rgba(15, 24, 46, 0.03);
  border-radius: 8px;
  border: 1px solid rgba(15, 24, 46, 0.08);
}

.bundle-edit-toolbar .filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.bundle-edit-toolbar .filter-row .form-control.compact {
  max-width: 150px;
}

.bundle-edit-toolbar .copy-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.bundle-edit-toolbar .copy-label {
  font-size: 0.875rem;
  color: var(--color-text-secondary, #6b7280);
  font-weight: 500;
}

/* Bundle item row copied feedback */
.bundle-items-table input.copied {
  background: rgba(16, 185, 129, 0.15) !important;
  border-color: rgba(16, 185, 129, 0.4) !important;
  transition: all 0.2s ease;
}

/* Compact input in bundle table */
.form-control.compact-input {
  width: 80px;
  padding: 0.25rem 0.5rem;
  font-size: 0.875rem;
}

/* Bundle selection buttons row */
.bundle-edit-toolbar .selection-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

/* Checkbox cell styling */
.bundle-items-table .checkbox-cell {
  text-align: center;
  padding: 0.5rem;
}

.bundle-items-table .item-checkbox {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: #6366f1;
}

/* Excluded row styling */
.bundle-items-table tr.excluded-row {
  opacity: 0.4;
  background: rgba(100, 100, 120, 0.1);
}

.bundle-items-table tr.excluded-row td {
  text-decoration: line-through;
  text-decoration-color: rgba(255, 255, 255, 0.3);
}

/* Sold row styling */
.bundle-items-table tr.sold-row {
  background: rgba(220, 38, 38, 0.08);
}

.bundle-items-table tr.sold-row td:first-child {
  position: relative;
}

.bundle-items-table tr.sold-row td:first-child::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--danger);
}

.badge-sold {
  display: inline-block;
  background: var(--danger);
  color: white;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  margin-left: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

/* Listed row styling */
.bundle-items-table tr.listed-row {
  background: rgba(245, 158, 11, 0.08);
}

.bundle-items-table tr.listed-row td:first-child {
  position: relative;
}

.bundle-items-table tr.listed-row td:first-child::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--warning);
}

.badge-listed {
  display: inline-block;
  background: var(--warning);
  color: white;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  margin-left: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  cursor: help;
}

/* Bundle card style */
.auction-card--bundle {
  background: linear-gradient(135deg, #1e1b4b 0%, #312e81 100%);
  border: 2px solid #6366f1;
}

.auction-card--bundle .auction-card-top-meta {
  background: rgba(99, 102, 241, 0.15);
}

.auction-card--bundle .top-meta-name.bundle-name {
  font-size: 1.1rem;
  color: #e0e7ff;
  font-weight: 700;
}

.auction-card--bundle .auction-card-body {
  background: rgba(30, 27, 75, 0.6);
}

.auction-card--bundle .auction-card-footer {
  background: rgba(49, 46, 129, 0.8);
}

.bundle-nft-count {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(99, 102, 241, 0.95);
  color: white;
  padding: 0.5rem 0.9rem;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 700;
  z-index: 10;
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.4);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: background 0.2s ease;
}

.bundle-nft-count:hover {
  background: rgba(79, 70, 229, 1);
}

.bundle-nft-count .info-icon {
  font-size: 1rem;
  opacity: 0.9;
}

.bundle-cover-wrapper {
  position: relative;
}

.bundle-count-tag {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(15, 23, 43, 0.95);
  color: #ffffff;
  padding: 0.35rem 0.7rem;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  z-index: 12;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.bundle-overlay-top {
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
  z-index: 11;
  pointer-events: none;
}

.bundle-rarity-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.rarity-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  font-size: 0.6rem;
  font-weight: 700;
  background: #111827;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.15);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.rarity-chip--sr { background: #4c1d95; }
.rarity-chip--r { background: #1d4ed8; }
.rarity-chip--c { background: #374151; }
.rarity-chip--uc { background: #047857; }
.rarity-chip--ur { background: #a16207; }
.rarity-chip--m { background: #be185d; }
.rarity-chip--ex { background: #c2410c; }

.bundle-info-btn {
  pointer-events: auto;
  border: 2px solid #ffffff;
  background: rgba(15, 23, 43, 0.9);
  color: #ffffff;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.bundle-info-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
}

.bundle-cover {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bundle-cover-base {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Bundle Detail Modal */
.bundle-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  align-items: center;
  justify-content: center;
}

.bundle-modal.is-open {
  display: flex;
}

.bundle-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
}

.bundle-modal-panel {
  position: relative;
  background: #ffffff;
  border: 2px solid #000000;
  border-radius: 12px;
  max-width: 95vw;
  max-height: 85vh;
  width: 1100px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
}

.bundle-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: transparent;
  border: none;
  color: #000000;
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 10;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.bundle-modal-close:hover {
  background: #000000;
  color: #ffffff;
}

.bundle-modal-header {
  padding: 1.5rem;
  border-bottom: 2px solid #000000;
}

.bundle-modal-header h2 {
  margin: 0;
  font-size: 1.25rem;
  color: #000000;
}

.bundle-modal-header .muted {
  margin: 0.25rem 0 0;
  font-size: 0.875rem;
  color: #000000;
  opacity: 0.7;
}

.bundle-modal-body {
  flex: 1;
  overflow: auto;
  padding: 1rem;
}

.bundle-modal-table-wrapper {
  overflow-x: auto;
}

.bundle-detail-table {
  width: 100%;
  border-collapse: collapse;
}

.bundle-detail-table th,
.bundle-detail-table td {
  padding: 0.5rem 0.75rem;
  text-align: left;
  border-bottom: 1px solid #e5e7eb;
  font-size: 0.875rem;
}

.bundle-detail-table th {
  background: #f5f5f5;
  font-weight: 600;
  color: #000000;
  white-space: nowrap;
}

.bundle-detail-table .nft-thumb {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: 4px;
}

.bundle-detail-table th.is-sortable {
  cursor: pointer;
  user-select: none;
  transition: background 0.15s ease;
}

.bundle-detail-table th.is-sortable:hover {
  background: #e5e7eb;
}

.bundle-detail-table th.is-sorted-asc::after {
  content: ' ▲';
  font-size: 0.7em;
  opacity: 0.7;
}

.bundle-detail-table th.is-sorted-desc::after {
  content: ' ▼';
  font-size: 0.7em;
  opacity: 0.7;
}

/* ============================================================================
   Referral Modal
   ========================================================================= */

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 1rem;
  backdrop-filter: blur(4px);
}

.modal-content {
  background: linear-gradient(145deg, #1a1a2e, #16213e);
  border-radius: 16px;
  max-width: 420px;
  width: 100%;
  position: relative;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-content--referral {
  animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #fff;
  font-size: 1.5rem;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  line-height: 1;
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: rotate(90deg);
}

.modal-header {
  padding: 1.5rem 1.5rem 0;
  text-align: center;
}

.modal-header h2 {
  margin: 0;
  font-size: 1.5rem;
  color: #fff;
  font-weight: 700;
}

.modal-body {
  padding: 1.5rem;
  color: #d1d5db;
}

.modal-body p {
  margin: 0 0 1rem;
  text-align: center;
  line-height: 1.5;
}

.modal-body .modal-hint {
  font-size: 0.875rem;
  color: #9ca3af;
  margin-bottom: 1.5rem;
}

/* Referral Form */
.referral-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.referral-input {
  width: 100%;
  padding: 1rem;
  font-size: 1.25rem;
  font-weight: 700;
  text-align: center;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: #fff;
  outline: none;
  transition: all 0.2s ease;
}

.referral-input::placeholder {
  color: #374151;
  font-weight: 400;
  letter-spacing: 0.05em;
}

.referral-input:focus {
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}

.referral-error {
  background: rgba(220, 38, 38, 0.1);
  border: 1px solid rgba(220, 38, 38, 0.3);
  color: #fca5a5;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-size: 0.875rem;
  text-align: center;
}

.referral-submit {
  width: 100%;
  padding: 1rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.referral-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
/* ===========================================
   LOYALTY PAGE - Dedicated Stylesheet
   Light theme: dark text on light backgrounds
   =========================================== */

.loyalty-dashboard {
  max-width: 900px;
  margin: 2rem auto;
  padding: 2rem;
  background: #ffffff !important;
  border-radius: 16px;
  border: 1px solid #d1d5db;
}

/* Force all text to be dark */
.loyalty-dashboard,
.loyalty-dashboard *:not(.loyalty-balance-card *):not(.claimable-banner *):not(.btn-claim):not(.btn-claim-all):not(.reward-multiplier) {
  color: #111827 !important;
}

/* ===========================================
   HERO CARD - Purple gradient with white text
   =========================================== */

.loyalty-balance-card {
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%) !important;
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
  margin-bottom: 1.5rem;
}

.loyalty-balance-card,
.loyalty-balance-card * {
  color: #ffffff !important;
}

.loyalty-balance-label {
  display: block;
  font-size: 0.9rem;
  opacity: 0.9;
  margin-bottom: 0.5rem;
}

.loyalty-balance-value {
  display: block;
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.loyalty-balance-currency {
  font-size: 1.25rem;
  font-weight: 600;
}

.claimable-banner {
  margin-top: 1rem;
  padding: 0.6rem 1.25rem;
  background: #22c55e !important;
  border-radius: 20px;
  display: inline-flex;
  gap: 0.5rem;
}

.claimable-banner,
.claimable-banner * {
  color: #ffffff !important;
}

.claimable-amount {
  font-weight: 700;
}

/* ===========================================
   BREAKDOWN STATS
   =========================================== */

.loyalty-hero {
  margin-bottom: 2rem;
}

.loyalty-breakdown {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1rem;
}

.breakdown-item {
  background: #f9fafb !important;
  border: 1px solid #d1d5db;
  border-radius: 12px;
  padding: 1rem;
  text-align: center;
}

.breakdown-early-adopter {
  background: #fef3c7 !important;
  border-color: #fcd34d;
}

.breakdown-value {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  color: #111827 !important;
  margin-bottom: 0.25rem;
}

.breakdown-label {
  font-size: 0.75rem;
  color: #374151 !important;
  text-transform: uppercase;
}

/* ===========================================
   CLAIMABLE SECTION - Light green
   =========================================== */

.loyalty-claimable {
  background: #ecfdf5 !important;
  border: 1px solid #a7f3d0;
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.section-header h2 {
  margin: 0;
  font-size: 1.2rem;
  color: #111827 !important;
}

/* ===========================================
   PENDING SECTION - Light yellow
   =========================================== */

.loyalty-pending {
  background: #fffbeb !important;
  border: 1px solid #fde68a;
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.loyalty-pending h2 {
  color: #92400e !important;
  margin: 0 0 0.25rem 0;
  font-size: 1.2rem;
}

.pending-subtitle {
  color: #374151 !important;
  font-size: 0.85rem;
  margin-bottom: 1rem;
}

/* ===========================================
   INFO & HISTORY SECTIONS - Light gray
   =========================================== */

.loyalty-rewards-info {
  background: #f9fafb !important;
  border: 1px solid #d1d5db;
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.loyalty-rewards-info h3 {
  text-align: center;
  margin-bottom: 1.5rem;
  color: #111827 !important;
}

.loyalty-history {
  background: #f9fafb !important;
  border: 1px solid #d1d5db;
  border-radius: 12px;
  padding: 1.5rem;
}

.loyalty-history h2 {
  margin-bottom: 1rem;
  color: #111827 !important;
}

/* ===========================================
   BUTTONS
   =========================================== */

.btn-claim-all,
.btn-claim {
  background: #22c55e !important;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  color: #ffffff !important;
}

.btn-claim-all:hover,
.btn-claim:hover {
  background: #16a34a !important;
}

/* ===========================================
   REWARD ITEMS
   =========================================== */

.rewards-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.reward-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #ffffff !important;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  padding: 1rem;
}

.reward-pending {
  background: #fffef7 !important;
  border-style: dashed;
  border-color: #fcd34d;
}

.reward-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.reward-amount {
  font-size: 1.2rem;
  font-weight: 700;
  color: #059669 !important;
}

.reward-amount-pending {
  color: #9ca3af !important;
}

.reward-auction-link {
  color: #6366f1 !important;
  text-decoration: none;
  font-size: 0.85rem;
}

.expiry-warning {
  font-size: 0.75rem;
  color: #92400e !important;
  background: #fef3c7 !important;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
}

.pending-countdown {
  text-align: right;
}

.countdown-label {
  display: block;
  font-size: 0.7rem;
  color: #374151 !important;
}

.countdown-value {
  font-weight: 600;
  color: #d97706 !important;
}

/* ===========================================
   REWARDS GRID
   =========================================== */

.rewards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
}

.reward-card {
  text-align: center;
  padding: 1rem;
  background: #ffffff !important;
  border: 1px solid #d1d5db;
  border-radius: 10px;
}

.reward-multiplier {
  width: 48px;
  height: 48px;
  background: #6366f1 !important;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  margin: 0 auto 0.75rem;
  color: #ffffff !important;
}

.reward-title {
  font-weight: 600;
  color: #111827 !important;
  margin-bottom: 0.25rem;
}

.reward-desc {
  font-size: 0.8rem;
  color: #374151 !important;
}

.rewards-warning {
  text-align: center;
  margin-top: 1.5rem;
  font-size: 0.85rem;
  color: #92400e !important;
  background: #fef3c7 !important;
  padding: 0.75rem;
  border-radius: 8px;
}

/* ===========================================
   TABLE
   =========================================== */

.table-responsive {
  overflow-x: auto;
}

.loyalty-table {
  width: 100%;
  border-collapse: collapse;
  background: transparent !important;
}

.loyalty-table th,
.loyalty-table td {
  padding: 0.75rem;
  text-align: left;
  border-bottom: 1px solid #e5e7eb;
  background: transparent !important;
}

.loyalty-table th {
  color: #374151 !important;
  font-weight: 500;
  font-size: 0.75rem;
  text-transform: uppercase;
}

.loyalty-table td {
  color: #111827 !important;
}

.loyalty-table tbody tr:hover {
  background: #f3f4f6 !important;
}

.date-cell {
  white-space: nowrap;
  color: #111827 !important;
}

.time-sub {
  display: block;
  font-size: 0.7rem;
  color: #374151 !important;
}

.amount-cell {
  font-weight: 700;
}

.amount-positive {
  color: #059669 !important;
}

.amount-negative {
  color: #dc2626 !important;
}

/* ===========================================
   BADGES
   =========================================== */

.reason-badge {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 12px;
  font-size: 0.7rem;
  font-weight: 600;
}

.reason-winner_reward {
  background: #fef3c7 !important;
  color: #92400e !important;
}

.reason-second_place {
  background: #e0e7ff !important;
  color: #4338ca !important;
}

.reason-third_place {
  background: #f3e8ff !important;
  color: #7e22ce !important;
}

.reason-seller_risk {
  background: #d1fae5 !important;
  color: #047857 !important;
}

.reason-referral_bonus,
.reason-activation_bonus {
  background: #e0f2fe !important;
  color: #0369a1 !important;
}

.reason-early_adopter {
  background: #fef3c7 !important;
  color: #92400e !important;
}

/* ===========================================
   MISC
   =========================================== */

.auction-link {
  color: #6366f1 !important;
  text-decoration: none;
}

.related-user,
.description-text {
  font-size: 0.85rem;
  color: #374151 !important;
}

.empty-state {
  text-align: center;
  padding: 2rem;
}

.empty-state p {
  color: #374151 !important;
}

.empty-hint {
  color: #9ca3af !important;
}

.pagination-container {
  margin-top: 2rem;
  display: flex;
  justify-content: center;
}

.pagination-wrapper {
  display: flex;
  justify-content: center;
}

.pagination,
.pagy-nav {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid rgba(15, 24, 46, 0.1);
  box-shadow: 0 10px 24px rgba(15, 24, 46, 0.08);
}

.pagination-link,
.pagination-info,
.pagy-nav a,
.pagy-nav .page {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 32px;
  padding: 0 0.65rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--text, #111827);
  text-decoration: none;
  border: 1px solid transparent;
}

.pagination-link:hover,
.pagy-nav a:hover {
  background: rgba(15, 24, 46, 0.06);
}

.pagination-info,
.pagy-nav .current {
  background: rgba(79, 70, 229, 0.14);
  color: #312e81;
  border-color: rgba(79, 70, 229, 0.3);
}

.pagy-nav .disabled {
  color: var(--text-muted, #6b7280);
  opacity: 0.55;
}

/* ===========================================
   RESPONSIVE
   =========================================== */

@media (max-width: 640px) {
  .loyalty-dashboard {
    margin: 1rem;
    padding: 1rem;
  }

  .loyalty-balance-value {
    font-size: 2.5rem;
  }

  .section-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .reward-item {
    flex-direction: column;
    gap: 0.75rem;
    align-items: flex-start;
  }

  .btn-claim {
    width: 100%;
  }

  .pending-countdown {
    text-align: left;
  }
}
