/* Coal Creek Guitars Color Scheme
   Primary Background: #1a1a1a (dark charcoal - matches logo)
   Primary Text/Accent: #d4c5a9 (cream/tan)
   Secondary Accent: #c9a227 (gold/amber)
*/

:root {
  --bg-dark: #0d0d0a;
  --bg-dark-alt: #201d16;
  --bg-card: rgba(205, 185, 146, 0.08);
  --text-cream: #e7dcc5;
  --text-light: #f1ead9;
  --text-muted: #a79a83;
  --accent-gold: #9f9172;
  --accent-gold-light: #cdb992;
  --accent-gold-dark: #6a614d;
  --border-subtle: rgba(159, 145, 114, 0.25);
  --border-accent: rgba(159, 145, 114, 0.45);
  --accent-soft: rgba(159, 145, 114, 0.12);
  --accent-softer: rgba(159, 145, 114, 0.08);
  --accent-glow: rgba(159, 145, 114, 0.35);
  --accent-shadow: rgba(159, 145, 114, 0.25);
  --accent-focus: rgba(159, 145, 114, 0.22);
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  background: var(--bg-dark);
  min-height: 100vh;
  color: var(--text-light);
  padding: 20px;
}

/* ============================================
   SITE NAVIGATION
   ============================================ */
.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 600px;
  margin: 0 auto 20px;
  padding: 0 10px;
}

.nav-logo img {
  height: 40px;
  width: auto;
}

.nav-home {
  color: var(--text-cream);
  text-decoration: none;
  font-weight: 500;
  padding: 8px 16px;
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  transition: all 0.2s;
}

.nav-home:hover {
  border-color: var(--border-subtle);
  color: var(--text-light);
  background: var(--accent-softer);
}

/* ============================================
   HOMEPAGE STYLES
   ============================================ */
.home-page {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px 20px;
}

.home-container {
  max-width: 800px;
  width: 100%;
  text-align: center;
}

.home-header {
  margin-bottom: 20px;
}

.home-logo {
  max-width: 100%;
  width: 600px;
  height: auto;
}

.home-section-title {
  color: var(--text-cream);
  font-size: 1.5rem;
  margin-bottom: 24px;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-bottom: 60px;
}

.home-intro {
  text-align: left;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 18px;
  padding: 32px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
}

.home-intro-title {
  color: var(--text-cream);
  font-size: 1.4rem;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.home-intro p {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 16px;
}

.home-intro p:last-child {
  margin-bottom: 0;
}

.home-brand-decoders {
  margin-top: 40px;
}

.home-brand-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.related-brand-decoders {
  text-align: center;
}

.related-brand-decoders .home-brand-grid {
  max-width: 520px;
  margin: 20px auto 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* ============================================
   VALUE GUIDE PAGE
   ============================================ */
.container.value-guide {
  max-width: 1200px;
  width: 100%;
}

.value-hero {
  margin-bottom: 28px;
}

.value-hero h1 {
  color: var(--text-cream);
  font-size: 2.1rem;
  margin-bottom: 8px;
}

.value-hero-link {
  margin-top: 2px;
  line-height: 1.2;
  text-align: center;
  font-size: 0.8rem;
}

.value-hero .subtitle {
  margin-bottom: 2px;
  text-align: center;
  font-size: 0.9rem;
}

.value-section {
  margin-bottom: 32px;
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
}

.value-section h2 {
  color: var(--text-cream);
  font-size: 1.4rem;
  margin-bottom: 12px;
}

.value-section h2 .step-bullet {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 12px;
  border-radius: 999px;
  background: var(--accent-gold);
  box-shadow: 0 0 8px var(--accent-glow);
  transform: translateY(-1px);
}

.value-section h3 {
  color: var(--text-light);
  font-size: 1.1rem;
  margin: 16px 0 8px;
}

.value-section p {
  color: var(--text-muted);
  line-height: 1.7;
}

.value-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 16px 0;
}

.value-card {
  padding: 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
}

.value-card h3 {
  margin-top: 0;
}

.value-card ul,
.value-checklist,
.value-section ul {
  margin: 8px 0 0 18px;
  color: var(--text-muted);
  line-height: 1.6;
}

.value-callout {
  margin-top: 16px;
  padding: 16px;
  border-radius: 12px;
  background: var(--accent-softer);
  border: 1px solid var(--border-subtle);
}

.value-link {
  display: inline-block;
  margin-top: 10px;
  color: var(--accent-gold);
  text-decoration: none;
  font-weight: 600;
}

.value-link:hover {
  color: var(--accent-gold-light);
}

.value-note {
  margin-top: 12px;
  font-style: italic;
}

.value-example {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 20px;
  margin-top: 16px;
}

.value-example-media {
  display: grid;
  gap: 12px;
  max-width: 320px;
}

.value-example img,
.value-ai-grid img {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--border-subtle);
  background: rgba(0, 0, 0, 0.25);
  object-fit: cover;
}

.value-ai-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.value-ai-grid figure {
  margin: 0;
}

.value-ai-grid figcaption {
  margin-top: 8px;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.value-final {
  text-align: center;
}

@media (max-width: 900px) {
  .value-grid,
  .value-example,
  .value-ai-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   LISTING GUIDE PAGE
   ============================================ */
.container.listing-guide {
  max-width: 1200px;
  width: 100%;
}

.listing-hero {
  position: relative;
  margin-bottom: 28px;
  text-align: center;
}

.listing-evaluator .listing-hero {
  text-align: left;
}

.listing-hero .listing-hero-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.listing-results-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.listing-results-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.listing-hero .listing-results-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.listing-hero .listing-results-link {
  margin: 12px 0 16px;
}

.listing-evaluator .listing-results-link {
  margin: 0;
  padding: 8px 14px;
  font-size: 0.85rem;
}

.listing-hero h1 {
  color: var(--text-cream);
  font-size: 2.1rem;
  margin-bottom: 8px;
}

.listing-results-back {
  position: absolute;
  left: 0;
  top: 6px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 1.1rem;
  line-height: 1;
  padding: 6px;
  border-radius: 999px;
  transition: color 0.2s, background-color 0.2s;
}

.listing-results-back:hover {
  color: var(--text-cream);
  background: rgba(255, 255, 255, 0.06);
}

.listing-hero .subtitle {
  margin-bottom: 2px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

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

  .listing-results-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .listing-hero .listing-results-actions {
    justify-content: flex-start;
  }
}

.listing-section {
  margin-bottom: 32px;
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
}

.listing-section h2 {
  color: var(--text-cream);
  font-size: 1.4rem;
  margin-bottom: 12px;
}

.listing-section h2 .step-bullet {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 12px;
  border-radius: 999px;
  background: var(--accent-gold);
  box-shadow: 0 0 8px var(--accent-glow);
  transform: translateY(-1px);
}

.listing-section p {
  color: var(--text-muted);
  line-height: 1.7;
}

.listing-section ul {
  margin: 8px 0 0 18px;
  color: var(--text-muted);
  line-height: 1.6;
}

.listing-callout {
  margin-top: 16px;
  padding: 16px;
  border-radius: 12px;
  background: var(--accent-softer);
  border: 1px solid var(--border-accent);
}

.listing-link {
  display: inline-block;
  margin-top: 10px;
  color: var(--accent-gold);
  text-decoration: none;
  font-weight: 600;
}

.listing-link:hover {
  color: var(--accent-gold-light);
}

.listing-note {
  margin-top: 12px;
  font-style: italic;
}

.listing-photo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.listing-photo-grid figure {
  margin: 0;
}

.listing-photo-grid img {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--border-subtle);
  background: rgba(0, 0, 0, 0.25);
  object-fit: cover;
  aspect-ratio: 4 / 3;
}

.listing-final {
  text-align: center;
}

.practice-resources-guide {
  max-width: 1100px;
}

.practice-section {
  display: grid;
  grid-template-columns: minmax(220px, 320px) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.practice-section-media img {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--border-subtle);
  background: rgba(0, 0, 0, 0.25);
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.practice-section-content .listing-link {
  margin-top: 2px;
}

.practice-app-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 4px 0 10px;
}

.practice-app-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid var(--border-accent);
  border-radius: 999px;
  color: var(--text-light);
  text-decoration: none;
  font-size: 0.9rem;
  background: rgba(255, 255, 255, 0.03);
}

.practice-app-link:hover {
  border-color: var(--accent-gold-light);
  background: var(--accent-softer);
}

.practice-app-icon {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.listings-bottom-link {
  margin: 14px 0 0;
  text-align: center;
  font-size: 0.85rem;
  opacity: 0.8;
}

.listings-bottom-link a {
  color: var(--text-muted);
  text-decoration: none;
  border-bottom: 1px dotted var(--border-accent);
}

.listings-bottom-link a:hover {
  color: var(--text-cream);
  border-bottom-color: var(--accent-gold);
}

@media (max-width: 900px) {
  .practice-section {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

@media (max-width: 900px) {
  .listing-photo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

.home-brand-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 12px 10px;
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.75rem;
  letter-spacing: 0.2px;
  transition: all 0.2s ease;
}

.home-brand-link:hover {
  border-color: var(--border-subtle);
  color: var(--text-light);
  background: var(--accent-softer);
  transform: translateY(-2px);
}

.home-brand-logo {
  width: 64px;
  height: 32px;
  object-fit: contain;
}

@media (max-width: 900px) {
  .home-brand-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .home-brand-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.tool-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 32px 24px;
  background: var(--bg-card);
  border: 2px solid var(--border-subtle);
  border-radius: 16px;
  text-decoration: none;
  transition: all 0.3s;
}

.tool-card:hover {
  border-color: var(--accent-gold);
  background: var(--accent-softer);
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.tool-icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--accent-gold-light) 0%, var(--accent-gold) 100%);
  border-radius: 16px;
  margin-bottom: 20px;
}

.tool-icon svg {
  width: 32px;
  height: 32px;
  color: var(--bg-dark);
}

.tool-image {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

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

.image-invert {
  filter: invert(1);
}

.tool-title {
  color: var(--text-cream);
  font-size: 1.25rem;
  margin-bottom: 12px;
}

.tool-card-link {
  color: inherit;
  text-decoration: none;
}

.tool-card-link:hover {
  color: var(--accent-gold);
}

.tool-card-link-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.tool-inline-link {
  color: var(--accent-gold);
  text-decoration: none;
  font-weight: 600;
}

.tool-inline-link:hover {
  color: var(--accent-gold-light);
}

.tool-description {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 20px;
}

.tool-link {
  color: var(--accent-gold);
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.tool-card:hover .tool-link {
  color: var(--accent-gold-light);
}

.home-footer {
  color: var(--text-muted);
  font-size: 0.85rem;
  padding-top: 40px;
  border-top: 1px solid var(--border-subtle);
}



/* ============================================
   SERIAL DECODER PAGE STYLES
   ============================================ */
.container {
  max-width: 600px;
  margin: 0 auto;
  padding: 40px 30px;
  background: var(--bg-card);
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-subtle);
}

h1 {
  text-align: center;
  color: var(--text-cream);
  margin-bottom: 8px;
  font-size: 2rem;
}

.subtitle {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 30px;
  font-size: 0.95rem;
}

.input-section {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.input-section.is-loading {
  opacity: 0.7;
  pointer-events: none;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

label {
  font-weight: 500;
  color: var(--text-cream);
}

.optional {
  font-weight: 400;
  font-size: 0.85rem;
  color: var(--text-muted);
}

select, input, textarea {
  padding: 12px 16px;
  font-size: 1rem;
  border: 2px solid var(--border-subtle);
  border-radius: 8px;
  background: var(--bg-dark);
  color: var(--text-light);
  transition: border-color 0.2s, box-shadow 0.2s;
}

input::placeholder,
textarea::placeholder {
  color: rgba(185, 171, 144, 0.55);
}

select:focus, input:focus, textarea:focus {
  outline: none;
  border-color: var(--accent-gold);
  box-shadow: 0 0 0 3px var(--accent-focus);
}

select option {
  background: var(--bg-dark);
  color: var(--text-light);
}

button {
  padding: 14px 24px;
  font-size: 1rem;
  font-weight: 600;
  background: linear-gradient(135deg, var(--accent-gold-light) 0%, var(--accent-gold) 100%);
  color: var(--bg-dark);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  margin-top: 10px;
}

button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 18px var(--accent-shadow);
}

.button-loading-spinner {
  width: 0.95rem;
  height: 0.95rem;
  border: 2px solid rgba(33, 24, 6, 0.35);
  border-top-color: var(--bg-dark);
  border-radius: 50%;
  display: inline-block;
  margin-right: 8px;
  vertical-align: text-bottom;
  animation: spin 1s linear infinite;
}

button:active {
  transform: translateY(0);
}

.result-section {
  margin-top: 30px;
  padding: 24px;
  background: var(--bg-card);
  border-radius: 12px;
  border: 1px solid var(--border-subtle);
}

.result-section h2 {
  color: var(--text-cream);
  margin-bottom: 16px;
  font-size: 1.1rem;
}

.result-item {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-subtle);
}

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

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

.result-value {
  color: var(--text-light);
  font-weight: 600;
  text-align: right;
}

.result-item-addtl {
  flex-wrap: wrap;
  align-items: flex-start;
}

.result-item-addtl-content {
  width: 100%;
  margin-top: 8px;
}

.result-item-notes {
  flex-wrap: wrap;
  align-items: flex-start;
}

.result-item-notes-content {
  width: 100%;
  margin-top: 8px;
}

.result-notes-text {
  margin: 0;
  color: var(--text-light);
  font-weight: 600;
  text-align: left;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: var(--notes-max-lines, 4);
  overflow: hidden;
}

.error-section {
  margin-top: 20px;
  padding: 16px 20px;
  background: rgba(255, 82, 82, 0.15);
  border: 1px solid rgba(255, 82, 82, 0.4);
  border-radius: 8px;
  color: #ff6b6b;
}

.hidden {
  display: none !important;
}

.decoder-note {
  margin-top: 40px;
  padding: 16px 20px;
  background: rgba(212, 197, 169, 0.08);
  border: 1px solid var(--border-subtle);
  border-left: 3px solid var(--accent-gold);
  border-radius: 4px;
  font-size: 0.9rem;
  font-style: italic;
  color: var(--text-muted);
  line-height: 1.6;
}

.decoder-note a {
  color: var(--text-cream);
  text-decoration: none;
}

.decoder-note a:hover {
  color: var(--accent-gold);
  text-decoration: underline;
}

.decoder-warning-note {
  margin: 0 auto 24px;
  padding: 14px 16px;
  max-width: 700px;
  background: #fff4cc;
  border: 1px solid #f4d27a;
  border-left: 4px solid #d49b00;
  border-radius: 8px;
  color: #3f3200;
}

.decoder-warning-note p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.5;
}

.decoder-guide-links {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.decoder-guide-links a {
  color: var(--text-cream);
  text-decoration: none;
  font-weight: 600;
}

.decoder-guide-links a:hover {
  color: var(--accent-gold);
}

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

.decoder-guide-links-compact {
  justify-content: center;
  margin-top: 18px;
}

.decoder-faq {
  margin-top: 40px;
  padding: 24px;
  background: rgba(12, 12, 14, 0.6);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
}

.decoder-faq h2 {
  margin: 0 0 16px;
  color: var(--text-cream);
  font-size: 1.15rem;
}

.decoder-faq-item + .decoder-faq-item {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border-subtle);
}

.decoder-faq-item h3 {
  margin: 0 0 8px;
  color: var(--accent-gold);
  font-size: 0.98rem;
}

.decoder-faq-item p {
  margin: 0;
  color: var(--text-light);
  line-height: 1.6;
  font-size: 0.95rem;
}

.ovation-extra-content {
  margin-top: 18px;
  padding: 14px 16px;
  background: rgba(12, 12, 14, 0.45);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
}

.ovation-extra-content h2 {
  margin: 0 0 8px;
  color: var(--text-cream);
  font-size: 1rem;
}

.ovation-extra-intro {
  margin: 0 0 12px;
  color: var(--text-muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

.ovation-model-card + .ovation-model-card {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border-subtle);
}

.ovation-model-card {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.ovation-model-card h3 {
  grid-column: 1;
  margin: 0 0 6px;
  color: var(--accent-gold);
  font-size: 0.9rem;
}

.ovation-model-card p {
  grid-column: 1;
  margin: 0;
  color: var(--text-light);
  font-size: 0.8rem;
  line-height: 1.45;
}

.ovation-model-images {
  grid-column: 2;
  grid-row: 1 / span 2;
  justify-self: end;
  margin-top: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  width: 186px;
}

.ovation-model-images a {
  display: block;
}

.ovation-model-images img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 5px;
  border: 1px solid var(--border-subtle);
  background: rgba(0, 0, 0, 0.25);
}

.ovation-serial-locations {
  margin-top: 12px;
}

.ovation-serial-group + .ovation-serial-group {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--border-subtle);
}

.ovation-serial-group h3 {
  margin: 0 0 6px;
  color: var(--accent-gold);
  font-size: 0.88rem;
}

.ovation-serial-group ul {
  margin: 0;
  padding-left: 18px;
}

.ovation-serial-group li {
  margin-bottom: 4px;
  color: var(--text-light);
  font-size: 0.8rem;
  line-height: 1.45;
}

@media (max-width: 760px) {
  .ovation-model-card {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .ovation-model-card h3,
  .ovation-model-card p,
  .ovation-model-images {
    grid-column: auto;
    grid-row: auto;
  }

  .ovation-model-images {
    justify-self: start;
    width: 186px;
  }
}

.kramer-model-list {
  margin-top: 48px;
  padding: 36px 0 42px;
  background: rgba(255, 255, 255, 0.02);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.kramer-model-intro {
  margin: 10px 0 0;
  color: var(--text-muted);
}

.kramer-model-grid {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px 18px;
}

.kramer-model-grid li {
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(212, 197, 169, 0.08);
  border: 1px solid var(--border-subtle);
  color: var(--text-light);
  font-weight: 600;
  text-align: center;
}

.kramer-model-grid a {
  display: block;
  color: inherit;
  text-decoration: none;
}

.kramer-model-grid a:hover {
  color: var(--accent-gold);
}

.notes {
  margin-top: 16px;
  padding: 12px 16px;
  background: rgba(212, 197, 169, 0.05);
  border-radius: 8px;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.notes strong {
  color: var(--accent-gold);
}

.additional-context {
  margin-top: 16px;
  padding: 14px 16px;
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  background: rgba(12, 12, 14, 0.45);
}

.additional-context-title {
  margin: 0 0 10px;
  color: var(--text-cream);
  font-size: 1rem;
}

.additional-context-section + .additional-context-section {
  margin-top: 10px;
}

.additional-context-section-title {
  color: var(--accent-gold);
  font-size: 0.86rem;
}

.additional-context-summary {
  margin: 4px 0 0;
  color: var(--text-light);
  line-height: 1.5;
  font-size: 0.9rem;
}

.additional-context-richtext .additional-context-summary + .additional-context-summary {
  margin-top: 8px;
}

.additional-context-list {
  margin: 6px 0 0 18px;
  color: var(--text-light);
  line-height: 1.45;
  font-size: 0.86rem;
}

.additional-context-richtext p,
.additional-context-richtext ul,
.additional-context-richtext ol,
.additional-context-richtext blockquote {
  margin: 8px 0;
  color: var(--text-light);
  line-height: 1.6;
  font-size: 0.92rem;
}

.additional-context-richtext h3,
.additional-context-richtext h4 {
  margin: 12px 0 6px;
  color: var(--text-cream);
  line-height: 1.35;
}

.additional-context-richtext ul,
.additional-context-richtext ol {
  padding-left: 20px;
}

.additional-context-richtext li {
  margin: 4px 0;
}

.additional-context-richtext blockquote {
  border-left: 3px solid var(--border-accent);
  padding-left: 12px;
  color: var(--text-muted);
  font-style: italic;
}

.additional-context-richtext a {
  color: var(--accent-gold-light);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.additional-context-richtext a:hover {
  color: var(--text-light);
}

/* Value Button */
.value-button-container {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border-subtle);
}

.value-button {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 24px;
  background: linear-gradient(135deg, #4CAF50 0%, #2E7D32 100%);
  color: white;
  font-size: 1.1rem;
  margin-top: 0;
}

.value-button:hover {
  box-shadow: 0 4px 20px rgba(76, 175, 80, 0.4);
}

.value-button-icon {
  font-size: 1.4rem;
  font-weight: bold;
}

/* Modal Styles */
.valuation-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.valuation-modal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(4px);
}

.valuation-modal-content {
  position: relative;
  background: var(--bg-dark);
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  max-width: 700px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  border: 1px solid var(--border-accent);
}

.valuation-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.8rem;
  cursor: pointer;
  padding: 4px 10px;
  margin: 0;
  line-height: 1;
  transition: color 0.2s;
}

.valuation-modal-close:hover {
  color: var(--text-light);
  transform: none;
  box-shadow: none;
}

.valuation-modal-header {
  padding: 24px 24px 16px;
  border-bottom: 1px solid var(--border-subtle);
}

.valuation-modal-header h2 {
  color: var(--text-cream);
  margin: 0;
  font-size: 1.5rem;
}

.valuation-subtitle {
  color: var(--text-muted);
  margin: 4px 0 0;
  font-size: 0.95rem;
}

.valuation-modal-body {
  padding: 24px;
}

.decoder-howto-link {
  color: var(--text-cream);
  text-decoration: none;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.decoder-howto-link:hover {
  color: var(--accent-gold);
}

.decoder-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.decoder-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(4px);
}

.decoder-modal-content {
  position: relative;
  background: var(--bg-dark);
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  max-width: 860px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  border: 1px solid var(--border-subtle);
}

.decoder-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.8rem;
  cursor: pointer;
  padding: 4px 10px;
  line-height: 1;
  transition: color 0.2s;
}

.decoder-modal-close:hover {
  color: var(--text-light);
}

.decoder-modal-header {
  padding: 24px 24px 16px;
  border-bottom: 1px solid var(--border-subtle);
}

.decoder-modal-header h2 {
  color: var(--text-cream);
  margin: 0 0 6px;
  font-size: 1.5rem;
}

.decoder-modal-subtitle {
  color: var(--text-muted);
  margin: 0;
  font-size: 0.95rem;
}

.decoder-modal-body {
  padding: 24px;
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.6;
}

.decoder-modal-body h3 {
  color: var(--text-cream);
  font-size: 1.05rem;
  margin: 18px 0 8px;
}

.decoder-howto-steps {
  margin: 16px 0 20px;
  padding-left: 20px;
  color: var(--text-muted);
}

.decoder-howto-steps li {
  margin-bottom: 10px;
}

.decoder-modal-note {
  color: var(--text-muted);
  margin-top: 8px;
}

.decoder-modal-link a {
  color: var(--text-cream);
  text-decoration: none;
  font-weight: 600;
}

.decoder-modal-link a:hover {
  color: var(--accent-gold);
}

.decoder-modal-note a,
.decoder-modal-body a {
  color: var(--text-cream);
  text-decoration: none;
  font-weight: 600;
}

.decoder-modal-note a:hover,
.decoder-modal-body a:hover {
  color: var(--accent-gold);
}

.decoder-modal-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.decoder-modal-gallery figure {
  margin: 0;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 12px;
}

.decoder-modal-gallery img {
  width: 100%;
  height: auto;
  max-height: 220px;
  object-fit: contain;
  background: rgba(0, 0, 0, 0.25);
  border-radius: 8px;
}

.decoder-modal-gallery figcaption {
  margin-top: 10px;
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.decoder-modal-gallery a {
  color: var(--accent-gold);
  text-decoration: none;
}

.decoder-modal-gallery a:hover {
  color: var(--accent-gold-light);
}

.modal-open {
  overflow: hidden;
}

/* Wizard Steps */
.wizard-step h3 {
  color: var(--text-light);
  margin-bottom: 8px;
  font-size: 1.2rem;
}

.wizard-hint {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 20px;
}

/* Model Grid */
.model-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}

.model-card {
  background: var(--bg-card);
  border: 2px solid var(--border-subtle);
  border-radius: 12px;
  padding: 12px;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}

.model-card:hover {
  border-color: var(--accent-gold);
  background: var(--accent-soft);
  transform: translateY(-2px);
}

.model-card-image {
  position: relative;
  margin-bottom: 8px;
}

.model-card-image img {
  width: 100%;
  height: 80px;
  object-fit: cover;
  border-radius: 8px;
  background: var(--bg-dark);
}

.model-placeholder {
  width: 100%;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-dark-alt);
  border-radius: 8px;
  border: 1px solid var(--border-subtle);
}

.model-placeholder-icon {
  font-size: 2rem;
}

.model-card-name {
  font-weight: 600;
  color: var(--text-light);
  font-size: 0.9rem;
}

.model-card-hint {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Wizard Footer */
.wizard-footer {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border-subtle);
}

.wizard-btn {
  padding: 10px 20px;
  font-size: 0.95rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  margin: 0;
}

.wizard-btn-primary {
  background: linear-gradient(135deg, var(--accent-gold-light) 0%, var(--accent-gold) 100%);
  color: var(--bg-dark);
  border: none;
}

.wizard-btn-secondary {
  background: transparent;
  color: var(--text-cream);
  border: 1px solid var(--border-subtle);
}

.wizard-btn-secondary:hover {
  background: var(--accent-soft);
  border-color: var(--accent-gold);
  color: var(--accent-gold);
  transform: none;
  box-shadow: none;
}

/* Identify Tips */
.identify-tips {
  list-style: none;
  padding: 0;
  margin: 16px 0;
}

.identify-tips li {
  padding: 8px 0;
  color: var(--text-cream);
  border-bottom: 1px solid var(--border-subtle);
}

.identify-tips li strong {
  color: var(--accent-gold);
}

.identify-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 16px;
}

/* Results Step */
.results-step {
  max-width: 100%;
}

.results-header {
  display: flex;
  gap: 20px;
  margin-bottom: 24px;
  align-items: flex-start;
}

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

.results-image img {
  width: 180px;
  height: 130px;
  object-fit: cover;
  border-radius: 12px;
  background: var(--bg-dark);
}

.results-placeholder {
  width: 180px;
  height: 130px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--bg-dark-alt);
  border-radius: 12px;
  border: 1px solid var(--border-subtle);
}

.results-placeholder-icon {
  font-size: 3rem;
}

.results-placeholder-text {
  font-size: 0.8rem;
  color: var(--accent-gold);
  text-align: center;
  padding: 0 8px;
}

.results-title h3 {
  margin-bottom: 8px;
  font-size: 1.3rem;
}

.results-subtitle {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Search Links Section */
.search-links-section {
  margin-bottom: 24px;
}

.search-links-section h4 {
  color: var(--accent-gold);
  margin-bottom: 12px;
  font-size: 1rem;
}

.search-links {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
}

.search-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  color: var(--text-light);
  text-decoration: none;
  font-size: 0.9rem;
  transition: all 0.2s;
}

.search-link:hover {
  border-color: var(--accent-gold);
  background: var(--accent-soft);
}

.search-icon {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  font-weight: bold;
  font-size: 0.9rem;
}

.search-link.google .search-icon {
  background: #4285F4;
}

.search-link.reverb .search-icon {
  background: #F43B47;
}

.search-link.reverb-guide .search-icon {
  background: #4CAF50;
}

.search-link.ebay .search-icon {
  background: #E53238;
}

/* Factors Section */
.factors-section {
  margin-bottom: 20px;
}

.factors-section h4 {
  color: var(--accent-gold);
  margin-bottom: 8px;
  font-size: 1rem;
}

.factors-intro {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 16px;
}

.factors-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.factor-card {
  background: rgba(212, 197, 169, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 12px 16px;
}

.factor-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.factor-name {
  font-weight: 600;
  color: var(--text-light);
  font-size: 0.95rem;
}

.factor-impact {
  font-size: 0.75rem;
  padding: 3px 8px;
  border-radius: 4px;
  font-weight: 500;
}

.factor-impact-high {
  background: rgba(244, 67, 54, 0.2);
  color: #ef5350;
}

.factor-impact-medium {
  background: rgba(255, 152, 0, 0.2);
  color: #ffb74d;
}

.factor-impact-variable {
  background: rgba(33, 150, 243, 0.2);
  color: #64b5f6;
}

.factor-details {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin: 0;
}

/* ============================================
   RESPONSIVE STYLES
   ============================================ */
@media (max-width: 600px) {
  .home-logo {
    width: 100%;
    max-width: 400px;
  }

  .home-header {
    margin-bottom: 16px;
  }

  .site-nav {
    padding: 0;
  }

  .nav-logo img {
    height: 32px;
  }

  .results-header {
    flex-direction: column;
  }

  .results-image img {
    width: 100%;
    max-width: 200px;
  }

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

  .search-links {
    grid-template-columns: 1fr;
  }

  .wizard-footer {
    flex-direction: column;
  }

  .wizard-btn {
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 480px) {
  body {
    padding: 12px;
  }

  .container {
    padding: 24px 20px;
  }

  h1 {
    font-size: 1.6rem;
  }

  .valuation-modal-content {
    max-height: 95vh;
    border-radius: 12px;
  }

  .valuation-modal {
    padding: 10px;
  }

  .tool-card {
    padding: 24px 16px;
  }
}

/* ============================================
   LISTINGS PAGE STYLES
   ============================================ */
.listings-container {
  max-width: 900px;
}

.listings-container .subtitle {
  color: var(--text-muted);
  margin-top: 8px;
}

.listings-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 30px;
}

.listing-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 2px solid var(--border-subtle);
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  transition: all 0.3s;
}

.listing-card:hover {
  border-color: var(--accent-gold);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.listing-image {
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--bg-dark-alt);
}

.listing-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  transition: transform 0.3s;
}

.listing-card:hover .listing-image img {
  transform: scale(1.05);
}

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

.listing-info {
  padding: 16px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.listing-source {
  display: inline-flex;
  align-self: flex-start;
  margin-bottom: 8px;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.listing-source--reverb {
  background: rgba(32, 84, 185, 0.22);
  border: 1px solid rgba(74, 130, 244, 0.5);
  color: #b8d3ff;
}

.listing-source--facebook {
  background: rgba(24, 119, 242, 0.18);
  border: 1px solid rgba(24, 119, 242, 0.45);
  color: #c8ddff;
}

.listing-title {
  color: var(--text-cream);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.listing-price {
  color: var(--accent-gold);
  font-size: 1.1rem;
  font-weight: 700;
}

.listing-price-group {
  margin-top: auto;
}

.listing-shipping {
  margin-top: 4px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #7ddc88;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

/* Loading state */
.listings-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  color: var(--text-muted);
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--border-subtle);
  border-top-color: var(--accent-gold);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 16px;
}

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

/* Error state */
.listings-error {
  padding: 24px;
  background: rgba(255, 82, 82, 0.15);
  border: 1px solid rgba(255, 82, 82, 0.4);
  border-radius: 8px;
  color: #ff6b6b;
  text-align: center;
  margin-top: 30px;
}

/* Empty state */
.listings-empty {
  padding: 60px 20px;
  text-align: center;
  color: var(--text-muted);
}

/* Responsive listings grid */
@media (max-width: 768px) {
  .listings-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}

@media (max-width: 480px) {
  .listings-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .listings-container {
    padding: 24px 16px;
  }
}

/* ============================================
   VIDEO PAGE STYLES
   ============================================ */
.video-card .video-thumbnail {
  position: relative;
}

.video-card .video-thumbnail img {
  object-fit: cover;
}

.video-play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  background: rgba(0, 0, 0, 0.7);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.9;
  transition: all 0.3s ease;
}

.video-play-icon svg {
  width: 30px;
  height: 30px;
  color: white;
  margin-left: 4px;
}

.video-card:hover .video-play-icon {
  background: var(--accent-gold);
  opacity: 1;
  transform: translate(-50%, -50%) scale(1.1);
}

.video-date {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 8px;
}

.marketplace-manager {
  max-width: 900px;
}

.inventory-manager {
  max-width: 1300px;
}

#marketplace-status {
  margin-top: 14px;
}

#marketplace-rows {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

.marketplace-row {
  padding: 14px;
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.16);
}

.marketplace-row-title {
  color: var(--text-cream);
  font-size: 1rem;
  margin-bottom: 6px;
}

.marketplace-row-meta {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 8px;
}

.marketplace-row-actions {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.marketplace-form-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.inventory-price-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

@media (max-width: 700px) {
  .inventory-price-row {
    grid-template-columns: 1fr;
  }
}

.inventory-image-preview {
  margin-top: 10px;
  width: 96px;
  height: 96px;
  border-radius: 10px;
  border: 1px solid var(--border-subtle);
  object-fit: cover;
  display: block;
}

.inventory-image-gallery {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 10px;
}

.inventory-image-card {
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.2);
  padding: 8px;
  position: relative;
}

.inventory-image-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 8px;
  object-fit: cover;
  display: block;
  cursor: zoom-in;
}

.inventory-image-primary-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(17, 77, 173, 0.9);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.inventory-image-primary-badge svg {
  width: 14px;
  height: 14px;
  fill: #e8f1ff;
}

.inventory-image-remove {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 26px;
  height: 26px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  background: rgba(24, 24, 24, 0.85);
  color: #f0f0f0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  padding: 0;
}

.inventory-image-remove svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.inventory-image-remove:hover:not(:disabled) {
  background: rgba(176, 44, 44, 0.9);
  border-color: rgba(255, 255, 255, 0.45);
}

.inventory-image-remove:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.inventory-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.inventory-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.82);
}

.inventory-lightbox-content {
  position: relative;
  z-index: 1;
  width: min(1200px, 96vw);
  max-height: 92vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.inventory-lightbox-image {
  max-width: 100%;
  max-height: 92vh;
  object-fit: contain;
  border-radius: 10px;
  border: 1px solid var(--border-subtle);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45);
}

.inventory-lightbox-close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(0, 0, 0, 0.66);
  color: #fff;
  font-size: 26px;
  line-height: 1;
  margin: 0;
  padding: 0;
  cursor: pointer;
}

.inventory-lightbox-close:hover {
  background: rgba(0, 0, 0, 0.82);
}

.inventory-bools {
  display: flex;
  gap: 18px;
  align-items: center;
  flex-wrap: wrap;
}

.inventory-bools label {
  color: var(--text-cream);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.admin-hub {
  max-width: 1050px;
}

.admin-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.admin-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 22px;
  text-decoration: none;
  color: var(--text-light);
  display: flex;
  align-items: center;
  gap: 14px;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.admin-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent-gold);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
}

.admin-card-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(212, 197, 169, 0.12);
  color: var(--accent-gold);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.admin-card-icon svg {
  width: 22px;
  height: 22px;
}

.admin-card-title {
  font-size: 1.05rem;
  font-weight: 700;
}

.video-title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.4;
}

.pagination-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-top: 40px;
  padding: 20px 0;
}

.pagination-btn {
  background: var(--bg-card);
  color: var(--text-cream);
  border: 2px solid var(--border-subtle);
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.pagination-btn:hover:not(:disabled) {
  border-color: var(--accent-gold);
  color: var(--accent-gold);
}

.pagination-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.pagination-info {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ============================================
   ABOUT PAGE STYLES
   ============================================ */
.policy-container {
  max-width: 1200px;
}

.about-container {
  max-width: 800px;
}

.about-section {
  margin-bottom: 40px;
}

.about-section h2 {
  color: var(--accent-gold);
  font-size: 1.4rem;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-subtle);
}

.about-section p {
  color: var(--text-cream);
  line-height: 1.8;
  margin-bottom: 16px;
}

.about-section p:last-child {
  margin-bottom: 0;
}

.contact-section {
  background: var(--bg-card);
  padding: 30px;
  border-radius: 12px;
  border: 1px solid var(--border-subtle);
  text-align: center;
}

.contact-section h2 {
  border-bottom: none;
  padding-bottom: 0;
}

.contact-email {
  margin-top: 20px;
}

.contact-email a {
  color: var(--accent-gold);
  font-size: 1.2rem;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.3s;
}

.contact-email a:hover {
  color: var(--text-cream);
}

/* ============================================
   CONTACT PAGE STYLES
   ============================================ */
.contact-container {
  max-width: 900px;
}

.contact-intro {
  color: var(--text-muted);
  font-size: 1.1rem;
  text-align: center;
  margin-bottom: 40px;
  line-height: 1.6;
}

.contact-methods {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.contact-method {
  background: var(--bg-card);
  border: 2px solid var(--border-subtle);
  border-radius: 12px;
  padding: 30px 24px;
  text-align: center;
  transition: all 0.3s ease;
}

.contact-method:hover {
  border-color: var(--accent-gold);
  transform: translateY(-4px);
}

.contact-method.primary {
  border-color: var(--accent-gold);
}

.contact-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 20px;
  background: var(--bg-darker);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-icon svg {
  width: 30px;
  height: 30px;
  color: var(--accent-gold);
}

.contact-method h2 {
  color: var(--text-cream);
  font-size: 1.3rem;
  margin-bottom: 16px;
}

.contact-detail {
  margin-bottom: 12px;
}

.contact-detail a {
  color: var(--accent-gold);
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.3s;
}

.contact-detail a:hover {
  color: var(--text-cream);
}

.contact-note {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.reverb-button img {
  max-width: 180px;
  height: auto;
  transition: opacity 0.3s;
}

.reverb-button img:hover {
  opacity: 0.8;
}

@media (max-width: 768px) {
  .contact-methods {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* ============================================
   SITE-WIDE FOOTER STYLES
   ============================================ */
.site-footer {
  margin-top: 60px;
  padding: 30px 20px;
  border-top: 1px solid var(--border-subtle);
  text-align: center;
}

.footer-content {
  max-width: 800px;
  margin: 0 auto;
}

.footer-contact {
  color: var(--text-muted);
  margin-bottom: 8px;
}

.footer-contact a {
  color: var(--accent-gold);
  text-decoration: none;
  transition: color 0.3s;
}

.footer-contact a:hover {
  color: var(--text-cream);
}

.footer-copyright {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.home-footer .footer-contact {
  margin-bottom: 8px;
}

.home-footer .footer-contact a {
  color: var(--accent-gold);
  text-decoration: none;
  transition: color 0.3s;
}

.home-footer .footer-contact a:hover {
  color: var(--text-cream);
}

/* ============================================
   BRAND HEADER STYLES (for brand-specific decoder pages)
   ============================================ */
.brand-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 24px;
  padding: 16px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
}

.decoder-update-note {
  margin: -6px 0 12px;
}

.decoder-update-note p {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 700;
  color: #facc15;
  line-height: 1.35;
}

.decoder-update-note p + p {
  margin-top: 2px;
}

/* Smaller heading for brand-specific decoder pages */
.container h1 + .brand-header {
  margin-top: -10px;
}

.container h1 + .decoder-update-note + .brand-header {
  margin-top: -10px;
}

.container:has(.brand-header) h1 {
  font-size: 1.6rem;
  margin-bottom: 18px;
}

.container:has(.brand-header) {
  max-width: min(1200px, 75vw);
}

.brand-logo {
  flex-shrink: 0;
  max-width: 100px;
  max-height: 60px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.brand-logo-invert {
  filter: invert(1);
}

.brand-description {
  color: var(--text-muted);
  font-size: 0.8rem;
  line-height: 1.5;
  margin: 0;
}

@media (max-width: 600px) {
  .brand-header {
    flex-direction: column;
    text-align: center;
    gap: 12px;
    padding: 14px 16px;
  }

  .brand-logo {
    max-width: 80px;
  }

  .brand-description {
    font-size: 0.75rem;
  }
}

.back-link {
  margin-top: 24px;
  text-align: center;
}

.back-link a {
  color: var(--text-muted);
  font-size: 0.85rem;
  text-decoration: none;
  transition: color 0.2s;
}

.back-link a:hover {
  color: var(--accent-gold);
}

/* ============================================
   BRAND SELECTION PAGE STYLES
   ============================================ */
.brand-select-container {
  max-width: min(1200px, 75vw);
}

@media (max-width: 900px) {
  .container:has(.brand-header),
  .brand-select-container {
    max-width: 92vw;
  }
}

.brand-select-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 24px;
}

.brand-select-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px 16px 16px;
  background: var(--bg-card);
  border: 2px solid var(--border-subtle);
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.3s;
}

.brand-select-card:hover {
  border-color: var(--accent-gold);
  background: var(--accent-softer);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.brand-select-logo {
  max-width: 100px;
  max-height: 50px;
  width: auto;
  height: auto;
  object-fit: contain;
  margin-bottom: 12px;
}

.brand-select-name {
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 500;
  text-align: center;
}

.brand-select-card:hover .brand-select-name {
  color: var(--accent-gold);
}

@media (max-width: 600px) {
  .brand-select-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .brand-select-card {
    padding: 16px 12px 12px;
  }

  .brand-select-logo {
    max-width: 80px;
    max-height: 40px;
  }

  .brand-select-name {
    font-size: 0.8rem;
  }
}

@media (max-width: 380px) {
  .brand-select-grid {
    grid-template-columns: 1fr;
  }
}

.listing-evaluator {
  max-width: 1400px;
  margin: 40px auto 80px;
  padding: 0 24px;
}

.listing-hero {
  text-align: center;
  margin-bottom: 32px;
}

.listing-form {
  background: var(--bg-card);
  border-radius: 16px;
  padding: 32px;
  border: 1px solid var(--border-subtle);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.listing-radar-settings {
  margin-bottom: 24px;
  padding: 20px 24px;
  border-radius: 12px;
  border: 1px solid var(--border-subtle);
  background: rgba(17, 17, 18, 0.6);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.listing-radar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.listing-radar-header h2 {
  margin: 0;
  font-size: 1.1rem;
}

.listing-radar-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.listing-radar-controls label {
  font-weight: 600;
  color: var(--text-muted);
}

.listing-radar-controls input[type='number'] {
  width: 110px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--border-subtle);
  background: rgba(7, 7, 7, 0.6);
  color: var(--text-light);
}

.listing-radar-status {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.listing-form textarea {
  min-height: 180px;
  resize: vertical;
}

.clipboard-paste-btn {
  margin: 8px 0 10px;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid var(--border-subtle);
  background: rgba(212, 197, 169, 0.08);
  color: var(--text-light);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
}

.clipboard-paste-btn:hover:not(:disabled) {
  background: rgba(212, 197, 169, 0.14);
  border-color: rgba(212, 197, 169, 0.35);
}

.clipboard-paste-btn:disabled {
  cursor: default;
  opacity: 0.75;
}

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

.listing-note {
  margin-top: 30px;
  padding: 16px 20px;
  background: rgba(212, 197, 169, 0.08);
  border: 1px solid var(--border-subtle);
  border-left: 3px solid var(--accent-gold);
  border-radius: 6px;
  color: var(--text-muted);
}

.listing-rejected {
  margin-top: 16px;
  padding: 16px 20px;
  border-radius: 10px;
  background: rgba(255, 193, 7, 0.08);
  border: 1px solid rgba(255, 193, 7, 0.3);
  color: var(--text-light);
}

.listing-rejected h3 {
  margin-bottom: 8px;
  font-size: 1rem;
  color: var(--accent-gold);
}

.listing-rejected ul {
  margin: 0;
  padding-left: 20px;
}

.listing-results,
.listing-item {
  max-width: 1100px;
  margin: 40px auto 80px;
  padding: 0 24px;
}

.listing-item {
  font-size: 0.95rem;
}

.listing-results-card,
.listing-item-card {
  background: var(--bg-card);
  border-radius: 16px;
  padding: 32px;
  border: 1px solid var(--border-subtle);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.listing-results-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 20px;
  font-weight: 600;
  color: var(--text-muted);
}


.listing-results-controls .toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
  color: var(--text-subtle);
}

.listing-results-controls .toggle input {
  width: 18px;
  height: 18px;
}

.listing-results-controls .icon-button {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  box-shadow: none;
  padding: 0;
}

.listing-results-controls .icon-button svg {
  width: 20px;
  height: 20px;
}

.listing-results-controls .icon-button:hover {
  border-color: var(--accent-gold);
  color: var(--accent-gold);
  box-shadow: 0 4px 18px var(--accent-shadow);
}

.listing-results-controls button {
  margin-top: 0;
}

.listing-results-controls button.secondary {
  background: transparent;
  color: var(--text-cream);
  border: 1px solid var(--border-subtle);
  box-shadow: none;
}

.listing-results-controls button.secondary:hover {
  border-color: var(--accent-gold);
  color: var(--accent-gold);
  box-shadow: 0 4px 18px var(--accent-shadow);
}

.listing-results-table {
  overflow-x: auto;
}

.listing-results-table table {
  width: 100%;
  border-collapse: collapse;
  min-width: 680px;
}

.inventory-grid-wrap table {
  min-width: 1220px;
}

.listing-results-table th,
.listing-results-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-subtle);
  text-align: left;
}

.listing-results-table th {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.listing-results-table td a {
  color: var(--accent-gold);
  text-decoration: none;
  font-weight: 600;
}

.listing-results-table td a:hover {
  color: var(--accent-gold-light);
}

.listing-results-table tr.is-queued td {
  color: var(--text-muted);
}

.listing-results-table tr.is-queued .listing-item-link,
.listing-results-table tr.is-queued .listing-item-link--queued {
  color: var(--text-muted) !important;
  font-weight: 600;
  cursor: default;
}

.listing-results-table tr.is-queued a {
  pointer-events: none;
  cursor: default;
}

.listing-results-table tr.is-queued td:last-child {
  opacity: 0.6;
}

.listing-results-table td button {
  margin-right: 8px;
}

.listing-results-table td button:last-child {
  margin-right: 0;
}

.listing-results-table td:last-child {
  white-space: nowrap;
}

.add-to-inventory-link {
  padding: 8px 12px;
  font-size: 0.78rem;
}

.listing-results-table td .icon-button {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  background: transparent;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.listing-results-table td .icon-button:hover {
  color: var(--accent-gold);
  border-color: var(--border-accent);
}

.listing-results-table td .deep-search {
  padding: 6px 10px;
  font-size: 0.7rem;
  border-radius: 8px;
  line-height: 1;
}

.source-badge {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  color: var(--accent-gold);
  font-weight: 700;
  font-size: 0.85rem;
}

.source-icon {
  width: 22px;
  height: 22px;
  display: inline-block;
  object-fit: contain;
}

.empty-section {
  margin: 16px 0;
  color: var(--text-muted);
  text-align: center;
}

.listing-item-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}

.button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  background: linear-gradient(135deg, var(--accent-gold-light) 0%, var(--accent-gold) 100%);
  color: var(--bg-dark);
  transition: transform 0.2s, box-shadow 0.2s;
}

.button-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px var(--accent-glow);
}

.button-link.disabled,
.button-link[aria-disabled='true'] {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
  transform: none;
  box-shadow: none;
}

.button-link.secondary {
  background: transparent;
  color: var(--accent-gold);
  border: 1px solid var(--border-accent);
  box-shadow: none;
}

.button-link.secondary:hover {
  box-shadow: 0 4px 18px var(--accent-shadow);
}

.button-link.danger {
  background: linear-gradient(135deg, #d9534f 0%, #b63d3a 100%);
  color: #fff;
}

.button-link.danger:hover {
  box-shadow: 0 4px 20px rgba(217, 83, 79, 0.4);
}

.button-link.save {
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  color: #fff;
}

.button-link.save:hover {
  box-shadow: 0 4px 20px rgba(59, 130, 246, 0.4);
}

.button-link.success {
  background: linear-gradient(135deg, #22c55e 0%, #15803d 100%);
  color: #fff;
}

.button-link.success:hover {
  box-shadow: 0 4px 20px rgba(34, 197, 94, 0.35);
}

.button-link.icon-only {
  width: 46px;
  height: 46px;
  padding: 0;
  border-radius: 10px;
}

.button-link .icon {
  display: inline-flex;
  width: 18px;
  height: 18px;
  margin-right: 8px;
}

.button-link.icon-only .icon {
  margin-right: 0;
  width: 20px;
  height: 20px;
}

.button-link .icon svg {
  width: 100%;
  height: 100%;
}

.listing-item-meta {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 12px 24px;
  margin-bottom: 28px;
}

.listing-item-media {
  margin-bottom: 20px;
}

.listing-item-thumbnail {
  width: min(360px, 100%);
  max-width: 360px;
  border-radius: 12px;
  border: 1px solid var(--border-subtle);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
  display: block;
}

.listing-item-meta dt {
  font-weight: 600;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.listing-item-meta dd {
  margin: 0;
  color: var(--text-light);
  font-size: 0.95rem;
}

.listing-title-cell {
  display: flex;
  align-items: center;
  gap: 10px;
}

.listing-row-thumb {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid var(--border-subtle);
}

.listing-item-meta .inline-note {
  font-size: 0.75rem;
  font-style: italic;
  color: var(--text-muted);
}

.listing-item-block {
  margin-top: 24px;
}

.listing-item-block h2 {
  margin-bottom: 12px;
  color: var(--accent-gold);
  font-size: 1.1rem;
}

.listing-item-text {
  white-space: pre-wrap;
  background: rgba(12, 12, 14, 0.6);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 18px;
  color: var(--text-light);
  line-height: 1.6;
  font-size: 0.95rem;
}

.listing-item-text h3 {
  margin: 16px 0 8px;
  color: var(--accent-gold);
  font-size: 0.95rem;
}

.listing-item-text .multi-item-title {
  margin: 18px 0 6px;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-light);
}

.listing-item-text hr {
  border: 0;
  border-top: 1px solid var(--border-subtle);
  margin: 18px 0;
}

.listing-item-text p {
  margin: 0 0 10px;
}

.listing-item-text .multi-double-check {
  margin-left: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent-gold);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.listing-item-text .multi-double-check:hover {
  color: #fff2b3;
}

.listing-item-text ul {
  margin: 0 0 12px 18px;
  padding: 0;
}

.listing-item-text li {
  margin-bottom: 6px;
}

.listing-item h1 {
  font-size: 1.6rem;
}

.listing-item .button-link {
  font-size: 0.9rem;
  padding: 10px 18px;
}

@media (max-width: 720px) {
  .listing-evaluator {
    margin: 24px auto 60px;
    padding: 0 16px;
  }

  .listing-form {
    padding: 24px;
  }

  .listing-results,
  .listing-item {
    margin: 24px auto 60px;
    padding: 0 16px;
  }

  .listing-results-card,
  .listing-item-card {
    padding: 24px;
  }

  .listing-item-meta {
    grid-template-columns: 1fr;
  }

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

}

body.auth-locked {
  overflow: hidden;
}

.listing-auth {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(9, 14, 20, 0.78);
  backdrop-filter: blur(4px);
  z-index: 2000;
  padding: 24px;
}

.listing-auth.is-open {
  display: flex;
}

.listing-auth-card {
  width: min(420px, 100%);
  background: #0f172a;
  border-radius: 16px;
  padding: 28px;
  color: #e2e8f0;
  box-shadow: 0 24px 60px rgba(2, 6, 23, 0.55);
  border: 1px solid rgba(148, 163, 184, 0.2);
}

.listing-auth-card h2 {
  margin: 0 0 8px;
  font-size: 1.6rem;
}

.listing-auth-card p {
  margin: 0 0 16px;
  color: rgba(226, 232, 240, 0.82);
}

.listing-auth-card form {
  display: grid;
  gap: 12px;
  margin-bottom: 14px;
}

.listing-auth-card input {
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(15, 23, 42, 0.9);
  padding: 12px 14px;
  color: #e2e8f0;
  font-size: 1rem;
}

.listing-auth-card button[type='submit'] {
  border: none;
  border-radius: 10px;
  background: #f8b54f;
  color: #1f2937;
  font-weight: 700;
  padding: 12px 14px;
  cursor: pointer;
}

.listing-auth-card button[type='submit']:hover {
  filter: brightness(1.05);
}

.listing-auth-error {
  color: #fecaca;
  font-size: 0.95rem;
  margin-bottom: 10px;
}

.inventory-grid-toolbar {
  display: flex;
  align-items: flex-end;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.inventory-title-row {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.inventory-ccg-numbers-btn {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: 1px solid rgba(129, 230, 161, 0.55);
  background: #16a34a;
  color: #ffffff;
  font-weight: 800;
  font-size: 0.95rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 0 0 1px rgba(12, 20, 14, 0.35) inset;
}

.inventory-ccg-numbers-btn:hover {
  background: #15803d;
}

.inventory-ccg-numbers-btn:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.75);
  outline-offset: 2px;
}

.inventory-ccg-modal {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.inventory-ccg-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
}

.inventory-ccg-modal-content {
  position: relative;
  width: min(92vw, 560px);
  max-height: 85vh;
  overflow: auto;
  border-radius: 14px;
  border: 1px solid var(--border-subtle);
  background: linear-gradient(180deg, rgba(28, 24, 18, 0.98), rgba(17, 15, 11, 0.98));
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
  padding: 16px 16px 14px;
}

.inventory-ccg-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.inventory-ccg-modal-header h2 {
  margin: 0;
  color: var(--text-cream);
  font-size: 1.15rem;
}

.inventory-ccg-modal-close {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 1px solid var(--border-subtle);
  background: transparent;
  color: var(--text-muted);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}

.inventory-ccg-modal-close:hover {
  color: var(--text-cream);
  border-color: rgba(255, 255, 255, 0.2);
}

.inventory-ccg-modal-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: var(--text-light);
}

.inventory-ccg-line {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.02);
}

.inventory-ccg-line-label {
  color: var(--text-muted);
}

.inventory-ccg-line-value {
  color: var(--text-cream);
  white-space: nowrap;
}

.inventory-grid-wrap table {
  min-width: 0;
  table-layout: fixed;
}

.inventory-grid-wrap th,
.inventory-grid-wrap td {
  padding: 12px 10px;
}

.inventory-grid-wrap th:nth-child(1),
.inventory-grid-wrap td:nth-child(1) {
  width: 13%;
}

.inventory-grid-wrap th:nth-child(2),
.inventory-grid-wrap td:nth-child(2) {
  width: 9%;
}

.inventory-grid-wrap th:nth-child(4),
.inventory-grid-wrap td:nth-child(4) {
  width: 6%;
}

.inventory-grid-wrap th:nth-child(5),
.inventory-grid-wrap td:nth-child(5) {
  width: 8%;
}

.inventory-grid-wrap th:nth-child(6),
.inventory-grid-wrap td:nth-child(6) {
  width: 10%;
}

.inventory-grid-wrap th:nth-child(7),
.inventory-grid-wrap td:nth-child(7) {
  width: 4%;
}

.inventory-grid-wrap th:nth-child(3),
.inventory-grid-wrap td:nth-child(3) {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.inventory-sort-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: 0;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  cursor: pointer;
  padding: 0;
}

.inventory-sort-btn::after {
  content: '↕';
  font-size: 0.8em;
  color: var(--text-muted);
  opacity: 0.8;
}

.inventory-sort-btn.is-active::after {
  content: '↑';
  color: var(--accent-gold-light);
  opacity: 1;
}

.inventory-sort-btn.is-active.is-desc::after {
  content: '↓';
}

.inventory-sort-btn:hover {
  color: var(--text-cream);
}

.inventory-grid-filter {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 220px;
}

.inventory-grid-filter label {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.inventory-grid-filter select {
  min-height: 44px;
}

.inventory-grid-toolbar .toggle input {
  width: 18px;
  height: 18px;
  padding: 0;
  margin: 0;
}

.inventory-grid-toolbar.is-drilldown .inventory-grid-filter,
.inventory-grid-toolbar.is-drilldown .toggle {
  opacity: 0.45;
}

.inventory-qty-link {
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--accent-gold);
  border-radius: 8px;
  padding: 4px 10px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
}

.inventory-qty-link:hover {
  border-color: var(--accent-gold);
  color: var(--accent-gold-light);
}

.inventory-qty-inline {
  margin-left: 0.35rem;
  padding: 1px 6px;
  border-radius: 999px;
  vertical-align: middle;
  font-size: 0.72rem;
  opacity: 0.9;
}

.inventory-delete-btn {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 1px solid var(--border-subtle);
  background: transparent;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
}

.inventory-delete-btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.inventory-delete-btn:hover {
  color: #f08a82;
  border-color: rgba(240, 138, 130, 0.45);
}

.inventory-delete-btn:disabled {
  opacity: 0.5;
  cursor: wait;
}

.listing-results-table td.inventory-cell-sm {
  font-size: 0.88rem;
}

.listing-results-table td.inventory-cell-sm a {
  font-size: 0.88rem;
}

.inventory-sold-price {
  font-weight: 700;
}

.inventory-sold-price--profit {
  color: #9be58f;
}

.inventory-sold-price--loss {
  color: #f08a82;
}

.inventory-grid-pager {
  margin-top: 16px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.inventory-grid-pager #inventory-page-label {
  color: var(--text-muted);
  font-size: 0.85rem;
  min-width: 96px;
  text-align: center;
}

.inventory-grid-pager .button-link.secondary {
  min-width: 96px;
  padding: 8px 14px;
  font-size: 0.8rem;
}

.inventory-grid-pager .button-link.secondary:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}

.listing-map-card {
  display: grid;
  gap: 14px;
}

.listing-map-topbar {
  display: flex;
  gap: 10px;
  align-items: flex-end;
  flex-wrap: wrap;
}

.listing-map-key-group {
  display: grid;
  gap: 6px;
  min-width: 320px;
}

.listing-map-key-group span {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.listing-map-key-group input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  background: rgba(6, 8, 12, 0.55);
  color: var(--text-cream);
}

.listing-map-legend {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.legend-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  color: #0b0d12;
}

.legend-pill--green {
  background: #22c55e;
}

.legend-pill--blue {
  background: #3b82f6;
  color: #f7fbff;
}

.listing-map-canvas {
  width: 100%;
  min-height: 560px;
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  overflow: hidden;
  background: rgba(13, 17, 23, 0.65);
}

.listing-map-info {
  min-width: 220px;
  line-height: 1.35;
}

.listing-map-info h3 {
  margin: 0 0 8px;
  font-size: 1rem;
}

.listing-map-info p {
  margin: 0 0 6px;
}

@media (max-width: 760px) {
  .listing-map-key-group {
    min-width: 100%;
  }

  .listing-map-canvas {
    min-height: 420px;
  }

  .inventory-grid-toolbar {
    align-items: stretch;
  }

  .inventory-grid-pager {
    justify-content: flex-start;
  }

  .inventory-ccg-line {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
}

.inventory-qty-wrap {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.inventory-qty-label {
  color: var(--text-muted);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.inventory-qty-btn {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 1px solid var(--border-subtle);
  background: transparent;
  color: var(--text-light);
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
}

.inventory-qty-btn:hover {
  border-color: var(--accent-gold);
  color: var(--accent-gold);
}

#inventory-qty {
  width: 68px;
  text-align: center;
  min-height: 34px;
  padding: 6px 10px;
}
