:root {
  --bg-main: #110e0c;
  --bg-elevated: #1a1512;
  --bg-card: #221c18;
  --bg-glass: rgba(26, 21, 18, 0.88);
  --border-subtle: rgba(212, 163, 89, 0.18);
  --border-strong: rgba(212, 163, 89, 0.42);
  --text-primary: #f5efe6;
  --text-secondary: #c5b8a5;
  --text-muted: #8c7e6d;
  --accent-brass: #d4a359;
  --accent-brass-light: #ecc37e;
  --accent-terracotta: #c86950;
  --accent-ruby: #e03e3e;
  --accent-emerald: #4ca977;
  --shadow-lg: 0 18px 42px rgba(0, 0, 0, 0.55);
  --radius-md: 14px;
  --radius-lg: 20px;
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

body.theme-parchment {
  --bg-main: #f7f5ec;
  --bg-elevated: #eeece0;
  --bg-card: #ffffff;
  --bg-glass: rgba(247, 245, 236, 0.92);
  --border-subtle: rgba(140, 105, 65, 0.2);
  --border-strong: rgba(200, 105, 80, 0.5);
  --text-primary: #231c16;
  --text-secondary: #57493d;
  --text-muted: #857464;
  --accent-brass: #9e6b24;
  --accent-brass-light: #b87f31;
  --accent-terracotta: #c86950;
  --shadow-lg: 0 14px 34px rgba(55, 40, 25, 0.12);
}

body.theme-darkroom {
  --bg-main: #090101;
  --bg-elevated: #140303;
  --bg-card: #1d0505;
  --bg-glass: rgba(20, 3, 3, 0.92);
  --border-subtle: rgba(255, 45, 45, 0.25);
  --border-strong: rgba(255, 60, 60, 0.6);
  --text-primary: #ffcccc;
  --text-secondary: #e07b7b;
  --text-muted: #994444;
  --accent-brass: #ff3b3b;
  --accent-brass-light: #ff6b6b;
  --accent-terracotta: #e62e2e;
  --shadow-lg: 0 18px 45px rgba(255, 20, 20, 0.18);
}

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

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-main);
  color: var(--text-primary);
  font-family: var(--font-sans);
  line-height: 1.6;
  min-height: 100vh;
  padding-bottom: 84px;
  transition: background-color 0.35s ease, color 0.35s ease;
  overflow-x: hidden;
}

/* Darkroom ambient red glow overlay */
body.theme-darkroom::before {
  content: '';
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(255, 20, 20, 0.14), transparent 70%);
  pointer-events: none;
  z-index: 999;
}

/* Top Header */
.app-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
}

.header-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.brand-identity {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-primary);
  cursor: pointer;
  flex-shrink: 0;
}

.brand-logo-wrap {
  width: 46px;
  height: 46px;
  min-width: 46px;
  max-width: 46px;
  flex-shrink: 0;
  border-radius: 10px;
  background: #ffffff;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--border-strong);
  box-shadow: 0 4px 12px rgba(0,0,0,0.35);
}

.brand-logo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.brand-titles .eyebrow {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-brass);
  display: block;
  line-height: 1.2;
}

.brand-titles h1 {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0;
  line-height: 1.15;
}

.brand-curator-sub {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.8rem;
  color: var(--accent-brass-light);
  display: block;
  margin-top: 1px;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

/* Desktop Navigation Tabs */
.desktop-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  background: var(--bg-elevated);
  padding: 4px;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  flex-shrink: 1;
}

.nav-tab {
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: 0.81rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.22s ease;
  white-space: nowrap;
}

.nav-tab:hover {
  color: var(--text-primary);
  background: rgba(212, 163, 89, 0.08);
}

.nav-tab.active {
  background: linear-gradient(135deg, var(--accent-terracotta), var(--accent-brass));
  color: #fff;
  box-shadow: 0 4px 14px rgba(200, 105, 80, 0.35);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.action-pill {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.action-pill:hover {
  border-color: var(--accent-brass);
  transform: translateY(-1px);
}

.action-pill.darkroom-active {
  background: rgba(224, 62, 62, 0.22);
  border-color: #ff3b3b;
  color: #ff8080;
  box-shadow: 0 0 14px rgba(255, 45, 45, 0.35);
}

.passport-counter {
  background: var(--accent-brass);
  color: #110e0c;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
}

@media (max-width: 1440px) {
  .action-pill:not(.primary-guide-btn):not(.lang-toggle-btn) span {
    display: none;
  }
}

/* Main Container */
.main-container {
  max-width: 1360px;
  margin: 0 auto;
  padding: 24px 20px;
}

.tab-section {
  display: none;
  animation: fadeIn 0.3s ease;
}

.tab-section.active {
  display: block;
}

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

/* Hero Banner */
.hero-banner {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-strong);
  background: linear-gradient(125deg, rgba(17, 14, 12, 0.92) 0%, rgba(26, 21, 18, 0.78) 55%, rgba(17, 14, 12, 0.9) 100%),
              url('https://www.kameramuzesi.com/upload/images/slider/turkiyenin-ilk-kamera-muzesi.jpg') center/cover no-repeat;
  padding: 40px 36px;
  margin-bottom: 28px;
  box-shadow: var(--shadow-lg);
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  gap: 28px;
  align-items: center;
}

body.theme-parchment .hero-banner {
  color: #f5efe6;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(200, 105, 80, 0.24);
  border: 1px solid rgba(212, 163, 89, 0.5);
  color: #f3d299;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 5px 13px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.hero-content h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 3vw, 2.55rem);
  line-height: 1.18;
  margin-bottom: 12px;
  color: #fff;
}

.hero-content p {
  color: #ded4c6;
  font-size: 0.98rem;
  max-width: 660px;
  margin-bottom: 22px;
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-terracotta), var(--accent-brass));
  color: #fff;
  border: none;
  padding: 11px 20px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 8px 20px rgba(200, 105, 80, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(200, 105, 80, 0.5);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 11px 18px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  backdrop-filter: blur(8px);
  transition: all 0.2s ease;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: var(--accent-brass-light);
}

.hero-stats-card {
  background: rgba(17, 14, 12, 0.78);
  border: 1px solid rgba(212, 163, 89, 0.35);
  border-radius: 16px;
  padding: 20px;
  backdrop-filter: blur(12px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.stat-box {
  padding: 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.stat-box .num {
  font-family: var(--font-serif);
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--accent-brass-light);
  display: block;
}

.stat-box .lbl {
  font-size: 0.75rem;
  color: #c5b8a5;
}

/* Interactive Decade Timeline Bar */
.timeline-bar {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin-bottom: 20px;
}

.timeline-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  flex-wrap: wrap;
  gap: 8px;
}

.timeline-header h3 {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--accent-brass-light);
}

.decade-track {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.decade-btn {
  flex: 1;
  min-width: 82px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  padding: 9px 10px;
  border-radius: 10px;
  cursor: pointer;
  text-align: center;
  transition: all 0.2s ease;
}

.decade-btn .yr {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.85rem;
  display: block;
  color: var(--text-primary);
}

.decade-btn .era {
  font-size: 0.68rem;
  color: var(--text-muted);
}

.decade-btn:hover,
.decade-btn.active {
  border-color: var(--accent-brass);
  background: linear-gradient(180deg, rgba(212, 163, 89, 0.18), rgba(200, 105, 80, 0.12));
  transform: translateY(-2px);
}

.decade-btn.active .yr {
  color: var(--accent-brass-light);
}

/* Filter Controls */
.filters-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.category-pills {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  flex: 1;
}

.cat-pill {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: all 0.2s ease;
}

.cat-pill .cnt {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  opacity: 0.75;
  background: rgba(255,255,255,0.08);
  padding: 1px 6px;
  border-radius: 999px;
}

.cat-pill.active,
.cat-pill:hover {
  background: var(--accent-terracotta);
  color: #fff;
  border-color: var(--accent-terracotta);
}

.search-and-country {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.input-control, .select-control {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  padding: 9px 14px;
  border-radius: 10px;
  font-family: var(--font-sans);
  font-size: 0.86rem;
  outline: none;
}

.input-control:focus, .select-control:focus {
  border-color: var(--accent-brass);
}

/* Camera Grid */
.camera-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.camera-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  position: relative;
}

.camera-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-lg);
}

.card-top-badges {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 2;
  pointer-events: none;
}

.year-badge {
  background: rgba(17, 14, 12, 0.86);
  border: 1px solid var(--accent-brass);
  color: var(--accent-brass-light);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
}

.qr-badge {
  background: rgba(200, 105, 80, 0.9);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 9px;
  border-radius: 8px;
}

.card-img-stage {
  height: 220px;
  background: radial-gradient(circle at center, rgba(247, 244, 235, 0.96) 0%, rgba(228, 222, 206, 0.92) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px;
  cursor: pointer;
  position: relative;
}

body.theme-darkroom .card-img-stage {
  background: radial-gradient(circle at center, #380909 0%, #1a0303 100%);
}

body.theme-darkroom .card-img-stage img {
  filter: sepia(1) hue-rotate(-50deg) saturate(3) contrast(1.2);
}

.card-img-stage img {
  max-width: 100%;
  max-height: 180px;
  object-fit: contain;
  transition: transform 0.3s ease;
  filter: drop-shadow(0 10px 16px rgba(0, 0, 0, 0.28));
}

.camera-card:hover .card-img-stage img {
  transform: scale(1.06);
}

.card-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-meta-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--accent-brass);
  font-family: var(--font-mono);
  margin-bottom: 6px;
}

.card-title {
  font-family: var(--font-serif);
  font-size: 1.16rem;
  margin-bottom: 4px;
  cursor: pointer;
}

.card-subtitle {
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.specs-mini-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  background: var(--bg-elevated);
  padding: 10px 12px;
  border-radius: 10px;
  margin-bottom: 14px;
  font-size: 0.76rem;
}

.spec-cell span {
  display: block;
  color: var(--text-muted);
  font-size: 0.68rem;
}

.spec-cell strong {
  color: var(--text-primary);
  font-weight: 600;
}

.card-actions {
  margin-top: auto;
  display: flex;
  gap: 8px;
}

.btn-card {
  flex: 1;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  padding: 8px 10px;
  border-radius: 9px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.btn-card:hover {
  border-color: var(--accent-brass);
  background: rgba(212, 163, 89, 0.14);
}

.btn-card.primary {
  background: rgba(200, 105, 80, 0.18);
  border-color: rgba(200, 105, 80, 0.45);
  color: var(--accent-brass-light);
}

.btn-card.stamped {
  background: rgba(76, 169, 119, 0.2);
  border-color: var(--accent-emerald);
  color: #7be3a8;
}

/* Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(8, 6, 5, 0.82);
  backdrop-filter: blur(8px);
  z-index: 300;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-backdrop.open {
  display: flex;
}

.modal-dialog {
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  max-width: 960px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  position: relative;
}

.modal-close {
  position: sticky;
  top: 16px;
  float: right;
  margin: 16px 16px 0 0;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: var(--bg-elevated);
  color: var(--text-primary);
  cursor: pointer;
  font-size: 1rem;
  z-index: 10;
}

.modal-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 28px;
  padding: 28px;
}

.modal-img-box {
  background: radial-gradient(circle at center, #f7f4eb 0%, #dfd8c8 100%);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 300px;
}

.modal-img-box img {
  max-width: 100%;
  max-height: 260px;
  object-fit: contain;
  filter: drop-shadow(0 14px 22px rgba(0,0,0,0.3));
}

.audio-guide-box {
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  padding: 16px;
  margin: 16px 0;
}

/* QR & Audio Tour Section */
.qr-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.panel-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.panel-card h3 {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.qr-vitrine-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.vitrine-qr-btn {
  background: var(--bg-elevated);
  border: 1px dashed var(--border-strong);
  border-radius: 12px;
  padding: 12px;
  text-align: left;
  cursor: pointer;
  color: var(--text-primary);
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 12px;
}

.vitrine-qr-btn:hover {
  background: rgba(212, 163, 89, 0.14);
  border-style: solid;
  transform: translateY(-2px);
}

.vitrine-qr-btn .qr-code-pill {
  background: var(--accent-terracotta);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 8px 10px;
  border-radius: 8px;
}

/* Vintage Simulator Section */
.simulator-layout {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 24px;
}

.viewfinder-stage {
  position: relative;
  background: #070605;
  border: 3px solid #3a2e25;
  border-radius: 18px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 0 60px rgba(0,0,0,0.85), var(--shadow-lg);
}

.viewfinder-stage canvas,
.viewfinder-stage video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.vf-hud-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 18px;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: rgba(245, 239, 230, 0.85);
}

.vf-gridlines {
  position: absolute;
  inset: 14%;
  border: 1px solid rgba(255, 255, 255, 0.32);
  pointer-events: none;
}

.vf-gridlines.tlr-waist {
  inset: 10% 18%;
  border: 2px solid rgba(224, 62, 62, 0.55);
  background:
    linear-gradient(to right, transparent 33%, rgba(224,62,62,0.3) 33%, rgba(224,62,62,0.3) 34%, transparent 34%, transparent 66%, rgba(224,62,62,0.3) 66%, rgba(224,62,62,0.3) 67%, transparent 67%),
    linear-gradient(to bottom, transparent 33%, rgba(224,62,62,0.3) 33%, rgba(224,62,62,0.3) 34%, transparent 34%, transparent 66%, rgba(224,62,62,0.3) 66%, rgba(224,62,62,0.3) 67%, transparent 67%);
}

.vf-gridlines.rangefinder::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 68px;
  height: 46px;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(255, 215, 110, 0.85);
  background: rgba(255, 215, 110, 0.12);
}

.shutter-button-outer {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  border: 4px solid var(--accent-brass);
  background: radial-gradient(circle, #e8e0d5 0%, #9c8c79 100%);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(0,0,0,0.5);
  transition: transform 0.1s ease;
}

.shutter-button-outer:active {
  transform: scale(0.92);
}

.shutter-button-inner {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #c86950, #9c3d26);
  border: 2px solid #fff;
}

/* Darkroom Tray Animation */
.darkroom-tray {
  background: #170404;
  border: 2px solid #591212;
  border-radius: 14px;
  padding: 16px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.darkroom-tray img {
  max-width: 100%;
  border-radius: 8px;
  transition: filter 3.2s ease, opacity 3.2s ease;
}

.darkroom-tray.developing img {
  filter: brightness(0.15) contrast(0.3) sepia(1) hue-rotate(-50deg);
  opacity: 0.35;
}

/* AI Curator Chat */
.chat-container {
  display: grid;
  grid-template-columns: 0.38fr 0.62fr;
  gap: 24px;
}

.chat-window {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  height: 580px;
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.chat-bubble {
  max-width: 85%;
  padding: 14px 18px;
  border-radius: 16px;
  font-size: 0.9rem;
}

.chat-bubble.bot {
  align-self: flex-start;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
}

.chat-bubble.user {
  align-self: flex-end;
  background: linear-gradient(135deg, var(--accent-terracotta), var(--accent-brass));
  color: #fff;
}

.chat-input-row {
  padding: 14px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  gap: 10px;
}

.prompt-chip {
  display: block;
  width: 100%;
  text-align: left;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  padding: 11px 14px;
  border-radius: 10px;
  font-size: 0.83rem;
  cursor: pointer;
  margin-bottom: 8px;
  transition: all 0.2s ease;
}

.prompt-chip:hover {
  border-color: var(--accent-brass);
  background: rgba(212, 163, 89, 0.12);
}

/* Guestbook & Passport */
.guestbook-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}

.guest-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.guest-card.vip {
  border-color: rgba(212, 163, 89, 0.45);
  background: linear-gradient(180deg, var(--bg-card) 0%, rgba(212, 163, 89, 0.06) 100%);
}

.guest-handwriting {
  height: 150px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  background: #eeece0;
  cursor: pointer;
}

.guest-handwriting img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.guest-handwriting:hover img {
  transform: scale(1.05);
}

/* Mobile Bottom Nav */
.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  border-top: 1px solid var(--border-subtle);
  z-index: 200;
  padding: 6px 8px;
  justify-content: space-around;
}

.mob-nav-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.68rem;
  font-weight: 600;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 6px 8px;
  border-radius: 10px;
  cursor: pointer;
}

.mob-nav-btn i {
  font-size: 1.1rem;
}

.mob-nav-btn.active {
  color: var(--accent-brass-light);
}

@media (max-width: 1280px) {
  .desktop-nav { display: none; }
  .mobile-bottom-nav { display: flex; }
  .hero-banner, .qr-layout, .simulator-layout, .chat-container, .modal-grid {
    grid-template-columns: 1fr;
  }
}

/* ========================================================
   HİLMİ NAKİPOĞLU FOUNDER TRIBUTE & CALLIGRAPHIC SIGNATURES
   ======================================================== */
.founder-sig-calligraphy {
  font-family: 'Great Vibes', 'Marck Script', cursive;
  font-size: 2.2rem;
  color: var(--accent-brass-light);
  line-height: 1;
  letter-spacing: 0.02em;
  display: block;
}

.founder-sig-cursive {
  font-family: 'Great Vibes', cursive;
  font-size: 1.35rem;
  color: var(--accent-brass-light);
  line-height: 1;
}

.founder-sig-inline {
  font-family: 'Great Vibes', cursive;
  font-size: 1.45rem;
  color: var(--accent-brass-light);
  margin-left: 6px;
  line-height: 1;
}

.founder-sig-handwriting-lg {
  font-family: 'Great Vibes', 'Marck Script', cursive;
  font-size: 2.3rem;
  color: var(--accent-brass-light);
  line-height: 1.05;
  display: block;
}

.founder-sig-calligraphy-mini {
  font-family: 'Great Vibes', cursive;
  font-size: 1.25rem;
  color: var(--accent-brass-light);
  line-height: 1;
}

/* Founder Tribute Banner in Tab 1 */
.founder-tribute-banner {
  margin-top: 24px;
  background: linear-gradient(135deg, rgba(32, 28, 23, 0.95) 0%, rgba(20, 18, 15, 0.98) 100%);
  border: 1px solid rgba(212, 163, 89, 0.45);
  border-radius: 16px;
  padding: 24px 28px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  position: relative;
  overflow: hidden;
}

.founder-tribute-banner::before {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(212, 163, 89, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.founder-tribute-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  position: relative;
  z-index: 1;
}

.founder-avatar-wrap {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.founder-avatar-img {
  width: 124px;
  height: 124px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--accent-brass-light);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5), 0 0 16px rgba(212, 163, 89, 0.3);
}

.founder-badge-pill {
  background: linear-gradient(135deg, #d4a359 0%, #b88636 100%);
  color: #1a150e;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 4px 10px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.founder-text-wrap {
  flex: 1;
  min-width: 0;
}

.founder-header-flex {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 10px;
}

.founder-eyebrow {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent-brass);
  letter-spacing: 0.12em;
  margin-bottom: 2px;
}

.founder-name {
  font-family: var(--font-serif);
  font-size: 1.55rem;
  color: #f7f4eb;
  margin: 0;
  line-height: 1.2;
}

.founder-sig-badge {
  text-align: right;
  flex-shrink: 0;
  background: rgba(212, 163, 89, 0.08);
  border: 1px dashed rgba(212, 163, 89, 0.4);
  padding: 6px 14px;
  border-radius: 10px;
}

.founder-sig-role {
  display: block;
  font-size: 0.68rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  margin-top: 2px;
}

.founder-quote {
  font-size: 0.98rem;
  color: var(--accent-brass-light);
  font-style: italic;
  line-height: 1.6;
  margin: 0 0 10px;
  border-left: 3px solid var(--accent-brass);
  padding-left: 14px;
}

.founder-desc {
  font-size: 0.86rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin: 0 0 14px;
}

.founder-meta-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.founder-meta-tag {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-size: 0.76rem;
  padding: 4px 10px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Card Founder Strip (under every camera card) */
.card-founder-strip {
  margin: 8px 0 12px;
  padding: 6px 10px;
  background: rgba(212, 163, 89, 0.08);
  border: 1px dashed rgba(212, 163, 89, 0.35);
  border-radius: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.founder-seal-tag {
  font-size: 0.72rem;
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.founder-seal-tag i {
  color: var(--accent-brass);
}

/* Modal Founder Certificate Plaque */
.modal-founder-certificate {
  background: linear-gradient(135deg, rgba(38, 33, 27, 0.92) 0%, rgba(22, 19, 16, 0.96) 100%);
  border: 1px solid var(--accent-brass);
  border-radius: 12px;
  padding: 18px 20px;
  margin: 16px 0 20px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
  position: relative;
}

.founder-cert-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.founder-cert-medal {
  font-size: 1.8rem;
  color: var(--accent-brass-light);
}

.founder-cert-badge {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--accent-brass);
  letter-spacing: 0.1em;
}

.founder-cert-title {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: #fff;
  margin: 2px 0 0;
}

.founder-cert-motto {
  font-size: 0.88rem;
  font-style: italic;
  color: #f2eee3;
  margin: 10px 0 14px;
  border-left: 3px solid var(--accent-brass);
  padding-left: 12px;
  line-height: 1.5;
}

.founder-cert-bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 10px;
  border-top: 1px dashed rgba(212, 163, 89, 0.3);
  padding-top: 10px;
}

.founder-cert-sign-wrap {
  display: flex;
  flex-direction: column;
}

.founder-cert-sub {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.founder-cert-registry {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--accent-brass);
  background: rgba(212, 163, 89, 0.12);
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid rgba(212, 163, 89, 0.3);
}

/* Guestbook Founder Card */
.guest-card.founder-card {
  border: 2px solid var(--accent-brass) !important;
  background: linear-gradient(145deg, rgba(42, 36, 28, 0.95) 0%, rgba(24, 21, 17, 0.98) 100%) !important;
  box-shadow: 0 8px 28px rgba(212, 163, 89, 0.18) !important;
  position: relative;
  grid-column: 1 / -1;
}

.founder-card-ribbon {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, #d4a359 0%, #b88636 100%);
  color: #16120e;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 6px;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
  font-family: var(--font-mono);
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

.founder-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  border-top: 1px dashed rgba(212, 163, 89, 0.35);
  padding-top: 10px;
  margin-top: 12px;
}

.founder-card-sig {
  display: flex;
  flex-direction: column;
}

.founder-card-tag {
  font-size: 0.72rem;
  font-family: var(--font-mono);
  color: var(--accent-brass);
  background: rgba(212, 163, 89, 0.14);
  border: 1px solid rgba(212, 163, 89, 0.35);
  padding: 4px 10px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

/* Tab 2 & 3 Seals & Dedications */
.founder-seal-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(212, 163, 89, 0.15);
  border: 1px solid var(--accent-brass);
  padding: 4px 12px;
  border-radius: 14px;
  font-size: 0.78rem;
  color: var(--accent-brass-light);
  font-family: var(--font-mono);
}

.player-founder-mark {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: rgba(0, 0, 0, 0.35);
  border-radius: 8px;
  border: 1px solid rgba(212, 163, 89, 0.25);
}

.founder-sub-dedication {
  font-size: 0.82rem;
  color: var(--accent-brass-light);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-style: italic;
  margin-top: 4px;
}

.curator-founder-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 18px;
  background: rgba(212, 163, 89, 0.08);
  border-bottom: 1px solid var(--border-subtle);
  flex-wrap: wrap;
  gap: 10px;
}

@media (max-width: 768px) {
  .founder-tribute-inner {
    flex-direction: column;
    text-align: center;
  }
  .founder-header-flex {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .founder-sig-badge {
    text-align: center;
  }
  .founder-quote {
    border-left: none;
    border-top: 2px solid var(--accent-brass);
    border-bottom: 2px solid var(--accent-brass);
    padding: 10px 0;
  }
  .founder-meta-tags {
    justify-content: center;
  }
}

/* ========================================================
   MODAL BRAND HEADER (LOGO & SIGNATURES IN ALL OPENED SCREENS)
   ======================================================== */
.modal-brand-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: linear-gradient(135deg, rgba(34, 28, 23, 0.98) 0%, rgba(18, 15, 12, 0.98) 100%);
  backdrop-filter: blur(14px);
  border-bottom: 1.5px solid rgba(212, 163, 89, 0.4);
  padding: 12px 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.4);
}

.modal-brand-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.modal-logo-wrapper {
  width: 46px;
  height: 46px;
  background: #14100c;
  border: 1.5px solid var(--accent-brass);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.modal-brand-logo {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.modal-brand-text {
  display: flex;
  flex-direction: column;
}

.modal-brand-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--accent-brass);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.modal-brand-name {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.modal-brand-right {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.modal-signature-block {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  background: rgba(212, 163, 89, 0.08);
  border: 1px dashed rgba(212, 163, 89, 0.35);
  padding: 3px 12px;
  border-radius: 8px;
}

.founder-sig-calligraphy-modal {
  font-family: 'Great Vibes', 'Marck Script', cursive;
  font-size: 1.95rem;
  color: var(--accent-brass-light);
  line-height: 1;
}

.modal-sig-role {
  font-size: 0.64rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
}

.modal-dialog .modal-close {
  position: static;
  float: none;
  margin: 0;
  flex-shrink: 0;
}

/* Watermark Ribbon on Modal Image */
.modal-watermark-ribbon {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(24, 20, 16, 0.88);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(212, 163, 89, 0.4);
  padding: 4px 10px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 5;
}

.modal-watermark-ribbon:hover {
  background: rgba(36, 30, 24, 0.96);
  border-color: var(--accent-brass);
  transform: translateY(-1px);
}

.modal-watermark-ribbon img {
  height: 22px;
  width: auto;
  object-fit: contain;
}

.modal-watermark-ribbon span {
  font-size: 0.72rem;
  font-family: var(--font-mono);
  color: var(--accent-brass-light);
  font-weight: 600;
}

/* Modal Plaque Logo Integration */
.founder-cert-seal-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.founder-cert-museum-logo {
  width: 38px;
  height: 38px;
  object-fit: contain;
  background: #14100c;
  border: 1px solid var(--accent-brass);
  border-radius: 50%;
  padding: 4px;
}

/* Lightbox Modal */
.lightbox-dialog {
  max-width: 900px;
  background: #130f0c;
  border: 2px solid var(--accent-brass);
  overflow: hidden;
}

.lightbox-img-stage {
  min-height: 440px;
  max-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at center, #261e18 0%, #0c0907 100%);
  position: relative;
  padding: 24px;
}

.lightbox-img-stage img {
  max-width: 100%;
  max-height: 60vh;
  object-fit: contain;
  filter: drop-shadow(0 14px 28px rgba(0, 0, 0, 0.65));
}

.stage-museum-watermark {
  position: absolute;
  bottom: 14px;
  right: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(14, 11, 9, 0.85);
  backdrop-filter: blur(8px);
  padding: 5px 12px;
  border-radius: 8px;
  border: 1px solid rgba(212, 163, 89, 0.3);
}

.stage-museum-watermark img {
  height: 22px;
  width: auto;
  filter: none;
}

.stage-museum-watermark span {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent-brass-light);
}

.lightbox-footer {
  padding: 14px 22px;
  background: #1c1612;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.modal-signature-mini {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(212, 163, 89, 0.1);
  padding: 4px 12px;
  border-radius: 8px;
  border: 1px dashed rgba(212, 163, 89, 0.4);
}

/* Visit Certificate Modal */
.cert-dialog {
  max-width: 780px;
  background: #181410;
  border: 2px solid var(--accent-brass);
}

.cert-parchment {
  background: #f7f3e8;
  color: #1a140f;
  margin: 20px;
  padding: 24px;
  border-radius: 12px;
  box-shadow: inset 0 0 35px rgba(184, 134, 54, 0.16);
}

.cert-inner-frame {
  border: 3px double #b88636;
  border-radius: 8px;
  padding: 28px 24px;
  text-align: center;
}

.cert-top-emblem {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.cert-logo {
  width: 64px;
  height: 64px;
  object-fit: contain;
  background: #1c1510;
  border-radius: 50%;
  padding: 6px;
  border: 2px solid #b88636;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.cert-institute {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  color: #7d4e1c;
  text-transform: uppercase;
  font-weight: 700;
}

.cert-heading {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  color: #261c14;
  margin: 6px 0 16px;
  letter-spacing: 0.04em;
  border-bottom: 1px solid #d4a359;
  padding-bottom: 8px;
}

.cert-body-p {
  font-size: 0.92rem;
  line-height: 1.6;
  color: #3f3123;
  margin: 0 0 10px;
}

.cert-visitor-name {
  font-family: var(--font-serif);
  font-size: 1.55rem;
  color: #8a2412;
  font-weight: 700;
  margin: 14px 0;
  text-decoration: underline;
  text-decoration-color: #d4a359;
}

.cert-body-p-sub {
  font-size: 0.9rem;
  color: #3f3123;
  margin: 0;
}

.cert-motto-box {
  margin: 18px auto;
  padding: 10px 18px;
  background: rgba(212, 163, 89, 0.14);
  border-left: 3px solid #b88636;
  border-right: 3px solid #b88636;
  font-style: italic;
  font-size: 0.95rem;
  color: #593910;
  max-width: 520px;
}

.cert-bottom-grid {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-top: 24px;
  padding-top: 14px;
  border-top: 1px dashed #b88636;
}

.cert-stamp-seal {
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
}

.cert-wax-icon {
  font-size: 2.2rem;
  color: #8a2412;
}

.cert-seal-title {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: #7d4e1c;
  font-weight: 700;
}

.cert-seal-date {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: #261c14;
}

.cert-founder-sign-block {
  text-align: right;
  display: flex;
  flex-direction: column;
}

.cert-founder-title {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 700;
  color: #261c14;
}

.cert-founder-role {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: #7d4e1c;
}

.cert-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding: 0 20px 20px;
}

/* Scanner Brand Overlay */
.scanner-brand-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  background: linear-gradient(180deg, rgba(16, 12, 10, 0.92) 0%, transparent 100%);
  padding: 10px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 5;
}

.scanner-logo {
  height: 26px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.6));
}

.scanner-brand-title {
  font-size: 0.72rem;
  font-family: var(--font-mono);
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.scanner-sig {
  font-size: 1.25rem;
  color: var(--accent-brass-light);
}

/* Curator Avatar Mini Badge */
.curator-avatar-badge-wrap {
  position: relative;
  display: inline-block;
}

.curator-mini-logo-badge {
  position: absolute;
  bottom: -4px;
  right: -4px;
  width: 26px;
  height: 26px;
  background: #14100c;
  border: 1.5px solid var(--accent-brass);
  border-radius: 50%;
  padding: 2px;
  object-fit: contain;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.header-sig-badge {
  font-size: 1.3rem;
  color: var(--accent-brass-light);
  padding: 1px 8px;
  background: rgba(212, 163, 89, 0.1);
  border-radius: 6px;
  border: 1px dashed rgba(212, 163, 89, 0.35);
}

/* ========================================================
   TAB 6: TICKET SALES & BOOKING STYLES
   ======================================================== */
.ticket-hero-banner {
  background: linear-gradient(135deg, rgba(38, 30, 24, 0.95) 0%, rgba(20, 16, 13, 0.98) 100%);
  border: 1px solid rgba(212, 163, 89, 0.45);
  border-radius: 16px;
  padding: 26px 30px;
  margin-bottom: 24px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.ticket-hero-content h2 {
  font-family: var(--font-serif);
  font-size: 1.65rem;
  color: #fff;
  margin: 6px 0 10px;
  line-height: 1.3;
}

.ticket-hero-content p {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.6;
  margin: 0 0 16px;
  max-width: 900px;
}

.ticket-meta-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.ticket-meta-pills span {
  font-size: 0.76rem;
  font-family: var(--font-mono);
  background: rgba(212, 163, 89, 0.1);
  border: 1px solid rgba(212, 163, 89, 0.3);
  padding: 5px 12px;
  border-radius: 20px;
  color: var(--accent-brass-light);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Mode Selector Tabs */
.ticket-mode-selector {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}

.ticket-mode-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  text-align: left;
  transition: all 0.25s ease;
  color: var(--text-primary);
}

.ticket-mode-btn i {
  font-size: 1.6rem;
  color: var(--text-muted);
  transition: color 0.25s ease;
  flex-shrink: 0;
}

.ticket-mode-btn strong {
  display: block;
  font-size: 0.95rem;
  font-family: var(--font-serif);
}

.ticket-mode-btn small {
  display: block;
  font-size: 0.72rem;
  color: var(--text-secondary);
  margin-top: 2px;
}

.ticket-mode-btn:hover {
  border-color: var(--accent-brass);
  background: rgba(212, 163, 89, 0.05);
}

.ticket-mode-btn.active {
  border-color: var(--accent-brass-light);
  background: linear-gradient(135deg, rgba(212, 163, 89, 0.16) 0%, rgba(32, 26, 20, 0.95) 100%);
  box-shadow: 0 4px 18px rgba(212, 163, 89, 0.15);
}

.ticket-mode-btn.active i {
  color: var(--accent-brass-light);
}

.ticket-grid-layout {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 24px;
}

/* Tier Cards Grid */
.ticket-cards-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ticket-tier-card {
  background: var(--bg-card);
  border: 1.5px solid var(--border-subtle);
  border-radius: 12px;
  padding: 14px 18px;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  display: block;
}

.ticket-tier-card input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.ticket-tier-card:hover {
  border-color: rgba(212, 163, 89, 0.6);
  transform: translateY(-2px);
}

.ticket-tier-card.selected {
  border-color: var(--accent-brass-light);
  background: linear-gradient(135deg, rgba(212, 163, 89, 0.12) 0%, rgba(26, 22, 18, 0.95) 100%);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}

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

.tier-title {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  color: #fff;
  display: block;
}

.tier-desc {
  font-size: 0.74rem;
  color: var(--text-secondary);
  display: block;
}

.tier-price {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  color: var(--accent-brass-light);
  font-weight: 700;
  flex-shrink: 0;
}

.tier-features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-top: 1px dashed var(--border-subtle);
  padding-top: 8px;
}

.tier-features li {
  font-size: 0.78rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 6px;
}

.tier-features li i {
  color: #7be3a8;
  font-size: 0.7rem;
}

/* Stepper */
.qty-stepper {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  overflow: hidden;
  background: var(--bg-card);
}

.qty-stepper button {
  background: var(--bg-elevated);
  border: none;
  color: var(--text-primary);
  width: 34px;
  height: 34px;
  font-size: 1.1rem;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

.qty-stepper button:hover {
  background: var(--accent-brass);
  color: #120e0b;
}

.qty-stepper input {
  width: 44px;
  height: 34px;
  border: none;
  background: transparent;
  color: #fff;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: bold;
}

/* Payment Selector */
.payment-method-selector {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.pay-radio {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 8px 12px;
  cursor: pointer;
  font-size: 0.84rem;
  transition: all 0.2s ease;
}

.pay-radio input {
  display: none;
}

.pay-radio i {
  color: var(--accent-brass);
  font-size: 0.95rem;
}

.pay-radio.active {
  border-color: var(--accent-brass-light);
  background: rgba(212, 163, 89, 0.14);
  color: #fff;
}

.ticket-order-summary {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 10px 14px;
  margin-top: 4px;
}

/* Gift Banner Box */
.gift-banner-box {
  display: flex;
  align-items: center;
  gap: 18px;
  background: linear-gradient(135deg, rgba(200, 105, 80, 0.15) 0%, rgba(32, 24, 20, 0.9) 100%);
  border: 1.5px solid var(--accent-terracotta);
  border-radius: 14px;
  padding: 18px 22px;
  margin-bottom: 20px;
}

.gift-banner-icon {
  font-size: 2.4rem;
  color: var(--accent-brass-light);
  flex-shrink: 0;
}

/* Group Rates Table */
.group-rates-table {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

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

.rate-card.featured {
  border-color: var(--accent-brass);
  background: rgba(212, 163, 89, 0.08);
}

.rate-badge {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent-brass);
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}

.rate-price {
  display: block;
  font-family: var(--font-mono);
  font-size: 1.35rem;
  color: #fff;
}

.rate-price small {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.rate-save {
  display: inline-block;
  margin-top: 6px;
  font-size: 0.72rem;
  background: rgba(123, 227, 168, 0.15);
  color: #7be3a8;
  padding: 2px 8px;
  border-radius: 10px;
  font-weight: 600;
}

.group-features-box {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 18px;
}

.group-features-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.group-features-list li {
  font-size: 0.84rem;
  color: var(--text-secondary);
  display: flex;
  align-items: flex-start;
  gap: 8px;
  line-height: 1.5;
}

.group-features-list li i {
  color: var(--accent-brass);
  margin-top: 3px;
}

/* Success Banner */
.ticket-success-banner {
  background: linear-gradient(135deg, rgba(34, 46, 36, 0.95) 0%, rgba(18, 26, 20, 0.98) 100%);
  border: 1px solid rgba(123, 227, 168, 0.4);
  border-radius: 14px;
  padding: 18px 24px;
  margin-bottom: 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}

/* ========================================================
   VINTAGE NOSTALGIC TICKET CARD (PERFORATED ARCHIVAL DESIGN)
   ======================================================== */
.vintage-ticket-card {
  background: #fbf8f0;
  color: #1e1712;
  border: 2px solid #b88636;
  border-radius: 12px;
  display: grid;
  grid-template-columns: 200px 1fr;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.45);
  position: relative;
  overflow: hidden;
  max-width: 880px;
  margin: 0 auto;
}

/* Perforation Tear Marks */
.vintage-ticket-card::before,
.vintage-ticket-card::after {
  content: '';
  position: absolute;
  left: 192px;
  width: 16px;
  height: 16px;
  background: var(--bg-base);
  border-radius: 50%;
  z-index: 5;
}

.vintage-ticket-card::before {
  top: -8px;
  box-shadow: inset 0 -2px 3px rgba(0, 0, 0, 0.2);
}

.vintage-ticket-card::after {
  bottom: -8px;
  box-shadow: inset 0 2px 3px rgba(0, 0, 0, 0.2);
}

/* Left Stub */
.ticket-stub {
  background: #f2eee3;
  border-right: 2px dashed #b88636;
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  text-align: center;
  position: relative;
}

.stub-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.ticket-logo-mini {
  width: 44px;
  height: 44px;
  object-fit: contain;
  background: #1c1510;
  border-radius: 50%;
  padding: 4px;
  border: 1px solid #b88636;
}

.stub-series {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  color: #7d4e1c;
  font-weight: 700;
  line-height: 1.2;
}

.stub-barcode {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  width: 100%;
}

.barcode-lines {
  display: flex;
  gap: 2px;
  height: 30px;
  justify-content: center;
  width: 100%;
}

.barcode-lines span {
  display: block;
  background: #1e1712;
  width: 2px;
  height: 100%;
}

.barcode-lines span:nth-child(even) {
  width: 4px;
}

.barcode-lines span:nth-child(3n) {
  width: 1px;
}

.stub-code {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #1e1712;
}

.stub-qr-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  background: #fff;
  border: 1px solid #d4a359;
  border-radius: 8px;
  padding: 6px;
}

.stub-qr-box img {
  width: 105px;
  height: 105px;
  display: block;
}

.stub-hint {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  color: #8c5a24;
  letter-spacing: 0.06em;
  font-weight: 700;
}

.stub-cancel-mark {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: #9c2e1b;
  border: 1px solid #9c2e1b;
  padding: 2px 8px;
  border-radius: 4px;
  letter-spacing: 0.1em;
  font-weight: 700;
}

/* Main Ticket Body */
.ticket-body {
  padding: 24px 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.ticket-body-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
  border-bottom: 1.5px solid #d4a359;
  padding-bottom: 10px;
}

.ticket-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  color: #7d4e1c;
  display: block;
  font-weight: 700;
}

.ticket-museum-title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: #261c14;
  margin: 2px 0 6px;
  line-height: 1.2;
}

.ticket-type-tag {
  display: inline-block;
  background: #1c1510;
  color: #f7f3e8;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 3px 10px;
  border-radius: 4px;
  letter-spacing: 0.06em;
  font-weight: 600;
}

.ticket-seal-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  color: #9c2e1b;
  flex-shrink: 0;
}

.ticket-seal-badge i {
  font-size: 1.8rem;
}

.ticket-seal-badge span {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  font-weight: 700;
}

/* Gift Ribbon */
.ticket-gift-ribbon {
  background: linear-gradient(135deg, rgba(156, 46, 27, 0.1) 0%, rgba(212, 163, 89, 0.15) 100%);
  border: 1px dashed #9c2e1b;
  border-radius: 8px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.ticket-gift-ribbon i {
  font-size: 1.6rem;
  color: #9c2e1b;
  flex-shrink: 0;
}

.ticket-gift-ribbon strong {
  display: block;
  font-size: 0.88rem;
  color: #9c2e1b;
}

.ticket-gift-ribbon p {
  margin: 2px 0 0;
  font-size: 0.8rem;
  font-style: italic;
  color: #3f3123;
}

/* Details Grid */
.ticket-details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 16px;
  margin-bottom: 12px;
}

.ticket-detail-item {
  display: flex;
  flex-direction: column;
}

.ticket-detail-item.full-width {
  grid-column: 1 / -1;
  border-top: 1px dashed rgba(184, 134, 54, 0.35);
  padding-top: 6px;
  margin-top: 2px;
}

.ticket-detail-item span {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  color: #7d4e1c;
  letter-spacing: 0.06em;
  font-weight: 700;
}

.ticket-detail-item strong {
  font-size: 0.92rem;
  color: #231a12;
  font-family: var(--font-sans);
}

.ticket-motto {
  font-size: 0.84rem;
  font-style: italic;
  color: #634316;
  margin: 8px 0 12px;
  border-left: 3px solid #b88636;
  padding-left: 10px;
  line-height: 1.45;
}

.ticket-body-bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  border-top: 1px dashed #b88636;
  padding-top: 10px;
}

.ticket-bottom-sign {
  display: flex;
  flex-direction: column;
}

.ticket-sign-title {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  color: #7d4e1c;
}

.ticket-serial-box {
  text-align: right;
}

.ticket-serial-box span {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: #7d4e1c;
  display: block;
}

.ticket-serial-box code {
  font-family: var(--font-mono);
  font-size: 0.88rem;
  font-weight: 700;
  color: #1e1712;
  letter-spacing: 0.08em;
}

/* Responsive adjustments */
@media (max-width: 980px) {
  main {
    padding: 16px 14px 90px !important;
  }
  .ticket-mode-selector {
    grid-template-columns: repeat(2, 1fr);
  }
  .ticket-grid-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  /* Prevent iOS Safari auto-zoom trap */
  .input-control, .select-control, input, select, textarea {
    font-size: 16px !important;
  }

  .ticket-mode-selector {
    grid-template-columns: 1fr;
  }
  .group-rates-table {
    grid-template-columns: 1fr;
  }
  .vintage-ticket-card {
    grid-template-columns: 1fr;
  }
  .ticket-stub {
    border-right: none;
    border-bottom: 2px dashed #b88636;
  }
  .vintage-ticket-card::before,
  .vintage-ticket-card::after {
    display: none;
  }

  /* Modal responsiveness for mobile */
  .modal-dialog {
    max-width: calc(100vw - 16px);
    width: calc(100vw - 16px);
    margin: 8px auto;
    max-height: 94svh;
    border-radius: 12px;
  }
  .modal-grid {
    grid-template-columns: 1fr;
    padding: 14px;
    gap: 14px;
  }
  .modal-img-box {
    min-height: 220px;
    padding: 14px;
  }
  .modal-brand-header {
    padding: 10px 14px;
  }
  .modal-brand-eyebrow {
    display: none;
  }
  .modal-signature-block {
    display: none;
  }
  .modal-close {
    margin: 10px 10px 0 0;
    width: 34px;
    height: 34px;
  }

  /* Filter controls on mobile */
  .filter-controls-row {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .search-wrapper {
    width: 100% !important;
  }

  /* Chat Curator Container on Mobile */
  .chat-box {
    height: 350px !important;
  }

  /* Viewfinder & Simulator */
  .viewfinder-stage {
    max-height: 48vh;
  }
}

@media print {
  body * {
    visibility: hidden;
  }
  #printableCertificate, #printableCertificate *,
  #printableTicket, #printableTicket * {
    visibility: visible;
  }
  #printableCertificate, #printableTicket {
    position: absolute;
    left: 0;
    top: 0;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    box-shadow: none !important;
    background: #fff !important;
    color: #000 !important;
  }
  .ticket-stub {
    background: #fafafa !important;
  }
}

/* --- QUICK GUIDE, MASTERPIECES & REFINED UX STYLES --- */
.primary-guide-btn {
  background: rgba(212, 163, 89, 0.15) !important;
  border-color: var(--accent-brass) !important;
  color: var(--accent-brass-light) !important;
  font-weight: 600;
}
.primary-guide-btn:hover {
  background: var(--accent-brass) !important;
  color: #120e0a !important;
}

.hero-eyebrow-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.hero-badge-sub {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 0.78rem;
  padding: 4px 10px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.hero-intro-text {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 680px;
  margin-bottom: 22px;
}

/* 3-Step Quick Guide */
.quick-guide-banner {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  margin-bottom: 28px;
  box-shadow: var(--shadow-md);
}
.guide-banner-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px dashed var(--border-subtle);
}
.guide-kicker {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  color: var(--accent-brass);
  display: block;
  margin-bottom: 4px;
}
.guide-title {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  margin: 0;
  color: var(--text-primary);
}
.guide-header-btn {
  background: transparent;
  border: 1px solid var(--border-strong);
  color: var(--accent-brass-light);
  font-size: 0.82rem;
  padding: 6px 14px;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}
.guide-header-btn:hover {
  border-color: var(--accent-brass);
  background: rgba(212, 163, 89, 0.1);
}
.quick-guide-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
@media (max-width: 860px) {
  .quick-guide-cards {
    grid-template-columns: 1fr;
  }
}
.guide-step-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  flex-direction: column;
  position: relative;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.guide-step-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent-brass);
  box-shadow: var(--shadow-md);
}
.step-num-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
  border: 1px solid var(--border-subtle);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.step-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 14px;
}
.step-content h4 {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  margin-bottom: 8px;
  color: var(--text-primary);
}
.step-content p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 14px;
}
.step-link {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--accent-brass);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
}

/* Masterpieces Section */
.masterpieces-section {
  margin-bottom: 32px;
}
.section-title-wrap {
  margin-bottom: 18px;
}
.section-kicker {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  color: var(--accent-brass);
  display: block;
  margin-bottom: 4px;
}
.section-heading {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  margin: 0 0 4px;
  color: var(--text-primary);
}
.section-subtext {
  font-size: 0.88rem;
  color: var(--text-secondary);
}
.masterpiece-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
@media (max-width: 1080px) {
  .masterpiece-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 600px) {
  .masterpiece-cards-grid {
    grid-template-columns: 1fr;
  }
}
.masterpiece-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  position: relative;
}
.masterpiece-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-brass);
  box-shadow: var(--shadow-lg);
}
.mp-badge-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
.mp-year {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--accent-brass-light);
  font-weight: 600;
}
.mp-tag {
  font-size: 0.7rem;
  padding: 2px 8px;
  border-radius: 6px;
  font-weight: 600;
}
.mp-tag.gold { background: rgba(212,163,89,0.2); color: #ecc37e; border: 1px solid rgba(212,163,89,0.4); }
.mp-tag.ruby { background: rgba(200,80,80,0.2); color: #ff9d9d; border: 1px solid rgba(200,80,80,0.4); }
.mp-tag.blue { background: rgba(80,140,200,0.2); color: #9dcdff; border: 1px solid rgba(80,140,200,0.4); }
.mp-tag.emerald { background: rgba(80,180,120,0.2); color: #9df0c3; border: 1px solid rgba(80,180,120,0.4); }
.mp-img-box {
  width: 100%;
  height: 140px;
  border-radius: 8px;
  background: radial-gradient(circle at center, rgba(255,255,255,0.06) 0%, rgba(0,0,0,0.4) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  overflow: hidden;
}
.mp-img-box img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
  transition: transform 0.3s ease;
}
.masterpiece-card:hover .mp-img-box img {
  transform: scale(1.08);
}
.mp-info h4 {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  margin-bottom: 6px;
  color: var(--text-primary);
}
.mp-info p {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.45;
  margin-bottom: 14px;
}
.mp-action-row {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.btn-mp-play {
  background: rgba(212, 163, 89, 0.15);
  border: 1px solid var(--accent-brass);
  color: var(--accent-brass-light);
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 0.74rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.2s ease;
}
.btn-mp-play:hover {
  background: var(--accent-brass);
  color: #16120e;
}
.mp-open-link {
  font-size: 0.74rem;
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* Card Provenance & Clean Card Strip */
.card-provenance-bar {
  margin: 8px 0 12px;
  padding: 6px 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.72rem;
  color: var(--text-secondary);
}
.card-provenance-bar .prov-tag i { color: var(--accent-brass); margin-right: 4px; }
.card-provenance-bar .prov-audio-hint i { color: var(--accent-terracotta); margin-right: 4px; }

/* Modal Provenance */
.modal-curator-provenance {
  background: rgba(212, 163, 89, 0.08);
  border: 1px solid rgba(212, 163, 89, 0.3);
  border-radius: 10px;
  padding: 12px 16px;
  margin: 14px 0 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.modal-curator-provenance .prov-left {
  display: flex;
  align-items: center;
  gap: 10px;
}
.modal-curator-provenance .prov-icon {
  font-size: 1.4rem;
  color: var(--accent-brass);
}
.modal-curator-provenance strong {
  display: block;
  font-size: 0.88rem;
  color: var(--text-primary);
}
.modal-curator-provenance span {
  font-size: 0.78rem;
  color: var(--text-secondary);
}
.modal-curator-provenance .prov-code {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--accent-brass-light);
  background: rgba(0, 0, 0, 0.3);
  padding: 4px 8px;
  border-radius: 6px;
}

/* Founder Dedication Enhancements */
.founder-tagline {
  display: block;
  font-size: 0.82rem;
  color: var(--accent-brass-light);
  margin-top: 2px;
}

/* Collection Section Header */
.collection-header-row {
  margin-bottom: 16px;
  padding-top: 8px;
}
.collection-intro-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin: 4px 0 0;
}

/* Guide Modal Dialog */
.guide-modal-dialog {
  max-width: 680px;
  width: 95%;
  background: var(--bg-card);
  border: 1px solid var(--accent-brass);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.guide-modal-body {
  padding: 24px;
  max-height: 80vh;
  overflow-y: auto;
}
.guide-intro-banner {
  background: linear-gradient(135deg, rgba(212,163,89,0.15) 0%, rgba(200,105,80,0.1) 100%);
  border: 1px solid rgba(212,163,89,0.3);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.guide-intro-icon {
  font-size: 2rem;
  color: var(--accent-brass-light);
}
.guide-intro-banner h4 {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  margin: 0 0 4px;
}
.guide-intro-banner p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.5;
}
.guide-features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 20px;
}
@media (max-width: 600px) {
  .guide-features-grid {
    grid-template-columns: 1fr;
  }
}
.guide-feat-box {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 14px;
  display: flex;
  gap: 12px;
}
.feat-icon {
  font-size: 1.25rem;
  color: var(--accent-brass);
  margin-top: 2px;
}
.feat-text h5 {
  font-size: 0.9rem;
  margin: 0 0 4px;
  color: var(--text-primary);
}
.feat-text p {
  font-size: 0.78rem;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.45;
}

/* Toast System */
.km-toast {
  position: fixed;
  bottom: 84px;
  right: 24px;
  background: rgba(22, 18, 14, 0.95);
  border: 1px solid var(--accent-brass);
  color: #fff;
  padding: 12px 20px;
  border-radius: 12px;
  font-size: 0.88rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  z-index: 99999;
  display: flex;
  align-items: center;
  gap: 10px;
  pointer-events: none;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.km-toast.show {
  opacity: 1;
  transform: translateY(0);
}

/* Side-by-Side Camera Compare Modal */
.compare-dialog {
  max-width: 960px;
  width: 95%;
  max-height: 88vh;
  overflow-y: auto;
  background: var(--bg-card);
  border: 1.5px solid var(--accent-brass);
  border-radius: 16px;
}
.compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
@media (max-width: 768px) {
  .compare-grid {
    grid-template-columns: 1fr;
  }
}
.compare-col {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 16px;
  display: flex;
  flex-direction: column;
}
.compare-spec-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 7px 10px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 6px;
  margin-bottom: 6px;
  font-size: 0.82rem;
}
.compare-spec-label {
  color: var(--text-muted);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.compare-spec-val {
  font-weight: 600;
  color: var(--text-primary);
  text-align: right;
}

/* Timeline Breakthrough Drawer */
.timeline-breakthrough-box {
  background: linear-gradient(135deg, rgba(212, 163, 89, 0.08), rgba(200, 105, 80, 0.05));
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  padding: 14px 18px;
  margin-top: 14px;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: all 0.3s ease;
}
.timeline-breakthrough-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(212, 163, 89, 0.15);
  color: var(--accent-brass-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

/* ========================================================
   RICH VISUAL & PHOTOGRAPHIC ENHANCEMENTS
   ======================================================== */
/* Hero Visual Photo Mosaic */
.hero-photo-mosaic {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.hero-photo-tile {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border-strong);
  aspect-ratio: 4/3;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
  transition: transform 0.25s ease, border-color 0.25s ease;
  background: #0f0d0b;
}
.hero-photo-tile:hover {
  transform: translateY(-3px) scale(1.02);
  border-color: var(--accent-brass-light);
}
.hero-photo-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hero-photo-caption {
  position: absolute;
  bottom: 0;
  inset-inline: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0) 100%);
  padding: 16px 8px 6px;
  font-size: 0.72rem;
  font-family: var(--font-mono);
  color: #fff;
  text-align: center;
}
.hero-photo-tile.span-2 {
  grid-column: span 2;
  aspect-ratio: 16/7;
}

/* Quick Guide Step Photo Cards */
.guide-step-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.guide-step-img-box {
  width: 100%;
  height: 110px;
  overflow: hidden;
  position: relative;
  border-radius: 10px 10px 0 0;
  background: #0d0a08;
}
.guide-step-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.guide-step-card:hover .guide-step-img-box img {
  transform: scale(1.05);
}

/* Museum Visual Gallery Section */
.museum-gallery-section {
  margin-top: 36px;
  margin-bottom: 36px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 18px;
  padding: 28px 24px;
}
.museum-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
  margin-top: 20px;
}
.gallery-photo-card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  aspect-ratio: 4/3;
  cursor: pointer;
  background: #0f0d0b;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.gallery-photo-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-brass);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}
.gallery-photo-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.gallery-photo-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(12, 9, 7, 0.92) 0%, rgba(12, 9, 7, 0.25) 55%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 14px;
  color: #fff;
  opacity: 0.92;
  transition: opacity 0.2s ease;
}
.gallery-photo-card:hover .gallery-photo-overlay {
  opacity: 1;
}
.gallery-photo-title {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 2px;
  color: var(--accent-brass-light);
}
.gallery-photo-sub {
  font-size: 0.74rem;
  color: var(--text-secondary);
}

/* Timeline Breakthrough Visual */
.timeline-breakthrough-img {
  width: 110px;
  height: 90px;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
  border: 1px solid var(--accent-brass);
  background: #0c0907;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: zoom-in;
}
.timeline-breakthrough-img img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* Audio Tour Photo Strip */
.tour-cam-strip {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
  overflow-x: auto;
  padding-bottom: 4px;
}
.tour-cam-thumb {
  width: 58px;
  height: 50px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  background: #0e0c0a;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 0.2s ease;
}
.tour-cam-thumb:hover {
  border-color: var(--accent-brass);
}
.tour-cam-thumb img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* Guestbook Handwriting Preview */
.guest-handwriting-banner {
  margin-top: 10px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  background: #0a0806;
  position: relative;
  cursor: zoom-in;
  max-height: 160px;
}
.guest-handwriting-banner img {
  width: 100%;
  height: 100%;
  max-height: 160px;
  object-fit: cover;
  display: block;
}
.guest-handwriting-tag {
  position: absolute;
  bottom: 6px;
  right: 8px;
  background: rgba(0, 0, 0, 0.82);
  color: var(--accent-brass-light);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 3px 8px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  gap: 4px;
}


