@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:ital,wght@0,400;0,500;0,600;0,700;1,400&family=Barlow:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400;1,500&family=Chakra+Petch:wght@600;700&display=swap');

:root {
  --brand-blue: #3F639E;
  --brand-blue-dark: #3C5D9A;
  --brand-orange: #F28D2C;
  --brand-dark: #231F20;
  --brand-charcoal: #575756;
  --brand-gray-bg: #F5F3F2;
  --brand-card-bg: #F6F4F3;
  --page-w: 920px;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-print-color-adjust: exact !important;
  print-color-adjust: exact !important;
  color-adjust: exact !important;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: #1e2229;
  color: var(--brand-dark);
  font-family: 'Barlow', 'Bahnschrift', 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
}

/* =========================================================
   TOP INTERACTIVE TOOLBAR
   ========================================================= */
.app-toolbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(22, 26, 34, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  color: #fff;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}

.toolbar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.toolbar-brand-badge {
  background: var(--brand-orange);
  color: #fff;
  font-weight: 700;
  font-size: 12px;
  padding: 4px 9px;
  border-radius: 4px;
  letter-spacing: 0.5px;
}

.toolbar-brand-title {
  font-size: 15px;
  font-weight: 600;
  color: #f3f4f6;
}

.toolbar-brand-sub {
  font-size: 12px;
  color: #9ca3af;
}

.toolbar-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.toolbar-group {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  padding: 2px;
}

.tb-btn {
  background: transparent;
  color: #d1d5db;
  border: none;
  padding: 6px 11px;
  font-size: 12.5px;
  font-family: inherit;
  font-weight: 500;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}

.tb-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.tb-btn.active {
  background: var(--brand-blue);
  color: #fff;
}

.tb-select, .tb-search {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 12.5px;
  font-family: inherit;
  outline: none;
}

.tb-select option {
  background: #1e2229;
  color: #fff;
}

.tb-search {
  width: 185px;
}

.tb-search::placeholder {
  color: #9ca3af;
}

.tb-search:focus, .tb-select:focus {
  border-color: var(--brand-orange);
}

.zoom-label {
  font-size: 12px;
  padding: 0 8px;
  color: #e5e7eb;
  min-width: 48px;
  text-align: center;
}

/* Spread Navigation Bar */
.spread-nav {
  display: none;
  position: fixed;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 950;
  background: rgba(22, 26, 34, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  padding: 6px 14px;
  align-items: center;
  gap: 12px;
  color: #fff;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.45);
}

body.mode-spread .spread-nav {
  display: flex;
}

.spread-indicator {
  font-size: 13px;
  font-weight: 600;
  min-width: 120px;
  text-align: center;
}

/* =========================================================
   CATALOG STAGE & A4 PAGE CANVAS (2381 x 3367 EXACT GRID)
   ========================================================= */
.catalog-stage {
  padding: 32px 16px 64px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 36px;
}

body.mode-spread .catalog-stage {
  flex-direction: row;
  justify-content: center;
  align-items: flex-start;
  gap: 0;
  min-height: calc(100vh - 70px);
  padding: 24px 12px 80px;
}

.catalog-page {
  --u: calc(var(--page-w) / 2381);
  width: var(--page-w);
  height: calc(var(--page-w) * 3367 / 2381);
  background: #FFFFFF;
  position: relative;
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45);
  flex-shrink: 0;
  user-select: text;
  transition: width 0.2s ease, height 0.2s ease;
}

body.mode-spread .catalog-page {
  display: none;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.55);
}

body.mode-spread .catalog-page.spread-visible {
  display: block;
}

body.mode-spread .catalog-page.spread-left {
  border-right: 1px solid #d0d0d0;
}

body.mode-spread .catalog-page.spread-right {
  border-left: 1px solid #e5e5e5;
}

/* Optional Print Reference Layer for 1:1 verification */
.page-ref-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
  pointer-events: none;
  opacity: 0;
  z-index: 90;
  transition: opacity 0.2s ease;
}

body.show-ref-overlay .page-ref-overlay {
  opacity: 1;
}

body.compare-ref-overlay .page-ref-overlay {
  opacity: 0.45;
}

/* Common positioned element helper */
.abs {
  position: absolute;
}

/* Common Page Number Footer */
.page-num-left {
  position: absolute;
  left: calc(105 * var(--u));
  top: calc(3225 * var(--u));
  font-family: 'Barlow Condensed', 'Bahnschrift Condensed', 'Bahnschrift', 'Arial Narrow', sans-serif;
  font-size: calc(46 * var(--u));
  font-weight: 500;
  color: #1d1d1b;
  line-height: 1;
}

.page-num-line-left {
  position: absolute;
  left: calc(170 * var(--u));
  top: calc(3225 * var(--u));
  width: 1.5px;
  height: calc(142 * var(--u));
  background: var(--brand-blue);
}

.page-num-right {
  position: absolute;
  left: calc(2234 * var(--u));
  top: calc(3225 * var(--u));
  font-family: 'Barlow Condensed', 'Bahnschrift Condensed', 'Bahnschrift', 'Arial Narrow', sans-serif;
  font-size: calc(46 * var(--u));
  font-weight: 500;
  color: #1d1d1b;
  line-height: 1;
}

.page-num-line-right {
  position: absolute;
  left: calc(2212 * var(--u));
  top: calc(3225 * var(--u));
  width: 1.5px;
  height: calc(142 * var(--u));
  background: var(--brand-blue);
}

/* Click-to-zoom cursor on photos */
.zoomable {
  cursor: zoom-in;
}

/* =========================================================
   PAGE 1: COVER (KAPAK)
   ========================================================= */
#page-1 {
  background: #F5F3F2;
}

.p1-logo {
  left: calc(1340 * var(--u));
  top: calc(130 * var(--u));
  width: calc(880 * var(--u));
  height: calc(275 * var(--u));
  object-fit: contain;
}

.p1-title {
  left: calc(168 * var(--u));
  top: calc(412 * var(--u));
  font-family: 'Chakra Petch', 'Bahnschrift', 'Segoe UI', sans-serif;
  font-size: calc(116 * var(--u));
  font-weight: 700;
  color: var(--brand-blue);
  line-height: 1.13;
  letter-spacing: calc(0.5 * var(--u));
}

.p1-hero {
  left: 0;
  top: calc(1051 * var(--u));
  width: calc(2111 * var(--u));
  height: calc(2316 * var(--u));
  object-fit: cover;
}

.p1-orange-bar {
  left: calc(2111 * var(--u));
  top: calc(2673 * var(--u));
  width: calc(270 * var(--u));
  height: calc(694 * var(--u));
  background: var(--brand-orange);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding-bottom: calc(165 * var(--u));
  gap: calc(24 * var(--u));
}

.p1-web-link {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-family: 'Barlow', sans-serif;
  font-size: calc(40 * var(--u));
  font-weight: 400;
  color: #2d2926;
  text-decoration: none;
  letter-spacing: calc(1 * var(--u));
}

.p1-web-link:hover {
  color: #000;
}

.p1-globe-icon {
  width: calc(78 * var(--u));
  height: calc(78 * var(--u));
}

/* =========================================================
   PAGE 2: HAKKIMIZDA (01)
   ========================================================= */
.p2-atolye {
  left: calc(204 * var(--u));
  top: calc(56 * var(--u));
  width: calc(589 * var(--u));
  height: calc(331 * var(--u));
  object-fit: cover;
}

.p2-lazer {
  left: calc(834 * var(--u));
  top: 0;
  width: calc(805 * var(--u));
  height: calc(760 * var(--u));
  object-fit: cover;
}

.p2-orange-v {
  left: calc(1639 * var(--u));
  top: 0;
  width: calc(93 * var(--u));
  height: calc(658 * var(--u));
  background: var(--brand-orange);
}

.p2-orange-h {
  left: calc(834 * var(--u));
  top: calc(760 * var(--u));
  width: calc(714 * var(--u));
  height: calc(102 * var(--u));
  background: var(--brand-orange);
}

.p2-panelhatti {
  left: calc(1732 * var(--u));
  top: calc(272 * var(--u));
  width: calc(649 * var(--u));
  height: calc(386 * var(--u));
  object-fit: cover;
}

.p2-blue-h {
  left: calc(1639 * var(--u));
  top: calc(658 * var(--u));
  width: calc(742 * var(--u));
  height: calc(102 * var(--u));
  background: var(--brand-blue);
}

.p2-blue-v {
  left: calc(1548 * var(--u));
  top: calc(760 * var(--u));
  width: calc(92 * var(--u));
  height: calc(553 * var(--u));
  background: var(--brand-blue);
}

.p2-abkant {
  left: calc(1640 * var(--u));
  top: calc(760 * var(--u));
  width: calc(741 * var(--u));
  height: calc(553 * var(--u));
  object-fit: cover;
}

.p2-logo {
  left: calc(168 * var(--u));
  top: calc(544 * var(--u));
  width: calc(468 * var(--u));
  height: calc(102 * var(--u));
  object-fit: contain;
}

.p2-heading {
  left: calc(168 * var(--u));
  top: calc(765 * var(--u));
  font-size: calc(88 * var(--u));
  font-weight: 500;
  color: var(--brand-blue);
  letter-spacing: calc(-0.5 * var(--u));
}

.p2-text-block {
  left: calc(168 * var(--u));
  top: calc(982 * var(--u));
  width: calc(1265 * var(--u));
  font-size: calc(34.5 * var(--u));
  line-height: 1.35;
  color: #231F20;
  font-weight: 400;
}

.p2-text-block p + p {
  margin-top: calc(46 * var(--u));
}

.p2-card-vizyon {
  left: calc(168 * var(--u));
  top: calc(1700 * var(--u));
  width: calc(1015 * var(--u));
  height: calc(442 * var(--u));
  border: 1.5px solid #D5D5D5;
  border-radius: calc(32 * var(--u)) calc(32 * var(--u)) calc(140 * var(--u)) calc(32 * var(--u));
  background: #fff;
}

.p2-card-misyon {
  left: calc(1200 * var(--u));
  top: calc(1795 * var(--u));
  width: calc(1012 * var(--u));
  height: calc(435 * var(--u));
  border: 1.5px solid #D5D5D5;
  border-radius: calc(32 * var(--u)) calc(32 * var(--u)) calc(32 * var(--u)) calc(140 * var(--u));
  background: #fff;
}

.p2-vm-icon {
  position: absolute;
  left: calc(56 * var(--u));
  top: calc(85 * var(--u));
  width: calc(165 * var(--u));
  height: calc(185 * var(--u));
  object-fit: contain;
}

.p2-vm-title {
  position: absolute;
  left: calc(278 * var(--u));
  top: calc(74 * var(--u));
  font-size: calc(54 * var(--u));
  font-weight: 500;
  color: var(--brand-blue);
}

.p2-vm-desc {
  position: absolute;
  left: calc(278 * var(--u));
  top: calc(170 * var(--u));
  width: calc(660 * var(--u));
  font-size: calc(31 * var(--u));
  line-height: 1.34;
  color: #231F20;
}

.p2-adv-header-box {
  left: calc(168 * var(--u));
  top: calc(2272 * var(--u));
  width: calc(1015 * var(--u));
  height: calc(140 * var(--u));
  border: 1.5px solid #E0E0E0;
  border-bottom: none;
  border-radius: calc(32 * var(--u)) calc(32 * var(--u)) 0 0;
  display: flex;
  align-items: center;
  padding-left: calc(52 * var(--u));
}

.p2-adv-header-box h3 {
  font-size: calc(53 * var(--u));
  font-weight: 500;
  color: var(--brand-blue);
  letter-spacing: calc(0.5 * var(--u));
}

.p2-adv-card {
  position: absolute;
  width: calc(658 * var(--u));
  height: calc(255 * var(--u));
}

.p2-adv-head {
  height: calc(82 * var(--u));
  background: var(--brand-blue-dark);
  border-radius: 0 0 calc(26 * var(--u)) 0;
  border-bottom: calc(3.5 * var(--u)) solid var(--brand-orange);
  display: flex;
  align-items: center;
  padding: 0 calc(32 * var(--u));
  color: #fff;
  font-size: calc(34 * var(--u));
  font-weight: 600;
  letter-spacing: calc(0.3 * var(--u));
}

.p2-adv-body {
  margin-top: calc(10 * var(--u));
  height: calc(160 * var(--u));
  background: linear-gradient(180deg, #EAE8E7 0%, #FAF9F9 85%, #FFFFFF 100%);
  border-radius: calc(22 * var(--u)) 0 0 0;
  padding: calc(26 * var(--u)) calc(32 * var(--u));
  font-size: calc(29.5 * var(--u));
  line-height: 1.32;
  color: #1d1d1b;
}

.p2-cert-item {
  position: absolute;
  top: calc(3048 * var(--u));
  width: calc(360 * var(--u));
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: calc(16 * var(--u));
}

.p2-cert-item img {
  width: calc(105 * var(--u));
  height: calc(105 * var(--u));
  object-fit: contain;
}

.p2-cert-item span {
  font-size: calc(25 * var(--u));
  font-weight: 600;
  color: #1d1d1b;
}

/* =========================================================
   PAGE 3: TEKNİK ÖZELLİKLER (02)
   ========================================================= */
.p3-top-grad {
  left: 0;
  top: 0;
  width: 100%;
  height: calc(520 * var(--u));
  background: linear-gradient(180deg, #CDDDE5 0%, #E7EFF3 58%, #FFFFFF 100%);
}

.p3-logo {
  left: calc(1670 * var(--u));
  top: calc(148 * var(--u));
  width: calc(542 * var(--u));
  height: calc(118 * var(--u));
  object-fit: contain;
}

.p3-title {
  left: calc(168 * var(--u));
  top: calc(478 * var(--u));
  font-size: calc(98 * var(--u));
  font-weight: 500;
  color: var(--brand-blue);
}

.p3-intro {
  left: calc(168 * var(--u));
  top: calc(636 * var(--u));
  width: calc(1120 * var(--u));
  font-size: calc(35.5 * var(--u));
  line-height: 1.36;
  color: #231F20;
}

.p3-olculer-title {
  left: calc(168 * var(--u));
  top: calc(900 * var(--u));
  font-size: calc(65 * var(--u));
  font-weight: 500;
  color: var(--brand-blue);
}

.p3-olculer-line {
  left: calc(168 * var(--u));
  top: calc(996 * var(--u));
  width: calc(880 * var(--u));
  height: 1.5px;
  background: #CCCCCC;
}

.p3-dim-col {
  position: absolute;
  top: calc(1042 * var(--u));
}

.p3-dim-circle {
  width: calc(98 * var(--u));
  height: calc(98 * var(--u));
  border-radius: 50%;
  border: calc(3.5 * var(--u)) solid var(--brand-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-blue);
}

.p3-dim-circle svg {
  width: calc(62 * var(--u));
  height: calc(62 * var(--u));
}

.p3-dim-label {
  margin-top: calc(28 * var(--u));
  font-size: calc(31 * var(--u));
  font-weight: 600;
  color: var(--brand-blue);
  margin-bottom: calc(22 * var(--u));
}

.p3-dim-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: calc(11 * var(--u));
  font-size: calc(29 * var(--u));
  color: #1d1d1b;
}

.p3-dim-list li {
  display: flex;
  align-items: center;
  gap: calc(10 * var(--u));
}

.p3-dim-list li::before {
  content: "»";
  color: var(--brand-blue);
  font-weight: 700;
  font-size: calc(34 * var(--u));
  line-height: 0.8;
}

.p3-vline-1 {
  left: calc(435 * var(--u));
  top: calc(1170 * var(--u));
  width: 1.5px;
  height: calc(475 * var(--u));
  background: #CCCCCC;
}

.p3-vline-2 {
  left: calc(726 * var(--u));
  top: calc(1170 * var(--u));
  width: 1.5px;
  height: calc(475 * var(--u));
  background: #CCCCCC;
}

.p3-invest-box {
  left: calc(1324 * var(--u));
  top: calc(1025 * var(--u));
  width: calc(888 * var(--u));
  height: calc(505 * var(--u));
  border-radius: calc(26 * var(--u));
  overflow: hidden;
  background: #575756;
  display: flex;
  flex-direction: column;
}

.p3-invest-head {
  height: calc(102 * var(--u));
  background: var(--brand-blue);
  color: #fff;
  display: flex;
  align-items: center;
  padding-left: calc(46 * var(--u));
  font-size: calc(38 * var(--u));
  font-weight: 500;
}

.p3-invest-body {
  flex: 1;
  padding: calc(42 * var(--u)) calc(120 * var(--u));
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #fff;
  font-size: calc(30.5 * var(--u));
}

.p3-sec-header {
  left: calc(168 * var(--u));
  width: calc(2044 * var(--u));
  display: flex;
  align-items: center;
  gap: calc(36 * var(--u));
}

.p3-sec-header::before,
.p3-sec-header::after {
  content: "";
  flex: 1;
  height: 1.5px;
  background: #CCCCCC;
}

.p3-sec-header span {
  font-size: calc(38 * var(--u));
  font-weight: 600;
  color: #3C3C3B;
  letter-spacing: calc(0.6 * var(--u));
}

.p3-sys-card {
  position: absolute;
  top: calc(1938 * var(--u));
  width: calc(1002 * var(--u));
}

.p3-sys-photo-wrap {
  width: calc(592 * var(--u));
  height: calc(444 * var(--u));
  border-bottom: calc(4 * var(--u)) solid var(--brand-blue);
  overflow: hidden;
}

.p3-sys-photo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.p3-sys-info {
  width: 100%;
  height: calc(225 * var(--u));
  background: #F6F4F3;
  border-bottom: calc(5 * var(--u)) solid var(--brand-orange);
  padding: calc(46 * var(--u)) calc(56 * var(--u));
}

.p3-sys-info h4 {
  font-size: calc(35 * var(--u));
  font-weight: 500;
  color: var(--brand-blue);
  margin-bottom: calc(18 * var(--u));
}

.p3-sys-info p {
  font-size: calc(31 * var(--u));
  color: #1d1d1b;
}

.p3-usage-row {
  left: calc(168 * var(--u));
  top: calc(2845 * var(--u));
  width: calc(2044 * var(--u));
  height: calc(320 * var(--u));
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: calc(24 * var(--u));
}

.p3-usage-card {
  border-radius: calc(24 * var(--u));
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.p3-usage-top {
  height: calc(195 * var(--u));
  background: var(--brand-orange);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(24 * var(--u));
}

.p3-usage-top img {
  width: calc(135 * var(--u));
  height: calc(135 * var(--u));
  object-fit: contain;
}

.p3-usage-bot {
  flex: 1;
  background: var(--brand-blue-dark);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(10 * var(--u)) calc(14 * var(--u));
  font-family: 'Barlow Condensed', 'Bahnschrift Condensed', 'Bahnschrift', 'Arial Narrow', sans-serif;
  font-size: calc(32 * var(--u));
  font-weight: 600;
  line-height: 1.18;
}

/* =========================================================
   PAGE 4: PANEL YAPISI & SOĞUK ODA RAMPASI (03)
   ========================================================= */
.p4-logo {
  left: calc(168 * var(--u));
  top: calc(148 * var(--u));
  width: calc(468 * var(--u));
  height: calc(102 * var(--u));
  object-fit: contain;
}

.p4-title {
  left: calc(168 * var(--u));
  top: calc(468 * var(--u));
  font-size: calc(96 * var(--u));
  font-weight: 500;
  color: var(--brand-blue);
}

.p4-title-line {
  left: calc(742 * var(--u));
  top: calc(566 * var(--u));
  width: calc(1639 * var(--u));
  height: calc(2.5 * var(--u));
  background: var(--brand-blue);
}

.p4-panel-card {
  position: absolute;
  width: calc(496 * var(--u));
}

.p4-panel-card img {
  width: 100%;
  height: calc(425 * var(--u));
  object-fit: cover;
  display: block;
  border-bottom: calc(4 * var(--u)) solid var(--brand-blue);
}

.p4-panel-card-body {
  height: calc(242 * var(--u));
  background: linear-gradient(180deg, #E2E0DF 0%, #F7F6F5 100%);
  border-bottom: calc(4.5 * var(--u)) solid var(--brand-orange);
  padding: calc(42 * var(--u)) calc(46 * var(--u));
  font-size: calc(30.5 * var(--u));
  line-height: 1.32;
  color: #1d1d1b;
}

.p4-ramp-box {
  left: calc(168 * var(--u));
  top: calc(2252 * var(--u));
  width: calc(2044 * var(--u));
  height: calc(852 * var(--u));
  background: #F5F4F3;
}

.p4-ramp-title {
  left: calc(242 * var(--u));
  top: calc(2318 * var(--u));
  font-size: calc(58 * var(--u));
  font-weight: 500;
  color: var(--brand-blue);
}

.p4-ramp-photo {
  left: calc(170 * var(--u));
  top: calc(2436 * var(--u));
  width: calc(944 * var(--u));
  height: calc(665 * var(--u));
  object-fit: cover;
  border: calc(3 * var(--u)) solid var(--brand-blue);
}

.p4-ramp-spec-title {
  left: calc(1224 * var(--u));
  top: calc(2348 * var(--u));
  font-size: calc(33 * var(--u));
  font-weight: 500;
  color: var(--brand-blue);
}

.p4-ramp-table {
  left: calc(1202 * var(--u));
  top: calc(2402 * var(--u));
  width: calc(943 * var(--u));
  border-collapse: collapse;
  font-size: calc(27 * var(--u));
}

.p4-ramp-table tr:nth-child(odd) {
  background: #FFFFFF;
}

.p4-ramp-table tr:nth-child(even) {
  background: #EBEBEB;
}

.p4-ramp-table td {
  padding: calc(6.5 * var(--u)) calc(22 * var(--u));
  color: #1d1d1b;
}

.p4-ramp-table td:first-child {
  width: 58%;
}

.p4-ramp-diag {
  left: calc(1202 * var(--u));
  top: calc(2766 * var(--u));
  width: calc(943 * var(--u));
  height: calc(274 * var(--u));
  padding: calc(14 * var(--u)) calc(44 * var(--u));
  object-fit: contain;
  background: #fff;
}

/* =========================================================
   PAGE 5: KOLAY MONTAJ AŞAMALARI (04)
   ========================================================= */
.p5-sub {
  left: calc(168 * var(--u));
  top: calc(155 * var(--u));
  font-size: calc(68 * var(--u));
  font-weight: 400;
  color: #4A4A49;
}

.p5-title {
  left: calc(168 * var(--u));
  top: calc(245 * var(--u));
  font-size: calc(92 * var(--u));
  font-weight: 500;
  color: var(--brand-blue);
}

.p5-step-card {
  position: absolute;
  width: calc(998 * var(--u));
  height: calc(772 * var(--u));
}

.p5-step-box {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: calc(366 * var(--u));
  background: #F5F4F3;
  border: 1.5px solid var(--brand-blue);
  border-radius: calc(22 * var(--u));
  padding: calc(120 * var(--u)) calc(58 * var(--u)) calc(28 * var(--u));
}

.p5-step-badge {
  position: absolute;
  left: calc(60 * var(--u));
  top: calc(36 * var(--u));
  width: calc(82 * var(--u));
  height: calc(82 * var(--u));
  background: var(--brand-blue-dark);
  border-radius: calc(10 * var(--u));
  color: #fff;
  font-size: calc(50 * var(--u));
  font-weight: 500;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  line-height: 1;
  padding-bottom: calc(6 * var(--u));
}

.p5-step-title {
  font-size: calc(42 * var(--u));
  font-weight: 500;
  color: var(--brand-blue);
  padding-bottom: calc(18 * var(--u));
  border-bottom: 1.5px solid #CCCCCC;
  margin-bottom: calc(22 * var(--u));
}

.p5-step-desc {
  font-size: calc(29.5 * var(--u));
  line-height: 1.32;
  color: #1d1d1b;
}

.p5-step-main-wrap {
  position: absolute;
  right: 0;
  top: 0;
  width: calc(650 * var(--u));
  height: calc(524 * var(--u));
  border-radius: calc(22 * var(--u));
  border: calc(3 * var(--u)) solid var(--brand-blue);
  overflow: hidden;
  background: #fff;
  z-index: 2;
}

.p5-step-main-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.p5-step-circle-wrap {
  position: absolute;
  left: calc(70 * var(--u));
  top: 0;
  width: calc(308 * var(--u));
  height: calc(308 * var(--u));
  border-radius: 50%;
  border: calc(3.5 * var(--u)) solid var(--brand-blue);
  overflow: hidden;
  background: #fff;
  z-index: 3;
}

.p5-step-circle-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* =========================================================
   PAGES 6 & 7: MODEL ÖLÇÜLERİ TABLES (05 & 06)
   ========================================================= */
.p6-title-right {
  right: calc(168 * var(--u));
  top: calc(155 * var(--u));
  text-align: right;
}

.p6-title-right .sub {
  font-size: calc(68 * var(--u));
  color: #4A4A49;
  font-weight: 400;
}

.p6-title-right .main {
  font-size: calc(92 * var(--u));
  color: var(--brand-blue);
  font-weight: 500;
  line-height: 1.05;
}

.p6-subtitle {
  left: calc(168 * var(--u));
  top: calc(375 * var(--u));
  font-size: calc(46 * var(--u));
  font-style: italic;
  color: var(--brand-blue);
}

.p6-subtitle small {
  font-size: calc(36 * var(--u));
}

.model-table-wrap {
  position: absolute;
  top: calc(462 * var(--u));
  width: calc(942 * var(--u));
  height: calc(2738 * var(--u));
}

.model-table {
  width: 100%;
  height: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-family: 'Barlow Condensed', 'Bahnschrift Condensed', 'Bahnschrift', 'Arial Narrow', sans-serif;
  border: 1px solid #9D9D9C;
}

.model-table thead th {
  background: var(--brand-blue-dark);
  color: #fff;
  font-size: calc(25 * var(--u));
  font-weight: 500;
  text-align: left;
  padding: calc(12 * var(--u)) calc(22 * var(--u));
  height: calc(74 * var(--u));
  border-right: 1px solid rgba(255, 255, 255, 0.35);
  letter-spacing: calc(0.4 * var(--u));
}

.model-table tbody tr {
  background: #FFFFFF;
  transition: background 0.1s ease;
}

.model-table tbody tr:nth-child(even) {
  background: #E3E3E3;
}

.model-table tbody tr:hover,
.model-table tbody tr.row-match {
  background: #fde6cf !important;
}

.model-table tbody td {
  padding: 0 calc(22 * var(--u));
  font-size: calc(22.5 * var(--u));
  font-weight: 500;
  color: #1d1d1b;
  border-right: 1px solid #B2B2B2;
  border-bottom: 1px solid #C6C6C6;
  line-height: 1;
}

.model-table col.col-dim { width: 54%; }
.model-table col.col-h { width: 22%; }
.model-table col.col-t { width: 24%; }

/* =========================================================
   PAGE 8: PERFORMANS TABLOLARI - R290 MONOBLOK (07)
   ========================================================= */
.p8-unit-iso {
  left: calc(168 * var(--u));
  top: calc(428 * var(--u));
  width: calc(800 * var(--u));
  height: calc(798 * var(--u));
  object-fit: contain;
  background: #fff;
  border: 1.5px solid var(--brand-blue);
  border-radius: calc(22 * var(--u));
  padding: calc(14 * var(--u));
}

.p8-unit-tech {
  left: calc(1115 * var(--u));
  top: calc(430 * var(--u));
  width: calc(870 * var(--u));
  height: calc(735 * var(--u));
  object-fit: contain;
}

.p8-code-img {
  left: calc(168 * var(--u));
  top: calc(1245 * var(--u));
  width: calc(850 * var(--u));
  height: calc(626 * var(--u));
  object-fit: contain;
}

.p8-unit-dim-title {
  left: calc(1445 * var(--u));
  top: calc(1188 * var(--u));
  font-family: 'Barlow Condensed', 'Bahnschrift Condensed', 'Bahnschrift', 'Arial Narrow', sans-serif;
  font-size: calc(26 * var(--u));
  color: #1d1d1b;
}

.p8-dim-table {
  left: calc(1445 * var(--u));
  top: calc(1224 * var(--u));
  width: calc(768 * var(--u));
  height: calc(490 * var(--u));
  border-collapse: collapse;
  font-family: 'Barlow Condensed', 'Bahnschrift Condensed', 'Bahnschrift', 'Arial Narrow', sans-serif;
  font-size: calc(23.5 * var(--u));
  text-align: center;
}

.p8-dim-table thead th {
  background: var(--brand-blue-dark);
  color: #fff;
  height: calc(64 * var(--u));
  font-weight: 500;
  border-right: 1px solid rgba(255, 255, 255, 0.25);
}

.p8-dim-table tbody tr:nth-child(odd) { background: #F2F2F2; }
.p8-dim-table tbody tr:nth-child(even) { background: #FFFFFF; }

.p8-dim-table td {
  border-right: 1px solid #CCCCCC;
  padding: calc(6 * var(--u)) calc(8 * var(--u));
  color: #1d1d1b;
}

.p8-dim-table td:first-child,
.p8-dim-table th:first-child {
  text-align: left;
  padding-left: calc(18 * var(--u));
}

.p8-perf-meta {
  left: calc(252 * var(--u));
  width: calc(1960 * var(--u));
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: 'Barlow Condensed', 'Bahnschrift Condensed', 'Bahnschrift', 'Arial Narrow', sans-serif;
  font-size: calc(24 * var(--u));
  color: #1d1d1b;
  z-index: 96;
}

.p8-meta-right {
  display: flex;
  align-items: center;
  gap: calc(16 * var(--u));
}

.p8-zoom-table-btn {
  display: inline-flex;
  align-items: center;
  gap: calc(6 * var(--u));
  background: var(--brand-blue);
  color: #fff;
  border: none;
  border-radius: calc(8 * var(--u));
  padding: calc(3.5 * var(--u)) calc(12 * var(--u));
  font-family: 'Barlow', 'Segoe UI', sans-serif;
  font-size: calc(19 * var(--u));
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(30, 82, 136, 0.28);
  transition: background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.p8-zoom-table-btn:hover {
  background: var(--brand-orange);
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(244, 138, 32, 0.38);
}

.p8-zoom-table-btn svg {
  width: calc(21 * var(--u));
  height: calc(21 * var(--u));
  flex-shrink: 0;
}

body.show-ref-overlay .p8-zoom-table-btn {
  display: none !important;
}

.p8-perf-wrap {
  left: calc(168 * var(--u));
  width: calc(2044 * var(--u));
  height: calc(384 * var(--u));
  display: flex;
  z-index: 95;
  background: #fff;
}

.p8-perf-side {
  width: calc(84 * var(--u));
  background: var(--brand-blue-dark);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-family: 'Barlow Condensed', 'Bahnschrift Condensed', 'Bahnschrift', 'Arial Narrow', sans-serif;
  font-size: calc(28 * var(--u));
  letter-spacing: calc(1 * var(--u));
  border-right: 1px solid rgba(255, 255, 255, 0.35);
}

.p8-perf-table {
  flex: 1;
  border-collapse: collapse;
  font-family: 'Barlow Condensed', 'Bahnschrift Condensed', 'Bahnschrift', 'Arial Narrow', sans-serif;
  font-size: calc(21.5 * var(--u));
  text-align: center;
  border: 1px solid #CCCCCC;
}

.p8-perf-table thead th {
  background: var(--brand-blue-dark);
  color: #fff;
  font-weight: 500;
  padding: calc(3 * var(--u)) calc(6 * var(--u));
  border-right: 1px solid rgba(255, 255, 255, 0.22);
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
  line-height: 1.08;
}

.p8-perf-table tbody tr:nth-child(odd) { background: #F2F2F2; }
.p8-perf-table tbody tr:nth-child(even) { background: #FFFFFF; }
.p8-perf-table tbody tr:hover,
.p8-perf-table tbody tr.row-match { background: #fde6cf !important; }

.p8-perf-table td {
  border-right: 1px solid #CCCCCC;
  border-bottom: 1px solid #DFDFDF;
  padding: calc(3 * var(--u)) calc(8 * var(--u));
  color: #1d1d1b;
  line-height: 1.08;
}

.p8-perf-table .align-left {
  text-align: left;
  padding-left: calc(16 * var(--u));
}

.p8-orange-banner {
  left: 0;
  top: calc(2745 * var(--u));
  width: 100%;
  height: calc(465 * var(--u));
  background: var(--brand-orange);
  padding: calc(42 * var(--u)) calc(155 * var(--u));
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.p8-banner-divider {
  width: 100%;
  height: 1px;
  background: rgba(255, 255, 255, 0.65);
}

.p8-banner-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: center;
}

.p8-banner-item {
  display: flex;
  align-items: center;
  gap: calc(24 * var(--u));
  padding: 0 calc(20 * var(--u));
  border-right: 1px solid rgba(255, 255, 255, 0.7);
}

.p8-banner-item:first-child {
  padding-left: 0;
}

.p8-banner-item:last-child {
  border-right: none;
}

.p8-banner-item img {
  width: calc(95 * var(--u));
  height: calc(115 * var(--u));
  object-fit: contain;
  flex-shrink: 0;
}

.p8-banner-item h5 {
  color: #fff;
  font-size: calc(25 * var(--u));
  font-weight: 600;
  margin-bottom: calc(6 * var(--u));
}

.p8-banner-item p {
  color: #1d1d1b;
  font-size: calc(21 * var(--u));
  line-height: 1.24;
}

/* =========================================================
   PAGE 9: RAF YERLEŞİMİ MATRIX (08)
   ========================================================= */
.p9-col-headers {
  left: calc(280 * var(--u));
  top: calc(408 * var(--u));
  width: calc(1932 * var(--u));
  height: calc(78 * var(--u));
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: calc(33 * var(--u));
}

.p9-col-pill {
  background: var(--brand-blue-dark);
  color: #fff;
  border-radius: calc(16 * var(--u)) calc(16 * var(--u)) 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Barlow Condensed', 'Bahnschrift Condensed', 'Bahnschrift', 'Arial Narrow', sans-serif;
  font-size: calc(42 * var(--u));
  font-weight: 600;
  transition: background 0.15s ease;
}

.p9-col-pill.active-hdr,
.p9-row-pill.active-hdr {
  background: var(--brand-orange);
}

.p9-row-headers {
  left: calc(168 * var(--u));
  top: calc(522 * var(--u));
  width: calc(78 * var(--u));
  height: calc(2676 * var(--u));
  display: grid;
  grid-template-rows: repeat(9, 1fr);
  gap: calc(33 * var(--u));
}

.p9-row-pill {
  background: var(--brand-blue-dark);
  color: #fff;
  border-radius: calc(16 * var(--u)) 0 0 calc(16 * var(--u));
  display: flex;
  align-items: center;
  justify-content: center;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-family: 'Barlow Condensed', 'Bahnschrift Condensed', 'Bahnschrift', 'Arial Narrow', sans-serif;
  font-size: calc(42 * var(--u));
  font-weight: 600;
  transition: background 0.15s ease;
}

.p9-matrix-grid {
  left: calc(280 * var(--u));
  top: calc(522 * var(--u));
  width: calc(1932 * var(--u));
  height: calc(2676 * var(--u));
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-template-rows: repeat(9, 1fr);
  column-gap: calc(33 * var(--u));
  row-gap: calc(33 * var(--u));
}

.p9-cell {
  border: 1.5px solid #E5E5E5;
  background: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.p9-cell:hover {
  border-color: var(--brand-orange);
  box-shadow: 0 0 0 2px rgba(242, 141, 44, 0.25);
  z-index: 5;
}

.p9-cell img {
  width: 96%;
  height: 96%;
  object-fit: contain;
}

/* =========================================================
   PAGE 10: DİĞER SOĞUK ODALAR (09)
   ========================================================= */
.p10-top-card {
  position: absolute;
  top: calc(488 * var(--u));
  width: calc(994 * var(--u));
  height: calc(1792 * var(--u));
  background: #F5F4F3;
  border-bottom: calc(4 * var(--u)) solid var(--brand-orange);
}

.p10-top-photo {
  width: 100%;
  height: calc(746 * var(--u));
  border: calc(3 * var(--u)) solid var(--brand-blue);
  object-fit: cover;
  display: block;
}

.p10-top-body {
  padding: calc(75 * var(--u)) calc(64 * var(--u));
}

.p10-card-title {
  font-size: calc(52 * var(--u));
  font-weight: 500;
  color: var(--brand-blue);
  line-height: 1.22;
  margin-bottom: calc(38 * var(--u));
}

.p10-card-desc {
  font-size: calc(31 * var(--u));
  line-height: 1.38;
  color: #1d1d1b;
  margin-bottom: calc(44 * var(--u));
}

.p10-adv-title {
  font-size: calc(31.5 * var(--u));
  font-weight: 500;
  color: #1d1d1b;
  margin-bottom: calc(20 * var(--u));
}

.p10-adv-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: calc(11 * var(--u));
  font-size: calc(29.5 * var(--u));
  color: #1d1d1b;
}

.p10-adv-list li::before {
  content: "▪ ";
  color: #1d1d1b;
}

.p10-bot-card {
  left: calc(168 * var(--u));
  top: calc(2338 * var(--u));
  width: calc(2044 * var(--u));
  height: calc(886 * var(--u));
  background: #F5F4F3;
  display: flex;
}

.p10-bot-photo {
  width: calc(936 * var(--u));
  height: 100%;
  border: calc(3 * var(--u)) solid var(--brand-blue);
  object-fit: cover;
  flex-shrink: 0;
}

.p10-bot-body {
  flex: 1;
  padding: calc(64 * var(--u)) calc(82 * var(--u));
}

/* =========================================================
   PAGE 11: ÖZEL TASARIM ALTERNATİF ÜRÜNLER (10)
   ========================================================= */
.p11-intro {
  left: calc(168 * var(--u));
  top: calc(435 * var(--u));
  width: calc(1980 * var(--u));
  font-size: calc(37 * var(--u));
  line-height: 1.35;
  color: #231F20;
}

.p11-prod-card {
  position: absolute;
  left: calc(168 * var(--u));
  width: calc(2044 * var(--u));
  background: #F5F4F3;
  display: flex;
  align-items: stretch;
}

.p11-prod-card::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: calc(1285 * var(--u));
  height: calc(3.5 * var(--u));
  background: var(--brand-orange);
}

.p11-col-left {
  width: calc(795 * var(--u));
  padding: calc(48 * var(--u)) calc(42 * var(--u)) calc(36 * var(--u)) calc(56 * var(--u));
}

.p11-prod-title {
  font-size: calc(46 * var(--u));
  font-weight: 500;
  color: var(--brand-blue);
  margin-bottom: calc(28 * var(--u));
  white-space: nowrap;
}

.p11-prod-sub {
  font-size: calc(29 * var(--u));
  font-weight: 500;
  color: #231F20;
  margin-bottom: calc(28 * var(--u));
}

.p11-prod-desc {
  font-size: calc(29 * var(--u));
  line-height: 1.32;
  color: #231F20;
}

.p11-col-mid {
  width: calc(630 * var(--u));
  padding-top: calc(140 * var(--u));
  padding-left: calc(18 * var(--u));
}

.p11-feat-list {
  list-style: none;
  font-size: calc(29 * var(--u));
  line-height: 1.38;
  color: #231F20;
}

.p11-prod-img {
  position: absolute;
  top: 0;
  height: 100%;
  object-fit: cover;
}

/* =========================================================
   PAGE 12: BACK COVER / İLETİŞİM
   ========================================================= */
.p12-abkant {
  left: 0;
  top: 0;
  width: calc(1238 * var(--u));
  height: calc(1183 * var(--u));
  object-fit: cover;
}

.p12-orange-v {
  left: calc(1238 * var(--u));
  top: 0;
  width: calc(140 * var(--u));
  height: calc(1013 * var(--u));
  background: var(--brand-orange);
}

.p12-top-gray {
  left: calc(1378 * var(--u));
  top: 0;
  width: calc(1003 * var(--u));
  height: calc(421 * var(--u));
  background: #F5F3F2;
}

.p12-panelhatti {
  left: calc(1378 * var(--u));
  top: calc(421 * var(--u));
  width: calc(1003 * var(--u));
  height: calc(592 * var(--u));
  object-fit: cover;
}

.p12-blue-h {
  left: calc(1238 * var(--u));
  top: calc(1013 * var(--u));
  width: calc(1143 * var(--u));
  height: calc(162 * var(--u));
  background: var(--brand-blue);
}

.p12-orange-h {
  left: 0;
  top: calc(1183 * var(--u));
  width: calc(1098 * var(--u));
  height: calc(145 * var(--u));
  background: var(--brand-orange);
}

.p12-blue-v {
  left: calc(1098 * var(--u));
  top: calc(1175 * var(--u));
  width: calc(140 * var(--u));
  height: calc(831 * var(--u));
  background: var(--brand-blue);
}

.p12-lazer {
  left: calc(1238 * var(--u));
  top: calc(1175 * var(--u));
  width: calc(1143 * var(--u));
  height: calc(831 * var(--u));
  object-fit: cover;
}

.p12-gray-left {
  left: 0;
  top: calc(1328 * var(--u));
  width: calc(1098 * var(--u));
  height: calc(1312 * var(--u));
  background: #F5F3F2;
}

.p12-gray-bot {
  left: 0;
  top: calc(2006 * var(--u));
  width: 100%;
  height: calc(634 * var(--u));
  background: #F5F3F2;
}

.p12-logo {
  left: calc(168 * var(--u));
  top: calc(1975 * var(--u));
  width: calc(865 * var(--u));
  height: calc(272 * var(--u));
  object-fit: contain;
  z-index: 2;
}

.p12-web-row {
  left: calc(168 * var(--u));
  top: calc(2730 * var(--u));
  display: flex;
  align-items: center;
  gap: calc(36 * var(--u));
}

.p12-web-icon {
  width: calc(84 * var(--u));
  height: calc(84 * var(--u));
  border-radius: 50%;
  background: var(--brand-blue-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.p12-web-icon svg {
  width: calc(52 * var(--u));
  height: calc(52 * var(--u));
}

.p12-web-link {
  font-size: calc(40 * var(--u));
  color: #231F20;
  text-decoration: none;
}

.p12-web-link:hover {
  color: var(--brand-blue);
}

.p12-footer {
  left: 0;
  top: calc(2875 * var(--u));
  width: 100%;
  height: calc(492 * var(--u));
  background: var(--brand-blue-dark);
  color: #fff;
}

.p12-contact-item {
  position: absolute;
  display: flex;
  align-items: center;
  gap: calc(34 * var(--u));
  color: #fff;
  text-decoration: none;
  font-size: calc(40 * var(--u));
  line-height: 1.32;
}

.p12-contact-icon {
  width: calc(84 * var(--u));
  height: calc(84 * var(--u));
  border-radius: 50%;
  background: var(--brand-orange);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--brand-blue-dark);
}

.p12-contact-icon svg {
  width: calc(46 * var(--u));
  height: calc(46 * var(--u));
}

/* =========================================================
   LIGHTBOX / MODAL FOR IMAGES & SHELF CELLS
   ========================================================= */
.catalog-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(12, 15, 20, 0.88);
  backdrop-filter: blur(6px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

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

.modal-card {
  background: #fff;
  border-radius: 12px;
  max-width: 900px;
  width: 100%;
  max-height: 90vh;
  overflow: auto;
  padding: 24px;
  position: relative;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
}

.modal-close {
  position: absolute;
  right: 16px;
  top: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: #f3f4f6;
  color: #1f2937;
  font-size: 20px;
  cursor: pointer;
}

.modal-close:hover {
  background: var(--brand-orange);
  color: #fff;
}

.modal-img-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  background: #f9fafb;
  border-radius: 8px;
  padding: 16px;
  margin-top: 12px;
}

.modal-img-wrap img {
  max-width: 100%;
  max-height: 68vh;
  object-fit: contain;
}

.modal-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--brand-blue);
}

.modal-sub {
  font-size: 14px;
  color: #4b5563;
  margin-top: 4px;
}

.modal-card.modal-wide {
  max-width: 1180px;
}

.modal-table-container {
  margin-top: 16px;
}

.modal-table-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid #e5e7eb;
}

.modal-table-tabs {
  display: flex;
  gap: 8px;
}

.modal-tab-btn {
  padding: 7px 14px;
  border-radius: 6px;
  border: 1px solid #d1d5db;
  background: #f9fafb;
  color: #374151;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.modal-tab-btn:hover {
  border-color: var(--brand-blue);
  color: var(--brand-blue);
}

.modal-tab-btn.active {
  background: var(--brand-blue);
  border-color: var(--brand-blue);
  color: #fff;
}

.modal-table-filter {
  padding: 7px 12px;
  border-radius: 6px;
  border: 1px solid #d1d5db;
  font-size: 13.5px;
  min-width: 240px;
  outline: none;
}

.modal-table-filter:focus {
  border-color: var(--brand-orange);
  box-shadow: 0 0 0 2px rgba(244, 138, 32, 0.2);
}

.modal-perf-section {
  margin-bottom: 22px;
}

.modal-perf-section:last-child {
  margin-bottom: 6px;
}

.modal-perf-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  font-weight: 600;
  color: #1f2937;
  background: #f3f4f6;
  padding: 8px 14px;
  border-radius: 8px 8px 0 0;
  border: 1px solid #d1d5db;
  border-bottom: none;
}

.modal-perf-meta .series-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--brand-blue-dark);
  font-weight: 700;
  font-size: 15px;
}

.modal-perf-wrap {
  display: flex;
  border: 1px solid #cbd5e1;
  border-radius: 0 0 8px 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.modal-perf-side {
  width: 44px;
  background: var(--brand-blue-dark);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-family: 'Barlow Condensed', 'Bahnschrift Condensed', sans-serif;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 1.5px;
  flex-shrink: 0;
}

.modal-perf-table {
  width: 100%;
  border-collapse: collapse;
  font-family: 'Barlow', 'Segoe UI', sans-serif;
  font-size: 14.5px;
  text-align: center;
}

.modal-perf-table thead th {
  background: var(--brand-blue-dark);
  color: #fff;
  font-weight: 600;
  padding: 8px 10px;
  border-right: 1px solid rgba(255, 255, 255, 0.22);
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
}

.modal-perf-table tbody tr:nth-child(odd) {
  background: #f8fafc;
}

.modal-perf-table tbody tr:nth-child(even) {
  background: #ffffff;
}

.modal-perf-table tbody tr:hover {
  background: #fef3c7 !important;
}

.modal-perf-table td {
  padding: 9px 10px;
  border-right: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
  color: #1e293b;
  font-variant-numeric: tabular-nums;
}

.modal-perf-table td.align-left,
.modal-perf-table th.align-left {
  text-align: left;
  padding-left: 14px;
  font-weight: 600;
  color: var(--brand-blue-dark);
  white-space: nowrap;
}

.modal-perf-table th.align-left {
  color: #fff;
}

.modal-perf-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 10px;
  padding: 10px 14px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  font-size: 13px;
  color: #475569;
}

.modal-perf-legend strong {
  color: var(--brand-blue-dark);
}

/* =========================================================
   PRINT MEDIA (EXACT A4 12-PAGE OUTPUT - ZERO LOSS)
   ========================================================= */
@media print {
  @page {
    size: 210mm 297mm;
    margin: 0 !important;
  }
  *, *::before, *::after {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
    color-adjust: exact !important;
  }
  html, body {
    width: 210mm !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #FFFFFF !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }
  .app-toolbar,
  .spread-nav,
  .catalog-modal,
  .p8-zoom-table-btn {
    display: none !important;
  }
  .catalog-stage {
    padding: 0 !important;
    margin: 0 !important;
    gap: 0 !important;
    display: block !important;
    width: 210mm !important;
  }
  .catalog-page {
    --page-w: 210mm !important;
    --u: calc(210mm / 2381) !important;
    width: 210mm !important;
    height: 297mm !important;
    margin: 0 !important;
    box-shadow: none !important;
    page-break-after: always !important;
    break-after: page !important;
    page-break-inside: avoid !important;
    break-inside: avoid !important;
    display: block !important;
    overflow: hidden !important;
  }
  .catalog-page:last-of-type {
    page-break-after: auto !important;
    break-after: auto !important;
  }
  /* Ensure 100% print fidelity of all backgrounds, fonts, shadows, and colors via 300 DPI page layer */
  .page-ref-overlay {
    opacity: 1 !important;
    z-index: 200 !important;
    display: block !important;
  }
}
