:root {
  --ink: #1f2329;
  --muted: #6b7280;
  --line: #e2e5e9;
  --panel: #ffffff;
  --stage: #dfe2e6;
  --stage-2: #eceef1;
  --accent: #c1272d;
  --accent-soft: #fbeaea;
  --header-h: 60px;
  --bar-h: 56px;
  --drawer-w: 340px;
  --shadow: 0 18px 50px rgba(20, 26, 34, .22), 0 2px 8px rgba(20, 26, 34, .12);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color: var(--ink);
  background: var(--stage);
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
.ico { width: 20px; height: 20px; flex: 0 0 auto; display: block; }

/* ---------- İskelet ---------- */
.viewer {
  position: fixed;
  inset: 0;
  display: grid;
  grid-template-rows: var(--header-h) minmax(0, 1fr) auto var(--bar-h);
  grid-template-columns: minmax(0, 1fr);
  padding-bottom: env(safe-area-inset-bottom);
  background: var(--panel);
}

/* ---------- Üst bar ---------- */
.vw-header {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 0 16px 0 20px;
  border-bottom: 1px solid var(--line);
  background: var(--panel);
  z-index: 30;
}
.vw-logo img { display: block; height: 36px; width: auto; }
.vw-title {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-left: 18px;
  border-left: 1px solid var(--line);
}
.vw-title strong { font-size: 14px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vw-title span { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vw-search {
  display: flex;
  align-items: center;
  gap: 8px;
  width: min(300px, 28vw);
  height: 38px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #f6f7f9;
  color: var(--muted);
  transition: border-color .15s, background .15s;
}
.vw-search:focus-within { border-color: var(--accent); background: #fff; }
.vw-search .ico { width: 18px; height: 18px; }
.vw-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-size: 14px; color: var(--ink); }
.vw-actions { display: flex; align-items: center; gap: 4px; }
.hbtn, .bbtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
  min-width: 40px;
  padding: 0 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  transition: background .15s, color .15s;
}
.hbtn:hover, .bbtn:hover:not(:disabled) { background: #f0f2f4; }
.hbtn:focus-visible, .bbtn:focus-visible, .nav-arrow:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.bbtn:disabled { opacity: .3; cursor: default; }
.bbtn[aria-pressed="true"] { background: var(--accent-soft); color: var(--accent); }
.hbtn[data-action="quote"] { background: var(--accent); color: #fff; padding: 0 14px; margin-right: 6px; }
.hbtn[data-action="quote"]:hover { background: #a51f25; }
.only-mobile { display: none !important; }

/* ---------- Gövde: panel + sahne ---------- */
.vw-header { grid-row: 1; }
.vw-body { grid-row: 2; }
.filmstrip { grid-row: 3; }
.vw-bar { grid-row: 4; }
.vw-body { position: relative; display: flex; min-height: 0; overflow: hidden; }
.stage {
  position: relative;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  background: radial-gradient(ellipse at 50% 45%, var(--stage-2) 0%, var(--stage) 70%);
}
.book-area {
  position: absolute;
  inset: 28px 84px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.book-area.is-hidden { visibility: hidden; }
.book { margin: 0 auto; filter: drop-shadow(0 16px 30px rgba(20, 26, 34, .2)); }
.viewer:not(.ready) .book { opacity: 0; }
.book { transition: opacity .35s; }

.page { background: #fff; overflow: hidden; }
.page .page-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
  opacity: 0;
  transition: opacity .25s;
  user-select: none;
  -webkit-user-drag: none;
}
.page.ready .page-img { opacity: 1; }
.page-ph {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #c9cdd3;
  font-size: 28px;
  font-weight: 600;
}
.page.ready .page-ph { display: none; }
/* Cilt kenarı gölgesi */
.page::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 7%;
  pointer-events: none;
}
.page.--left::after { right: 0; background: linear-gradient(to left, rgba(0, 0, 0, .14), rgba(0, 0, 0, 0)); }
.page.--right::after { left: 0; background: linear-gradient(to right, rgba(0, 0, 0, .12), rgba(0, 0, 0, 0)); }
.--portrait .page::after { display: none; }

.page-ov { position: absolute; inset: 0; pointer-events: none; }
.hotspot {
  position: absolute;
  left: 4%;
  right: 4%;
  border-radius: 4px;
  pointer-events: auto;
  cursor: pointer;
  transition: background .15s, box-shadow .15s;
}
.hotspot:hover, .hotspot:focus-visible { background: rgba(193, 39, 45, .07); box-shadow: inset 0 0 0 2px rgba(193, 39, 45, .55); outline: 0; }
.hl {
  position: absolute;
  background: rgba(255, 200, 0, .45);
  mix-blend-mode: multiply;
  border-radius: 2px;
}

/* Kenar okları */
.nav-arrow {
  position: absolute;
  top: 50%;
  z-index: 6;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-top: -26px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .92);
  color: var(--ink);
  box-shadow: 0 4px 16px rgba(20, 26, 34, .16);
  transition: background .15s, color .15s, opacity .2s, transform .15s;
}
.nav-arrow .ico { width: 26px; height: 26px; }
.nav-arrow:hover:not(:disabled) { background: var(--accent); color: #fff; transform: scale(1.05); }
.nav-arrow:disabled { opacity: 0; pointer-events: none; }
.nav-arrow.prev { left: 18px; }
.nav-arrow.next { right: 18px; }

/* Yakınlaştırma katmanı */
.zoom-layer {
  position: absolute;
  inset: 0;
  z-index: 4;
  overflow: hidden;
  cursor: grab;
  touch-action: none;
  user-select: none;
}
.zoom-layer.dragging { cursor: grabbing; }
.zoom-layer.loading::after {
  content: "Yüksek kalite yükleniyor…";
  position: absolute;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(31, 35, 41, .82);
  color: #fff;
  font-size: 12px;
  pointer-events: none;
}
.zoom-content { position: absolute; display: flex; transform-origin: 0 0; box-shadow: var(--shadow); will-change: transform; }
.zoom-page { position: relative; flex: 1; background: #fff; }
.zoom-page img { display: block; width: 100%; height: 100%; -webkit-user-drag: none; pointer-events: none; }

/* Yükleme */
.loader {
  position: absolute;
  inset: 0;
  z-index: 8;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  background: var(--stage-2);
  color: var(--muted);
  font-size: 13px;
  transition: opacity .4s, visibility .4s;
}
.loader img { width: 140px; height: auto; opacity: .9; }
.loader-bar { width: 200px; height: 3px; border-radius: 3px; background: #d4d8dd; overflow: hidden; }
.loader-bar i { display: block; width: 0; height: 100%; background: var(--accent); transition: width .2s; }
.loader.done { opacity: 0; visibility: hidden; }
.loader.error .loader-bar { display: none; }
.notice { margin: 60px auto; max-width: 560px; padding: 22px; background: #fff8d9; border: 1px solid #efdfa1; border-radius: 8px; font-size: 14px; line-height: 1.7; }

/* ---------- Sol panel ---------- */
.drawer {
  flex: 0 0 var(--drawer-w);
  width: var(--drawer-w);
  margin-left: calc(var(--drawer-w) * -1);
  display: flex;
  flex-direction: column;
  min-height: 0;
  background: var(--panel);
  border-right: 1px solid var(--line);
  transition: margin-left .28s ease;
  z-index: 10;
}
.drawer-open .drawer { margin-left: 0; }
.drawer-tabs { display: flex; align-items: center; gap: 2px; padding: 8px 8px 0; border-bottom: 1px solid var(--line); }
.drawer-tab {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 8px 8px 0 0;
  background: none;
  color: var(--muted);
  transition: color .15s, background .15s;
}
.drawer-tab:hover { color: var(--ink); background: #f4f5f7; }
.drawer-tab[aria-selected="true"] { color: var(--accent); border-bottom-color: var(--accent); }
.drawer-tab:focus-visible, .drawer-close:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.drawer-close { margin-left: auto; width: 36px; height: 36px; display: grid; place-items: center; border: 0; border-radius: 8px; background: none; color: var(--muted); }
.drawer-close:hover { background: #f0f2f4; color: var(--ink); }
.drawer-title { margin: 0; padding: 14px 20px 4px; font-size: 16px; font-weight: 700; }
.drawer-pane { flex: 1; min-height: 0; overflow-y: auto; padding: 12px 12px 24px; overscroll-behavior: contain; }

.toc-cover {
  display: flex;
  justify-content: space-between;
  width: 100%;
  padding: 10px 12px;
  border: 0;
  border-radius: 8px;
  background: none;
  font-size: 14px;
  font-weight: 600;
  text-align: left;
}
.toc-group h3 {
  margin: 18px 12px 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent);
}
.toc-item {
  display: grid;
  grid-template-columns: 76px 1fr auto;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 8px 12px;
  border: 0;
  border-radius: 8px;
  background: none;
  text-align: left;
}
.toc-item:hover, .toc-cover:hover { background: #f4f5f7; }
.toc-item.active, .toc-cover.active { background: var(--accent-soft); }
.toc-logo { display: grid; place-items: center; height: 34px; }
.toc-logo img { max-width: 76px; max-height: 30px; object-fit: contain; }
.toc-text { font-size: 13px; line-height: 1.35; }
.toc-text em { display: block; font-style: normal; font-weight: 700; font-size: 13px; }
.toc-item b, .toc-cover b { font-size: 12px; font-weight: 600; color: var(--muted); }

.drawer-search {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
}
.drawer-search:focus-within { border-color: var(--accent); }
.drawer-search input { flex: 1; min-width: 0; border: 0; outline: 0; font-size: 15px; color: var(--ink); background: none; }
.search-status { padding: 12px 4px 4px; font-size: 13px; color: var(--muted); }
.search-results h4 { margin: 16px 4px 6px; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.result {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
  padding: 10px 8px;
  border: 0;
  border-radius: 8px;
  background: none;
  text-align: left;
}
.result:hover { background: #f4f5f7; }
.result-page {
  flex: 0 0 auto;
  min-width: 34px;
  padding: 3px 6px;
  border-radius: 6px;
  background: #eef0f3;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
}
.result-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.result-body strong { font-size: 13px; font-weight: 600; line-height: 1.35; }
.result-body small { font-size: 12px; line-height: 1.5; color: var(--muted); overflow-wrap: anywhere; }
.result-body mark { background: #ffe38a; color: var(--ink); border-radius: 2px; padding: 0 1px; }
.result-count { flex: 0 0 auto; font-size: 11px; color: var(--muted); padding-top: 4px; }

/* Yazdır paneli */
.print-lead { margin: 4px 4px 16px; font-size: 13px; line-height: 1.55; color: var(--muted); }
.print-options { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 10px; }
.print-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 14px 6px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  transition: border-color .15s, background .15s, color .15s;
}
.print-option svg { width: 36px; height: 36px; color: var(--ink); }
.print-option span { font-size: 13px; font-weight: 600; }
.print-option b { font-size: 11px; font-weight: 500; color: var(--muted); }
.print-option:hover:not(:disabled) { border-color: var(--accent); background: var(--accent-soft); }
.print-option:hover:not(:disabled) svg { color: var(--accent); }
.print-option:disabled { opacity: .35; cursor: default; }
.print-status { margin: 16px 4px 0; font-size: 13px; line-height: 1.5; color: var(--ink); }
.print-status:empty { display: none; }

/* Ortak panel öğeleri */
.pane-button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  height: 44px;
  padding: 0 14px;
  border: 1px dashed #c9ced5;
  border-radius: 10px;
  background: none;
  font-size: 14px;
  font-weight: 600;
  text-align: left;
}
.pane-button:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.pane-empty { margin: 16px 4px; font-size: 13px; line-height: 1.55; color: var(--muted); }
.text-button { justify-self: start; padding: 6px 0; border: 0; background: none; color: var(--accent); font-size: 13px; font-weight: 600; }
.text-button:hover { text-decoration: underline; }

/* Yer imleri */
.bookmark-list { display: grid; gap: 4px; margin-top: 12px; }
.bookmark { display: flex; align-items: center; gap: 4px; border-radius: 10px; }
.bookmark:hover { background: #f4f5f7; }
.bookmark.active { background: var(--accent-soft); }
.bookmark-open { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; padding: 8px; border: 0; background: none; text-align: left; }
.bookmark-thumb { flex: 0 0 44px; width: 44px; background: #fff; box-shadow: 0 1px 3px rgba(20, 26, 34, .2); }
.bookmark-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.bookmark-thumb img:not([src]) { visibility: hidden; }
.bookmark-text { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.bookmark-text b { font-size: 13px; }
.bookmark-text span { font-size: 12px; line-height: 1.4; color: var(--muted); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.bookmark-remove { flex: 0 0 auto; width: 32px; height: 32px; margin-right: 6px; display: grid; place-items: center; border: 0; border-radius: 8px; background: none; color: var(--muted); }
.bookmark-remove .ico { width: 16px; height: 16px; }
.bookmark-remove:hover { background: #e7e9ec; color: var(--ink); }
.bookmark-btn[aria-pressed="true"] { color: var(--accent); }
.bar-sep { margin-right: 6px; }

/* Ayarlar */
.settings { display: grid; gap: 6px; }
.setting { margin: 0 0 10px; padding: 0; border: 0; display: grid; gap: 8px; }
.setting legend { padding: 0; margin-bottom: 8px; font-size: 14px; font-weight: 600; }
.setting small, .switch-row small { font-size: 12px; line-height: 1.45; color: var(--muted); }
.segmented { display: grid; grid-template-columns: repeat(3, 1fr); padding: 3px; border-radius: 10px; background: #eef0f3; }
.segmented label { position: relative; }
.segmented input { position: absolute; opacity: 0; pointer-events: none; }
.segmented span { display: block; padding: 8px 4px; border-radius: 8px; font-size: 13px; font-weight: 600; text-align: center; color: var(--muted); cursor: pointer; transition: background .15s, color .15s; }
.segmented input:checked + span { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(20, 26, 34, .15); }
.segmented input:focus-visible + span { outline: 2px solid var(--accent); }
.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 0; border-top: 1px solid var(--line); cursor: pointer; }
.switch-row > span { display: flex; flex-direction: column; gap: 3px; }
.switch-row strong { font-size: 14px; font-weight: 600; }
.switch {
  appearance: none;
  flex: 0 0 auto;
  position: relative;
  width: 40px;
  height: 24px;
  margin: 0;
  border-radius: 999px;
  background: #cfd3d9;
  cursor: pointer;
  transition: background .2s;
}
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .25); transition: transform .2s; }
.switch:checked { background: var(--accent); }
.switch:checked::after { transform: translateX(16px); }
.switch:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.settings .text-button { margin-top: 6px; }

/* Bilgi */
.info-card { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 20px 12px; margin-bottom: 8px; border-radius: 12px; background: #f6f7f9; text-align: center; }
.info-card img { width: 120px; height: auto; margin-bottom: 8px; }
.info-card strong { font-size: 15px; }
.info-card span { font-size: 12px; color: var(--muted); }
.info-list { margin: 0; display: grid; }
.info-list > div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 10px 4px; border-bottom: 1px solid var(--line); font-size: 13px; }
.info-list dt { color: var(--muted); white-space: nowrap; }
.info-list dd { margin: 0; font-weight: 600; text-align: right; overflow-wrap: anywhere; }
.info-list a { color: var(--accent); }
.info-list.keys dd { font-weight: 400; }
.info-heading { margin: 22px 4px 6px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
kbd { display: inline-block; min-width: 24px; padding: 2px 6px; border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 6px; background: #fff; font: 600 12px/1.4 inherit; text-align: center; color: var(--ink); }
.info-tips { margin: 0; padding: 0 4px 0 20px; display: grid; gap: 8px; font-size: 13px; line-height: 1.5; color: var(--ink); }

/* ---------- Sayfa şeridi ---------- */
.filmstrip { border-top: 1px solid var(--line); background: #f6f7f9; }
.filmstrip-track { display: flex; gap: 10px; padding: 12px 16px 8px; overflow-x: auto; scrollbar-width: thin; }
.thumb, .ov-thumb {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 0;
  border: 0;
  background: none;
}
.thumb { width: 58px; }
.thumb-img {
  display: block;
  width: 100%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(20, 26, 34, .18);
  outline: 2px solid transparent;
  outline-offset: 2px;
  transition: outline-color .15s, transform .15s;
}
.thumb-img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.thumb-img img:not([src]) { visibility: hidden; }
.thumb:hover .thumb-img, .ov-thumb:hover .thumb-img { transform: translateY(-2px); }
.thumb.active .thumb-img, .ov-thumb.active .thumb-img { outline-color: var(--accent); }
.thumb-num { font-size: 11px; color: var(--muted); }
.active .thumb-num { color: var(--accent); font-weight: 700; }

/* ---------- Genel bakış ---------- */
.overview {
  position: absolute;
  top: var(--header-h);
  left: 0;
  right: 0;
  bottom: var(--bar-h);
  z-index: 20;
  display: flex;
  flex-direction: column;
  background: rgba(244, 245, 247, .98);
  backdrop-filter: blur(6px);
}
.overview-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px 12px 24px; border-bottom: 1px solid var(--line); font-size: 15px; }
.overview-grid {
  flex: 1;
  overflow-y: auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(112px, 1fr));
  gap: 24px 18px;
  padding: 24px;
  align-content: start;
}
.ov-thumb { width: 100%; }
.ov-thumb .thumb-num { font-size: 12px; }

/* ---------- Alt bar ---------- */
.vw-bar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  border-top: 1px solid var(--line);
  background: var(--panel);
  z-index: 30;
}
.bar-group { display: flex; align-items: center; gap: 2px; }
.bar-right { justify-self: end; }
.page-box { display: flex; align-items: center; gap: 6px; margin: 0 6px; font-size: 13px; color: var(--muted); }
.page-box input {
  width: 76px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  outline: 0;
}
.page-box input:focus { border-color: var(--accent); }
.page-box b { font-weight: 600; color: var(--ink); }
.page-box span { white-space: nowrap; }
.zoom-value { min-width: 46px; text-align: center; font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }

/* ---------- Bildirim ---------- */
.toast {
  position: absolute;
  left: 50%;
  bottom: calc(var(--bar-h) + 18px);
  z-index: 40;
  padding: 10px 16px;
  border-radius: 8px;
  background: #1f2329;
  color: #fff;
  font-size: 13px;
  opacity: 0;
  transform: translate(-50%, 8px);
  transition: opacity .2s, transform .2s;
  pointer-events: none;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Teklif formu ---------- */
.modal { display: none; position: fixed; inset: 0; z-index: 50; align-items: center; justify-content: center; padding: 16px; }
.modal.open { display: flex; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(15, 20, 26, .55); }
.modal-card { position: relative; width: min(560px, 100%); max-height: 92vh; overflow: auto; padding: 28px; border-radius: 12px; background: #fff; box-shadow: var(--shadow); }
.modal-close { position: absolute; right: 12px; top: 12px; width: 36px; height: 36px; display: grid; place-items: center; border: 0; border-radius: 8px; background: none; color: var(--muted); }
.modal-close:hover { background: #f0f2f4; }
.eyebrow { margin: 0 0 8px; font-size: 11px; font-weight: 700; letter-spacing: .12em; color: var(--accent); }
.modal-card h2 { margin: 0 0 6px; font-size: 22px; }
.muted { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.6; }
.modal-card form { display: grid; gap: 12px; margin-top: 20px; }
.modal-card label { display: grid; gap: 6px; font-size: 12px; font-weight: 600; color: #4b5563; }
.modal-card input, .modal-card textarea { padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; font-size: 14px; outline: 0; }
.modal-card input:focus, .modal-card textarea:focus { border-color: var(--accent); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.submit-button { height: 44px; border: 0; border-radius: 8px; background: var(--accent); color: #fff; font-size: 14px; font-weight: 600; }
.submit-button:hover { background: #a51f25; }

/* ---------- Tablet / mobil ---------- */
@media (max-width: 1100px) {
  .hbtn[data-action="quote"] span { display: none; }
  .hbtn[data-action="quote"] { padding: 0 10px; }
}
@media (max-width: 900px) {
  .drawer {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: min(88vw, var(--drawer-w));
    margin-left: 0;
    transform: translateX(-102%);
    transition: transform .28s ease;
    box-shadow: var(--shadow);
  }
  .drawer-open .drawer { transform: none; }
  .book-area { inset: 20px 64px; }
}
@media (max-width: 700px) {
  :root { --header-h: 54px; --bar-h: 54px; }
  .vw-header { gap: 8px; padding: 0 6px 0 12px; }
  .vw-logo img { height: 28px; }
  .vw-title { padding-left: 10px; }
  .vw-title strong { font-size: 13px; }
  .vw-title span { font-size: 11px; }
  .vw-search { display: none; }
  .only-mobile { display: inline-flex !important; }
  .vw-actions { gap: 0; }
  .vw-actions .hbtn { padding: 0 8px; }
  .hbtn[data-action="quote"] { margin-right: 2px; }
  .hide-mobile { display: none !important; }
  .bbtn span { display: none; }
  .vw-bar { padding: 0 4px; gap: 2px; }
  .page-box { margin: 0 2px; }
  .page-box input { width: 62px; }
  .zoom-value { display: none; }
  .bbtn[data-action="zoom-in"], .bbtn[data-action="zoom-out"] { display: none; }
  .bar-sep { margin-right: 0; }
  .book-area { inset: 12px 10px; }
  .nav-arrow { width: 40px; height: 40px; margin-top: -20px; background: rgba(255, 255, 255, .8); }
  .nav-arrow .ico { width: 22px; height: 22px; }
  .nav-arrow.prev { left: 6px; }
  .nav-arrow.next { right: 6px; }
  .overview-grid { grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 16px 12px; padding: 16px; }
  .form-grid { grid-template-columns: 1fr; }
  .modal-card { padding: 22px 18px; }
}
@media (max-width: 380px) {
  .vw-title { display: none; }
  .vw-header { justify-content: space-between; }
}
