/* ===== DASHBOARD ===== */

.dashboard-wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 32px;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 32px;
  align-items: start;
}

/* ── Sidebar ── */
.dash-sidebar {
}

.dash-user-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 20px 16px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.dash-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  background: #ddd;
}

.dash-avatar-placeholder {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #fff;
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
}

.dash-user-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 2px;
}

.dash-user-since {
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.dash-verified {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 600;
  color: #27ae60;
}

.dash-nav {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 12px;
}

.dash-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid var(--border);
  transition: background 0.15s, color 0.15s;
  position: relative;
}

.dash-nav a:last-child { border-bottom: none; }

.dash-nav a:hover { background: var(--off-white); color: var(--gold); }

.dash-nav a.active {
  background: rgba(200,134,26,0.07);
  color: var(--gold);
  font-weight: 600;
}

.dash-nav a.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--gold);
}

.dash-nav a svg { color: var(--text-muted); flex-shrink: 0; }
.dash-nav a.active svg, .dash-nav a:hover svg { color: var(--gold); }

.dash-nav-badge {
  margin-left: auto;
  background: var(--gold);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 10px;
  min-width: 18px;
  text-align: center;
}

.dash-sell-cta {
  background: var(--navy);
  border-radius: 8px;
  padding: 18px 16px;
  color: #fff;
}

.dash-sell-cta h4 {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}

.dash-sell-cta p {
  font-size: 12px;
  color: rgba(255,255,255,0.6);
  margin-bottom: 14px;
  line-height: 1.5;
}

.btn-sell-cta {
  display: block;
  background: var(--gold);
  color: #fff;
  text-align: center;
  padding: 9px 16px;
  border-radius: 4px;
  font-family: var(--font-main);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: background 0.2s;
}

.btn-sell-cta:hover { background: var(--gold-dark); }

/* ── Main Content ── */
.dash-main {}

.dash-title {
  font-family: var(--font-heading);
  font-size: 36px;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 4px;
}

.dash-welcome {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 24px;
}

/* Stats */
.dash-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}

.dash-stat-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  transition: box-shadow 0.2s;
}

.dash-stat-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.08); }

.dash-stat-icon {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: rgba(200,134,26,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  flex-shrink: 0;
}

.dash-stat-num {
  font-family: var(--font-heading);
  font-size: 32px;
  font-weight: 800;
  color: var(--dark);
  line-height: 1;
  margin-bottom: 2px;
}

.dash-stat-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 2px;
}

.dash-stat-sub {
  font-size: 11px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
}

.dash-stat-sub svg { color: var(--gold); }

/* Section Block */
.dash-section {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 20px;
}

.dash-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}

.dash-section-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--dark);
}

.dash-section-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--gold);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 4px;
}

.dash-section-link:hover { text-decoration: underline; }

/* Bids Table */
.bids-table {
  width: 100%;
  border-collapse: collapse;
}

.bids-table th {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--text-muted);
  padding: 10px 20px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  background: var(--off-white);
}

.bids-table td {
  padding: 14px 20px;
  font-size: 13px;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

.bids-table tr:last-child td { border-bottom: none; }

.bid-item-cell {
  display: flex;
  align-items: center;
  gap: 12px;
}

.bid-item-img {
  width: 48px;
  height: 40px;
  border-radius: 4px;
  object-fit: contain;
  background: #f5f5f5;
  border: 1px solid var(--border);
  flex-shrink: 0;
}

.bid-item-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--dark);
  text-decoration: none;
}

.bid-item-name:hover { color: var(--gold); }

.bid-item-count { font-size: 11px; color: var(--text-muted); margin-top: 2px; }

.bid-amount { font-size: 13px; font-weight: 600; color: var(--dark); }

.your-bid-winning { color: #27ae60; font-weight: 700; }
.your-bid-top { font-size: 10px; color: #27ae60; font-weight: 600; }
.your-bid-losing { color: #e74c3c; font-weight: 700; }

.time-urgent { color: #e74c3c; font-weight: 700; font-size: 13px; }
.time-ok { color: #e67e22; font-weight: 700; font-size: 13px; }
.time-safe { color: #27ae60; font-weight: 700; font-size: 13px; }
.time-sub { font-size: 11px; color: var(--text-muted); margin-top: 1px; }

.btn-view-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 7px 14px;
  font-family: var(--font-main);
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: border-color 0.2s, color 0.2s;
  display: inline-block;
}

.btn-view-item:hover { border-color: var(--gold); color: var(--gold); }

/* Two-column lower sections */
.dash-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

/* Recently Won / Watchlist list items */
.dash-item-list { padding: 0 20px; }

.dash-list-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.dash-list-item:last-child { border-bottom: none; }

.dash-list-img {
  width: 52px;
  height: 44px;
  border-radius: 4px;
  object-fit: contain;
  background: #f5f5f5;
  border: 1px solid var(--border);
  flex-shrink: 0;
}

.dash-list-img-placeholder {
  width: 52px;
  height: 44px;
  border-radius: 4px;
  background: #eee;
  border: 1px solid var(--border);
  flex-shrink: 0;
}

.dash-list-info { flex: 1; min-width: 0; }

.dash-list-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-decoration: none;
  display: block;
}

.dash-list-name:hover { color: var(--gold); }

.dash-list-sub { font-size: 11px; color: var(--text-muted); }

.dash-list-right { text-align: right; flex-shrink: 0; }

.dash-list-amount { font-size: 14px; font-weight: 700; color: #27ae60; }
.dash-list-bids { font-size: 11px; color: var(--text-muted); margin-bottom: 4px; }

.btn-view-details {
  font-size: 11px;
  font-weight: 600;
  color: var(--gold);
  text-decoration: none;
  display: block;
  margin-top: 4px;
}

.btn-view-details:hover { text-decoration: underline; }

.watch-timer { font-size: 12px; font-weight: 700; }
.watch-timer.urgent { color: #e74c3c; }
.watch-timer.warning { color: #e67e22; }
.watch-timer.safe { color: #27ae60; }

.watch-end { font-size: 11px; color: var(--text-muted); margin-top: 1px; }

.btn-unwatch {
  background: none;
  border: none;
  cursor: pointer;
  color: #e74c3c;
  font-size: 16px;
  padding: 4px;
  opacity: 0.5;
  transition: opacity 0.15s;
}

.btn-unwatch:hover { opacity: 1; }

.btn-unwatch-outline {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  font-size: 18px;
  padding: 4px;
  transition: color 0.15s;
}

.btn-unwatch-outline:hover { color: #e74c3c; }

/* Listings */
.dash-listings { padding: 0 20px; }

.dash-listing-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.dash-listing-item:last-child { border-bottom: none; }

.dash-listing-img {
  width: 52px;
  height: 44px;
  border-radius: 4px;
  object-fit: contain;
  background: #f5f5f5;
  border: 1px solid var(--border);
  flex-shrink: 0;
}

.dash-listing-info { flex: 1; min-width: 0; }

.dash-listing-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 2px;
  text-decoration: none;
}

.dash-listing-name:hover { color: var(--gold); }

.dash-listing-id { font-size: 11px; color: var(--text-muted); margin-bottom: 4px; }

.badge-active {
  display: inline-block;
  background: rgba(39,174,96,0.12);
  color: #27ae60;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.dash-listing-stats {
  text-align: center;
  flex-shrink: 0;
}

.dash-listing-stats .num { font-size: 16px; font-weight: 700; color: var(--dark); }
.dash-listing-stats .lbl { font-size: 10px; color: var(--text-muted); text-transform: uppercase; }

.dash-listing-stats + .dash-listing-stats { margin-left: 20px; }

.dash-listings-footer {
  padding: 14px 20px;
  border-top: 1px solid var(--border);
}

.btn-list-new {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  background: none;
  border: 1.5px dashed var(--border);
  border-radius: 4px;
  padding: 11px;
  font-family: var(--font-main);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s;
}

.btn-list-new:hover { border-color: var(--gold); color: var(--gold); }

/* Account Summary */
.account-summary-table {
  width: 100%;
  border-collapse: collapse;
  padding: 0 20px;
}

.account-summary-table td {
  padding: 10px 20px;
  font-size: 13px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.account-summary-table tr:last-child td { border-bottom: none; }

.account-summary-table td:first-child { color: var(--text-muted); width: 45%; }
.account-summary-table td:last-child { color: var(--dark); font-weight: 500; }

.feedback-score { color: #27ae60; font-weight: 700; }
.verified-yes { color: #27ae60; font-weight: 700; }

.account-summary-footer {
  padding: 14px 20px;
  border-top: 1px solid var(--border);
}

.btn-edit-account {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  background: none;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 10px;
  font-family: var(--font-main);
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s;
}

.btn-edit-account:hover { border-color: var(--gold); color: var(--gold); }

/* Trust Bar */
.dash-trust-bar {
  background: var(--off-white);
  border-top: 1px solid var(--border);
  padding: 24px 0;
  margin-top: 16px;
}

.dash-trust-bar-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  justify-content: center;
  gap: 60px;
}

.trust-bar-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.trust-bar-icon {
  width: 40px;
  height: 40px;
  border: 1.5px solid rgba(200,134,26,0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  flex-shrink: 0;
}

.trust-bar-text strong {
  display: block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--dark);
  margin-bottom: 2px;
}

.trust-bar-text span { font-size: 11px; color: var(--text-muted); }
