/* ---- Theme Variables ---- */
:root {
  --bg-primary: #0c0e14;
  --bg-secondary: #161b28;
  --bg-tertiary: #171d2a;
  --bg-card: #1a2133;
  --bg-card-end: #111827;
  --bg-footer: #0a0c12;
  --bg-input: #111624;
  --bg-hover: rgba(94, 206, 153, 0.08);

  --border-primary: #232d42;
  --border-accent: #2d6a4f;

  --text-primary: #edf0f7;
  --text-secondary: #94a3b8;
  --text-muted: #475569;
  --text-faint: #2d3748;

  --accent: #5ece99;
  --accent-hover: #42b883;
  --accent-light: #7edcb0;
  --accent-lighter: #d1fae5;
  --accent-bg: rgba(94, 206, 153, 0.1);
  --accent-border: rgba(94, 206, 153, 0.22);

  --gold: #facc15;
  --gold-bg: rgba(250, 204, 21, 0.1);
  --gold-border: rgba(250, 204, 21, 0.28);

  --error: #f87171;
  --error-bg: #2d1b1b;
  --error-border: #ef4444;

  --sold-bg: #dc2626;
  --sold-ribbon: #7f1d1d;

  --shadow-card: rgba(0, 0, 0, 0.5);
  --shadow-modal: rgba(0, 0, 0, 0.55);
  --overlay-bg: rgba(10, 12, 18, 0.88);

  --header-bg: linear-gradient(135deg, #131827 0%, #151d33 50%, #141a2d 100%);
  --header-glow: rgba(94, 206, 153, 0.05);
  --card-gradient: linear-gradient(160deg, var(--bg-card) 0%, var(--bg-card-end) 100%);
  --surface-gradient: linear-gradient(135deg, var(--bg-tertiary) 0%, var(--bg-card) 100%);

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 18px;
  --transition-fast: 0.15s ease;
  --transition-med: 0.25s ease;
}

[data-theme="light"] {
  --bg-primary: #f8fafb;
  --bg-secondary: #ffffff;
  --bg-tertiary: #f1f5f9;
  --bg-card: #ffffff;
  --bg-card-end: #f8fafb;
  --bg-footer: #eef2f6;
  --bg-input: #f8fafb;
  --bg-hover: rgba(37, 99, 75, 0.06);

  --border-primary: #e2e8f0;
  --border-accent: #34d399;

  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  --text-faint: #cbd5e1;

  --accent: #059669;
  --accent-hover: #047857;
  --accent-light: #10b981;
  --accent-lighter: #047857;
  --accent-bg: rgba(5, 150, 105, 0.08);
  --accent-border: rgba(5, 150, 105, 0.25);

  --gold: #ca8a04;
  --gold-bg: rgba(202, 138, 4, 0.08);
  --gold-border: rgba(202, 138, 4, 0.3);

  --error: #dc2626;
  --error-bg: #fef2f2;
  --error-border: #fca5a5;

  --sold-bg: #dc2626;
  --sold-ribbon: #991b1b;

  --shadow-card: rgba(0, 0, 0, 0.06);
  --shadow-modal: rgba(0, 0, 0, 0.12);
  --overlay-bg: rgba(15, 23, 42, 0.4);

  --header-bg: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 50%, #f0fdf4 100%);
  --header-glow: rgba(5, 150, 105, 0.04);
  --card-gradient: linear-gradient(160deg, var(--bg-card) 0%, var(--bg-card-end) 100%);
  --surface-gradient: linear-gradient(135deg, var(--bg-tertiary) 0%, var(--bg-card) 100%);
}

/* ---- Login Overlay ---- */
.login-overlay {
  position: fixed;
  inset: 0;
  background: var(--bg-primary);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.login-overlay.hidden {
  display: none;
}

.login-box {
  background: var(--bg-secondary);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-xl);
  padding: 2.5rem 2rem;
  width: 100%;
  max-width: 380px;
  text-align: center;
  box-shadow: 0 24px 64px var(--shadow-modal), 0 0 0 1px var(--border-primary);
  animation: fadeUp 0.4s ease;
}

.login-icon {
  font-size: 2.8rem;
  margin-bottom: 1rem;
}

.login-box h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 0.4rem;
}

.login-box > p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

#login-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

#login-form input {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--bg-input);
  border: 1.5px solid var(--border-primary);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 1rem;
  text-align: center;
  letter-spacing: 0.1em;
  outline: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  font-family: inherit;
}

#login-form input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-bg);
}

#login-form button {
  padding: 0.75rem;
  background: var(--accent);
  color: #0c0e14;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background var(--transition-fast), opacity var(--transition-fast), box-shadow var(--transition-fast);
  font-family: inherit;
}

#login-form button:hover:not(:disabled) {
  background: var(--accent-light);
  box-shadow: 0 4px 16px var(--accent-bg);
}

#login-form button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.login-error {
  color: var(--error);
  font-size: 0.875rem;
  margin-top: 0.75rem;
}

.login-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
  padding: 0.25rem;
  transition: color 0.2s;
}

.login-close:hover {
  color: var(--text-primary);
}

.login-box {
  position: relative;
}

.login-toggle {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-top: 1rem;
}

.login-toggle a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  margin-left: 0.3rem;
}

.login-toggle a:hover {
  text-decoration: underline;
}

/* ---- Header Auth Button ---- */
.header-auth {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 10;
}

.auth-btn {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--accent-bg);
  border: 1px solid var(--accent-border);
  color: var(--accent);
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  font-family: inherit;
}

.auth-btn:hover {
  background: rgba(94, 206, 153, 0.15);
  border-color: rgba(94, 206, 153, 0.35);
  box-shadow: 0 2px 8px rgba(94, 206, 153, 0.1);
}

.auth-icon {
  width: 16px;
  height: 16px;
}

.auth-btn.logged-in {
  background: rgba(94, 206, 153, 0.12);
  border-color: var(--accent);
}

.auth-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 0.4rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-primary);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  min-width: 160px;
  z-index: 100;
  animation: fadeUp 0.2s ease;
}

.auth-dropdown.hidden {
  display: none;
}

.auth-dropdown button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.65rem 1rem;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 0.9rem;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s;
}

.auth-dropdown button:hover {
  background: var(--accent-bg);
}

.auth-dropdown button:first-child {
  border-radius: 8px 8px 0 0;
}

.auth-dropdown button:last-child {
  border-radius: 0 0 8px 8px;
  color: var(--error);
}

/* ---- Header Pro Button ---- */
.header-pro {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 10;
}

.pro-btn {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: linear-gradient(135deg, rgba(255, 193, 7, 0.15), rgba(255, 152, 0, 0.15));
  border: 1px solid rgba(255, 193, 7, 0.35);
  color: var(--gold);
  padding: 0.45rem 0.9rem;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
  font-family: inherit;
}

.pro-btn:hover {
  background: linear-gradient(135deg, rgba(255, 193, 7, 0.25), rgba(255, 152, 0, 0.25));
  border-color: rgba(255, 193, 7, 0.5);
  transform: translateY(-1px);
}

.pro-icon {
  width: 14px;
  height: 14px;
}

.pro-btn.subscribed {
  background: linear-gradient(135deg, rgba(255, 193, 7, 0.25), rgba(255, 152, 0, 0.25));
  border-color: var(--gold);
}

/* ---- Pricing Modal ---- */
.pricing-overlay {
  position: fixed;
  inset: 0;
  background: var(--overlay-bg);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  overflow-y: auto;
}

.pricing-overlay.hidden {
  display: none;
}

.pricing-box {
  background: var(--bg-secondary);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-xl);
  padding: 2.5rem 2rem;
  width: 100%;
  max-width: 700px;
  text-align: center;
  box-shadow: 0 24px 64px var(--shadow-modal), 0 0 0 1px var(--border-primary);
  animation: fadeUp 0.4s ease;
  position: relative;
}

.pricing-heading {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.4rem;
}

.pricing-subtext {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.pricing-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  margin-bottom: 2rem;
  position: relative;
}

.pricing-period {
  padding: 0.5rem 1.2rem;
  background: transparent;
  border: 1px solid var(--border-primary);
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}

.pricing-period:first-child {
  border-radius: 8px 0 0 8px;
}

.pricing-period:nth-child(2) {
  border-radius: 0 8px 8px 0;
}

.pricing-period.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #0c0e14;
}

.pricing-save-badge {
  background: #ffc107;
  color: var(--bg-primary);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  margin-left: 0.5rem;
}

.pricing-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.pricing-card {
  background: var(--bg-primary);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  text-align: left;
  position: relative;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.pricing-card:hover {
  border-color: var(--text-muted);
}

.pricing-card.featured {
  border-color: var(--accent);
  box-shadow: 0 0 24px rgba(94, 206, 153, 0.08);
}

.pricing-badge {
  position: absolute;
  top: -0.65rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #0c0e14;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.2rem 0.75rem;
  border-radius: var(--radius-sm);
  white-space: nowrap;
}

.pricing-tier {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.pricing-price {
  margin-bottom: 1.25rem;
}

.pricing-amount {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-primary);
}

.pricing-freq {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.pricing-features {
  list-style: none;
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.pricing-features li {
  font-size: 0.85rem;
  padding-left: 1.4rem;
  position: relative;
}

.pricing-features li.included {
  color: var(--text-primary);
}

.pricing-features li.excluded {
  color: var(--text-muted);
}

.pricing-features li::before {
  position: absolute;
  left: 0;
  font-size: 0.8rem;
}

.pricing-features li.included::before {
  content: '\2713';
  color: var(--accent);
}

.pricing-features li.excluded::before {
  content: '\2717';
  color: var(--text-muted);
}

.pricing-cta {
  width: 100%;
  padding: 0.7rem;
  border: none;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, opacity 0.2s;
  font-family: inherit;
}

.pricing-cta.free {
  background: var(--border-primary);
  color: var(--text-secondary);
  cursor: default;
}

.pricing-cta.pro {
  background: var(--accent);
  color: var(--bg-primary);
}

.pricing-cta.pro:hover {
  background: var(--accent-hover);
}

@media (max-width: 520px) {
  .pricing-cards {
    grid-template-columns: 1fr;
  }
  .pricing-box {
    padding: 1.5rem 1rem;
  }
  .header-pro {
    position: static;
    margin-top: 0.5rem;
  }
  .header-auth {
    position: static;
    margin-bottom: 0.5rem;
  }
  .header-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
}

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

body {
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
}

/* ---- Animations ---- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.fade-in {
  animation: fadeUp 0.4s ease both;
}

/* ---- Header ---- */
header {
  background: var(--header-bg);
  border-bottom: 1px solid var(--border-primary);
  padding: 2.5rem 1.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 1px 24px rgba(0, 0, 0, 0.15);
}

header::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 30% 50%, var(--header-glow) 0%, transparent 50%);
  pointer-events: none;
}

.header-inner {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
}

header h1 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.5px;
  text-shadow: 0 0 30px var(--accent-bg);
}

.header-tagline {
  color: var(--text-secondary);
  margin-top: 0.5rem;
  font-size: 0.95rem;
  font-weight: 400;
  letter-spacing: 0.01em;
}

/* ---- Main ---- */
main {
  flex: 1;
  max-width: 1300px;
  margin: 0 auto;
  width: 100%;
  padding: 2.5rem 1.5rem;
}

/* ---- Search ---- */
.search-section {
  margin-bottom: 2rem;
}

#search-form {
  display: flex;
  gap: 0.75rem;
  max-width: 700px;
  margin: 0 auto;
}

.search-input-wrap {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
}

.search-icon {
  position: absolute;
  left: 1rem;
  width: 18px;
  height: 18px;
  color: var(--text-muted);
  pointer-events: none;
  transition: color 0.2s;
}

.search-input-wrap:focus-within .search-icon {
  color: var(--accent);
}

#search-input {
  width: 100%;
  padding: 0.85rem 1.2rem 0.85rem 2.8rem;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border-primary);
  background: var(--bg-secondary);
  color: var(--text-primary);
  font-size: 1rem;
  font-family: inherit;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
}

#search-input::placeholder {
  color: var(--text-muted);
}

#search-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-bg);
  background: var(--bg-input);
}

#search-btn {
  padding: 0.85rem 2rem;
  border-radius: var(--radius-md);
  border: none;
  background: var(--accent);
  color: #0c0e14;
  font-size: 1rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
  transition: background var(--transition-fast), transform 0.1s, box-shadow var(--transition-fast);
}

#search-btn:hover {
  background: var(--accent-light);
  box-shadow: 0 4px 16px rgba(94, 206, 153, 0.25);
}

#search-btn:active {
  transform: scale(0.97);
}

#search-btn:disabled {
  background: var(--border-primary);
  color: var(--text-muted);
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.search-meta {
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-top: 1rem;
}

.mock-badge {
  display: inline-block;
  background: #744210;
  color: #f6ad55;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  margin-left: 0.5rem;
  vertical-align: middle;
}

/* ---- Mode Tabs ---- */
.mode-tabs {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1rem;
}

.mode-tab {
  background: transparent;
  border: 1px solid var(--border-primary);
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 600;
  font-family: inherit;
  padding: 0.5rem 1.4rem;
  border-radius: 999px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.mode-tab:hover {
  border-color: var(--accent-border);
  color: var(--accent);
  background: var(--accent-bg);
}

.mode-tab.active {
  background: var(--accent);
  color: #0c0e14;
  border-color: var(--accent);
  box-shadow: 0 2px 10px var(--accent-bg);
}

/* ---- Section Labels ---- */
.section-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  font-weight: 600;
}

/* ---- Recent Searches ---- */
.recent-section {
  text-align: center;
  margin-bottom: 1.5rem;
}

.recent-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}

.recent-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: transparent;
  border: 1px solid var(--border-primary);
  color: var(--text-secondary);
  font-size: 0.8rem;
  font-weight: 500;
  font-family: inherit;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.recent-chip:hover {
  border-color: var(--accent-border);
  color: var(--accent);
  background: var(--accent-bg);
}

.recent-chip .remove-recent {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  font-size: 0.65rem;
  color: var(--text-muted);
  transition: color 0.15s;
}

.recent-chip:hover .remove-recent {
  color: var(--error);
}

/* ---- Suggestions ---- */
.suggestions-section {
  text-align: center;
  margin-bottom: 2rem;
}

.suggestions-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
}

.chip {
  background: var(--accent-bg);
  border: 1px solid var(--accent-border);
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 600;
  font-family: inherit;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.chip:hover {
  background: var(--accent);
  color: #0c0e14;
  border-color: var(--accent);
  transform: translateY(-2px);
}

.chip:active {
  transform: scale(0.95);
}

/* ---- Sort Controls ---- */
.sort-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

.sort-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
  margin-right: 0.25rem;
}

.sort-btn {
  background: transparent;
  border: 1px solid var(--border-primary);
  color: var(--text-secondary);
  font-size: 0.78rem;
  font-weight: 500;
  font-family: inherit;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.sort-btn:hover {
  border-color: var(--text-muted);
  color: var(--text-primary);
  background: var(--bg-hover);
}

.sort-btn.active {
  background: var(--accent-bg);
  color: var(--accent);
  border-color: var(--accent-border);
}

/* ---- For Sale Badge ---- */
.for-sale-badge {
  position: absolute;
  top: 14px;
  right: -6px;
  background: var(--border-accent);
  color: var(--accent-lighter);
  font-size: 0.6rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  padding: 0.2rem 0.6rem;
  border-radius: 4px 0 0 4px;
  text-transform: uppercase;
  box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.5);
  z-index: 2;
}

.for-sale-badge::after {
  content: '';
  position: absolute;
  right: 0;
  bottom: -5px;
  border-top: 5px solid var(--accent-hover);
  border-right: 6px solid transparent;
}

/* ---- States ---- */
.hidden {
  display: none !important;
}

.loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 4rem;
  color: var(--text-secondary);
  font-size: 1rem;
}

.spinner {
  width: 30px;
  height: 30px;
  border: 3px solid var(--border-primary);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  flex-shrink: 0;
}

.error-message {
  background: var(--error-bg);
  border: 1px solid var(--error-border);
  color: var(--error);
  border-radius: 10px;
  padding: 1.2rem 1.5rem;
  max-width: 600px;
  margin: 1rem auto;
  text-align: center;
  font-size: 0.95rem;
  animation: fadeUp 0.3s ease;
}

.no-results {
  color: var(--text-secondary);
  text-align: center;
  grid-column: 1 / -1;
  padding: 3rem 0;
  font-size: 1rem;
}

/* ---- Results Grid ---- */
.results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.5rem;
}

/* ---- Skeleton Loader ---- */
.skeleton-grid .skeleton-card {
  background: var(--card-gradient);
  border: 1px solid var(--border-primary);
  border-radius: 14px;
  overflow: hidden;
}

.skeleton-image {
  height: 200px;
  background: linear-gradient(90deg, var(--bg-tertiary) 25%, var(--border-primary) 50%, var(--bg-tertiary) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

.skeleton-body {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.skeleton-line {
  height: 14px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--bg-tertiary) 25%, var(--border-primary) 50%, var(--bg-tertiary) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

.skeleton-line.short { width: 60%; }
.skeleton-line.medium { width: 80%; }
.skeleton-line.price { width: 40%; height: 22px; margin-top: 0.3rem; }

/* ---- Stats Bar ---- */
.stats-bar {
  grid-column: 1 / -1;
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  background: var(--surface-gradient);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  margin-bottom: 0.5rem;
  animation: fadeUp 0.3s ease;
}

.stat-item {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.stat-label {
  font-size: 0.7rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
}

.stat-value {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--accent);
}

/* ---- Card ---- */
.card {
  background: var(--card-gradient);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-lg);
  overflow: visible;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-med), box-shadow var(--transition-med), border-color var(--transition-med);
  position: relative;
  aspect-ratio: 2.5 / 3.5;
  cursor: pointer;
  animation: fadeUp 0.4s ease both;
}

.card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 15px;
  padding: 1px;
  background: linear-gradient(
    135deg,
    transparent 0%,
    rgba(94, 206, 153, 0) 40%,
    rgba(94, 206, 153, 0) 60%,
    transparent 100%
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity var(--transition-med);
  pointer-events: none;
  z-index: 1;
}

.card:hover::before {
  background: linear-gradient(
    135deg,
    transparent 0%,
    rgba(94, 206, 153, 0.5) 35%,
    rgba(126, 220, 176, 0.8) 50%,
    rgba(94, 206, 153, 0.5) 65%,
    transparent 100%
  );
  opacity: 1;
}

.card:hover {
  transform: translateY(-6px) rotate(0.5deg);
  box-shadow:
    0 16px 32px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(94, 206, 153, 0.3),
    0 0 24px rgba(94, 206, 153, 0.12);
}

.card-accent {
  height: 4px;
  width: 100%;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  background: var(--team-color, var(--accent));
  flex-shrink: 0;
}

.sold-badge {
  position: absolute;
  top: 14px;
  right: -6px;
  background: var(--sold-bg);
  color: #fff;
  font-size: 0.6rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  padding: 0.2rem 0.6rem;
  border-radius: 4px 0 0 4px;
  text-transform: uppercase;
  box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.5);
  z-index: 2;
}

.sold-badge::after {
  content: '';
  position: absolute;
  right: 0;
  bottom: -5px;
  border-top: 5px solid var(--sold-ribbon);
  border-right: 6px solid transparent;
}

/* Promoted card badge & styling */
.promoted-badge {
  position: absolute;
  top: 14px;
  right: -6px;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #fff;
  font-size: 0.6rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  padding: 0.2rem 0.6rem;
  border-radius: 4px 0 0 4px;
  text-transform: uppercase;
  box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.5);
  z-index: 2;
}

.promoted-badge::after {
  content: '';
  position: absolute;
  right: 0;
  bottom: -5px;
  border-top: 5px solid #b45309;
  border-right: 6px solid transparent;
}

.promoted-card {
  border: 1px solid rgba(245, 158, 11, 0.3);
}

/* Promote tab gate */
.promote-gate {
  text-align: center;
  padding: 3rem 1rem;
}

.promote-gate-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.promote-gate h3 {
  margin: 0 0 0.5rem;
  font-size: 1.3rem;
}

.promote-gate p {
  opacity: 0.7;
  margin: 0 0 1.5rem;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

.promote-count {
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--accent);
}

.promote-buy-slot {
  text-align: center;
  padding: 0.75rem;
  margin-bottom: 1rem;
  border: 1px dashed var(--gold-border);
  border-radius: 10px;
  background: var(--gold-bg);
}
.promote-buy-slot p {
  margin: 0 0 0.5rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
}
.promote-buy-slot-btn {
  padding: 0.5rem 1.25rem;
  border: none;
  border-radius: 8px;
  background: var(--gold);
  color: #000;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: opacity 0.15s;
}
.promote-buy-slot-btn:hover {
  opacity: 0.85;
}
.promote-buy-slot-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.promote-cap-info {
  margin: 0.4rem 0 0;
  font-size: 0.75rem;
  opacity: 0.6;
}
.promote-sold-btn {
  padding: 0.3rem 0.6rem;
  border: 1px solid var(--accent-border);
  border-radius: 6px;
  background: var(--accent-bg);
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s;
}
.promote-sold-btn:hover {
  background: var(--accent);
  color: #fff;
}
.promote-extra-badge {
  display: inline-block;
  font-size: 0.65rem;
  padding: 1px 6px;
  border-radius: 4px;
  background: var(--gold-bg);
  color: var(--gold);
  border: 1px solid var(--gold-border);
  vertical-align: middle;
  margin-left: 4px;
}

.promote-autofill-wrap {
  margin-bottom: 1rem;
}
.promote-autofill-wrap label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: var(--text-secondary);
}
.promote-autofill-wrap select {
  width: 100%;
  padding: 0.55rem 0.75rem;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border-primary);
  background: var(--bg-input);
  color: var(--text-primary);
  font-size: 0.9rem;
  font-family: inherit;
  transition: border-color var(--transition-fast);
}
.promote-autofill-wrap select:focus {
  outline: none;
  border-color: var(--accent);
}

.promote-form {
  margin-bottom: 1.5rem;
}

.promote-form input,
.promote-form select {
  font-family: inherit;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.promote-form input:focus,
.promote-form select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-bg);
}

.card-image-wrap {
  flex: 1;
  height: auto;
  min-height: 0;
  overflow: hidden;
  background: var(--bg-primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-image-wrap img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
  transition: transform 0.3s;
}

.card:hover .card-image-wrap img {
  transform: scale(1.03);
}

.no-image {
  color: var(--text-muted);
  font-size: 0.85rem;
  text-align: center;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.no-image-icon {
  font-size: 2.5rem;
  opacity: 0.4;
}

.card-body {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  flex: 0 0 auto;
}

.card-tag {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}

.card-title {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.5px;
}

.card-meta {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.card-date {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.card-condition {
  font-size: 0.75rem;
  color: var(--text-secondary);
  background: var(--border-primary);
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  align-self: flex-start;
  font-weight: 500;
}

.card-link {
  display: block;
  margin-top: auto;
  padding: 0.65rem;
  text-align: center;
  background: var(--accent-bg);
  color: var(--accent);
  text-decoration: none;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  border: 1px solid var(--accent-border);
  transition: all var(--transition-fast);
}

.card-link:hover {
  background: var(--accent);
  color: #0c0e14;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px var(--accent-bg);
}

/* ---- Price Chart ---- */
.chart-section {
  margin-bottom: 2rem;
  background: var(--surface-gradient);
  border: 1px solid var(--border-primary);
  border-radius: 12px;
  padding: 1.5rem;
  grid-column: 1 / -1;
  animation: fadeUp 0.4s ease;
}

.chart-title {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 1.25rem;
}

.chart-wrap {
  position: relative;
  height: 220px;
}

/* ---- Back Button ---- */
.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--accent-bg);
  border: 1px solid var(--accent-border);
  color: var(--accent);
  font-size: 0.875rem;
  font-weight: 600;
  font-family: inherit;
  padding: 0.5rem 1.2rem;
  border-radius: 999px;
  cursor: pointer;
  margin-bottom: 1.5rem;
  transition: all var(--transition-fast);
}

.back-btn:hover {
  background: var(--accent);
  color: #0c0e14;
  border-color: var(--accent);
  border-color: var(--accent);
  transform: translateX(-3px);
}

/* ---- Variants Section ---- */
.variants-section {
  margin-bottom: 2rem;
  animation: fadeUp 0.4s ease;
}

.variants-header {
  margin-bottom: 1.5rem;
}

.variants-header h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
}

.variants-subtitle {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-top: 0.35rem;
}

.variants-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1.25rem;
}

/* ---- Variant Card Tile ---- */
.variant-card {
  background: var(--card-gradient);
  border: 1px solid var(--border-primary);
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s;
  animation: fadeUp 0.4s ease both;
}

.variant-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent);
  box-shadow:
    0 12px 30px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(82, 183, 136, 0.35),
    0 0 20px rgba(82, 183, 136, 0.15);
}

.variant-card-image {
  aspect-ratio: 2.5 / 3.5;
  background: var(--bg-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.variant-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.variant-card:hover .variant-card-image img {
  transform: scale(1.04);
}

.variant-no-image {
  color: var(--text-muted);
  font-size: 2.5rem;
  opacity: 0.35;
}

.variant-card-body {
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.variant-name {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.variant-avg-price {
  font-size: 1rem;
  font-weight: 700;
  color: var(--accent);
}

.variant-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.25rem;
  margin-top: 0.15rem;
}

.variant-sales-count {
  font-size: 0.72rem;
  color: var(--text-secondary);
}

.variant-price-range {
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* ---- Approximate Value Section ---- */
.approx-value-section {
  background: var(--surface-gradient);
  border: 2px solid #d69e2e;
  border-radius: 12px;
  padding: 1.5rem 2rem;
  margin: 0 auto 1.5rem;
  max-width: 900px;
  text-align: center;
  position: relative;
  animation: fadeUp 0.3s ease;
}

.approx-value-section.hidden {
  display: none;
}

.approx-badge {
  display: inline-block;
  background: #744210;
  color: #f6ad55;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  margin-bottom: 0.5rem;
}

.approx-note {
  color: var(--text-secondary);
  font-size: 0.85rem;
  margin-bottom: 0.75rem;
}

.approx-price {
  font-size: 2.2rem;
  font-weight: 700;
  color: #f6ad55;
  margin-bottom: 0.5rem;
}

.approx-details {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  color: var(--text-primary);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.approx-source {
  color: var(--text-secondary);
  font-size: 0.8rem;
  font-style: italic;
}

/* ---- Footer ---- */
footer {
  text-align: center;
  padding: 2.5rem 1.5rem;
  background: var(--bg-footer);
  border-top: 1px solid var(--border-primary);
  margin-top: auto;
}

.footer-inner {
  max-width: 600px;
  margin: 0 auto;
}

.footer-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.footer-logo {
  font-size: 1.4rem;
}

.footer-description {
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.footer-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: var(--text-muted);
  font-size: 0.8rem;
  margin-bottom: 0.75rem;
}

.footer-sep {
  color: var(--text-faint);
}

.footer-copy {
  color: var(--text-faint);
  font-size: 0.75rem;
}

/* ---- No Listings Message ---- */
.no-listings-box {
  grid-column: 1 / -1;
  text-align: center;
  padding: 3rem 1.5rem;
  background: var(--surface-gradient);
  border: 1px solid var(--border-primary);
  border-radius: 12px;
  animation: fadeUp 0.3s ease;
}

.no-listings-box .no-listings-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  opacity: 0.5;
}

.no-listings-box h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.no-listings-box p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* ---- Similar Cards Section ---- */
.similar-section {
  margin-top: 2rem;
  animation: fadeUp 0.4s ease;
}

.similar-header {
  margin-bottom: 1.25rem;
}

.similar-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
}

.similar-subtitle {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-top: 0.3rem;
}

/* ---- Card Detail Modal ---- */
.card-modal {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  animation: fadeIn 0.2s ease;
}

.card-modal.hidden {
  display: none !important;
}

.card-modal-overlay {
  position: absolute;
  inset: 0;
  background: var(--overlay-bg);
  backdrop-filter: blur(4px);
}

.card-modal-content {
  position: relative;
  background: var(--bg-secondary);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-xl);
  padding: 2rem;
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5), 0 0 0 1px var(--border-primary);
  animation: fadeUp 0.3s ease;
}

.card-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--border-primary);
  border: none;
  color: var(--text-secondary);
  font-size: 1.5rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
  z-index: 2;
}

.card-modal-close:hover {
  background: #4a5568;
  color: var(--text-primary);
}

.card-modal-showing {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 1.25rem;
  padding-right: 2.5rem;
}

.card-modal-layout {
  display: flex;
  gap: 1.5rem;
}

.card-modal-image {
  flex: 0 0 220px;
  aspect-ratio: 2.5 / 3.5;
  background: var(--bg-primary);
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-modal-image img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.card-modal-image .no-image {
  color: var(--text-muted);
  font-size: 0.85rem;
  text-align: center;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.card-modal-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-width: 0;
}

.card-modal-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.5;
}

.card-modal-price {
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.5px;
}

.card-modal-meta {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.card-modal-meta .modal-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  text-transform: uppercase;
  align-self: flex-start;
}

.card-modal-meta .modal-badge.sold {
  background: var(--sold-bg);
  color: #fff;
}

.card-modal-meta .modal-badge.for-sale {
  background: var(--border-accent);
  color: var(--accent-lighter);
}

.card-modal-meta .modal-condition {
  background: var(--border-primary);
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-secondary);
  align-self: flex-start;
}

.card-modal-ebay-link {
  display: block;
  margin-top: auto;
  padding: 0.75rem;
  text-align: center;
  background: var(--accent);
  color: #0c0e14;
  text-decoration: none;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 700;
  transition: all var(--transition-fast);
}

.card-modal-ebay-link:hover {
  background: var(--accent-light);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px var(--accent-bg);
}

@media (max-width: 600px) {
  .card-modal-layout {
    flex-direction: column;
  }

  .card-modal-image {
    flex: none;
    max-width: 200px;
    margin: 0 auto;
  }

  .card-modal-content {
    padding: 1.5rem;
  }
}

/* ---- Responsive ---- */
@media (max-width: 600px) {
  header {
    padding: 2rem 1rem;
  }

  header h1 {
    font-size: 1.4rem;
  }

  .header-tagline {
    font-size: 0.85rem;
  }

  main {
    padding: 1.5rem 1rem;
  }

  #search-form {
    flex-direction: column;
  }

  #search-btn {
    width: 100%;
  }

  .stats-bar {
    gap: 1rem;
    padding: 1rem;
  }

  .card {
    aspect-ratio: auto;
  }

  .chart-wrap {
    height: 160px;
  }

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

  footer {
    padding: 2rem 1rem;
  }

  .header-nav {
    justify-content: flex-start;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 0 0.25rem 0.25rem;
    gap: 0.35rem;
  }
  .header-nav::-webkit-scrollbar { display: none; }

  .nav-tab {
    font-size: 0.72rem;
    padding: 0.35rem 0.75rem;
    white-space: nowrap;
    flex-shrink: 0;
  }
}

@media (max-width: 400px) {
  .results-grid {
    grid-template-columns: 1fr;
  }

  .variants-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  }

  .nav-tab {
    font-size: 0.65rem;
    padding: 0.3rem 0.6rem;
  }

  .mode-tabs {
    gap: 0.25rem;
  }

  .mode-tab {
    font-size: 0.75rem;
    padding: 0.35rem 0.75rem;
  }

  #search-btn {
    font-size: 0.85rem;
    padding: 0.6rem;
  }
}

/* ---- Header Nav Tabs ---- */
.header-nav {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1rem;
}

.nav-tab {
  background: transparent;
  border: 1px solid var(--border-primary);
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 600;
  font-family: inherit;
  padding: 0.45rem 1.4rem;
  border-radius: 999px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.nav-tab:hover {
  border-color: var(--accent-border);
  color: var(--accent);
  background: var(--accent-bg);
}

.nav-tab.active {
  background: var(--accent);
  color: #0c0e14;
  border-color: var(--accent);
  box-shadow: 0 2px 10px var(--accent-bg);
}

/* ---- Checklist View ---- */
.checklist-view {
  max-width: 1300px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
  min-height: 60vh;
}

.checklist-view.hidden {
  display: none;
}

.checklist-page-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.4rem;
}

.checklist-page-subtitle {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

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

/* Year dropdown sections */
.checklist-year-section {
  border: 1px solid var(--border-primary);
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg-secondary);
}

.checklist-year-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  padding: 1rem 1.25rem;
  background: var(--bg-tertiary);
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s;
}

.checklist-year-header:hover {
  background: var(--border-primary);
}

.checklist-year-label {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--accent);
}

.checklist-year-count {
  font-size: 0.8rem;
  color: var(--text-secondary);
  background: var(--bg-primary);
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
}

.checklist-year-toggle {
  margin-left: auto;
  color: var(--text-secondary);
  font-size: 1rem;
  transition: transform 0.25s;
}

.checklist-year-header.open .checklist-year-toggle {
  transform: rotate(180deg);
}

.checklist-year-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.checklist-year-body.open {
  max-height: 2000px;
}

.checklist-year-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
  padding: 1rem 1.25rem;
}

.checklist-product-card {
  background: var(--card-gradient);
  border: 1px solid var(--border-primary);
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
  animation: fadeUp 0.4s ease both;
}

.checklist-product-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(82, 183, 136, 0.3);
}

.checklist-product-info h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.3rem;
}

.checklist-product-stats {
  display: flex;
  gap: 1rem;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.checklist-product-arrow {
  color: var(--accent);
  font-size: 1.2rem;
  font-weight: 700;
}

.checklist-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 3rem;
  color: var(--text-secondary);
  grid-column: 1 / -1;
}

.checklist-error {
  color: var(--error);
  text-align: center;
  padding: 2rem;
}

.checklist-empty {
  color: var(--text-secondary);
  text-align: center;
  padding: 2rem;
  font-size: 0.95rem;
}

/* ---- Checklist Browser ---- */
.checklist-browser.hidden {
  display: none;
}

.checklist-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-accent);
  color: var(--accent-light);
  font-size: 0.85rem;
  font-weight: 600;
  font-family: inherit;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  cursor: pointer;
  margin-bottom: 1.25rem;
  transition: all 0.15s;
}

.checklist-back-btn:hover {
  background: var(--border-accent);
  color: var(--accent-lighter);
}

.checklist-product-name {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.checklist-search-wrap {
  margin-bottom: 1rem;
  max-width: 500px;
  display: flex;
  gap: 0.5rem;
  align-items: stretch;
}

.checklist-search-btn {
  padding: 0.75rem 1.2rem;
  border-radius: 10px;
  border: none;
  background: var(--accent);
  color: var(--bg-primary);
  font-size: 0.9rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s, box-shadow 0.15s;
  white-space: nowrap;
  flex-shrink: 0;
}

.checklist-search-btn:hover {
  background: var(--accent-light);
  box-shadow: 0 4px 12px rgba(82, 183, 136, 0.3);
}

.checklist-search-btn:active {
  transform: scale(0.97);
}

.checklist-search-input {
  flex: 1;
  min-width: 0;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  border: 2px solid var(--border-primary);
  background: var(--bg-tertiary);
  color: var(--text-primary);
  font-size: 0.95rem;
  font-family: inherit;
  transition: border-color 0.2s;
}

.checklist-search-input::placeholder {
  color: var(--text-muted);
}

.checklist-search-input:focus {
  outline: none;
  border-color: var(--accent);
}

/* ---- Category Tabs ---- */
.checklist-category-tabs {
  display: flex;
  gap: 0.4rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

.checklist-cat-tab {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-primary);
  color: var(--text-secondary);
  font-size: 0.8rem;
  font-weight: 600;
  font-family: inherit;
  padding: 0.4rem 1rem;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.15s;
}

.checklist-cat-tab:hover {
  border-color: var(--accent);
  color: var(--accent-light);
}

.checklist-cat-tab.active {
  background: var(--accent);
  color: var(--bg-primary);
  border-color: var(--accent);
}

/* ---- Checklist Set ---- */
.checklist-set {
  background: var(--card-gradient);
  border: 1px solid var(--border-primary);
  border-radius: 12px;
  margin-bottom: 0.75rem;
  overflow: hidden;
  animation: fadeUp 0.3s ease both;
}

.checklist-set-header {
  padding: 1rem 1.25rem;
  cursor: pointer;
  transition: background 0.15s;
}

.checklist-set-header:hover {
  background: rgba(82, 183, 136, 0.04);
}

.checklist-set-title-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.checklist-set-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  flex: 1;
  min-width: 0;
}

.checklist-set-count {
  font-size: 0.78rem;
  color: var(--text-secondary);
  white-space: nowrap;
}

.checklist-set-toggle {
  font-size: 0.7rem;
  color: var(--text-muted);
  transition: transform 0.2s;
}

.checklist-set.expanded .checklist-set-toggle {
  transform: rotate(180deg);
}

.checklist-badge {
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  text-transform: uppercase;
  white-space: nowrap;
}

.checklist-badge.base {
  background: var(--border-accent);
  color: var(--accent-lighter);
}

.checklist-badge.auto {
  background: #744210;
  color: #f6ad55;
}

.checklist-badge.insert {
  background: #2b4c7e;
  color: #90cdf4;
}

.checklist-badge.memo {
  background: #553c6e;
  color: #d6bcfa;
}

/* ---- Parallels Row ---- */
.checklist-parallels-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.5rem;
}

.checklist-parallel {
  font-size: 0.68rem;
  color: var(--text-secondary);
  background: var(--bg-primary);
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, box-shadow 0.15s;
  user-select: none;
}

.checklist-parallel:hover {
  background: var(--bg-hover, rgba(255,255,255,0.08));
  color: var(--text-primary);
}

.checklist-parallel-active {
  background: var(--accent, #10b981) !important;
  color: #fff !important;
  box-shadow: 0 0 0 1px var(--accent, #10b981);
}

.checklist-variant-label {
  font-size: 0.7rem;
  color: var(--accent, #10b981);
  background: rgba(16, 185, 129, 0.12);
  padding: 0.1rem 0.5rem;
  border-radius: 4px;
  margin-left: 0.5rem;
  white-space: nowrap;
}

/* ---- Checklist Table ---- */
.checklist-set-body {
  display: none;
  border-top: 1px solid var(--border-primary);
}

.checklist-set.expanded .checklist-set-body {
  display: block;
}

.checklist-table {
  width: 100%;
  border-collapse: collapse;
}

.checklist-table thead th {
  text-align: left;
  padding: 0.6rem 1rem;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: rgba(0, 0, 0, 0.15);
}

.checklist-table tbody tr {
  transition: background 0.1s;
}

.checklist-table tbody tr:hover {
  background: rgba(82, 183, 136, 0.05);
}

.checklist-table td {
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  border-bottom: 1px solid rgba(45, 55, 72, 0.5);
}

.cl-num {
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.78rem;
  white-space: nowrap;
  width: 70px;
}

.cl-player {
  color: var(--text-primary);
  font-weight: 600;
}

.cl-team {
  color: var(--text-secondary);
  font-size: 0.8rem;
}

.cl-printrun {
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.8rem;
  white-space: nowrap;
  width: 70px;
  text-align: center;
}

.cl-pr-rare {
  color: #f6ad55;
  font-weight: 700;
}

.cl-pr-low {
  color: #68d391;
}

.cl-pr-header {
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
}

.cl-pr-header:hover {
  color: var(--accent);
}

.cl-sort-arrow {
  font-size: 0.6rem;
  opacity: 0.4;
  margin-left: 0.2rem;
}

.cl-sort-arrow.cl-sort-active {
  opacity: 1;
  color: var(--accent);
}

.cl-action {
  width: 40px;
  text-align: center;
}

.cl-search-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0.9rem;
  padding: 0.2rem;
  opacity: 0.4;
  transition: opacity 0.15s;
}

.cl-search-btn:hover {
  opacity: 1;
}

/* ---- Inline Player Listings ---- */
.cl-player-link {
  color: var(--accent);
  text-decoration: none;
  cursor: pointer;
  transition: color 0.15s;
  font-weight: 600;
}

.cl-player-link:hover {
  color: var(--accent-light);
  text-decoration: underline;
}

.cl-player-link.cl-player-active {
  color: var(--accent-light);
}

.cl-listings-row {
  animation: clPanelSlide 0.2s ease-out;
}

@keyframes clPanelSlide {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

.cl-listings-cell {
  padding: 0 !important;
  border-bottom: 1px solid rgba(45, 55, 72, 0.5);
}

.cl-listings-panel {
  background: rgba(20, 25, 35, 0.8);
  border: 1px solid rgba(82, 183, 136, 0.2);
  border-radius: 8px;
  margin: 0.5rem 0.75rem;
  overflow: hidden;
}

.cl-listings-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 1rem;
  background: rgba(82, 183, 136, 0.08);
  border-bottom: 1px solid rgba(82, 183, 136, 0.15);
}

.cl-listings-title-group {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.cl-listings-title {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-primary);
  white-space: nowrap;
}

.cl-listings-subtitle {
  font-size: 0.7rem;
  color: var(--accent);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cl-listings-printrun {
  color: var(--text-secondary);
  font-weight: 600;
}

.cl-listings-tabs {
  display: flex;
  gap: 0.25rem;
  margin-left: auto;
}

.cl-listings-tab {
  background: rgba(45, 55, 72, 0.5);
  border: 1px solid rgba(82, 183, 136, 0.15);
  border-radius: 6px;
  color: var(--text-secondary);
  padding: 0.3rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
}

.cl-listings-tab:hover {
  color: var(--text-primary);
  border-color: rgba(82, 183, 136, 0.3);
}

.cl-listings-tab.active {
  background: rgba(82, 183, 136, 0.15);
  border-color: var(--accent);
  color: var(--accent);
}

.cl-listings-close {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 1.25rem;
  cursor: pointer;
  padding: 0 0.25rem;
  line-height: 1;
  transition: color 0.15s;
}

.cl-listings-close:hover {
  color: var(--text-primary);
}

.cl-listings-body {
  padding: 0.75rem 1rem;
  min-height: 80px;
}

.cl-listings-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1.5rem;
  color: var(--text-secondary);
  font-size: 0.8rem;
}

.cl-listings-loading .spinner {
  width: 18px;
  height: 18px;
}

.cl-listings-empty {
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.8rem;
  padding: 1.5rem;
}

.cl-reasoning {
  padding: 0.5rem 0.75rem;
  margin: 0.4rem 0 0.5rem;
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--text-primary);
  background: rgba(82, 183, 136, 0.08);
  border-left: 3px solid #52b788;
  border-radius: 0 6px 6px 0;
}

.cl-broadened-notice {
  padding: 0.5rem 0.75rem;
  margin: 0 0 0.4rem;
  font-size: 0.78rem;
  line-height: 1.45;
  color: #f6ad55;
  background: rgba(246, 173, 85, 0.1);
  border-left: 3px solid #f6ad55;
  border-radius: 0 6px 6px 0;
}

.cl-broadened-notice strong {
  color: #fbd38d;
}

.cl-broadened-icon {
  font-size: 0.85rem;
}

.cl-broadened-detail {
  color: var(--text-secondary);
  font-size: 0.72rem;
}

.cl-similar-section {
  margin-top: 0.75rem;
  border-top: 1px solid rgba(45, 55, 72, 0.5);
  padding-top: 0.5rem;
}

.cl-similar-header {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.4rem;
  padding: 0 0.25rem;
}

.cl-listings-stats {
  display: flex;
  gap: 1.25rem;
  padding: 0.4rem 0 0.75rem;
  font-size: 0.75rem;
  color: var(--text-secondary);
  border-bottom: 1px solid rgba(45, 55, 72, 0.5);
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}

.cl-listings-stats span {
  font-weight: 600;
}

.cl-listings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 0.6rem;
  max-height: 350px;
  overflow-y: auto;
  padding-bottom: 0.25rem;
}

.cl-listing-item {
  display: flex;
  flex-direction: column;
  background: rgba(30, 36, 50, 0.8);
  border: 1px solid rgba(45, 55, 72, 0.6);
  border-radius: 6px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s, transform 0.15s;
}

.cl-listing-item:hover {
  border-color: rgba(82, 183, 136, 0.4);
  transform: translateY(-2px);
}

.cl-item-img {
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
}

.cl-item-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cl-item-noimg {
  font-size: 1.5rem;
  opacity: 0.3;
}

.cl-item-info {
  padding: 0.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.cl-item-price {
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--text-primary);
}

.cl-item-badge {
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.1rem 0.3rem;
  border-radius: 3px;
  width: fit-content;
}

.cl-item-badge.sold {
  background: rgba(245, 101, 101, 0.15);
  color: var(--error);
}

.cl-item-badge.forsale {
  background: rgba(82, 183, 136, 0.15);
  color: var(--accent);
}

.cl-item-date {
  font-size: 0.65rem;
  color: var(--text-muted);
}

/* ---- Checklist Responsive ---- */
@media (max-width: 600px) {
  .checklist-view {
    padding: 1.5rem 1rem;
  }

  .checklist-product-grid {
    grid-template-columns: 1fr;
  }

  .checklist-table td,
  .checklist-table th {
    padding: 0.4rem 0.6rem;
  }

  .cl-team {
    display: none;
  }

  .checklist-parallels-row {
    display: none;
  }

  .cl-listings-header {
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .cl-listings-tabs {
    margin-left: 0;
  }

  .cl-listings-grid {
    grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
  }

  .cl-listings-panel {
    margin: 0.25rem;
  }
}

/* ---- Settings Modal ---- */
.settings-overlay {
  position: fixed;
  inset: 0;
  background: var(--overlay-bg);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.settings-overlay.hidden {
  display: none;
}

.settings-box {
  background: var(--bg-secondary);
  border: 1px solid var(--border-primary);
  border-radius: 16px;
  padding: 2rem;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 20px 60px var(--shadow-modal);
  animation: fadeUp 0.4s ease;
  position: relative;
}

.settings-heading {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
}

.settings-group {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.settings-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border-primary);
}

.settings-row:last-child {
  border-bottom: none;
}

.settings-label {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.settings-label-text {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
}

.settings-label-desc {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

/* ---- Theme Toggle Switch ---- */
.theme-toggle {
  position: relative;
  width: 56px;
  height: 30px;
  background: var(--border-primary);
  border-radius: 999px;
  cursor: pointer;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 6px;
  transition: background 0.3s;
}

.theme-toggle:hover {
  background: var(--text-muted);
}

.theme-toggle-icon {
  font-size: 0.85rem;
  z-index: 1;
  transition: opacity 0.3s;
}

#theme-icon-dark {
  opacity: 1;
}

#theme-icon-light {
  opacity: 0.4;
}

[data-theme="light"] #theme-icon-dark {
  opacity: 0.4;
}

[data-theme="light"] #theme-icon-light {
  opacity: 1;
}

.theme-toggle-thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 24px;
  height: 24px;
  background: var(--accent);
  border-radius: 50%;
  transition: transform 0.3s ease;
}

[data-theme="light"] .theme-toggle-thumb {
  transform: translateX(26px);
}

/* Settings gear nav tab */
.settings-tab {
  padding: 0.45rem 0.7rem !important;
  display: flex;
  align-items: center;
}

.settings-tab svg {
  display: block;
}

/* ---- Settings Subscription ---- */
.settings-sub-btn {
  padding: 0.45rem 1rem;
  border: none;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
  white-space: nowrap;
}

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

.settings-sub-btn:not(.settings-sub-cancel):not(.settings-sub-upgrade) {
  background: var(--accent);
  color: var(--bg-primary);
}

.settings-sub-upgrade {
  background: var(--accent);
  color: var(--bg-primary);
}

.settings-sub-upgrade:hover {
  background: var(--accent-hover);
}

.settings-sub-cancel {
  background: var(--error-bg);
  color: var(--error);
  border: 1px solid var(--error-border);
}

.settings-sub-cancel:hover {
  background: var(--error);
  color: #fff;
}

#settings-sub-desc strong {
  color: var(--accent);
  font-weight: 700;
}

/* ---- Shared Alert/Tracked Styles ---- */
.pro-feature-badge {
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  background: var(--gold);
  color: var(--bg-primary);
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
}

.alerts-add-form {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.alerts-input {
  flex: 1;
  min-width: 0;
  padding: 0.6rem 0.85rem;
  border-radius: 8px;
  border: 1px solid var(--border-primary);
  background: var(--bg-tertiary);
  color: var(--text-primary);
  font-size: 0.85rem;
  font-family: inherit;
  transition: border-color 0.2s;
}

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

.alerts-input:focus {
  outline: none;
  border-color: var(--accent);
}

.alerts-add-btn {
  padding: 0.6rem 1rem;
  border: none;
  border-radius: 8px;
  background: var(--accent);
  color: var(--bg-primary);
  font-size: 0.85rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s;
}

.alerts-add-btn:hover {
  background: var(--accent-hover);
}

.alerts-error {
  color: var(--error);
  font-size: 0.8rem;
  margin-bottom: 0.5rem;
}

.alerts-list {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  max-height: 240px;
  overflow-y: auto;
}

.alerts-empty {
  color: var(--text-muted);
  font-size: 0.85rem;
  text-align: center;
  padding: 1rem;
}


/* ---- Checklist Alert Bell Button ---- */
.cl-alert-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0.9rem;
  padding: 0.2rem 0.35rem;
  border-radius: 6px;
  opacity: 0.35;
  transition: opacity 0.15s, background 0.15s, transform 0.15s;
  vertical-align: middle;
}

.cl-alert-btn:hover {
  opacity: 1;
  background: rgba(212, 175, 55, 0.15);
  transform: scale(1.15);
}

.cl-alert-btn.cl-alert-active {
  opacity: 1;
  color: var(--gold);
}

tr:hover .cl-alert-btn {
  opacity: 0.7;
}

/* ---- Tracked Cards View ---- */
.tracked-view {
  max-width: 700px;
  margin: 0 auto;
  padding: 2rem 1.25rem;
}

.tracked-container {
  background: var(--bg-secondary);
  border-radius: 14px;
  border: 1px solid var(--border-primary);
  padding: 1.75rem;
}

.tracked-header {
  margin-bottom: 1.5rem;
}

.tracked-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
}

.tracked-title svg {
  color: var(--gold);
}

.tracked-subtitle {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.tracked-gate {
  text-align: center;
  padding: 2.5rem 1.5rem;
  background: var(--bg-tertiary);
  border-radius: 12px;
  border: 1px dashed var(--border-primary);
}

.tracked-gate-icon {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
}

.tracked-gate h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.tracked-gate p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
  max-width: 360px;
  margin-left: auto;
  margin-right: auto;
}

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

.tracked-card-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-primary);
  border-radius: 10px;
  animation: fadeUp 0.2s ease;
  transition: border-color 0.15s;
}

.tracked-card-item:hover {
  border-color: var(--gold);
}

.tracked-card-icon {
  font-size: 1.1rem;
  flex-shrink: 0;
}

.tracked-card-info {
  flex: 1;
  min-width: 0;
}

.tracked-card-query {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tracked-card-date {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 0.1rem;
}

.tracked-card-search {
  background: none;
  border: none;
  font-size: 1rem;
  cursor: pointer;
  padding: 0.3rem;
  opacity: 0.5;
  transition: opacity 0.15s;
  flex-shrink: 0;
}

.tracked-card-search:hover {
  opacity: 1;
}

.tracked-card-delete {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 0.2rem 0.4rem;
  line-height: 1;
  transition: color 0.15s;
  flex-shrink: 0;
}

.tracked-card-delete:hover {
  color: var(--error);
}

/* ---- Collection View ---- */
.collection-view { padding: 2rem 1rem; max-width: 900px; margin: 0 auto; }
.collection-container { }
.collection-header { margin-bottom: 1.5rem; }
.collection-title { font-size: 1.5rem; font-weight: 700; margin-bottom: 0.25rem; }
.collection-subtitle { color: var(--text-muted); font-size: 0.85rem; margin-bottom: 1rem; }
.collection-tabs { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.coll-tab { background: var(--bg-card); border: 1px solid var(--border); border-radius: 6px; padding: 0.4rem 1rem; font-size: 0.8rem; color: var(--text-secondary); cursor: pointer; transition: all 0.15s; }
.coll-tab.active { background: var(--accent, #10b981); color: #fff; border-color: var(--accent, #10b981); }
.coll-panel { }

/* Portfolio */
.portfolio-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 0.75rem; margin-bottom: 1rem; }
.portfolio-stat-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 8px; padding: 1rem; text-align: center; }
.portfolio-stat-label { display: block; font-size: 0.7rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 0.25rem; }
.portfolio-stat-value { display: block; font-size: 1.3rem; font-weight: 700; }
.portfolio-stat-value.gain { color: #10b981; }
.portfolio-stat-value.loss { color: #ef4444; }
.portfolio-actions { display: flex; gap: 0.5rem; margin-bottom: 1rem; flex-wrap: wrap; }
.portfolio-action-btn { background: var(--bg-card); border: 1px solid var(--border); border-radius: 6px; padding: 0.5rem 1rem; font-size: 0.8rem; color: var(--text-secondary); cursor: pointer; transition: all 0.15s; }
.portfolio-action-btn:hover { border-color: var(--accent, #10b981); color: var(--text-primary); }
.portfolio-empty { color: var(--text-muted); font-size: 0.85rem; text-align: center; padding: 2rem; }
.portfolio-list { display: flex; flex-direction: column; gap: 0.5rem; }
.portfolio-card-item { display: flex; align-items: center; gap: 0.75rem; background: var(--bg-card); border: 1px solid var(--border); border-radius: 8px; padding: 0.75rem 1rem; }
.portfolio-card-info { flex: 1; min-width: 0; }
.portfolio-card-name { font-weight: 600; font-size: 0.85rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.portfolio-card-meta { font-size: 0.7rem; color: var(--text-muted); }
.portfolio-card-prices { display: flex; flex-direction: column; align-items: flex-end; gap: 0.15rem; }
.portfolio-card-cost { font-size: 0.75rem; color: var(--text-muted); }
.portfolio-card-value { font-size: 0.8rem; font-weight: 600; }
.portfolio-card-value.gain { color: #10b981; }
.portfolio-card-value.loss { color: #ef4444; }
.portfolio-card-remove { background: none; border: none; color: var(--text-muted); font-size: 1.1rem; cursor: pointer; padding: 0.2rem; line-height: 1; }
.portfolio-card-remove:hover { color: var(--error); }

/* Portfolio checklist-style cards */
.portfolio-set { margin-bottom: 0.75rem; }
.portfolio-set .checklist-set-body { display: block; }
.portfolio-set:not(.expanded) .checklist-set-body { display: none; }
.portfolio-detail-cell { display: flex; align-items: center; gap: 0.35rem; flex-wrap: wrap; }
.portfolio-parallel-tag { font-size: 0.68rem; background: rgba(16, 185, 129, 0.12); color: var(--accent, #10b981); padding: 0.1rem 0.4rem; border-radius: 4px; white-space: nowrap; }
.cl-printrun-inline { font-size: 0.75rem; font-weight: 600; color: var(--text-secondary); white-space: nowrap; }
.cl-printrun-inline.cl-pr-rare { color: #f6ad55; font-weight: 700; }
.cl-printrun-inline.cl-pr-low { color: #68d391; }
.portfolio-cond-tag { font-size: 0.68rem; background: var(--bg-hover, rgba(255,255,255,0.06)); color: var(--text-secondary); padding: 0.1rem 0.4rem; border-radius: 4px; white-space: nowrap; }
.portfolio-price-cell { white-space: nowrap; text-align: right; }
.portfolio-price-cell .portfolio-card-cost { font-size: 0.75rem; color: var(--text-muted); }
.portfolio-price-cell .portfolio-card-value { font-size: 0.75rem; font-weight: 600; margin-left: 0.4rem; }
.portfolio-price-cell .portfolio-card-value.gain { color: #10b981; }
.portfolio-price-cell .portfolio-card-value.loss { color: #ef4444; }
.portfolio-manual-header { font-size: 0.8rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em; margin: 1.25rem 0 0.5rem; padding-bottom: 0.35rem; border-bottom: 1px solid var(--border); }

/* Set Completion */
.completion-subtabs { display: flex; gap: 0.25rem; margin-bottom: 1rem; background: var(--bg-card); border: 1px solid var(--border); border-radius: 8px; padding: 0.2rem; width: fit-content; }
.completion-subtab { background: none; border: none; color: var(--text-muted); font-size: 0.8rem; font-weight: 600; padding: 0.4rem 1rem; border-radius: 6px; cursor: pointer; transition: all 0.15s; }
.completion-subtab.active { background: var(--accent, #10b981); color: #fff; }
.completion-subtab:not(.active):hover { color: var(--text-primary); background: var(--bg-hover, rgba(255,255,255,0.04)); }
.completion-player-picker { margin-bottom: 1rem; }
.completion-controls { display: flex; gap: 0.75rem; align-items: center; margin-bottom: 1rem; flex-wrap: wrap; }
.completion-select { background: var(--bg-card); border: 1px solid var(--border); border-radius: 6px; padding: 0.5rem 0.75rem; font-size: 0.85rem; color: var(--text-primary); min-width: 200px; flex: 1; }
.rainbow-toggle { display: flex; align-items: center; gap: 0.4rem; cursor: pointer; font-size: 0.8rem; color: var(--text-secondary); }
.rainbow-toggle input { accent-color: var(--accent, #10b981); }
.rainbow-label { background: linear-gradient(90deg, #ef4444, #f59e0b, #10b981, #3b82f6, #8b5cf6); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; font-weight: 600; }
.completion-progress { margin-bottom: 1rem; display: flex; align-items: center; gap: 0.75rem; }
.completion-progress-bar-wrap { flex: 1; height: 8px; background: var(--bg-card); border-radius: 4px; overflow: hidden; border: 1px solid var(--border); }
.completion-progress-bar { height: 100%; background: var(--accent, #10b981); border-radius: 4px; transition: width 0.3s; }
.completion-progress-text { font-size: 0.75rem; color: var(--text-muted); white-space: nowrap; }
.completion-sets { display: flex; flex-direction: column; gap: 0.5rem; }
.completion-set { background: var(--bg-card); border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.completion-set.complete { border-color: var(--accent, #10b981); }
.completion-set-header { display: flex; flex-direction: column; gap: 0.25rem; padding: 0.75rem 1rem; cursor: pointer; transition: background 0.15s; }
.completion-set-header:hover { background: var(--bg-hover, rgba(255,255,255,0.04)); }
.completion-set-title-row { display: flex; align-items: center; gap: 0.75rem; }
.completion-set-name { flex: 1; font-size: 0.85rem; font-weight: 600; }
.completion-set-count { font-size: 0.75rem; color: var(--text-muted); white-space: nowrap; }
.completion-mini-bar { width: 60px; height: 4px; background: rgba(255,255,255,0.1); border-radius: 2px; overflow: hidden; }
.completion-mini-fill { height: 100%; background: var(--accent, #10b981); border-radius: 2px; transition: width 0.3s; }
.completion-set-cards { padding: 0.5rem 1rem 1rem; border-top: 1px solid var(--border); }
.completion-card-row { display: flex; align-items: center; gap: 0.5rem; padding: 0.3rem 0; font-size: 0.8rem; flex-wrap: wrap; }
.completion-check-row { cursor: pointer; border-radius: 4px; padding: 0.3rem 0.5rem; transition: background 0.15s; }
.completion-check-row:hover { background: var(--bg-hover, rgba(255,255,255,0.04)); }
.completion-check-row.owned { color: var(--accent, #10b981); }
.completion-card-player { font-weight: 500; flex: 1; }
.completion-variants { display: flex; gap: 0.3rem; flex-wrap: wrap; }
.completion-variant-check { display: inline-flex; align-items: center; justify-content: center; gap: 0.2rem; cursor: pointer; transition: all 0.15s; }
.completion-variant-check.owned { color: var(--accent, #10b981); }
.completion-variant-check input { accent-color: var(--accent, #10b981); width: 14px; height: 14px; cursor: pointer; }
.completion-table { width: 100%; }
.completion-table th { text-align: left; }
.completion-check-col { text-align: center; width: 60px; }
.completion-check-cell { text-align: center; }
.completion-variant-name { font-size: 0.78rem; color: var(--text-secondary); }
.completion-row-owned { opacity: 0.5; }
.completion-row-owned .cl-player-link { color: var(--accent, #10b981); }

/* Completion Player Groups */
.completion-player-group { padding: 0.6rem 0; border-bottom: 1px solid rgba(45, 55, 72, 0.3); }
.completion-player-group:last-child { border-bottom: none; }
.completion-player-header { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.4rem; flex-wrap: wrap; }
.completion-player-num { font-size: 0.75rem; color: var(--text-muted); font-weight: 600; min-width: 40px; }
.completion-player-name { color: var(--accent, #10b981); font-weight: 600; font-size: 0.85rem; text-decoration: none; cursor: pointer; transition: color 0.15s; }
.completion-player-name:hover { color: var(--accent-light, #34d399); text-decoration: underline; }
.completion-player-name.cl-player-active { color: var(--accent-light, #34d399); text-decoration: underline; }
.completion-player-team { font-size: 0.78rem; color: var(--text-secondary); flex: 1; }
.completion-player-pct { font-size: 0.72rem; color: var(--text-muted); font-weight: 600; white-space: nowrap; }
.completion-player-pct.complete { color: var(--accent, #10b981); }
.completion-player-listings-slot { margin-top: 0.25rem; }
.completion-listings-panel { margin-top: 0.5rem; border-radius: 8px; overflow: hidden; }

/* Hot/Cold */
.hotcold-desc { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 0.75rem; }
.hotcold-period { display: flex; gap: 0.5rem; margin-bottom: 1rem; }
.hotcold-period-btn { background: var(--bg-card); border: 1px solid var(--border); border-radius: 6px; padding: 0.35rem 0.75rem; font-size: 0.75rem; color: var(--text-secondary); cursor: pointer; }
.hotcold-period-btn.active { background: var(--accent, #10b981); color: #fff; border-color: var(--accent, #10b981); }
.hotcold-list { display: flex; flex-direction: column; gap: 0.4rem; }
.hotcold-empty { color: var(--text-muted); font-size: 0.85rem; text-align: center; padding: 2rem; }
.hotcold-item { display: flex; align-items: center; gap: 0.75rem; background: var(--bg-card); border: 1px solid var(--border); border-radius: 8px; padding: 0.6rem 1rem; font-size: 0.8rem; }
.hotcold-icon { font-size: 1.1rem; }
.hotcold-query { flex: 1; font-weight: 500; }
.hotcold-change { font-weight: 700; white-space: nowrap; }
.hotcold-change.gain { color: #10b981; }
.hotcold-change.loss { color: #ef4444; }
.hotcold-prices { font-size: 0.7rem; color: var(--text-muted); white-space: nowrap; }

/* eBay Seller Section */
.seller-header { margin-bottom: 1rem; }
.seller-section-title { font-size: 1rem; font-weight: 700; margin-bottom: 0.15rem; }
.seller-section-desc { font-size: 0.8rem; color: var(--text-muted); }

.seller-subtabs { display: flex; gap: 0.25rem; margin-bottom: 1rem; background: var(--bg-card); border: 1px solid var(--border); border-radius: 8px; padding: 0.2rem; width: fit-content; }
.seller-subtab { background: none; border: none; color: var(--text-muted); font-size: 0.8rem; font-weight: 600; padding: 0.4rem 1rem; border-radius: 6px; cursor: pointer; transition: all 0.15s; }
.seller-subtab.active { background: var(--accent, #10b981); color: #fff; }
.seller-subtab:not(.active):hover { color: var(--text-primary); background: var(--bg-hover, rgba(255,255,255,0.04)); }

.seller-panel.hidden { display: none; }

/* Seller Form */
.seller-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.seller-form-group { display: flex; flex-direction: column; gap: 0.25rem; }
.seller-form-group label { font-size: 0.75rem; font-weight: 600; color: var(--text-secondary); display: flex; align-items: center; gap: 0.5rem; }
.seller-form-full { grid-column: 1 / -1; }
.seller-char-count { font-size: 0.65rem; font-weight: 400; color: var(--text-muted); }
.seller-title-row { display: flex; gap: 0.5rem; }
.seller-title-row input { flex: 1; }
.seller-autofill-btn { background: var(--bg-card); border: 1px solid var(--border); border-radius: 6px; padding: 0.4rem 0.75rem; font-size: 0.75rem; font-weight: 600; cursor: pointer; color: var(--accent, #10b981); white-space: nowrap; transition: all 0.15s; }
.seller-autofill-btn:hover { border-color: var(--accent, #10b981); background: rgba(16, 185, 129, 0.08); }

.seller-form-group input[type="text"],
.seller-form-group input[type="number"],
.seller-form-group select,
.seller-form-group textarea { padding: 0.5rem 0.75rem; border: 1px solid var(--border); border-radius: 6px; background: var(--bg-main); color: var(--text-primary); font-size: 0.85rem; box-sizing: border-box; }
.seller-form-group select { cursor: pointer; }
.seller-form-group textarea { resize: vertical; font-family: inherit; }

.seller-photo-placeholder { background: var(--bg-main); border: 1px dashed var(--border); border-radius: 8px; padding: 0.75rem; }
.seller-photo-placeholder span { display: block; font-size: 0.75rem; color: var(--text-muted); margin-bottom: 0.5rem; }
.seller-photo-placeholder textarea { width: 100%; border: 1px solid var(--border); border-radius: 6px; background: var(--bg-card); color: var(--text-primary); font-size: 0.8rem; padding: 0.5rem; box-sizing: border-box; }

.seller-auction-field.hidden { display: none; }
.seller-custom-shipping.hidden { display: none; }

.seller-form-actions { display: flex; gap: 0.5rem; margin-top: 1rem; }
.seller-save-btn { flex: 1; padding: 0.6rem; border: none; border-radius: 6px; background: var(--accent, #10b981); color: #fff; font-weight: 600; cursor: pointer; font-size: 0.85rem; transition: opacity 0.15s; }
.seller-save-btn:hover { opacity: 0.9; }
.seller-clear-btn { padding: 0.6rem 1.25rem; border: 1px solid var(--border); border-radius: 6px; background: var(--bg-card); color: var(--text-secondary); font-weight: 600; cursor: pointer; font-size: 0.85rem; }
.seller-clear-btn:hover { border-color: #ef4444; color: #ef4444; }

/* My Listings */
.seller-listings-controls { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.75rem; flex-wrap: wrap; gap: 0.5rem; }
.seller-listings-stats { display: flex; gap: 1rem; font-size: 0.8rem; color: var(--text-muted); }
.seller-listings-stats span { font-weight: 600; }
.seller-export-btn { background: var(--bg-card); border: 1px solid var(--border); border-radius: 6px; padding: 0.4rem 0.75rem; font-size: 0.75rem; font-weight: 600; cursor: pointer; color: var(--text-secondary); transition: all 0.15s; }
.seller-export-btn:hover { border-color: var(--accent, #10b981); color: var(--accent, #10b981); }

.seller-listings-list { display: flex; flex-direction: column; gap: 0.5rem; }
.seller-empty { color: var(--text-muted); font-size: 0.85rem; text-align: center; padding: 2rem; }

.seller-listing-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 10px; padding: 0.75rem 1rem; display: flex; align-items: center; gap: 0.75rem; transition: border-color 0.15s; }
.seller-listing-card:hover { border-color: var(--accent, #10b981); }
.seller-listing-info { flex: 1; min-width: 0; }
.seller-listing-title-text { font-size: 0.85rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.seller-listing-meta { display: flex; gap: 0.75rem; font-size: 0.72rem; color: var(--text-muted); margin-top: 0.2rem; flex-wrap: wrap; }
.seller-listing-price { font-size: 0.95rem; font-weight: 700; color: var(--accent, #10b981); white-space: nowrap; }
.seller-listing-actions { display: flex; gap: 0.35rem; }
.seller-listing-actions button { background: none; border: 1px solid var(--border); border-radius: 4px; padding: 0.25rem 0.5rem; font-size: 0.7rem; cursor: pointer; color: var(--text-muted); transition: all 0.15s; }
.seller-listing-actions button:hover { border-color: var(--accent, #10b981); color: var(--accent, #10b981); }
.seller-listing-actions .seller-delete-btn:hover { border-color: #ef4444; color: #ef4444; }
.seller-listing-badge { display: inline-block; font-size: 0.6rem; font-weight: 700; padding: 0.1rem 0.4rem; border-radius: 4px; text-transform: uppercase; }
.seller-listing-badge.auction { background: rgba(59, 130, 246, 0.12); color: #3b82f6; }
.seller-listing-badge.fixed { background: rgba(16, 185, 129, 0.12); color: #10b981; }

/* Modal Overlay (shared) */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.6); z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 1rem; backdrop-filter: blur(4px); }
.modal-box { background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; padding: 1.5rem; width: 100%; max-width: 600px; max-height: 85vh; overflow-y: auto; position: relative; }
.modal-box-lg { max-width: 800px; }
.modal-box h2 { font-size: 1.2rem; margin-bottom: 0.75rem; }
.modal-box input[type="text"], .modal-box input[type="number"], .modal-box input[type="email"] { width: 100%; padding: 0.5rem 0.75rem; border: 1px solid var(--border); border-radius: 6px; background: var(--bg-main); color: var(--text-primary); font-size: 0.85rem; margin-bottom: 0.5rem; box-sizing: border-box; }
.modal-box button[type="submit"] { width: 100%; padding: 0.6rem; border: none; border-radius: 6px; background: var(--accent, #10b981); color: #fff; font-weight: 600; cursor: pointer; font-size: 0.85rem; margin-top: 0.5rem; }

/* Marketplace */
.marketplace-desc { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 1rem; }
.marketplace-search { display: flex; gap: 0.5rem; margin-bottom: 1rem; flex-wrap: wrap; }
.marketplace-search input { flex: 1; min-width: 180px; padding: 0.5rem 0.75rem; border: 1px solid var(--border); border-radius: 6px; background: var(--bg-card); color: var(--text-primary); font-size: 0.85rem; }
.marketplace-sort-select { background: var(--bg-card); border: 1px solid var(--border); border-radius: 6px; padding: 0.5rem 0.5rem; font-size: 0.8rem; color: var(--text-primary); }
.marketplace-search button { background: var(--accent, #10b981); color: #fff; border: none; border-radius: 6px; padding: 0.5rem 1.25rem; cursor: pointer; font-weight: 600; font-size: 0.85rem; }
.marketplace-search button:hover { opacity: 0.9; }
.marketplace-empty { color: var(--text-muted); font-size: 0.85rem; text-align: center; padding: 2rem; }
.marketplace-count { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 0.75rem; }
.marketplace-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 0.75rem; }
.marketplace-card { display: flex; flex-direction: column; background: var(--bg-card); border: 1px solid var(--border); border-radius: 10px; overflow: hidden; text-decoration: none; color: var(--text-primary); transition: border-color 0.15s, box-shadow 0.15s; }
.marketplace-card:hover { border-color: var(--accent, #10b981); box-shadow: 0 2px 12px rgba(16, 185, 129, 0.1); }
.marketplace-card-img { width: 100%; aspect-ratio: 1; object-fit: contain; background: #111; }
.marketplace-no-img { display: flex; align-items: center; justify-content: center; color: var(--text-muted); font-size: 0.75rem; }
.marketplace-card-body { padding: 0.6rem 0.75rem; display: flex; flex-direction: column; gap: 0.3rem; flex: 1; }
.marketplace-card-title { font-size: 0.78rem; font-weight: 500; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.marketplace-card-meta { display: flex; align-items: baseline; gap: 0.5rem; }
.marketplace-card-price { font-size: 1rem; font-weight: 700; color: var(--accent, #10b981); }
.marketplace-card-shipping { font-size: 0.7rem; color: var(--text-muted); }
.marketplace-card-badge { display: inline-block; font-size: 0.65rem; font-weight: 600; padding: 0.15rem 0.4rem; border-radius: 4px; background: rgba(16, 185, 129, 0.12); color: var(--accent, #10b981); width: fit-content; }
.marketplace-card-seller { font-size: 0.7rem; color: var(--text-muted); display: flex; gap: 0.4rem; align-items: center; margin-top: auto; }
.marketplace-seller-fb { font-size: 0.65rem; opacity: 0.7; }
.marketplace-load-more { display: block; margin: 1.25rem auto 0; background: var(--bg-card); border: 1px solid var(--border); border-radius: 8px; padding: 0.6rem 2rem; color: var(--text-primary); font-size: 0.85rem; font-weight: 600; cursor: pointer; transition: border-color 0.15s; }
.marketplace-load-more:hover { border-color: var(--accent, #10b981); }
.marketplace-load-more:disabled { opacity: 0.5; cursor: not-allowed; }

/* Market Insights */
.insights-desc { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 1rem; }
.insights-search { display: flex; gap: 0.5rem; margin-bottom: 1rem; flex-wrap: wrap; }
.insights-search input { flex: 1; min-width: 200px; padding: 0.5rem 0.75rem; border: 1px solid var(--border); border-radius: 6px; background: var(--bg-card); color: var(--text-primary); font-size: 0.85rem; }
.insights-search button { background: var(--accent, #10b981); color: #fff; border: none; border-radius: 6px; padding: 0.5rem 1.25rem; cursor: pointer; font-weight: 600; font-size: 0.85rem; }
.insights-search button:hover { opacity: 0.9; }
.insights-empty { color: var(--text-muted); font-size: 0.85rem; text-align: center; padding: 2rem; }
.insights-dashboard { display: flex; flex-direction: column; gap: 1.25rem; }
.insights-stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 0.6rem; }
.insights-stat { background: var(--bg-card); border: 1px solid var(--border); border-radius: 8px; padding: 0.75rem; display: flex; flex-direction: column; gap: 0.25rem; }
.insights-stat-label { font-size: 0.7rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.04em; font-weight: 500; }
.insights-stat-value { font-size: 1.1rem; font-weight: 700; color: var(--text-primary); }
.insights-trend-up { color: #10b981 !important; }
.insights-trend-down { color: #ef4444 !important; }
.insights-trend-flat { color: var(--text-muted) !important; }
.insights-section { background: var(--bg-card); border: 1px solid var(--border); border-radius: 8px; padding: 1rem; }
.insights-section-title { font-size: 0.85rem; font-weight: 600; color: var(--text-primary); margin: 0 0 0.75rem 0; }
.insights-timeline { display: flex; flex-direction: column; gap: 0.35rem; }
.insights-timeline-row { display: flex; align-items: center; gap: 0.5rem; font-size: 0.75rem; }
.insights-timeline-date { width: 40px; color: var(--text-muted); font-size: 0.7rem; flex-shrink: 0; }
.insights-timeline-bar-wrap { flex: 1; height: 16px; background: rgba(16, 185, 129, 0.08); border-radius: 4px; overflow: hidden; }
.insights-timeline-bar { height: 100%; background: var(--accent, #10b981); border-radius: 4px; transition: width 0.3s ease; min-width: 2px; }
.insights-timeline-val { font-size: 0.7rem; color: var(--text-muted); white-space: nowrap; min-width: 120px; text-align: right; }
.insights-distribution { display: flex; flex-direction: column; gap: 0.35rem; }
.insights-dist-row { display: flex; align-items: center; gap: 0.5rem; font-size: 0.75rem; }
.insights-dist-label { width: 70px; color: var(--text-secondary); font-size: 0.7rem; flex-shrink: 0; }
.insights-dist-bar-wrap { flex: 1; height: 16px; background: rgba(99, 102, 241, 0.08); border-radius: 4px; overflow: hidden; }
.insights-dist-bar { height: 100%; background: #6366f1; border-radius: 4px; transition: width 0.3s ease; min-width: 2px; }
.insights-dist-count { font-size: 0.7rem; color: var(--text-muted); min-width: 20px; text-align: right; }
.insights-conditions { display: flex; flex-direction: column; gap: 0.3rem; }
.insights-condition-row { display: flex; align-items: center; gap: 0.75rem; padding: 0.4rem 0; border-bottom: 1px solid var(--border); font-size: 0.8rem; }
.insights-condition-row:last-child { border-bottom: none; }
.insights-condition-name { font-weight: 500; color: var(--text-primary); min-width: 100px; }
.insights-condition-count { color: var(--text-muted); font-size: 0.75rem; }
.insights-condition-price { color: var(--accent, #10b981); font-weight: 600; margin-left: auto; }
.insights-top-sales { display: flex; flex-direction: column; gap: 0.5rem; }
.insights-top-sale { display: flex; gap: 0.75rem; padding: 0.5rem; border-radius: 8px; text-decoration: none; color: var(--text-primary); transition: background 0.15s; }
.insights-top-sale:hover { background: rgba(16, 185, 129, 0.06); }
.insights-sale-img { width: 48px; height: 48px; border-radius: 6px; object-fit: cover; background: #111; flex-shrink: 0; }
.insights-no-img { display: flex; align-items: center; justify-content: center; color: var(--text-muted); font-size: 0.6rem; border: 1px solid var(--border); }
.insights-sale-info { display: flex; flex-direction: column; gap: 0.2rem; min-width: 0; }
.insights-sale-title { font-size: 0.78rem; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.insights-sale-meta { font-size: 0.75rem; color: var(--accent, #10b981); font-weight: 600; }

/* eBay Listing Helper */
.listing-helper-desc { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 0.75rem; }
.listing-helper-search { display: flex; gap: 0.5rem; margin-bottom: 1rem; }
.listing-helper-search input { flex: 1; }
.listing-helper-search button { background: var(--accent, #10b981); color: #fff; border: none; border-radius: 6px; padding: 0.5rem 1rem; cursor: pointer; font-weight: 600; }
.listing-title-row { display: flex; align-items: center; gap: 0.5rem; padding: 0.5rem; border-bottom: 1px solid var(--border); font-size: 0.8rem; }
.listing-title-text { flex: 1; font-family: monospace; }
.listing-title-len { font-size: 0.7rem; color: var(--text-muted); white-space: nowrap; }
.listing-copy-btn { background: var(--bg-card); border: 1px solid var(--border); border-radius: 4px; padding: 0.25rem 0.5rem; font-size: 0.7rem; cursor: pointer; color: var(--text-secondary); }
.listing-copy-btn:hover { border-color: var(--accent, #10b981); }

/* Comp Analyzer */
.comp-analyzer { display: flex; gap: 0.75rem; padding: 0.5rem 0.75rem; background: rgba(16, 185, 129, 0.08); border-radius: 6px; margin-bottom: 0.5rem; flex-wrap: wrap; align-items: center; }
.comp-label { font-size: 0.7rem; color: var(--accent, #10b981); font-weight: 600; }
.comp-stat { font-size: 0.75rem; color: var(--text-secondary); }

/* Collection button in checklist */
.cl-coll-btn { background: none; border: 1px solid var(--border); color: var(--text-muted); width: 22px; height: 22px; border-radius: 4px; cursor: pointer; font-size: 0.75rem; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; transition: all 0.15s; padding: 0; line-height: 1; }
.cl-coll-btn:hover { border-color: var(--accent, #10b981); color: var(--accent, #10b981); }
.cl-coll-added { background: var(--accent, #10b981) !important; color: #fff !important; border-color: var(--accent, #10b981) !important; }

/* ---- Layout Picker Popup ---- */
.layout-picker { position: fixed; inset: 0; z-index: 9999; background: rgba(0,0,0,0.8); display: flex; align-items: center; justify-content: center; backdrop-filter: blur(6px); }
.layout-picker.hidden { display: none; }
.layout-picker-box { background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px; padding: 2rem 2.5rem; text-align: center; max-width: 420px; width: 90%; box-shadow: 0 20px 60px rgba(0,0,0,0.5); }
.layout-picker-title { font-size: 1.3rem; font-weight: 700; margin-bottom: 0.25rem; }
.layout-picker-subtitle { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 1.5rem; }
.layout-picker-options { display: flex; gap: 1rem; justify-content: center; }
.layout-pick-btn { display: flex; flex-direction: column; align-items: center; gap: 0.5rem; background: var(--bg-main, var(--bg-primary)); border: 2px solid var(--border); border-radius: 12px; padding: 1.5rem 2rem; cursor: pointer; transition: all 0.2s; color: var(--text-secondary); min-width: 130px; }
.layout-pick-btn:hover { border-color: var(--accent, #10b981); color: var(--accent, #10b981); transform: translateY(-2px); box-shadow: 0 4px 16px rgba(16,185,129,0.2); }
.layout-pick-label { font-size: 1rem; font-weight: 700; }
.layout-pick-desc { font-size: 0.7rem; color: var(--text-muted); }

/* Layout toggle in Settings */
.layout-toggle-btns { display: flex; gap: 0.35rem; }
.layout-toggle-btn { background: var(--bg-card); border: 1px solid var(--border); border-radius: 6px; padding: 0.35rem 0.75rem; font-size: 0.75rem; color: var(--text-secondary); cursor: pointer; transition: all 0.15s; }
.layout-toggle-btn.active { background: var(--accent, #10b981); color: #fff; border-color: var(--accent, #10b981); }

/* ===========================================================
   MOBILE LAYOUT — applied via .mobile-layout on <html>
   Shrinks all UI to fit phone screens natively
   =========================================================== */
.mobile-layout body { font-size: 11px; zoom: 0.85; }

/* Header */
.mobile-layout header { padding: 1.25rem 0.75rem; }
.mobile-layout header h1 { font-size: 1.15rem; }
.mobile-layout .header-tagline { font-size: 0.72rem; }
.mobile-layout .header-auth { position: static; }
.mobile-layout .header-pro { position: static; }
.mobile-layout .header-inner { display: flex; flex-direction: column; align-items: center; }
.mobile-layout .auth-btn, .mobile-layout .pro-btn { font-size: 0.7rem; padding: 0.3rem 0.6rem; }

/* Nav tabs */
.mobile-layout .header-nav { justify-content: flex-start; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; padding: 0 0.25rem 0.25rem; gap: 0.3rem; margin-top: 0.6rem; }
.mobile-layout .header-nav::-webkit-scrollbar { display: none; }
.mobile-layout .nav-tab { font-size: 0.68rem; padding: 0.3rem 0.65rem; white-space: nowrap; flex-shrink: 0; }

/* Search */
.mobile-layout main { padding: 1rem 0.75rem; }
.mobile-layout #search-form { flex-direction: column; }
.mobile-layout #search-btn { width: 100%; font-size: 0.8rem; padding: 0.55rem; }
.mobile-layout #search-input { font-size: 0.8rem; padding: 0.55rem 0.55rem 0.55rem 2.2rem; }
.mobile-layout .search-icon { width: 16px; height: 16px; left: 0.6rem; }

/* Mode tabs */
.mobile-layout .mode-tabs { gap: 0.25rem; }
.mobile-layout .mode-tab { font-size: 0.72rem; padding: 0.3rem 0.7rem; }

/* Suggestions chips */
.mobile-layout .chip { font-size: 0.68rem; padding: 0.3rem 0.6rem; }
.mobile-layout .recent-chip { font-size: 0.68rem; padding: 0.3rem 0.6rem; }
.mobile-layout .section-label { font-size: 0.68rem; }

/* Sort controls */
.mobile-layout .sort-controls { justify-content: center; gap: 0.25rem; }
.mobile-layout .sort-btn { font-size: 0.68rem; padding: 0.25rem 0.5rem; }

/* Results grid */
.mobile-layout .results-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 0.6rem; }
.mobile-layout .card { border-radius: 8px; }
.mobile-layout .card-title { font-size: 0.7rem; }
.mobile-layout .card-price { font-size: 0.85rem; }
.mobile-layout .card-detail { font-size: 0.6rem; }

/* Stats bar */
.mobile-layout .stats-bar { gap: 0.6rem; padding: 0.75rem; }
.mobile-layout .stat-value { font-size: 1rem; }
.mobile-layout .stat-label { font-size: 0.6rem; }

/* Chart */
.mobile-layout .chart-wrap { height: 140px; }
.mobile-layout .chart-title { font-size: 0.8rem; }

/* Variants grid */
.mobile-layout .variants-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 0.5rem; }
.mobile-layout .variant-card { padding: 0.6rem; }
.mobile-layout .variant-name { font-size: 0.72rem; }
.mobile-layout .variant-price { font-size: 0.85rem; }
.mobile-layout .variant-meta { font-size: 0.6rem; }

/* Checklist view */
.mobile-layout .checklist-view { padding: 1.25rem 0.75rem; }
.mobile-layout .checklist-page-title { font-size: 1.15rem; }
.mobile-layout .checklist-page-subtitle { font-size: 0.72rem; }
.mobile-layout .checklist-product-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 0.5rem; }
.mobile-layout .checklist-product-card { padding: 0.7rem; }
.mobile-layout .checklist-product-name { font-size: 0.75rem; }
.mobile-layout .checklist-search-input { font-size: 0.78rem; padding: 0.45rem 0.65rem; }
.mobile-layout .checklist-cat-tab { font-size: 0.65rem; padding: 0.25rem 0.5rem; }
.mobile-layout .checklist-set-header { font-size: 0.78rem; padding: 0.5rem 0.65rem; }
.mobile-layout .cl-table { font-size: 0.7rem; }
.mobile-layout .cl-table th, .mobile-layout .cl-table td { padding: 0.25rem 0.35rem; }
.mobile-layout .cl-alert-btn, .mobile-layout .cl-search-btn, .mobile-layout .cl-coll-btn { width: 20px; height: 20px; font-size: 0.65rem; }
.mobile-layout .checklist-parallel { font-size: 0.6rem; padding: 0.1rem 0.35rem; }

/* Collection view */
.mobile-layout .collection-view { padding: 1.25rem 0.75rem; }
.mobile-layout .collection-title { font-size: 1.15rem; }
.mobile-layout .collection-tabs { gap: 0.25rem; overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; }
.mobile-layout .collection-tabs::-webkit-scrollbar { display: none; }
.mobile-layout .coll-tab { font-size: 0.65rem; padding: 0.3rem 0.55rem; flex-shrink: 0; }
.mobile-layout .portfolio-stats { grid-template-columns: repeat(2, 1fr); gap: 0.4rem; }
.mobile-layout .portfolio-stat-card { padding: 0.55rem; }
.mobile-layout .portfolio-stat-label { font-size: 0.55rem; }
.mobile-layout .portfolio-stat-value { font-size: 0.95rem; }
.mobile-layout .portfolio-actions { gap: 0.3rem; }
.mobile-layout .portfolio-action-btn { font-size: 0.65rem; padding: 0.35rem 0.55rem; }
.mobile-layout .portfolio-card-item { padding: 0.45rem 0.55rem; gap: 0.4rem; }
.mobile-layout .portfolio-card-name { font-size: 0.73rem; }
.mobile-layout .portfolio-card-cost { font-size: 0.65rem; }
.mobile-layout .portfolio-card-value { font-size: 0.7rem; }
.mobile-layout .completion-controls { flex-direction: column; gap: 0.4rem; }
.mobile-layout .completion-select { min-width: 0; width: 100%; font-size: 0.78rem; }
.mobile-layout .seller-form-grid { grid-template-columns: 1fr; }
.mobile-layout .seller-subtabs { flex-wrap: wrap; }
.mobile-layout .seller-subtab { font-size: 0.7rem; padding: 0.35rem 0.65rem; }
.mobile-layout .seller-listing-card { flex-direction: column; align-items: stretch; }
.mobile-layout .seller-listing-actions { justify-content: flex-end; }

/* Tracked view */
.mobile-layout .tracked-container { padding: 0 0.25rem; }
.mobile-layout .tracked-title { font-size: 1.1rem; }
.mobile-layout .tracked-subtitle { font-size: 0.72rem; }
.mobile-layout .alerts-input { font-size: 0.78rem; }
.mobile-layout .alerts-add-btn { font-size: 0.75rem; }
.mobile-layout .tracked-card-query { font-size: 0.78rem; }

/* Modals */
.mobile-layout .modal-box { padding: 1rem; margin: 0.5rem; }
.mobile-layout .modal-box h2 { font-size: 0.95rem; }
.mobile-layout .modal-box input { font-size: 0.78rem; padding: 0.45rem 0.6rem; }
.mobile-layout .modal-box button[type="submit"] { font-size: 0.78rem; }
.mobile-layout .login-box { padding: 1.5rem 1.25rem; }
.mobile-layout .pricing-box { padding: 1.25rem 0.75rem; }
.mobile-layout .pricing-cards { grid-template-columns: 1fr; }
.mobile-layout .settings-box { padding: 1.25rem; }

/* Hot/cold */
.mobile-layout .hotcold-item { font-size: 0.72rem; padding: 0.45rem 0.55rem; gap: 0.4rem; }
.mobile-layout .hotcold-query { font-size: 0.72rem; }
.mobile-layout .hotcold-prices { font-size: 0.6rem; }

/* Footer */
.mobile-layout footer { padding: 1.5rem 0.75rem; }
.mobile-layout .footer-description { font-size: 0.7rem; }
.mobile-layout .footer-links { font-size: 0.65rem; }
.mobile-layout .footer-copy { font-size: 0.6rem; }

/* ---- Mobile Responsive for New Features ---- */
@media (max-width: 600px) {
  .collection-view { padding: 1.25rem 0.75rem; }
  .collection-title { font-size: 1.2rem; }
  .collection-tabs { gap: 0.3rem; }
  .coll-tab { font-size: 0.7rem; padding: 0.35rem 0.65rem; }

  .portfolio-stats { grid-template-columns: repeat(2, 1fr); gap: 0.5rem; }
  .portfolio-stat-card { padding: 0.65rem; }
  .portfolio-stat-label { font-size: 0.6rem; }
  .portfolio-stat-value { font-size: 1rem; }
  .portfolio-actions { gap: 0.35rem; }
  .portfolio-action-btn { font-size: 0.7rem; padding: 0.4rem 0.65rem; }
  .portfolio-card-item { padding: 0.5rem 0.65rem; gap: 0.5rem; }
  .portfolio-card-name { font-size: 0.78rem; }

  .completion-controls { flex-direction: column; gap: 0.5rem; }
  .completion-select { min-width: 0; width: 100%; }

  .seller-form-grid { grid-template-columns: 1fr; }
  .seller-subtabs { flex-wrap: wrap; }
  .seller-listing-card { flex-direction: column; align-items: stretch; }

  .modal-box { padding: 1.25rem; margin: 0.5rem; }
  .modal-box h2 { font-size: 1rem; }
  .modal-box-lg { max-width: 100%; }

  .hotcold-item { padding: 0.5rem 0.65rem; font-size: 0.75rem; gap: 0.5rem; }
}

/* ---- SportsCardsPro Price Guide ---- */
.scp-price-guide { margin-top: 1.5rem; }
.scp-title {
  font-size: 1rem; font-weight: 700; color: var(--text-primary);
  margin: 0 0 0.75rem 0; display: flex; align-items: center; gap: 0.5rem;
}
.scp-source {
  font-size: 0.7rem; font-weight: 500; color: var(--text-muted);
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 4px;
  padding: 0.15rem 0.5rem;
}
.scp-results { display: flex; flex-direction: column; gap: 0.5rem; }
.scp-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 8px;
  padding: 0.85rem 1rem; display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; transition: border-color 0.15s;
}
.scp-card:hover { border-color: var(--accent); }
.scp-card-name {
  font-size: 0.8rem; font-weight: 600; color: var(--text-primary);
  flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.scp-card-set { font-size: 0.7rem; color: var(--text-muted); margin-top: 0.15rem; }
.scp-prices { display: flex; gap: 0.75rem; flex-shrink: 0; }
.scp-price-col { text-align: center; min-width: 60px; }
.scp-price-label { font-size: 0.6rem; text-transform: uppercase; color: var(--text-muted); letter-spacing: 0.04em; }
.scp-price-value { font-size: 0.85rem; font-weight: 700; color: var(--accent); margin-top: 0.1rem; }
.scp-price-value.scp-na { color: var(--text-muted); font-weight: 400; font-size: 0.75rem; }
.scp-loading { text-align: center; color: var(--text-muted); font-size: 0.8rem; padding: 1rem; }
.scp-empty { text-align: center; color: var(--text-muted); font-size: 0.8rem; padding: 1rem; }

@media (max-width: 600px) {
  .scp-card { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
  .scp-prices { width: 100%; justify-content: space-between; }
}

@media (max-width: 400px) {
  .portfolio-stats { grid-template-columns: repeat(2, 1fr); }
  .portfolio-stat-value { font-size: 0.9rem; }
  .seller-form-grid { grid-template-columns: 1fr; }
  .collection-tabs { overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; }
  .collection-tabs::-webkit-scrollbar { display: none; }
  .coll-tab { flex-shrink: 0; font-size: 0.65rem; }
}

/* ---- Footer Feedback Buttons ---- */
.footer-actions { display: flex; gap: 0.75rem; justify-content: center; margin-bottom: 1rem; }
.footer-btn { background: var(--bg-secondary); border: 1px solid var(--border); color: var(--text-secondary); font-size: 0.8rem; font-weight: 600; padding: 0.5rem 1.25rem; border-radius: 8px; cursor: pointer; transition: all 0.15s; }
.footer-btn:hover { background: var(--bg-hover, rgba(255,255,255,0.06)); color: var(--text-primary); border-color: var(--accent, #10b981); }
.bug-btn:hover { border-color: #ef4444; color: #ef4444; }

/* ---- Feedback Modal ---- */
.feedback-modal { position: fixed; inset: 0; z-index: 9999; background: rgba(0,0,0,0.6); display: flex; align-items: center; justify-content: center; padding: 1rem; }
.feedback-modal.hidden { display: none; }
.feedback-modal-box { background: var(--bg-primary); border: 1px solid var(--border); border-radius: 12px; padding: 2rem; max-width: 480px; width: 100%; position: relative; }
.feedback-modal-box h2 { margin: 0 0 1.25rem; font-size: 1.2rem; color: var(--text-primary); }
.feedback-close { position: absolute; top: 0.75rem; right: 0.75rem; background: none; border: none; color: var(--text-muted); font-size: 1.5rem; cursor: pointer; line-height: 1; padding: 0.25rem; }
.feedback-close:hover { color: var(--text-primary); }
.feedback-field { margin-bottom: 1rem; }
.feedback-field label { display: block; font-size: 0.8rem; font-weight: 600; color: var(--text-secondary); margin-bottom: 0.35rem; }
.feedback-field input, .feedback-field textarea { width: 100%; background: var(--bg-secondary); border: 1px solid var(--border); border-radius: 6px; padding: 0.6rem 0.75rem; font-size: 0.85rem; color: var(--text-primary); font-family: inherit; resize: vertical; box-sizing: border-box; }
.feedback-field input:focus, .feedback-field textarea:focus { outline: none; border-color: var(--accent, #10b981); }
.feedback-submit { background: var(--accent, #10b981); color: #fff; border: none; padding: 0.6rem 2rem; border-radius: 8px; font-size: 0.85rem; font-weight: 600; cursor: pointer; transition: opacity 0.15s; }
.feedback-submit:hover { opacity: 0.85; }
.feedback-status { font-size: 0.8rem; margin-top: 0.75rem; }
.feedback-status.success { color: var(--accent, #10b981); }
.feedback-status.error { color: #ef4444; }