/* The Stereo Store — Brand Stylesheet */
/* Dark car-audio aesthetic: near-black backgrounds, red accent, high contrast */

:root {
  --red:          #e03020;
  --red-dark:     #c52820;
  --red-glow:     rgba(224, 48, 32, 0.18);
  --bg-primary:   #090909;
  --bg-surface:   #111111;
  --bg-card:      #181818;
  --bg-card-hover:#1e1e1e;
  --border:       #252525;
  --border-lg:    #2e2e2e;
  --text:         #f0f0f0;
  --text-muted:   #9a9a9a;
  --text-faint:   #555;
  --yellow:       #f59e0b;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg-primary);
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  margin: 0;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ── Typography ───────────────────────────────────────────── */
.section-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 800;
  color: var(--text);
  line-height: 1.15;
  margin: 0 0 1rem;
}

.section-body {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 52ch;
}

/* ── Container ────────────────────────────────────────────── */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ── Header / Nav ─────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(9, 9, 9, 0.96);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.25rem;
  max-width: 1100px;
  margin: 0 auto;
  gap: 1rem;
}

.nav-logo img {
  height: 44px;
  width: auto;
  display: block;
}

.nav-logo-text {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.02em;
}
.nav-logo-text span { color: var(--red); }

.nav-links {
  display: none;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0.25rem;
}

@media (min-width: 768px) {
  .nav-links { display: flex; align-items: center; }
}

.nav-links a {
  display: block;
  padding: 0.4rem 0.75rem;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 6px;
  transition: color 0.15s, background 0.15s;
}
.nav-links a:hover, .nav-links a.active {
  color: var(--text);
  background: var(--bg-card);
}

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

.btn-nav-call {
  display: none;
  align-items: center;
  gap: 0.4rem;
  background: var(--red);
  color: #fff;
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.45rem 0.9rem;
  border-radius: 7px;
  transition: background 0.15s;
  white-space: nowrap;
}
.btn-nav-call:hover { background: var(--red-dark); }

@media (min-width: 480px) {
  .btn-nav-call { display: flex; }
}

/* Hamburger */
.nav-hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
@media (min-width: 768px) { .nav-hamburger { display: none; } }

.nav-hamburger span {
  display: block;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}

.mobile-menu {
  display: none;
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
}
.mobile-menu.open { display: block; }

.mobile-menu ul {
  list-style: none;
  margin: 0;
  padding: 0.75rem 1.25rem 1rem;
}
.mobile-menu li a {
  display: block;
  padding: 0.65rem 0;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  border-bottom: 1px solid var(--border);
  transition: color 0.15s;
}
.mobile-menu li:last-child a { border-bottom: none; }
.mobile-menu li a:hover { color: var(--text); }
.mobile-menu .mobile-cta {
  padding: 1rem 1.25rem;
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  font-weight: 700;
  text-decoration: none;
  border: none;
  cursor: pointer;
  border-radius: 8px;
  transition: background 0.15s, border-color 0.15s, color 0.15s, transform 0.1s;
  font-size: 0.95rem;
  line-height: 1;
}
.btn:active { transform: scale(0.98); }

.btn-primary {
  background: var(--red);
  color: #fff;
  padding: 0.75rem 1.5rem;
}
.btn-primary:hover { background: var(--red-dark); }

.btn-primary-lg {
  background: var(--red);
  color: #fff;
  padding: 0.9rem 2rem;
  font-size: 1.05rem;
  border-radius: 10px;
}
.btn-primary-lg:hover { background: var(--red-dark); }

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border-lg);
  padding: 0.75rem 1.5rem;
}
.btn-outline:hover {
  background: var(--bg-card);
  border-color: #444;
}

.btn-outline-lg {
  background: transparent;
  color: var(--text);
  border: 1.5px solid rgba(255,255,255,0.3);
  padding: 0.85rem 1.75rem;
  font-size: 1rem;
  border-radius: 10px;
}
.btn-outline-lg:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.5);
}

.btn-ghost {
  background: transparent;
  color: var(--red);
  padding: 0.5rem 0;
  font-size: 0.875rem;
  border-radius: 0;
}
.btn-ghost:hover { color: #ff6655; }
.btn-ghost svg { transition: transform 0.15s; }
.btn-ghost:hover svg { transform: translateX(3px); }

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.825rem;
  border-radius: 7px;
}

/* ── Hero ─────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background-color: #0a0a0a;
}

/* Hero background — replace url() with a verified car-audio hero photo.
   To add one: set background-image to the gradient PLUS url('assets/hero.jpg')
   and drop a real install/storefront photo in assets/hero.jpg. */
.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    #0a0a0a 0%,
    #1a0a08 35%,
    #1c0c08 65%,
    #0a0a0a 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 5rem 1.25rem 4rem;
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--red-glow);
  border: 1px solid rgba(224,48,32,0.35);
  color: #f87171;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.35rem 0.75rem;
  border-radius: 100px;
  margin-bottom: 1.5rem;
}

.hero-title {
  font-size: clamp(2.2rem, 6vw, 4.2rem);
  font-weight: 900;
  color: #ffffff;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 0 0 1.25rem;
}
.hero-title .accent { color: var(--red); }

.hero-sub {
  color: rgba(240,240,240,0.75);
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  max-width: 48ch;
  margin: 0 0 2.25rem;
  line-height: 1.65;
}

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

/* ── Trust Bar ────────────────────────────────────────────── */
.trust-bar {
  background: var(--red);
  padding: 0.9rem 1.25rem;
}

.trust-items {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem 2.5rem;
  max-width: 1100px;
  margin: 0 auto;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #fff;
  font-size: 0.825rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.trust-item .t-num {
  font-size: 1.1rem;
  font-weight: 900;
}

/* ── Section Wrapper ──────────────────────────────────────── */
.section {
  padding: 5rem 1.25rem;
}
.section-sm { padding: 3.5rem 1.25rem; }

/* ── Service Cards ────────────────────────────────────────── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
  margin-top: 3rem;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.75rem;
  transition: border-color 0.2s, background 0.2s;
  text-decoration: none;
  display: block;
}
.service-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--red);
}

.service-icon {
  width: 44px;
  height: 44px;
  background: var(--red-glow);
  border: 1px solid rgba(224,48,32,0.3);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.1rem;
  color: var(--red);
}

.service-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 0.5rem;
}

.service-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin: 0 0 1.1rem;
  line-height: 1.6;
}

/* ── Promo Banner (dynamic) ───────────────────────────────── */
.promo-section {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 2.5rem 1.25rem;
}

.promo-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.promo-badge {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--yellow);
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.25);
  padding: 0.25rem 0.6rem;
  border-radius: 100px;
  margin-bottom: 0.4rem;
  display: inline-block;
}

#promo-text {
  font-size: clamp(1.1rem, 2.5vw, 1.45rem);
  font-weight: 700;
  color: var(--text);
  margin: 0;
}

/* ── Brands Grid ──────────────────────────────────────────── */
.brands-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2.5rem;
}

.brand-chip {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  transition: border-color 0.15s, color 0.15s;
}
.brand-chip:hover {
  border-color: var(--border-lg);
  color: var(--text);
}

/* ── Gallery Grid ─────────────────────────────────────────── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin-top: 2.5rem;
}

@media (min-width: 640px) {
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 900px) {
  .gallery-grid { grid-template-columns: repeat(4, 1fr); }
}

.gallery-item {
  aspect-ratio: 4/3;
  border-radius: 10px;
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border);
  position: relative;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
  display: block;
}
.gallery-item:hover img { transform: scale(1.04); }

.gallery-item .gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.8));
  color: #fff;
  font-size: 0.75rem;
  padding: 1.25rem 0.75rem 0.6rem;
  transform: translateY(100%);
  transition: transform 0.2s;
}
.gallery-item:hover .gallery-caption { transform: translateY(0); }

/* placeholder when image fails */
.gallery-item .img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: var(--text-faint);
  font-size: 0.75rem;
}

/* ── Locations ────────────────────────────────────────────── */
.locations-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-top: 3rem;
}

@media (min-width: 700px) {
  .locations-grid { grid-template-columns: 1fr 1fr; }
}

.location-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
}

.location-card.primary {
  border-color: var(--red);
  box-shadow: 0 0 0 1px rgba(224,48,32,0.1), 0 4px 32px var(--red-glow);
}

.location-label {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 0.35rem;
}

.location-name {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text);
  margin: 0 0 1.25rem;
}

.location-detail {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin-bottom: 0.85rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}
.location-detail svg {
  width: 16px;
  height: 16px;
  color: var(--red);
  flex-shrink: 0;
  margin-top: 2px;
}

.location-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

/* ── Hours table ──────────────────────────────────────────── */
.hours-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
  margin-top: 0.5rem;
}
.hours-table tr { border-bottom: 1px solid var(--border); }
.hours-table tr:last-child { border-bottom: none; }
.hours-table td { padding: 0.45rem 0; }
.hours-table td:first-child { color: var(--text-muted); width: 40%; }
.hours-table td:last-child { color: var(--text); font-weight: 500; }

/* ── Quote CTA ────────────────────────────────────────────── */
.quote-cta {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 3.5rem 2.5rem;
  text-align: center;
  max-width: 680px;
  margin: 0 auto;
}

/* ── Quote Form ───────────────────────────────────────────── */
.form-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  background: var(--bg-surface);
  border: 1px solid var(--border-lg);
  color: var(--text);
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-size: 0.95rem;
  font-family: inherit;
  transition: border-color 0.15s;
  -webkit-appearance: none;
  appearance: none;
}
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 2px var(--red-glow);
}

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

.form-select option {
  background: var(--bg-card);
}

/* ── Footer ───────────────────────────────────────────────── */
.site-footer {
  background: #050505;
  border-top: 1px solid var(--border);
  padding: 4rem 1.25rem 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  max-width: 1100px;
  margin: 0 auto 3rem;
}

@media (min-width: 640px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin: 0.75rem 0 1.25rem;
  max-width: 30ch;
  line-height: 1.65;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.15s;
}
.footer-social a:hover { color: var(--text); }

.footer-col h4 {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin: 0 0 1rem;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.footer-col ul a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.15s;
}
.footer-col ul a:hover { color: var(--text); }

.footer-col address {
  font-style: normal;
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.7;
}
.footer-col address strong {
  display: block;
  color: var(--text);
  font-size: 0.875rem;
  margin-bottom: 0.25rem;
}

.footer-bottom {
  max-width: 1100px;
  margin: 0 auto;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
}
.footer-bottom p {
  color: var(--text-faint);
  font-size: 0.8rem;
  margin: 0;
}

/* ── Owner Portal ─────────────────────────────────────────── */
.owner-login {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.25rem;
  background: var(--bg-primary);
}

.login-card {
  width: 100%;
  max-width: 400px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 2.5rem;
}

.login-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 2rem;
}

.login-card h1 {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text);
  margin: 0 0 0.35rem;
}
.login-card .login-sub {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin: 0 0 2rem;
}

.form-error {
  background: rgba(224,48,32,0.1);
  border: 1px solid rgba(224,48,32,0.3);
  color: #ff7b7b;
  border-radius: 8px;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  margin-bottom: 1.25rem;
  display: none;
}
.form-error.show { display: block; }

.form-success {
  background: rgba(34,197,94,0.1);
  border: 1px solid rgba(34,197,94,0.3);
  color: #86efac;
  border-radius: 8px;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  margin-bottom: 1.25rem;
  display: none;
}
.form-success.show { display: block; }

/* Owner dashboard */
.owner-app { min-height: 100vh; background: var(--bg-primary); display: none; }
.owner-app.visible { display: block; }

.owner-header {
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border);
  padding: 0.9rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  position: sticky;
  top: 0;
  z-index: 50;
}

.owner-header-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.owner-biz-name {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text);
}

.owner-badge {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--red-glow);
  color: var(--red);
  border: 1px solid rgba(224,48,32,0.25);
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
}

.owner-main {
  max-width: 960px;
  margin: 0 auto;
  padding: 2rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.owner-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
}

.owner-card-header {
  padding: 1.1rem 1.5rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.owner-card-title {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.owner-card-body { padding: 1.5rem; }

.published-indicator {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.published-indicator .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}
.published-indicator.live { color: #86efac; }
.published-indicator.live .dot { background: #22c55e; }
.published-indicator.draft { color: var(--text-faint); }
.published-indicator.draft .dot { background: var(--text-faint); }

.promo-preview-box {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1rem 1.25rem;
  margin-bottom: 1.25rem;
}
.promo-preview-box .preview-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 0.4rem;
}
.promo-preview-box p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Audit log table */
.audit-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
}
.audit-table th {
  text-align: left;
  padding: 0.6rem 0.75rem;
  color: var(--text-faint);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.68rem;
  border-bottom: 1px solid var(--border);
}
.audit-table td {
  padding: 0.75rem;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}
.audit-table tr:last-child td { border-bottom: none; }
.audit-table .action-badge {
  display: inline-block;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.2rem 0.5rem;
  border-radius: 5px;
}

/* Gallery manager */
.gallery-manager-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 0.75rem;
  margin-top: 1rem;
}
.gallery-thumb {
  aspect-ratio: 1;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border);
  position: relative;
  background: var(--bg-surface);
}
.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.gallery-thumb .thumb-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s;
}
.gallery-thumb:hover .thumb-overlay { opacity: 1; }

.upload-zone {
  border: 2px dashed var(--border-lg);
  border-radius: 12px;
  padding: 2.5rem 1.5rem;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.upload-zone:hover, .upload-zone.dragover {
  border-color: var(--red);
  background: var(--red-glow);
}
.upload-zone svg { color: var(--text-faint); margin-bottom: 0.5rem; }
.upload-zone p { color: var(--text-muted); font-size: 0.875rem; margin: 0; }
.upload-zone p strong { color: var(--text); }
.upload-zone input[type="file"] { display: none; }

/* Spinner */
.spinner {
  width: 20px;
  height: 20px;
  border: 2px solid var(--border-lg);
  border-top-color: var(--red);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Loading skeleton */
.skeleton {
  background: linear-gradient(90deg, var(--bg-card) 25%, var(--bg-card-hover) 50%, var(--bg-card) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
  border-radius: 6px;
}
@keyframes shimmer { to { background-position: -200% 0; } }

/* Utility */
.divider { border: none; border-top: 1px solid var(--border); margin: 1.5rem 0; }
.text-red { color: var(--red); }
.text-muted { color: var(--text-muted); }
.mt-auto { margin-top: auto; }
.hidden { display: none !important; }

/* Page headers */
.page-hero {
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border);
  padding: 3.5rem 1.25rem 3rem;
}
.page-hero .container { max-width: 1100px; margin: 0 auto; }
