/* ── Reset & Base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --black:   #0a0a0a;
  --dark:    #111111;
  --panel:   rgba(10,10,10,0.85);
  --white:   #ffffff;
  --off:     #aaaaaa;
  --accent:  #ff2d2d;
  --accent2: #ff6b00;
  --green:   #00e676;
  --radius:  12px;
  --font:    'Helvetica Neue', Arial, sans-serif;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

html, body {
  height: 100%;
  width: 100%;
  overflow: hidden;
  background: var(--black);
  color: var(--white);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
}

/* ── Header ──────────────────────────────────────────────── */
.app-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px env(safe-area-inset-top, 14px);
  padding-top: max(14px, env(safe-area-inset-top));
  background: linear-gradient(to bottom, rgba(10,10,10,0.95) 0%, transparent 100%);
}

.header-logo {
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white);
}
.header-logo span { color: var(--accent); }

.header-live {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--accent);
  border: 1px solid var(--accent);
  padding: 4px 10px;
  border-radius: 20px;
}
.live-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse-dot 1.2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.7); }
}

/* ── Feed ────────────────────────────────────────────────── */
.feed {
  position: fixed;
  inset: 0;
  overflow-y: scroll;
  scroll-snap-type: y mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.feed::-webkit-scrollbar { display: none; }

/* ── Slide ───────────────────────────────────────────────── */
.slide {
  position: relative;
  width: 100%;
  height: 100dvh;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  overflow: hidden;
  flex-shrink: 0;
}

.slide-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  will-change: transform;
  transform: scale(1.05);
  transition: transform 0.6s ease;
}
.slide.is-active .slide-bg { transform: scale(1); }

.slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(10,10,10,0.15) 0%,
    transparent 30%,
    transparent 45%,
    rgba(10,10,10,0.6) 70%,
    rgba(10,10,10,0.95) 100%
  );
}

/* ── Content block ───────────────────────────────────────── */
.slide-content {
  position: absolute;
  bottom: 0;
  left: 0; right: 0;
  padding: 0 20px;
  padding-bottom: calc(80px + var(--safe-bottom));
}

.seller-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--off);
  margin-bottom: 8px;
  text-transform: uppercase;
}

.product-title {
  font-size: clamp(22px, 5vw, 30px);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 16px;
  max-width: 85%;
  text-shadow: 0 2px 16px rgba(0,0,0,0.7);
}

/* ── Price row ───────────────────────────────────────────── */
.price-row {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  margin-bottom: 18px;
}

.price-block { display: flex; flex-direction: column; }
.price-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--off);
  text-transform: uppercase;
  margin-bottom: 2px;
}
.price-amount {
  font-size: clamp(36px, 9vw, 52px);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--white);
}
.price-currency {
  font-size: 0.45em;
  font-weight: 700;
  vertical-align: super;
  letter-spacing: 0;
}

/* ── Timer ───────────────────────────────────────────────── */
.timer-block {
  margin-left: auto;
  text-align: right;
}
.timer-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--off);
  text-transform: uppercase;
  margin-bottom: 2px;
}
.timer-value {
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 0.05em;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.timer-value.urgent { animation: urgency 0.5s ease-in-out infinite alternate; }
@keyframes urgency {
  from { color: var(--accent); }
  to { color: var(--accent2); }
}

/* ── Bid button ──────────────────────────────────────────── */
.bid-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 18px 24px;
  background: var(--white);
  color: var(--black);
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}
.bid-btn:active { transform: scale(0.97); background: #e0e0e0; }
.bid-btn.bidding {
  background: var(--accent);
  color: var(--white);
  transform: scale(1.02);
}
.bid-btn.success {
  background: var(--green);
  color: var(--black);
}
.bid-btn svg { width: 18px; height: 18px; flex-shrink: 0; }

/* ── Right rail (info badges) ────────────────────────────── */
.slide-rail {
  position: absolute;
  right: 16px;
  bottom: 220px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
}
.rail-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  cursor: pointer;
}
.rail-icon {
  width: 44px; height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.12);
  border-radius: 50%;
  backdrop-filter: blur(4px);
}
.rail-icon svg { width: 22px; height: 22px; color: var(--white); }
.rail-count {
  font-size: 11px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.05em;
}

/* ── Slide index dots ────────────────────────────────────── */
.slide-index {
  position: fixed;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 50;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.dot {
  width: 3px; height: 20px;
  border-radius: 2px;
  background: rgba(255,255,255,0.25);
  transition: background 0.3s, height 0.3s;
}
.dot.active {
  background: var(--white);
  height: 28px;
}

/* ── Wear duration badge ─────────────────────────────────── */
.wear-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 14px;
  padding: 7px 14px;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 4px;
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(6px);
}
.wear-icon {
  width: 13px;
  height: 13px;
  color: rgba(255,255,255,0.5);
  flex-shrink: 0;
}
.wear-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
}
.wear-sep {
  color: rgba(255,255,255,0.2);
  font-size: 11px;
}
.wear-value {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white);
}

/* ── Status badge ────────────────────────────────────────── */
.status-badge {
  position: absolute;
  top: 64px;
  left: 16px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 4px;
  background: var(--accent);
  color: var(--white);
}

/* ── Bottom Nav ──────────────────────────────────────────── */
.bottom-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 10px 0 calc(10px + var(--safe-bottom));
  background: rgba(10,10,10,0.92);
  backdrop-filter: blur(16px);
  border-top: 1px solid rgba(255,255,255,0.07);
}
.nav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  background: none;
  border: none;
  color: rgba(255,255,255,0.4);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  padding: 4px 20px;
  -webkit-tap-highlight-color: transparent;
  transition: color 0.2s;
}
.nav-btn svg { width: 22px; height: 22px; }
.nav-btn.active { color: var(--white); }

/* ── Loading screen ──────────────────────────────────────── */
.loading-screen {
  height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  background: var(--black);
}
.loading-logo {
  font-size: 32px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.loading-logo span { color: var(--accent); }
.loading-bar {
  width: 120px; height: 2px;
  background: rgba(255,255,255,0.12);
  border-radius: 2px;
  overflow: hidden;
}
.loading-bar-inner {
  height: 100%;
  background: var(--accent);
  border-radius: 2px;
  animation: load-sweep 1.4s ease-in-out infinite;
}
@keyframes load-sweep {
  0%   { width: 0%; margin-left: 0; }
  50%  { width: 60%; margin-left: 20%; }
  100% { width: 0%; margin-left: 100%; }
}
.loading-text {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--off);
  text-transform: uppercase;
}

/* ── Error state ─────────────────────────────────────────── */
.error-slide {
  height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 40px;
  text-align: center;
}
.error-slide h2 {
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
}
.error-slide p { font-size: 14px; color: var(--off); line-height: 1.6; }
.error-slide .retry-btn {
  margin-top: 8px;
  padding: 14px 28px;
  background: var(--white);
  color: var(--black);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
}

/* ── Empty state ─────────────────────────────────────────── */
.empty-slide {
  height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-align: center;
  padding: 40px;
}
.empty-slide h2 {
  font-size: 18px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.empty-slide p { font-size: 13px; color: var(--off); }

/* ── Price flash ─────────────────────────────────────────── */
@keyframes price-pop {
  0%   { transform: scale(1);    color: var(--white); }
  30%  { transform: scale(1.12); color: var(--green); }
  100% { transform: scale(1);    color: var(--white); }
}
.price-amount.price-flash { animation: price-pop 0.7s ease-out forwards; }

/* ── Bid button states ───────────────────────────────────── */
.bid-btn.loading {
  background: rgba(255,255,255,0.12);
  color: transparent;
  pointer-events: none;
  position: relative;
  overflow: hidden;
}
.bid-btn.loading::after {
  content: '';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.bid-btn.loading::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 22px; height: 22px;
  margin: -11px 0 0 -11px;
  border: 2.5px solid rgba(255,255,255,0.2);
  border-top-color: rgba(255,255,255,0.85);
  border-radius: 50%;
  animation: spin 0.65s linear infinite;
  z-index: 1;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

.bid-btn.success {
  background: var(--green);
  color: var(--black);
  pointer-events: none;
}
.bid-btn.error {
  background: var(--accent);
  color: var(--white);
  pointer-events: none;
}
.bid-btn.shake {
  animation: btn-shake 0.4s ease;
}
@keyframes btn-shake {
  0%,100% { transform: translateX(0); }
  20%     { transform: translateX(-6px); }
  40%     { transform: translateX(6px); }
  60%     { transform: translateX(-4px); }
  80%     { transform: translateX(4px); }
}

/* ── Toast notification ──────────────────────────────────── */
.toast {
  position: fixed;
  top: 70px;
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  z-index: 300;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s, transform 0.2s;
  white-space: nowrap;
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.toast.toast-success { background: var(--green);  color: var(--black); }
.toast.toast-error   { background: var(--accent); color: var(--white); }
.toast.toast-info    { background: #1a1a1a; color: var(--white); border: 1px solid rgba(255,255,255,0.15); }

/* ═══════════════════════════════════════════════════════════
   DASHBOARD PANEL
════════════════════════════════════════════════════════════ */
.dashboard-backdrop {
  position: fixed; inset: 0; z-index: 299;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s ease;
}
.dashboard-backdrop.visible { opacity: 1; pointer-events: all; }

.dashboard-panel {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 300;
  background: #111;
  border-radius: 20px 20px 0 0;
  height: 88dvh;
  transform: translateY(100%);
  transition: transform 0.38s cubic-bezier(0.32, 0.72, 0, 1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.dashboard-panel.open { transform: translateY(0); }

.dashboard-handle {
  width: 36px; height: 4px;
  background: rgba(255,255,255,0.15);
  border-radius: 2px;
  margin: 12px auto 0;
  flex-shrink: 0;
}
.dashboard-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px 12px;
  flex-shrink: 0;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.dashboard-title {
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.14em;
  color: var(--white);
}
.dashboard-close {
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.08);
  border: none; border-radius: 50%;
  cursor: pointer; color: var(--white);
}
.dashboard-close svg { width: 16px; height: 16px; }

.dashboard-user-tag {
  padding: 6px 20px 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--off);
  flex-shrink: 0;
}

.dashboard-content {
  flex: 1;
  overflow-y: auto;
  padding: 8px 16px calc(16px + var(--safe-bottom));
  scrollbar-width: none;
}
.dashboard-content::-webkit-scrollbar { display: none; }

/* ── Dashboard sections ──────────────────────────────────── */
.dash-section { margin-bottom: 28px; }

.dash-section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--off);
  margin-bottom: 12px;
}
.dash-section-title svg { width: 14px; height: 14px; flex-shrink: 0; }

.dash-loading {
  text-align: center;
  padding: 40px 0;
  font-size: 12px;
  color: var(--off);
  letter-spacing: 0.08em;
}
.dash-error {
  text-align: center;
  padding: 24px;
  font-size: 13px;
  color: var(--accent);
  line-height: 1.6;
}
.dash-empty {
  padding: 20px;
  background: rgba(255,255,255,0.04);
  border-radius: 10px;
  text-align: center;
  font-size: 12px;
  color: var(--off);
  letter-spacing: 0.06em;
}

/* ── Dashboard cards ─────────────────────────────────────── */
.dash-card {
  display: flex;
  gap: 12px;
  background: rgba(255,255,255,0.05);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 10px;
}
.dash-card-img {
  width: 80px;
  flex-shrink: 0;
  background-size: cover;
  background-position: center;
}
.dash-card-body {
  flex: 1;
  padding: 12px 12px 12px 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.dash-card-title {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--white);
  line-height: 1.2;
}
.dash-card-price {
  font-size: 16px;
  font-weight: 900;
  color: var(--white);
}
.dash-card-label {
  font-size: 10px;
  font-weight: 600;
  color: var(--off);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.dash-card-meta {
  font-size: 10px;
  color: var(--off);
  letter-spacing: 0.04em;
  margin-bottom: 2px;
}

.dash-card-status {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  width: fit-content;
  margin-top: 4px;
}
.dash-card-status.pending  { background: rgba(255,255,255,0.08); color: var(--off); }
.dash-card-status.relay    { background: rgba(0,230,118,0.12); color: var(--green); }
.dash-card-status.shipped  { background: rgba(0,230,118,0.15); color: var(--green); }
.dash-card-status.active   { background: rgba(255,45,45,0.12); color: var(--accent); }

.dash-action-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  padding: 9px 14px;
  background: var(--white);
  color: var(--black);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  width: 100%;
  justify-content: center;
  transition: opacity 0.2s;
}
.dash-action-btn svg { width: 14px; height: 14px; flex-shrink: 0; }
.dash-action-btn.secondary {
  background: rgba(255,255,255,0.1);
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.15);
}
.dash-action-btn:active { opacity: 0.75; }

/* ═══════════════════════════════════════════════════════════
   RELAY MODAL
════════════════════════════════════════════════════════════ */
.relay-backdrop {
  position: fixed; inset: 0; z-index: 399;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(6px);
  opacity: 0; pointer-events: none;
  transition: opacity 0.25s ease;
}
.relay-backdrop.visible { opacity: 1; pointer-events: all; }

.relay-modal {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 400;
  background: #0f0f0f;
  border-radius: 20px 20px 0 0;
  transform: translateY(100%);
  transition: transform 0.32s cubic-bezier(0.32, 0.72, 0, 1);
  max-height: 78dvh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.relay-modal.open { transform: translateY(0); }

.relay-modal-inner {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  flex: 1;
}
.relay-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 20px 12px;
  flex-shrink: 0;
}
.relay-modal-title {
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.14em;
  color: var(--white);
}
.relay-modal-close {
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.08);
  border: none; border-radius: 50%;
  cursor: pointer; color: var(--white);
}
.relay-modal-close svg { width: 16px; height: 16px; }

.relay-modal-subtitle {
  padding: 0 20px 16px;
  font-size: 12px;
  color: var(--off);
  line-height: 1.6;
  letter-spacing: 0.02em;
  flex-shrink: 0;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.relay-list {
  overflow-y: auto;
  padding: 12px 16px calc(16px + var(--safe-bottom));
  scrollbar-width: none;
}
.relay-list::-webkit-scrollbar { display: none; }

.relay-point-card {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  margin-bottom: 8px;
  cursor: pointer;
  text-align: left;
  transition: background 0.2s, border-color 0.2s;
  -webkit-tap-highlight-color: transparent;
}
.relay-point-card:active,
.relay-point-card:hover { background: rgba(255,255,255,0.09); border-color: rgba(255,255,255,0.18); }
.relay-point-card.disabled { opacity: 0.4; pointer-events: none; }

.relay-point-info { flex: 1; }
.relay-point-name {
  font-size: 13px;
  font-weight: 800;
  color: var(--white);
  letter-spacing: 0.03em;
  margin-bottom: 3px;
}
.relay-point-addr {
  font-size: 11px;
  color: var(--off);
  margin-bottom: 2px;
}
.relay-point-hours {
  font-size: 10px;
  color: rgba(255,255,255,0.3);
  letter-spacing: 0.04em;
}
.relay-point-distance {
  font-size: 12px;
  font-weight: 800;
  color: var(--green);
  letter-spacing: 0.04em;
  white-space: nowrap;
  flex-shrink: 0;
}

/* ═══════════════════════════════════════════════════════════
   SELL BUTTON (center nav)
════════════════════════════════════════════════════════════ */
.nav-sell-btn { gap: 2px; }
.nav-sell-icon {
  width: 38px; height: 38px;
  background: var(--accent);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 2px;
  transition: transform 0.15s ease, background 0.15s;
}
.nav-sell-icon svg { width: 20px; height: 20px; color: var(--white); }
.nav-sell-btn.active .nav-sell-icon,
.nav-sell-btn:active .nav-sell-icon { transform: scale(0.93); background: #cc1f1f; }

/* ═══════════════════════════════════════════════════════════
   SELL PANEL
════════════════════════════════════════════════════════════ */
.sell-backdrop {
  position: fixed; inset: 0; z-index: 399;
  background: rgba(0,0,0,0.65);
  backdrop-filter: blur(5px);
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s ease;
}
.sell-backdrop.visible { opacity: 1; pointer-events: all; }

.sell-panel {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 400;
  background: #111;
  border-radius: 20px 20px 0 0;
  height: 92dvh;
  transform: translateY(100%);
  transition: transform 0.38s cubic-bezier(0.32, 0.72, 0, 1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.sell-panel.open { transform: translateY(0); }

.sell-handle {
  width: 36px; height: 4px;
  background: rgba(255,255,255,0.15);
  border-radius: 2px;
  margin: 12px auto 0;
  flex-shrink: 0;
}
.sell-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 20px 12px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  flex-shrink: 0;
}
.sell-title {
  font-size: 13px; font-weight: 900;
  letter-spacing: 0.14em; color: var(--white);
}
.sell-close {
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.08);
  border: none; border-radius: 50%;
  cursor: pointer; color: var(--white);
}
.sell-close svg { width: 16px; height: 16px; }

/* ── Form ────────────────────────────────────────────────── */
.sell-form {
  flex: 1;
  overflow-y: auto;
  padding: 16px 16px calc(24px + var(--safe-bottom));
  display: flex; flex-direction: column; gap: 16px;
  scrollbar-width: none;
}
.sell-form::-webkit-scrollbar { display: none; }

.sell-field { display: flex; flex-direction: column; gap: 6px; }
.sell-row { display: flex; gap: 12px; }
.sell-field-half { flex: 1; }

.sell-label {
  font-size: 10px; font-weight: 800;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--off);
}
.sell-label-hint { font-weight: 600; color: rgba(255,255,255,0.25); }
.sell-required { color: var(--accent); }

.sell-input {
  width: 100%;
  padding: 13px 14px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  color: var(--white);
  font-size: 14px;
  font-family: var(--font);
  outline: none;
  transition: border-color 0.2s;
  -webkit-appearance: none;
}
.sell-input::placeholder { color: rgba(255,255,255,0.25); }
.sell-input:focus { border-color: rgba(255,255,255,0.35); }

.sell-textarea { resize: none; min-height: 80px; line-height: 1.5; }

.sell-select-wrapper { position: relative; }
.sell-select { appearance: none; padding-right: 36px; cursor: pointer; }
.sell-select-arrow {
  position: absolute; right: 12px; top: 50%;
  transform: translateY(-50%);
  width: 16px; height: 16px;
  color: var(--off);
  pointer-events: none;
}
.sell-select option { background: #1a1a1a; color: var(--white); }

.sell-char-count {
  font-size: 10px; color: rgba(255,255,255,0.25);
  letter-spacing: 0.06em; text-align: right;
}

.sell-moderation-warn {
  font-size: 11px; color: #ff9500;
  font-weight: 600; letter-spacing: 0.04em;
  display: none;
}
.sell-moderation-warn.visible { display: block; }

/* ── Photo upload ────────────────────────────────────────── */
.photo-grid {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-bottom: 10px;
}
.photo-add-btn {
  width: 80px; height: 80px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 4px;
  background: rgba(255,255,255,0.05);
  border: 1.5px dashed rgba(255,255,255,0.2);
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
  color: var(--off);
  font-size: 10px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
}
.photo-add-btn svg { width: 24px; height: 24px; }
.photo-add-btn:active { background: rgba(255,255,255,0.1); }

.photo-preview {
  width: 80px; height: 80px;
  border-radius: 10px;
  background-size: cover; background-position: center;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}
.photo-preview.loading::after {
  content: '';
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.55);
}
.photo-preview-spinner {
  position: absolute; top: 50%; left: 50%;
  width: 20px; height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid rgba(255,255,255,0.2);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.65s linear infinite;
  z-index: 2;
  display: none;
}
.photo-preview.loading .photo-preview-spinner { display: block; }
.photo-preview-overlay {
  position: absolute; inset: 0;
  display: flex; align-items: flex-start; justify-content: flex-end;
  padding: 4px;
  background: linear-gradient(135deg, transparent 60%, rgba(0,0,0,0.5) 100%);
  opacity: 0;
  transition: opacity 0.2s;
}
.photo-preview:hover .photo-preview-overlay { opacity: 1; }
.photo-remove-btn {
  width: 20px; height: 20px;
  background: var(--accent);
  border: none; border-radius: 50%;
  color: white; font-size: 13px; line-height: 1;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
}

.photo-privacy-note {
  display: flex; align-items: center; gap: 6px;
  font-size: 10px; color: rgba(255,255,255,0.3);
  letter-spacing: 0.04em; line-height: 1.4;
}
.photo-privacy-note svg { width: 12px; height: 12px; flex-shrink: 0; }

/* ── Commission notice ───────────────────────────────────── */
.sell-commission-notice {
  display: flex; align-items: flex-start; gap: 8px;
  padding: 12px 14px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  font-size: 11px; color: var(--off); line-height: 1.6;
  letter-spacing: 0.02em;
}
.sell-commission-notice svg { width: 14px; height: 14px; flex-shrink: 0; margin-top: 1px; }

/* ── Submit button ───────────────────────────────────────── */
.sell-submit {
  display: flex; align-items: center; justify-content: center;
  gap: 8px;
  width: 100%; padding: 17px 24px;
  background: var(--white);
  color: var(--black);
  font-size: 15px; font-weight: 900;
  letter-spacing: 0.08em; text-transform: uppercase;
  border: none; border-radius: 10px;
  cursor: pointer;
  transition: transform 0.15s, opacity 0.15s;
  -webkit-tap-highlight-color: transparent;
}
.sell-submit svg { width: 18px; height: 18px; }
.sell-submit:active { transform: scale(0.98); opacity: 0.9; }
.sell-submit:disabled { opacity: 0.5; pointer-events: none; }

/* ═══════════════════════════════════════════════════════════
   WALLET CARD
════════════════════════════════════════════════════════════ */
.wallet-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.wallet-balances {
  display: flex;
  gap: 12px;
}
.wallet-balance-block {
  flex: 1;
  background: rgba(255,255,255,0.05);
  border-radius: 8px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.wallet-balance-label {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--off);
}
.wallet-balance-amount {
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--white);
}
.wallet-balance-amount.available { color: #4ade80; }
.wallet-balance-amount.pending   { color: #fb923c; }
.wallet-balance-sub {
  font-size: 9px;
  color: rgba(255,255,255,0.3);
  letter-spacing: 0.05em;
}
.wallet-statement {
  font-size: 10px;
  color: rgba(255,255,255,0.3);
  letter-spacing: 0.06em;
  line-height: 1.5;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  background: rgba(255,255,255,0.03);
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.06);
}
.wallet-statement svg { width: 12px; height: 12px; flex-shrink: 0; }
.wallet-statement strong {
  color: rgba(255,255,255,0.55);
  font-family: monospace;
  letter-spacing: 0.08em;
}
.wallet-payout-btn {
  width: 100%;
  padding: 14px;
  background: #4ade80;
  color: #0a0a0a;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  transition: transform 0.15s, opacity 0.15s;
  -webkit-tap-highlight-color: transparent;
}
.wallet-payout-btn svg { width: 15px; height: 15px; }
.wallet-payout-btn:active { transform: scale(0.98); opacity: 0.9; }
.wallet-payout-btn:disabled { opacity: 0.4; pointer-events: none; }
.wallet-payout-btn.zero {
  background: rgba(255,255,255,0.07);
  color: var(--off);
  pointer-events: none;
}

/* Payout request form */
.payout-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.payout-form-title {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--off);
}
.payout-form-title svg { width: 14px; height: 14px; }
.payout-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.payout-field span {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--off);
}
.payout-field input {
  width: 100%;
  padding: 11px 12px;
  background: rgba(0,0,0,0.25);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  color: #fff;
  font-size: 14px;
  font-family: inherit;
  -webkit-tap-highlight-color: transparent;
}
.payout-field input:focus {
  outline: none;
  border-color: #4ade80;
}
.payout-hint {
  font-size: 11px;
  color: var(--off);
  line-height: 1.4;
}
.payout-empty {
  margin-top: 14px;
  padding: 14px;
  text-align: center;
  font-size: 13px;
  color: var(--off);
  background: rgba(255,255,255,0.05);
  border-radius: 8px;
}

/* Confirm delivery button in won cards */
.dash-action-btn.confirm-delivery {
  background: rgba(74,222,128,0.1);
  border: 1px solid #4ade80;
  color: #4ade80;
  margin-top: 6px;
}
.dash-card-status.delivered {
  background: rgba(74,222,128,0.12);
  color: #4ade80;
  border-color: rgba(74,222,128,0.3);
}

/* ── Delivery tracking ─────────────────────────────────────── */
.dash-track-step {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--off);
  margin: 8px 0 4px;
}
.dash-track-step .track-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--off);
  flex-shrink: 0;
}
.dash-track-step.shipped { color: #fb923c; }
.dash-track-step.shipped .track-dot {
  background: #fb923c;
  box-shadow: 0 0 0 4px rgba(251,146,60,0.15);
}
.dash-track-step.delivered { color: #4ade80; }
.dash-track-step.delivered .track-dot {
  background: #4ade80;
  box-shadow: 0 0 0 4px rgba(74,222,128,0.15);
}

.dash-tracking {
  font-size: 11px;
  color: var(--off);
  letter-spacing: 0.02em;
  margin: 2px 0 6px;
}
.dash-tracking strong { color: #fff; font-family: monospace; letter-spacing: 0.06em; }

/* Big confirm-reception button shown when parcel is delivered */
.dash-action-btn.confirm-reception {
  background: #4ade80;
  border: 1px solid #4ade80;
  color: #04210f;
  font-weight: 800;
  margin-top: 8px;
}
.dash-action-btn.confirm-reception.big {
  padding: 14px 16px;
  font-size: 13px;
}

/* Discreet "report a problem" link */
.dash-link-btn.report {
  display: block;
  width: 100%;
  margin-top: 8px;
  background: none;
  border: none;
  color: var(--off);
  font-size: 11px;
  text-decoration: underline;
  cursor: pointer;
  padding: 4px;
}
.dash-link-btn.report:hover { color: #fb923c; }

/* Dispute status pill */
.dash-card-status.disputed {
  background: rgba(251,146,60,0.12);
  color: #fb923c;
  border-color: rgba(251,146,60,0.3);
}

/* ── Notifications ─────────────────────────────────────────── */
.notif-section { gap: 8px; }
.notif-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}
.notif-clear {
  background: none;
  border: none;
  color: var(--off);
  font-size: 11px;
  cursor: pointer;
  text-decoration: underline;
  padding: 2px 4px;
}
.notif-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 12.5px;
  line-height: 1.45;
  color: #e9e9e9;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 12px 14px;
}
.notif-item .notif-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 4px;
  background: var(--off);
}
.notif-item.info { border-color: rgba(74,222,128,0.25); }
.notif-item.info .notif-dot { background: #4ade80; box-shadow: 0 0 0 4px rgba(74,222,128,0.12); }
.notif-item.warn { border-color: rgba(251,146,60,0.3); }
.notif-item.warn .notif-dot { background: #fb923c; box-shadow: 0 0 0 4px rgba(251,146,60,0.12); }
.notif-item.ok .notif-dot { background: #60a5fa; }

/* ── Sell commission notice (premium state + upsell) ─────── */
.sell-commission-notice.premium {
  background: rgba(0,230,118,0.08);
  border-color: rgba(0,230,118,0.3);
  color: #b9f6ca;
}
.sell-commission-notice.premium svg { color: var(--green); }
.sell-commission-notice .sell-upsell {
  color: var(--accent); font-weight: 700; cursor: pointer; white-space: nowrap;
}
.sell-commission-notice .sell-upsell:hover { text-decoration: underline; }

/* ── "Mon Offre" plan cards ──────────────────────────────── */
.offer-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
}
@media (max-width: 380px) { .offer-grid { grid-template-columns: 1fr; } }

.offer-card {
  position: relative;
  display: flex; flex-direction: column;
  padding: 16px 14px 14px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 14px;
}
.offer-card.current {
  border-color: rgba(255,255,255,0.35);
  background: rgba(255,255,255,0.07);
}
.offer-card.premium {
  background: linear-gradient(160deg, rgba(255,45,45,0.10), rgba(255,107,0,0.06));
  border-color: rgba(255,45,45,0.4);
}
.offer-card.premium.current {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent), 0 8px 24px rgba(255,45,45,0.18);
}
.offer-badge-top {
  position: absolute; top: -9px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff; font-size: 9px; font-weight: 800; letter-spacing: 0.08em;
  padding: 3px 10px; border-radius: 999px; white-space: nowrap;
}
.offer-card-head { margin-bottom: 12px; }
.offer-name { font-size: 15px; font-weight: 800; letter-spacing: 0.02em; }
.offer-price { font-size: 24px; font-weight: 800; margin-top: 2px; }
.offer-price span { font-size: 12px; font-weight: 600; color: var(--off); }
.offer-features {
  list-style: none; display: flex; flex-direction: column; gap: 8px;
  margin-bottom: 14px; flex: 1;
}
.offer-features li {
  display: flex; align-items: flex-start; gap: 7px;
  font-size: 12px; line-height: 1.45; color: #ddd;
}
.offer-features li svg { width: 14px; height: 14px; flex-shrink: 0; margin-top: 1px; color: var(--green); }
.offer-features li.off { color: var(--off); }
.offer-features li.off svg { color: var(--off); }
.offer-features li.hl { color: #fff; }
.offer-features li.hl svg { color: var(--green); }
.offer-features strong { font-weight: 800; }

.offer-btn {
  width: 100%; padding: 11px; border: none; border-radius: 10px;
  font-size: 13px; font-weight: 800; cursor: pointer; letter-spacing: 0.02em;
  font-family: var(--font);
}
.offer-btn.premium { background: linear-gradient(135deg, var(--accent), var(--accent2)); color: #fff; }
.offer-btn.premium:hover { filter: brightness(1.08); }
.offer-btn.ghost { background: rgba(255,255,255,0.08); color: var(--white); border: 1px solid rgba(255,255,255,0.18); }
.offer-btn.ghost:hover { background: rgba(255,255,255,0.14); }
.offer-current-tag {
  text-align: center; padding: 10px; border-radius: 10px;
  font-size: 12px; font-weight: 700; color: var(--off);
  background: rgba(255,255,255,0.05);
}
.offer-current-tag.premium { color: var(--green); background: rgba(0,230,118,0.1); }
.offer-current-tag + .offer-btn,
.offer-renew-note + .offer-btn { margin-top: 10px; }
.offer-renew-note {
  margin: 10px 0 0; padding: 10px 12px; border-radius: 10px;
  font-size: 11.5px; line-height: 1.4; font-weight: 600; color: var(--off);
  background: rgba(244,63,94,0.08); border: 1px solid rgba(244,63,94,0.18);
}

/* ── Payment modal (simulated checkout) ──────────────────── */
.pay-backdrop {
  position: fixed; inset: 0; z-index: 2400;
  background: rgba(0,0,0,0.7); opacity: 0; pointer-events: none;
  transition: opacity 0.25s ease;
}
.pay-backdrop.visible { opacity: 1; pointer-events: auto; }

.pay-modal {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 2500;
  background: #141414; border-top-left-radius: 20px; border-top-right-radius: 20px;
  border-top: 1px solid rgba(255,255,255,0.12);
  transform: translateY(100%); transition: transform 0.3s cubic-bezier(0.16,1,0.3,1);
  max-width: 520px; margin: 0 auto;
  padding-bottom: calc(20px + var(--safe-bottom));
}
.pay-modal.open { transform: translateY(0); }
.pay-modal-inner { padding: 20px; }
.pay-modal-header {
  display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px;
}
.pay-brand { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 800; }
.pay-brand svg { width: 18px; height: 18px; color: var(--green); }
.pay-modal-close {
  background: rgba(255,255,255,0.08); border: none; color: var(--white);
  width: 30px; height: 30px; border-radius: 50%; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.pay-modal-close svg { width: 15px; height: 15px; }

.pay-plan-summary {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px; margin-bottom: 18px; border-radius: 12px;
  background: linear-gradient(160deg, rgba(255,45,45,0.12), rgba(255,107,0,0.06));
  border: 1px solid rgba(255,45,45,0.3);
}
.pay-plan-name { font-size: 14px; font-weight: 800; }
.pay-plan-sub { font-size: 11px; color: var(--off); margin-top: 2px; }
.pay-plan-price { font-size: 20px; font-weight: 800; white-space: nowrap; }
.pay-plan-price span { font-size: 11px; font-weight: 600; color: var(--off); }

.pay-form { display: flex; flex-direction: column; gap: 12px; }
.pay-row { display: flex; gap: 12px; }
.pay-row .pay-field { flex: 1; }
.pay-field { display: flex; flex-direction: column; gap: 5px; }
.pay-field span { font-size: 11px; font-weight: 700; color: var(--off); letter-spacing: 0.03em; }
.pay-field input {
  padding: 12px 14px; border-radius: 10px;
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.12);
  color: var(--white); font-size: 14px; font-family: var(--font); outline: none;
}
.pay-field input:focus { border-color: var(--accent); }
.pay-submit {
  margin-top: 4px; padding: 14px; border: none; border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff; font-size: 15px; font-weight: 800; cursor: pointer;
  font-family: var(--font); letter-spacing: 0.02em;
}
.pay-submit:hover { filter: brightness(1.08); }
.pay-submit:disabled { opacity: 0.6; cursor: default; }
.pay-secure-note {
  display: flex; align-items: center; gap: 7px; justify-content: center;
  font-size: 10.5px; color: var(--off); margin-top: 4px; text-align: center;
}
.pay-secure-note svg { width: 13px; height: 13px; flex-shrink: 0; }

/* ═══════════════════════════════════════════════════════════
   LANDING (logged-out) + SELLER AUTH
════════════════════════════════════════════════════════════ */

.landing,
.auth-screen {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: none;
  background:
    radial-gradient(120% 90% at 50% -10%, rgba(255,45,45,0.18) 0%, transparent 55%),
    radial-gradient(90% 70% at 90% 110%, rgba(255,107,0,0.12) 0%, transparent 50%),
    var(--black);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.landing.visible,
.auth-screen.visible { display: block; }

/* ── Landing ── */
.landing-inner {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 48px 26px calc(48px + var(--safe-bottom));
  gap: 18px;
}
.landing-live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--off);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 999px;
  padding: 7px 14px;
}
.landing-title {
  font-size: clamp(46px, 16vw, 76px);
  font-weight: 900;
  letter-spacing: 0.04em;
  line-height: 0.95;
  text-transform: uppercase;
}
.landing-title span { color: var(--accent); }
.landing-tagline {
  max-width: 340px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--off);
}
.landing-cta {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  max-width: 340px;
  margin-top: 10px;
}
.landing-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  padding: 16px 20px;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  font-family: var(--font);
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.02em;
  transition: transform 0.12s ease, opacity 0.12s ease;
}
.landing-btn:active { transform: scale(0.97); }
.landing-btn svg { width: 20px; height: 20px; flex-shrink: 0; }
.landing-btn span { display: inline-flex; align-items: baseline; gap: 8px; }
.landing-btn small {
  font-size: 11px;
  font-weight: 700;
  opacity: 0.6;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.landing-btn.primary {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent2) 100%);
  color: var(--white);
}
.landing-btn.ghost {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  color: var(--white);
}
.landing-login-link {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--off);
  font-family: var(--font);
  font-size: 14px;
  margin-top: 6px;
}
.landing-login-link span { color: var(--white); font-weight: 700; text-decoration: underline; }

/* ── Seller auth ── */
.auth-back {
  position: sticky;
  top: 0;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin: 18px 0 0 18px;
  padding: 8px 12px 8px 6px;
  background: rgba(10,10,10,0.6);
  border: none;
  border-radius: 999px;
  color: var(--off);
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.auth-back svg { width: 18px; height: 18px; }
.auth-view {
  max-width: 460px;
  margin: 0 auto;
  padding: 8px 26px calc(48px + var(--safe-bottom));
}
.auth-view[hidden] { display: none; }
.auth-h2 {
  font-size: 28px;
  font-weight: 900;
  letter-spacing: 0.01em;
  margin-top: 14px;
  text-align: center;
}
.auth-sub {
  font-size: 14px;
  line-height: 1.5;
  color: var(--off);
  text-align: center;
  margin: 10px auto 26px;
  max-width: 320px;
}

/* Plan cards */
.plan-cards {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 24px 0 18px;
}
.plan-card {
  position: relative;
  text-align: left;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 16px;
  padding: 20px;
  cursor: pointer;
  font-family: var(--font);
  color: var(--white);
  transition: transform 0.12s ease, border-color 0.12s ease, background 0.12s ease;
}
.plan-card:active { transform: scale(0.985); }
.plan-card.premium {
  border-color: rgba(255,45,45,0.55);
  background: linear-gradient(160deg, rgba(255,45,45,0.10) 0%, rgba(255,255,255,0.03) 60%);
}
.plan-badge {
  position: absolute;
  top: -10px;
  right: 16px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent2) 100%);
  color: var(--white);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  border-radius: 999px;
}
.plan-card-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}
.plan-name { font-size: 18px; font-weight: 800; }
.plan-price { font-size: 22px; font-weight: 900; }
.plan-price small { font-size: 12px; font-weight: 600; color: var(--off); }
.plan-desc { font-size: 13px; line-height: 1.5; color: var(--off); margin-bottom: 14px; }
.plan-features { list-style: none; display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.plan-features li { display: flex; align-items: center; gap: 9px; font-size: 13.5px; }
.plan-features li svg { width: 16px; height: 16px; color: var(--green); flex-shrink: 0; }
.plan-features li.hl { color: var(--white); font-weight: 600; }
.plan-features li.hl svg { color: var(--accent); }
.plan-choose {
  display: block;
  text-align: center;
  padding: 12px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 800;
  background: rgba(255,255,255,0.08);
  color: var(--white);
}
.plan-card.premium .plan-choose {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent2) 100%);
}

/* Auth forms */
.auth-plan-pill {
  display: inline-block;
  margin: 0 auto 20px;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 700;
  background: rgba(255,255,255,0.08);
  color: var(--off);
  text-align: center;
  width: 100%;
}
.auth-plan-pill.premium {
  background: linear-gradient(135deg, rgba(255,45,45,0.22), rgba(255,107,0,0.18));
  color: var(--white);
}
.auth-form { display: flex; flex-direction: column; gap: 14px; }
.auth-field { display: flex; flex-direction: column; gap: 6px; }
.auth-field span { font-size: 12.5px; font-weight: 700; color: var(--off); letter-spacing: 0.02em; }
.auth-field input {
  width: 100%;
  padding: 14px 14px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.05);
  color: var(--white);
  font-family: var(--font);
  font-size: 16px;
}
.auth-field input:focus { outline: none; border-color: var(--accent); }
.auth-error { font-size: 13px; color: var(--accent); min-height: 16px; line-height: 1.4; }
.auth-submit {
  margin-top: 4px;
  padding: 16px;
  border: none;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent2) 100%);
  color: var(--white);
  font-family: var(--font);
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  transition: opacity 0.12s ease, transform 0.12s ease;
}
.auth-submit:active { transform: scale(0.98); }
.auth-submit:disabled { opacity: 0.6; cursor: default; }
.auth-switch {
  display: block;
  width: 100%;
  margin-top: 20px;
  background: none;
  border: none;
  color: var(--off);
  font-family: var(--font);
  font-size: 14px;
  cursor: pointer;
  text-decoration: underline;
}

/* ── Dashboard account / logout ── */
.account-section { margin-bottom: 4px; }
.account-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 14px 16px;
}
.account-label { font-size: 11px; font-weight: 700; letter-spacing: 0.04em; color: var(--off); text-transform: uppercase; }
.account-name { font-size: 17px; font-weight: 800; margin-top: 2px; }
.logout-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 14px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.16);
  background: rgba(255,255,255,0.05);
  color: var(--white);
  font-family: var(--font);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  flex-shrink: 0;
}
.logout-btn svg { width: 15px; height: 15px; }
.logout-btn:active { transform: scale(0.97); }

/* ── Won-auction: congrats banner + 48h payment countdown ──────── */
.dash-congrats {
  background: linear-gradient(135deg, rgba(0,230,118,0.18), rgba(0,230,118,0.06));
  border: 1px solid rgba(0,230,118,0.45);
  color: var(--green);
  font-weight: 700;
  font-size: 0.84rem;
  line-height: 1.35;
  padding: 10px 12px;
  border-radius: 12px;
  margin-bottom: 8px;
}
.pay-deadline {
  font-size: 0.78rem;
  color: var(--off);
  margin-bottom: 10px;
}
.pay-timer {
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: #fff;
}
.pay-timer.urgent {
  color: var(--accent);
  animation: urgency 0.6s ease-in-out infinite alternate;
}
.dash-action-btn.pay-btn {
  background: var(--accent);
  color: #fff;
  font-weight: 700;
}

/* ── Language toggle (discreet, top-right) ─────────────────── */
.lang-toggle {
  position: fixed;
  top: 14px;
  right: 14px;
  z-index: 3000;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  user-select: none;
}
.lang-opt {
  cursor: pointer;
  opacity: 0.55;
  color: #fff;
  transition: opacity 0.15s ease;
  white-space: nowrap;
}
.lang-opt:hover {
  opacity: 0.85;
}
.lang-opt.active {
  opacity: 1;
}
.lang-sep {
  opacity: 0.35;
  color: #fff;
}
