:root {
  --wood-dark: #1d0e07;
  --burgundy-top: #6d161a;
  --burgundy-mid: #4e0c10;
  --burgundy-bot: #380609;
  --parchment-light: #f5e3be;
  --parchment-mid: #e5c790;
  --parchment-dark: #cfa668;
  --gold-border: #dfb97c;
  --ink-dark: #25130b;
  --ink-burgundy: #4c130f;
  --font-serif: 'EB Garamond', 'Cormorant Garamond', Georgia, serif;
  --font-display: 'Cinzel', Georgia, serif;
}

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

/* ==================== 1. MOBILE-FIRST BASE STYLES (Phones 320px+) ==================== */
html, body {
  width: 100%;
  min-height: 100dvh;
  background: #1a0b05 url('/assets/wood_bg.jpg') repeat center top;
  background-size: 320px auto;
  color: var(--ink-dark);
  font-family: var(--font-serif);
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-tap-highlight-color: transparent;
}

.viewport-wrapper {
  width: 100%;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.stage {
  position: relative;
  width: 100%;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

/* Mobile Wooden Top Header */
.wood-header {
  position: relative;
  background: linear-gradient(180deg, rgba(22, 10, 4, 0.85) 0%, rgba(36, 17, 7, 0.94) 100%), url('/assets/wood_bg.jpg') center/cover;
  padding: 10px 12px 14px;
  border-bottom: 3px solid #966a32;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.65);
  z-index: 30;
}

.plaque-hotspot {
  display: flex;
  justify-content: center;
  cursor: pointer;
  margin-bottom: 10px;
}

.mobile-plaque-img {
  width: min(260px, 72vw);
  height: auto;
  display: block;
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.7));
}

/* Top-Right Floating Home Pill on Mobile */
.top-pill-bar {
  position: absolute;
  top: 12px;
  right: 12px;
  background: linear-gradient(180deg, #f4e1b9 0%, #e5c68f 58%, #d4ae72 100%);
  border: 2px solid #c49a5c;
  border-radius: 999px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.55);
  padding: 4px 12px;
  z-index: 35;
}

.pill-btn {
  background: transparent;
  border: none;
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-serif);
  font-size: 15px;
  font-weight: 800;
  color: #3a120d;
  cursor: pointer;
}

.pill-logo-img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.pill-icon {
  width: 17px;
  height: 17px;
  color: #4f1310;
}

/* Mobile 2x2 Navigation Grid */
.sidebar-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.nav-btn {
  width: 100%;
  min-height: 50px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  padding: 6px 10px;
  gap: 8px;
  cursor: pointer;
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 800;
  background: linear-gradient(180deg, #f3dfb6 0%, #e4c38c 52%, #cfa468 100%);
  color: #4a1410;
  border: 2px solid #be9256;
  box-shadow:
    inset 0 1px 2px rgba(255, 248, 231, 0.8),
    0 3px 8px rgba(0, 0, 0, 0.55);
  transition: transform 0.15s ease, filter 0.15s ease;
}

.nav-btn:active {
  transform: scale(0.98);
}

.nav-btn.active,
.nav-btn.active-home {
  background: linear-gradient(180deg, #6d1519 0%, #4d0b0e 55%, #370608 100%);
  color: #fbead1;
  border: 2px solid #deb87a;
  box-shadow:
    inset 0 1px 3px rgba(255, 220, 165, 0.35),
    0 4px 10px rgba(0, 0, 0, 0.65);
}

.nav-icon {
  width: 26px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

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

.nav-label {
  flex: 1;
  text-align: center;
  line-height: 1.1;
}

.nav-label-multiline {
  font-size: 14px;
  line-height: 1.08;
}

.nav-label-multiline small {
  font-size: 12.5px;
  font-weight: 700;
}

/* Main Parchment Views on Mobile */
.view-section {
  display: none;
  flex: 1;
  margin: 10px;
  padding: 16px 14px 22px;
  background: #ebd3a4 url('/assets/parchment_bg.jpg') center/cover no-repeat;
  border: 3px solid #8c622d;
  border-radius: 14px;
  box-shadow:
    inset 0 0 24px rgba(82, 44, 12, 0.35),
    0 8px 25px rgba(0, 0, 0, 0.65);
}

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

/* Quote Block on Home (Mobile & Desktop) */
.mobile-quote-block {
  text-align: center;
  margin-bottom: 14px;
  padding: 4px 6px;
}

.mobile-quote-text {
  font-family: 'Great Vibes', 'Cormorant Garamond', Georgia, cursive;
  font-size: clamp(23px, 6vw, 31px);
  font-weight: 400;
  color: #1e0b04;
  line-height: 1.25;
  text-shadow: 0 1px 0 rgba(255, 248, 225, 0.55);
}

.mobile-quote-flourish {
  color: #6b3b19;
  font-size: 16px;
  margin-top: 4px;
  letter-spacing: 4px;
}

/* Featured Centerpiece on Mobile */
.featured-showcase {
  width: 100%;
  margin-bottom: 18px;
}

.featured-frame {
  position: relative;
  width: 100%;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  background: #2b170b;
  border: 2px solid #7d5627;
  box-shadow: 0 6px 18px rgba(45, 24, 8, 0.48);
}

.featured-frame img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 8.2;
  object-fit: fill;
  display: block;
}

/* Always visible action bar on mobile so touch users don't need hover! */
.featured-overlay-bar {
  padding: 8px 10px;
  background: linear-gradient(180deg, #3b170c 0%, #240c06 100%);
  color: #fcebd0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
  border-top: 1px solid #8f6430;
}

.featured-quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.mini-action-btn {
  flex: 1;
  min-height: 36px;
  background: linear-gradient(180deg, #f3deb3 0%, #ddb87c 100%);
  color: #3d0f0c;
  border: 1px solid #b88a4d;
  border-radius: 6px;
  padding: 5px 8px;
  font-family: var(--font-serif);
  font-size: 13.5px;
  font-weight: 800;
  cursor: pointer;
}

.mini-action-btn:active {
  background: #6b1519;
  color: #fcebd0;
}

/* Mobile "Recent adăugate" Ribbon Banner */
.mobile-recent-ribbon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 16px 0 14px;
}

.ribbon-line {
  flex: 1;
  height: 2px;
  background: linear-gradient(90deg, transparent, #6b3b19, transparent);
}

.mobile-recent-ribbon {
  background: linear-gradient(180deg, #6d1519 0%, #44080b 100%);
  color: #fcebd0;
  border: 2px solid #deb87a;
  border-radius: 999px;
  padding: 6px 24px;
  font-size: 18px;
  font-weight: 800;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.35);
  white-space: nowrap;
}

/* Recent Cards Grid (1 col on Mobile, 2 on Tablet, 3 on Desktop) */
.recent-cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.recent-card {
  background: linear-gradient(175deg, #f3dfb7 0%, #e7c993 58%, #dab67a 100%);
  border: 2px solid #be9256;
  border-radius: 12px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  cursor: pointer;
  box-shadow:
    inset 0 1px 2px rgba(255, 250, 238, 0.8),
    0 5px 14px rgba(58, 32, 10, 0.32);
}

.recent-card-img-wrap {
  width: 100%;
  aspect-ratio: 16 / 7.8;
  background: #23140c;
  border: 2px solid #2a1810;
  border-radius: 6px;
  overflow: hidden;
  position: relative;
}

.recent-card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: fill;
  display: block;
}

.card-hover-badge {
  position: absolute;
  right: 6px;
  bottom: 6px;
  background: rgba(88, 16, 20, 0.92);
  color: #fcebd0;
  border: 1px solid #deb87a;
  padding: 3px 8px;
  border-radius: 5px;
  font-size: 12px;
  font-weight: 700;
}

.recent-card-meta {
  text-align: center;
  color: #1f0f07;
  line-height: 1.3;
  font-size: 17px;
  font-weight: 800;
}

/* Inner Views (Bancnote, Monede, Schimb, Contact) Mobile-First */
.inner-header {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-bottom: 12px;
  margin-bottom: 14px;
  border-bottom: 2px solid rgba(105, 42, 24, 0.35);
}

.inner-title {
  font-size: 24px;
  font-weight: 800;
  color: #4a1210;
  line-height: 1.15;
}

.inner-subtitle {
  font-size: 15px;
  color: #5c361e;
  font-style: italic;
}

.inner-controls {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.vintage-input,
.vintage-select {
  width: 100%;
  min-height: 44px;
  background: rgba(252, 242, 217, 0.95);
  border: 2px solid #a97c46;
  border-radius: 8px;
  padding: 8px 12px;
  font-family: var(--font-serif);
  font-size: 16px;
  color: #2b1409;
  outline: none;
}

.vintage-btn {
  min-height: 44px;
  background: linear-gradient(180deg, #f3deb3 0%, #ddb97e 100%);
  color: #46120e;
  border: 2px solid #a67841;
  border-radius: 8px;
  padding: 8px 16px;
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
}

.vintage-btn.primary {
  background: linear-gradient(180deg, #6d1519 0%, #46090c 100%);
  color: #fcebd0;
  border-color: #deb87a;
}

.vintage-btn.full-width {
  width: 100%;
}

/* Exchange 2 Menus on Mobile */
.schimb-menus-bar {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  width: 100%;
}

.schimb-menu-btn {
  min-height: 46px;
  background: linear-gradient(180deg, #f3deb3 0%, #ddb97e 100%);
  color: #46120e;
  border: 2px solid #a67841;
  border-radius: 8px;
  padding: 8px 14px;
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
}

.schimb-menu-btn.active {
  background: linear-gradient(180deg, #6d1519 0%, #46090c 100%);
  color: #fcebd0;
  border-color: #deb87a;
}

.schimb-want-box {
  background: rgba(107, 21, 25, 0.11);
  border-left: 3px solid #6b1519;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 14.5px;
  color: #3a100c;
  font-weight: 700;
}

/* Collection Grid Mobile-First */
.collection-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.catalog-card {
  background: linear-gradient(175deg, rgba(245, 226, 187, 0.96) 0%, rgba(227, 195, 139, 0.96) 100%);
  border: 2px solid #b88c52;
  border-radius: 12px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(55, 28, 8, 0.28);
}

.catalog-thumb-wrap {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #23140b;
  border: 2px solid #3b2212;
  border-radius: 6px;
  overflow: hidden;
  position: relative;
}

.catalog-thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.catalog-badge-top {
  position: absolute;
  top: 6px;
  left: 6px;
  background: rgba(75, 12, 15, 0.92);
  color: #fcebd0;
  padding: 3px 9px;
  border-radius: 5px;
  font-size: 12.5px;
  font-weight: 700;
  border: 1px solid rgba(222, 184, 122, 0.6);
}

.catalog-title {
  font-size: 18px;
  font-weight: 800;
  color: #3b100c;
  line-height: 1.2;
}

.catalog-specs {
  font-size: 15.5px;
  color: #2a1509;
  line-height: 1.35;
  font-weight: 600;
}

.catalog-footer {
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px dashed rgba(110, 68, 30, 0.35);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  color: #5c1614;
  font-weight: 800;
}

/* Contact Layout Mobile-First */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.contact-info-card,
.contact-form-card {
  background: linear-gradient(175deg, rgba(246, 229, 193, 0.96) 0%, rgba(230, 201, 148, 0.96) 100%);
  border: 2px solid #b6894e;
  border-radius: 12px;
  padding: 16px;
}

.contact-info-card h3,
.contact-form-card h3 {
  font-size: 20px;
  color: #4f1210;
  margin-bottom: 10px;
}

.contact-detail-item {
  margin-bottom: 10px;
  font-size: 16px;
}

.contact-detail-item strong {
  color: #551210;
  display: block;
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 10px;
}

.form-group label {
  font-size: 15px;
  font-weight: 700;
  color: #3e160c;
}

.form-feedback {
  margin-top: 8px;
  font-size: 15px;
  font-weight: 700;
  color: #1f5c2e;
}

/* Mobile Decorative Footer */
.mobile-wood-footer {
  padding: 6px 14px 16px;
  display: flex;
  justify-content: center;
}

.mobile-watch-img {
  width: min(230px, 65vw);
  height: auto;
  border-radius: 10px;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.7));
}

/* ==================== MODAL INSPECTOR (MOBILE-FIRST) ==================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(14, 6, 2, 0.86);
  backdrop-filter: blur(5px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
}

.modal-backdrop.hidden {
  display: none;
}

.inspector-dialog {
  width: 100%;
  max-width: 1320px;
  max-height: 94dvh;
  background: linear-gradient(165deg, #f5e3be 0%, #e5c68e 55%, #d6b072 100%);
  border: 3px solid #c99d5e;
  border-radius: 14px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.9);
  position: relative;
  padding: 16px 14px;
  overflow-y: auto;
  color: #241108;
}

.modal-close-btn {
  position: sticky;
  top: 0;
  float: right;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 2px solid #deb87a;
  background: linear-gradient(180deg, #6d1519 0%, #42080b 100%);
  color: #fcebd0;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  z-index: 20;
}

.inspector-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  clear: both;
}

.inspector-toolbar {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 10px;
}

.side-switch-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.side-btn {
  min-height: 42px;
  background: linear-gradient(180deg, #f3deb3 0%, #dab374 100%);
  color: #46120e;
  border: 2px solid #ad7e43;
  border-radius: 8px;
  padding: 6px 12px;
  font-family: var(--font-serif);
  font-size: 15.5px;
  font-weight: 800;
  cursor: pointer;
}

.side-btn.active {
  background: linear-gradient(180deg, #6d1519 0%, #44080b 100%);
  color: #fcebd0;
  border-color: #deb87a;
}

.lupa-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 14.5px;
  font-weight: 700;
}

.lupa-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
}

.vintage-select.mini {
  width: auto;
  min-height: 34px;
  padding: 4px 8px;
  font-size: 14px;
}

.magnifier-viewport {
  position: relative;
  width: 100%;
  height: clamp(230px, 46vw, 390px);
  background: radial-gradient(circle at center, #2f1b0f 0%, #170b05 100%);
  border: 3px solid #6b4423;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  touch-action: none;
}

.flip-card-inner {
  width: 94%;
  height: 92%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.4s ease;
}

.flip-card-inner.flipping {
  transform: rotateY(90deg) scale(0.94);
}

.flip-card-inner img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 5px;
}

.magnifier-lens {
  position: absolute;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  border: 5px solid #d4a84f;
  box-shadow:
    inset 0 0 15px rgba(255, 245, 200, 0.45),
    0 8px 24px rgba(0, 0, 0, 0.75);
  background-repeat: no-repeat;
  pointer-events: none;
  z-index: 30;
}

.magnifier-lens.hidden {
  display: none;
}

.side-badge {
  position: absolute;
  left: 10px;
  bottom: 10px;
  background: rgba(98, 17, 21, 0.92);
  color: #fcebd0;
  border: 1px solid #deb87a;
  border-radius: 5px;
  padding: 3px 9px;
  font-size: 12px;
  font-weight: 700;
}

.inspector-thumbs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 10px;
}

.thumb-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  background: rgba(255, 247, 226, 0.8);
  border: 2px solid #b5894f;
  border-radius: 8px;
  cursor: pointer;
  font-size: 13.5px;
  font-weight: 700;
}

.thumb-item.active {
  border-color: #6b1519;
  background: #fff8e6;
}

.thumb-item img {
  width: 54px;
  height: 36px;
  object-fit: cover;
  border-radius: 4px;
}

.cert-box {
  background: rgba(255, 249, 233, 0.9);
  border: 2px solid #b5894f;
  border-radius: 10px;
  padding: 14px;
}

.cert-header-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 2px solid rgba(107, 21, 25, 0.3);
  padding-bottom: 8px;
  margin-bottom: 10px;
}

.cert-seal-logo {
  width: 52px;
  height: 52px;
  object-fit: contain;
}

.cert-category {
  display: inline-block;
  background: #6b1519;
  color: #fcebd0;
  padding: 2px 9px;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.cert-title {
  font-size: 20px;
  font-weight: 800;
  color: #3d0f0b;
}

.specs-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 12px;
}

.specs-table tr {
  border-bottom: 1px dashed rgba(130, 88, 42, 0.35);
}

.specs-table td {
  padding: 5px 4px;
  font-size: 15px;
}

.specs-table td:first-child {
  font-weight: 700;
  color: #5c2a12;
  width: 45%;
}

.specs-table td:last-child {
  font-weight: 700;
  color: #210d05;
}

.cert-desc {
  font-size: 15px;
  line-height: 1.45;
  color: #2e170b;
  background: rgba(235, 212, 168, 0.45);
  padding: 9px 11px;
  border-radius: 8px;
  border-left: 3px solid #6b1519;
  margin-bottom: 12px;
}

.cert-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast {
  position: fixed;
  bottom: 16px;
  left: 16px;
  right: 16px;
  background: linear-gradient(180deg, #6d1519 0%, #3d070a 100%);
  color: #fcebd0;
  border: 2px solid #deb87a;
  padding: 12px 18px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  text-align: center;
  z-index: 300;
}

.toast.hidden {
  display: none;
}

/* ==================== 2. TABLET BREAKPOINT (min-width: 640px) ==================== */
@media (min-width: 640px) {
  .sidebar-nav {
    grid-template-columns: repeat(4, 1fr);
  }

  .recent-cards-grid,
  .collection-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .inner-controls,
  .schimb-menus-bar,
  .cert-actions {
    flex-direction: row;
    grid-template-columns: repeat(2, 1fr);
  }

  .form-row-2 {
    grid-template-columns: 1fr 1fr;
  }

  .featured-overlay-bar {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .toast {
    left: auto;
    width: auto;
  }
}

/* ==================== 3. DESKTOP BREAKPOINT (min-width: 1024px) ==================== */
@media (min-width: 1024px) {
  html, body {
    height: 100%;
    overflow: hidden;
    background: radial-gradient(circle at center, #2c160b 0%, #110703 100%);
  }

  .viewport-wrapper {
    width: 100vw;
    height: 100vh;
    align-items: center;
    justify-content: center;
  }

  .stage {
    width: min(100vw, calc(100vh * (1672 / 941)));
    height: min(100vh, calc(100vw * (941 / 1672)));
    min-height: 0;
    aspect-ratio: 1672 / 941;
    background-size: 100% 100%;
    background-position: center;
    background-repeat: no-repeat;
    box-shadow: 0 20px 65px rgba(0, 0, 0, 0.85);
    overflow: hidden;
    container-type: inline-size;
  }

  .stage.mode-home {
    background-image: url('/assets/bg_home.jpg');
  }

  .stage.mode-inner {
    background-image: url('/assets/bg_inner.jpg');
  }

  /* Hide mobile-only duplicated decorations because bg_home.jpg has them at 1:1 coordinates */
  .mobile-plaque-img,
  .mobile-quote-flourish,
  .mobile-recent-ribbon-wrap,
  .mobile-wood-footer {
    display: none !important;
  }

  .mobile-quote-block {
    position: absolute;
    left: 24.8%;
    top: 7.4%;
    width: 39.2%;
    margin: 0;
    padding: 0;
    text-align: center;
    z-index: 15;
  }

  .mobile-quote-text {
    font-size: 2.38cqw;
    line-height: 1.24;
    color: #1c0a03;
  }

  .wood-header {
    position: static;
    background: none;
    border: none;
    padding: 0;
    box-shadow: none;
  }

  .plaque-hotspot {
    position: absolute;
    left: 0.8%;
    top: 1%;
    width: 21.8%;
    height: 26.2%;
    margin: 0;
    z-index: 20;
  }

  .sidebar-nav {
    position: absolute;
    left: 2.51%;
    top: 28.26%;
    width: 18.30%;
    height: 36.77%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 0;
    z-index: 25;
  }

  .nav-btn {
    height: 22.8%;
    min-height: 0;
    border-radius: 0.9cqw;
    padding: 0 1.2cqw;
    gap: 1.0cqw;
    font-size: 1.82cqw;
    border-width: 0.14cqw;
  }

  .nav-icon {
    width: 2.7cqw;
    height: 2.1cqw;
  }

  .nav-label-multiline {
    font-size: 1.26cqw;
  }

  .nav-label-multiline small {
    font-size: 1.12cqw;
  }

  .top-pill-bar {
    right: 3.2%;
    top: 5.25%;
    height: 6.1%;
    padding: 0 1.35cqw;
    display: flex;
    align-items: center;
  }

  .pill-btn {
    font-size: 1.32cqw;
    gap: 0.55cqw;
  }

  .pill-logo-img {
    width: 2.35cqw;
    height: 2.35cqw;
  }

  .pill-icon {
    width: 1.55cqw;
    height: 1.55cqw;
  }

  .view-section {
    margin: 0;
    padding: 0;
    background: none;
    border: none;
    box-shadow: none;
    width: 100%;
    height: 100%;
  }

  .featured-showcase {
    position: absolute;
    left: 37.02%;
    top: 25.72%;
    width: 34.87%;
    height: 30.18%;
    margin: 0;
    z-index: 15;
  }

  .featured-frame {
    height: 100%;
    border-radius: 0.55cqw;
    border: none;
  }

  .featured-frame img {
    height: 100%;
    aspect-ratio: auto;
  }

  .featured-overlay-bar {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(28, 12, 6, 0.9) 100%);
    border-top: none;
    opacity: 0;
    transition: opacity 0.22s ease;
    font-size: 0.96cqw;
    padding: 0.55cqw 0.9cqw;
  }

  .featured-frame:hover .featured-overlay-bar {
    opacity: 1;
  }

  .mini-action-btn {
    min-height: 0;
    font-size: 0.86cqw;
    padding: 0.22cqw 0.55cqw;
  }

  .recent-cards-grid {
    position: absolute;
    left: 24.22%;
    top: 67.80%;
    width: 70.04%;
    height: 29.00%;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.05%;
    z-index: 15;
  }

  .recent-card {
    border-radius: 0.85cqw;
    padding: 0.85cqw 1.05cqw 0.7cqw;
    gap: 0;
    justify-content: space-between;
  }

  .recent-card-img-wrap {
    height: 58.5%;
    aspect-ratio: auto;
  }

  .recent-card-meta {
    font-size: 1.15cqw;
    line-height: 1.24;
  }

  .inner-parchment-panel {
    position: absolute;
    left: 24.5%;
    top: 13.0%;
    width: 71.0%;
    height: 82.5%;
    padding: 1.1cqw 1.5cqw;
    z-index: 18;
  }

  .inner-parchment-panel.active {
    display: flex;
    flex-direction: column;
  }

  .inner-header {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding-right: 11cqw;
    padding-bottom: 0.85cqw;
    margin-bottom: 0.85cqw;
  }

  .inner-title {
    font-size: 2.1cqw;
  }

  .inner-subtitle {
    font-size: 1.05cqw;
  }

  .inner-controls {
    width: auto;
  }

  .vintage-input,
  .vintage-select {
    width: auto;
    min-height: 0;
    font-size: 1.04cqw;
    padding: 0.45cqw 0.75cqw;
  }

  .collection-scroll-area {
    flex: 1;
    overflow-y: auto;
    padding-right: 10.5cqw;
  }

  .collection-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.2cqw;
  }

  .contact-layout {
    grid-template-columns: 1fr 1.35fr;
    gap: 1.3cqw;
  }

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

  .inspector-toolbar {
    flex-direction: row;
    justify-content: space-between;
  }

  .magnifier-lens {
    width: 185px;
    height: 185px;
  }
}
