/* ============================================================
   e-Dergi okuyucu — ortak stil katmanı
   Tema değişkenleri her sitenin index.html'inde :root ile ezilir
   ============================================================ */

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

:root {
  --ink: #06121d;
  --bg0: #03090f;
  --bg1: #0b1b2b;
  --accent: #18b6e8;
  --accent2: #ffb020;
  --glow: 56,189,248;

  --fg: #eef4fa;
  --fg-dim: rgba(238,244,250,.62);
  --fg-mute: rgba(238,244,250,.38);
  --line: rgba(255,255,255,.10);
  --line-str: rgba(255,255,255,.18);
  --glass: rgba(12,20,30,.62);
  --glass-hi: rgba(255,255,255,.07);

  --amb1: #1b4f72;
  --amb2: #0b1b2b;

  --font-ui: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-dis: 'Fraunces', 'Inter', serif;

  --bar-h: 58px;
  --dock-h: 74px;
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 22px;

  --ease: cubic-bezier(.22,.61,.36,1);
  --ease-out: cubic-bezier(.16,1,.3,1);
  --ease-in-out: cubic-bezier(.65,0,.35,1);
}

html, body {
  height: 100%;
  margin: 0;
  background: var(--bg0);
  color: var(--fg);
  font-family: var(--font-ui);
  font-feature-settings: 'ss01','cv05';
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overscroll-behavior: none;
}
body { overflow: hidden; }
body.is-scrollable { overflow: auto; }

img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* ---------- ortam ışığı / zemin ---------- */
#ambient {
  position: fixed; inset: -12%;
  z-index: 0; pointer-events: none;
  background:
    radial-gradient(54% 44% at 50% 44%, rgba(var(--ambRGB, 56,189,248), .17), transparent 68%),
    radial-gradient(78% 52% at 50% 108%, var(--amb2), transparent 72%),
    radial-gradient(40% 38% at 8% 10%, var(--amb1), transparent 74%),
    linear-gradient(170deg, var(--bg1), var(--bg0) 66%);
  filter: saturate(1.08);
  transition: background 1100ms var(--ease);
  will-change: background;
}
#grain {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  opacity: .34; mix-blend-mode: overlay;
  background-image: var(--grain-url);
  background-size: 180px 180px;
}
#vignette {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(76% 68% at 50% 46%, transparent 42%, rgba(0,0,0,.52) 100%);
}

/* ---------- uygulama kabuğu ---------- */
#app {
  position: relative; z-index: 2;
  height: 100dvh;
  display: grid;
  grid-template-rows: var(--bar-h) 1fr var(--dock-h);
  grid-template-columns: minmax(0, 1fr);   /* sahne kitabı büyütmesin */
  overflow: hidden;
}
#app.immersive #bar,
#app.immersive #dock { opacity: 0; pointer-events: none; transform: translateY(var(--hide-y, -8px)); }
#app.immersive #dock { --hide-y: 8px; }

/* ---------- üst bar ---------- */
#bar {
  display: flex; align-items: center; gap: 14px;
  padding: 0 clamp(12px, 2vw, 22px);
  background: linear-gradient(180deg, rgba(3,9,15,.80), rgba(3,9,15,0));
  backdrop-filter: blur(14px) saturate(1.3);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  transition: opacity .35s var(--ease), transform .35s var(--ease);
  z-index: 40;
}
.brand { display: flex; align-items: center; gap: 11px; min-width: 0; text-decoration: none; }
.brand-mark {
  width: 34px; height: 34px; flex: none; border-radius: 9px;
  display: grid; place-items: center;
  background: linear-gradient(145deg, var(--accent), var(--accent2));
  color: #04121c; font-weight: 800; font-size: 15px; letter-spacing: -.4px;
  box-shadow: 0 4px 18px rgba(var(--glow), .35);
}
.brand-txt { min-width: 0; line-height: 1.12; }
.brand-txt b {
  display: block; font-family: var(--font-dis);
  font-size: 15.5px; font-weight: 600; letter-spacing: .1px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.brand-txt span { display: block; font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--fg-mute); }

.bar-chapter {
  margin-inline: auto;
  display: flex; align-items: center; gap: 9px;
  padding: 6px 15px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--glass-hi);
  font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--fg-dim); white-space: nowrap;
  transition: opacity .3s var(--ease);
}
.bar-chapter i { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); font-style: normal; }
.bar-tools { display: flex; align-items: center; gap: 5px; margin-left: auto; }

/* ---------- ikon düğmeleri ---------- */
.ib {
  position: relative;
  width: 40px; height: 40px; border-radius: 11px;
  display: grid; place-items: center;
  color: var(--fg-dim);
  transition: background .2s var(--ease), color .2s var(--ease), transform .18s var(--ease-out);
}
.ib svg { width: 19px; height: 19px; stroke-width: 1.7; }
.ib:hover { background: var(--glass-hi); color: var(--fg); }
.ib:active { transform: scale(.93); }
.ib.on { color: var(--accent); background: rgba(var(--glow), .14); }
.ib[data-tip]::after {
  content: attr(data-tip);
  position: absolute; top: calc(100% + 9px); left: 50%;
  transform: translate(-50%, 4px);
  padding: 5px 9px; border-radius: 7px; white-space: nowrap;
  background: rgba(8,14,22,.94); border: 1px solid var(--line);
  font-size: 11.5px; color: var(--fg-dim);
  opacity: 0; pointer-events: none;
  transition: opacity .18s var(--ease), transform .18s var(--ease);
}
.ib[data-tip]:hover::after { opacity: 1; transform: translate(-50%, 0); }
#dock .ib[data-tip]::after { top: auto; bottom: calc(100% + 9px); }

/* ---------- sahne ---------- */
#stage {
  position: relative;
  display: grid; place-items: center;
  min-height: 0; min-width: 0; overflow: hidden;
  padding: clamp(6px, 1.6vh, 20px) clamp(8px, 3vw, 54px);
}
#bookWrap {
  position: relative;
  display: grid; place-items: center;
  width: 100%; height: 100%;
  perspective: 2600px;
}
#bookShift {
  position: relative;
  transition: transform .62s var(--ease-out);
  will-change: transform;
}
#book {
  position: relative;
  transform-origin: 50% 50%;
  will-change: transform;
}

/* kitabın altındaki gölge */
#bookShadow {
  position: absolute; height: 54px;
  transform: translate(-50%, 0);
  background: radial-gradient(50% 50% at 50% 50%, rgba(0,0,0,.70), transparent 74%);
  filter: blur(16px);
  pointer-events: none; z-index: -1;
  transition: left .5s var(--ease), width .5s var(--ease);
}
/* sayfa yığını kalınlığı (JS konumlandırır) */
.stack {
  position: absolute; width: 0;
  pointer-events: none; opacity: 0;
  transition: left .5s var(--ease), width .5s var(--ease), opacity .4s var(--ease);
}
.stack.l {
  background: repeating-linear-gradient(90deg, rgba(246,244,238,.62) 0 1px, rgba(118,126,140,.34) 1px 2px);
  border-radius: 2px 0 0 2px;
  box-shadow: inset 2px 0 7px rgba(0,0,0,.42), -3px 3px 12px rgba(0,0,0,.42);
}
.stack.r {
  background: repeating-linear-gradient(90deg, rgba(118,126,140,.34) 0 1px, rgba(246,244,238,.62) 1px 2px);
  border-radius: 0 2px 2px 0;
  box-shadow: inset -2px 0 7px rgba(0,0,0,.42), 3px 3px 12px rgba(0,0,0,.42);
}

/* ---------- StPageFlip taban (vendor) ---------- */
.stf__parent { position: relative; display: block; box-sizing: border-box; transform: translateZ(0); touch-action: pan-y; }
.stf__wrapper { position: relative; width: 100%; height: 100%; box-sizing: border-box; }
.stf__parent canvas { position: absolute; width: 100%; height: 100%; left: 0; top: 0; }
.stf__block { position: absolute; width: 100%; height: 100%; box-sizing: border-box; perspective: 2600px; }
.stf__item { display: none; position: absolute; transform-style: preserve-3d; }
.stf__outerShadow, .stf__innerShadow, .stf__hardShadow, .stf__hardInnerShadow { position: absolute; left: 0; top: 0; }

/* ---------- sayfalar ---------- */
#book .pg-item { display: none; }
.stf__item { background: #0d1117; border-radius: 1px; }
.stf__item.--hard { background: #0d1117; }
.page {
  position: relative;
  width: 100%; height: 100%;
  overflow: hidden;
  background-size: cover; background-position: center;
  background-color: #111820;
  isolation: isolate;
}
.page img.pg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity .45s var(--ease);
}
.page img.pg.ready { opacity: 1; }
.page .sheen {
  position: absolute; inset: 0; pointer-events: none; z-index: 3;
  background: linear-gradient(107deg, rgba(255,255,255,.10) 0%, rgba(255,255,255,0) 26%, rgba(255,255,255,0) 72%, rgba(255,255,255,.055) 100%);
  mix-blend-mode: soft-light;
  /* koyu sayfalarda kağıt kenarının zeminden ayrılması için ince kenar ışığı */
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.07);
}
.page .gutter {
  position: absolute; top: 0; bottom: 0; width: 13%;
  pointer-events: none; z-index: 2;
}
.stf__item.--right .page .gutter {
  left: 0;
  background: linear-gradient(90deg, rgba(0,0,0,.42) 0%, rgba(0,0,0,.16) 34%, rgba(0,0,0,0) 100%);
}
.stf__item.--left .page .gutter {
  right: 0;
  background: linear-gradient(270deg, rgba(0,0,0,.42) 0%, rgba(0,0,0,.16) 34%, rgba(0,0,0,0) 100%);
}
.--portrait .page .gutter { display: none; }
.stf__item.--hard .page .gutter { opacity: .5; }
.page .pnum {
  position: absolute; z-index: 4; bottom: 9px;
  padding: 3px 9px; border-radius: 999px;
  background: rgba(6,12,20,.55); backdrop-filter: blur(6px);
  font-size: 10.5px; letter-spacing: .1em; color: rgba(255,255,255,.72);
  opacity: 0; transition: opacity .3s var(--ease);
}
.stf__item.--right .page .pnum { right: 10px; }
.stf__item.--left  .page .pnum { left: 10px; }
#app.show-nums .page .pnum { opacity: 1; }

/* yükleniyor nabzı */
.page::after {
  content: ''; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(100deg, transparent 20%, rgba(255,255,255,.07) 50%, transparent 80%);
  background-size: 220% 100%;
  animation: shimmer 1.5s linear infinite;
  opacity: 0; transition: opacity .3s;
}
.page.loading::after { opacity: 1; }
@keyframes shimmer { from { background-position: 180% 0 } to { background-position: -80% 0 } }

/* ---------- yan oklar ---------- */
.nav {
  position: absolute; top: 50%; z-index: 30;
  width: 54px; height: 54px; margin-top: -27px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--glass); border: 1px solid var(--line);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  color: var(--fg);
  box-shadow: 0 10px 34px rgba(0,0,0,.42);
  opacity: 0; transform: scale(.82);
  transition: opacity .28s var(--ease), transform .28s var(--ease-out), background .2s;
}
#stage:hover .nav, .nav:focus-visible { opacity: 1; transform: scale(1); }
.nav:hover { background: rgba(var(--glow), .22); border-color: rgba(var(--glow), .45); }
.nav:active { transform: scale(.94); }
.nav.prev { left: clamp(6px, 1.5vw, 20px); }
.nav.next { right: clamp(6px, 1.5vw, 20px); }
.nav svg { width: 22px; height: 22px; stroke-width: 1.8; }
.nav[disabled] { opacity: 0 !important; pointer-events: none; }
@media (hover: none) { .nav { display: none; } }

/* ---------- alt dock ---------- */
#dock {
  display: flex; align-items: center; gap: clamp(8px, 1.4vw, 18px);
  padding: 0 clamp(12px, 2vw, 22px);
  background: linear-gradient(0deg, rgba(3,9,15,.86), rgba(3,9,15,0));
  backdrop-filter: blur(14px) saturate(1.3);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  transition: opacity .35s var(--ease), transform .35s var(--ease);
  z-index: 40;
}
.dock-left, .dock-right { display: flex; align-items: center; gap: 4px; }
.scrub-wrap { position: relative; flex: 1; min-width: 0; height: 100%; display: grid; align-items: center; }
#scrub {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 26px; background: none; cursor: pointer; margin: 0;
}
#scrub::-webkit-slider-runnable-track {
  height: 4px; border-radius: 99px;
  background: linear-gradient(90deg, var(--accent) var(--pct, 0%), rgba(255,255,255,.14) var(--pct, 0%));
}
#scrub::-moz-range-track { height: 4px; border-radius: 99px; background: rgba(255,255,255,.14); }
#scrub::-moz-range-progress { height: 4px; border-radius: 99px; background: var(--accent); }
#scrub::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 15px; height: 15px; margin-top: -5.5px; border-radius: 50%;
  background: #fff; border: 2px solid var(--accent);
  box-shadow: 0 2px 10px rgba(var(--glow), .6);
  transition: transform .16s var(--ease-out);
}
#scrub:hover::-webkit-slider-thumb { transform: scale(1.22); }
#scrub::-moz-range-thumb {
  width: 13px; height: 13px; border-radius: 50%;
  background: #fff; border: 2px solid var(--accent);
}
/* scrub üzerinde küçük önizleme */
#scrubPeek {
  position: absolute; bottom: calc(100% + 6px); left: 0;
  width: 86px; padding: 5px; border-radius: 10px;
  background: rgba(8,14,22,.94); border: 1px solid var(--line-str);
  box-shadow: 0 14px 40px rgba(0,0,0,.6);
  transform: translateX(-50%) scale(.9); transform-origin: 50% 100%;
  opacity: 0; pointer-events: none;
  transition: opacity .16s var(--ease), transform .16s var(--ease-out);
}
#scrubPeek.on { opacity: 1; transform: translateX(-50%) scale(1); }
#scrubPeek img { width: 100%; border-radius: 5px; aspect-ratio: var(--ar, .706); object-fit: cover; background: #111; }
#scrubPeek b { display: block; text-align: center; font-size: 10.5px; font-weight: 500; color: var(--fg-dim); margin-top: 4px; }

.pager {
  display: flex; align-items: center; gap: 7px;
  padding: 6px 10px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--glass-hi);
  font-variant-numeric: tabular-nums; font-size: 13px; white-space: nowrap;
}
.pager input {
  width: 5.5ch; background: none; border: 0; color: var(--fg);
  font: inherit; font-variant-numeric: tabular-nums; text-align: right; padding: 0;
}
.pager input::-webkit-outer-spin-button, .pager input::-webkit-inner-spin-button { -webkit-appearance: none; }
.pager s { color: var(--fg-mute); text-decoration: none; }
.pager em { color: var(--fg-mute); font-style: normal; }

/* ---------- paneller (ortak) ---------- */
.panel {
  position: fixed; z-index: 60;
  background: rgba(7,13,20,.90);
  backdrop-filter: blur(22px) saturate(1.3);
  -webkit-backdrop-filter: blur(22px) saturate(1.3);
  border: 1px solid var(--line);
  box-shadow: 0 30px 90px rgba(0,0,0,.6);
  display: flex; flex-direction: column;
  opacity: 0; visibility: hidden;
  transition: opacity .3s var(--ease), transform .36s var(--ease-out), visibility .3s;
}
.panel.open { opacity: 1; visibility: visible; }
.panel-head {
  display: flex; align-items: center; gap: 12px;
  padding: 16px 18px; border-bottom: 1px solid var(--line);
  flex: none;
}
.panel-head h2 {
  margin: 0; font-family: var(--font-dis); font-weight: 600;
  font-size: 17px; letter-spacing: .2px;
}
.panel-head .ib { margin-left: auto; }
.panel-body { overflow: auto; overscroll-behavior: contain; padding: 12px 14px 20px; flex: 1; }
.panel-body::-webkit-scrollbar { width: 9px; }
.panel-body::-webkit-scrollbar-thumb { background: rgba(255,255,255,.14); border-radius: 9px; border: 3px solid transparent; background-clip: content-box; }

#scrim {
  position: fixed; inset: 0; z-index: 55;
  background: rgba(2,6,11,.6); backdrop-filter: blur(2px);
  opacity: 0; visibility: hidden; transition: opacity .3s var(--ease), visibility .3s;
}
#scrim.open { opacity: 1; visibility: visible; }

/* içindekiler — sol çekmece */
#toc { top: 0; left: 0; bottom: 0; width: min(372px, 88vw); transform: translateX(-102%); border-left: 0; }
#toc.open { transform: translateX(0); }
.ch {
  display: flex; align-items: center; gap: 12px;
  width: 100%; padding: 11px 12px; border-radius: var(--r-sm);
  text-align: left; transition: background .18s var(--ease), transform .18s var(--ease-out);
}
.ch:hover { background: var(--glass-hi); }
.ch:active { transform: scale(.985); }
.ch.cur { background: rgba(var(--glow), .14); }
.ch-thumb {
  width: 38px; flex: none; border-radius: 5px; aspect-ratio: var(--ar, .706);
  object-fit: cover; background: #0e151d; box-shadow: 0 2px 8px rgba(0,0,0,.5);
}
.ch-t { flex: 1; min-width: 0; }
.ch-t b { display: block; font-size: 14px; font-weight: 550; letter-spacing: .1px; }
.ch-t span { display: block; font-size: 11.5px; color: var(--fg-mute); margin-top: 1px; }
.ch-n { font-size: 12px; font-variant-numeric: tabular-nums; color: var(--fg-mute); }
.ch.cur .ch-n { color: var(--accent); }

.panel-sub {
  margin: 20px 0 8px; padding: 0 12px;
  font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--fg-mute);
}

/* tesis kartı (bungalov sitesi) */
.fac {
  display: block; width: 100%; text-align: left;
  padding: 12px 13px; border-radius: var(--r-md);
  border: 1px solid var(--line); background: rgba(255,255,255,.028);
  margin-bottom: 8px;
  transition: border-color .2s var(--ease), background .2s var(--ease), transform .18s var(--ease-out);
}
.fac:hover { border-color: rgba(var(--glow), .5); background: rgba(var(--glow), .09); }
.fac:active { transform: scale(.99); }
.fac b { display: block; font-size: 14px; font-weight: 600; letter-spacing: .1px; }
.fac small { display: block; font-size: 11.5px; line-height: 1.45; color: var(--fg-dim); margin-top: 3px; }
.fac .fac-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; }
.chip {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 9px; border-radius: 999px;
  border: 1px solid var(--line-str); background: rgba(255,255,255,.05);
  font-size: 11px; color: var(--fg-dim); text-decoration: none;
}
.chip:hover { border-color: var(--accent); color: var(--fg); }
.chip svg { width: 12px; height: 12px; stroke-width: 1.9; }
.chip.go { border-color: rgba(var(--glow),.4); color: var(--accent); }

/* künye + kardeş yayın */
.colophon { padding: 2px 12px 4px; }
.colophon p { margin: 0 0 10px; font-size: 12px; line-height: 1.6; color: var(--fg-mute); }
.colophon .addr { margin-top: 10px; font-size: 11.5px; }
.sister {
  display: flex; align-items: center; gap: 11px;
  margin: 14px 0 6px; padding: 13px 14px; border-radius: var(--r-md);
  border: 1px solid var(--line-str); background: linear-gradient(100deg, rgba(var(--glow),.10), transparent);
  text-decoration: none;
  transition: border-color .2s, transform .18s var(--ease-out), background .2s;
}
.sister:hover { border-color: rgba(var(--glow),.55); transform: translateX(2px); }
.sister > svg { width: 20px; height: 20px; flex: none; color: var(--accent); stroke-width: 1.6; }
.sister span { flex: 1; min-width: 0; }
.sister b { display: block; font-size: 13.5px; }
.sister small { display: block; font-size: 11.5px; color: var(--fg-mute); margin-top: 1px; }
.sister em svg { width: 16px; height: 16px; color: var(--fg-mute); }
.kbd-hint {
  display: flex; flex-wrap: wrap; gap: 6px 14px;
  margin: 18px 12px 4px; padding-top: 14px; border-top: 1px solid var(--line);
  font-size: 11.5px; color: var(--fg-mute);
}
.kbd-hint kbd {
  display: inline-block; min-width: 19px; text-align: center;
  padding: 2px 5px; margin-right: 3px; border-radius: 5px;
  border: 1px solid var(--line-str); background: rgba(255,255,255,.04);
  font: 500 10.5px var(--font-ui); color: var(--fg-dim);
}
@media (hover: none) { .kbd-hint { display: none; } }

/* küçük resimler — alt tabaka */
#thumbs {
  left: 0; right: 0; bottom: 0; max-height: min(62vh, 560px);
  border-radius: var(--r-lg) var(--r-lg) 0 0;
  transform: translateY(102%);
}
#thumbs.open { transform: translateY(0); }
.thumb-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(104px, 1fr));
  gap: 14px 12px;
}
.tcell { position: relative; text-align: center; }
.tcell img {
  width: 100%; aspect-ratio: var(--ar, .706); object-fit: cover;
  border-radius: 7px; background: #0e151d;
  border: 2px solid transparent;
  box-shadow: 0 5px 16px rgba(0,0,0,.45);
  transition: transform .22s var(--ease-out), border-color .2s, box-shadow .22s;
}
.tcell:hover img { transform: translateY(-4px) scale(1.035); box-shadow: 0 12px 28px rgba(0,0,0,.6); }
.tcell.cur img { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(var(--glow),.25), 0 10px 26px rgba(0,0,0,.55); }
.tcell span { display: block; margin-top: 6px; font-size: 11px; color: var(--fg-mute); font-variant-numeric: tabular-nums; }
.tcell.cur span { color: var(--accent); }

/* arama — üst tabaka */
#search {
  top: 0; left: 50%; transform: translate(-50%, -102%);
  width: min(680px, 94vw); max-height: min(78vh, 720px);
  border-radius: 0 0 var(--r-lg) var(--r-lg);
}
#search.open { transform: translate(-50%, 0); }
.search-box { display: flex; align-items: center; gap: 11px; padding: 15px 18px; border-bottom: 1px solid var(--line); }
.search-box svg { width: 19px; height: 19px; color: var(--fg-mute); flex: none; stroke-width: 1.8; }
.search-box input {
  flex: 1; min-width: 0; background: none; border: 0; color: var(--fg);
  font: 500 16px/1.3 var(--font-ui); padding: 6px 0;
}
.search-box input::placeholder { color: var(--fg-mute); font-weight: 400; }
.search-box kbd {
  font: 500 11px var(--font-ui); padding: 3px 7px; border-radius: 6px;
  border: 1px solid var(--line-str); color: var(--fg-mute);
}
.sr {
  display: flex; gap: 12px; width: 100%; text-align: left;
  padding: 11px 12px; border-radius: var(--r-sm);
  transition: background .18s var(--ease);
}
.sr:hover, .sr.sel { background: var(--glass-hi); }
.sr img { width: 42px; flex: none; border-radius: 5px; aspect-ratio: var(--ar,.706); object-fit: cover; background: #0e151d; }
.sr-t { min-width: 0; flex: 1; }
.sr-t b { display: block; font-size: 12px; color: var(--accent); letter-spacing: .04em; text-transform: uppercase; }
.sr-t p { margin: 3px 0 0; font-size: 13px; line-height: 1.5; color: var(--fg-dim); }
.sr-t mark { background: rgba(var(--glow), .28); color: var(--fg); border-radius: 3px; padding: 0 2px; }
.empty { padding: 36px 16px; text-align: center; color: var(--fg-mute); font-size: 14px; }

/* ---------- büyüteç ---------- */
#zoom {
  position: fixed; inset: 0; z-index: 80;
  background: rgba(3,7,12,.985);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  opacity: 0; visibility: hidden;
  transition: opacity .34s var(--ease), visibility .34s;
  touch-action: none; overflow: hidden;
  cursor: grab;
}
#zoom.open { opacity: 1; visibility: visible; }
#zoom.drag { cursor: grabbing; }
#zoomInner {
  position: absolute; top: 50%; left: 50%;
  transform-origin: 0 0; will-change: transform;
  display: flex; gap: 0;
}
#zoomInner img {
  flex: 0 0 auto; max-width: none;
  background: #0e151d;
  box-shadow: 0 30px 90px rgba(0,0,0,.7);
}
#zoomBar {
  position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%);
  display: flex; align-items: center; gap: 6px; padding: 7px;
  border-radius: 14px; background: var(--glass); border: 1px solid var(--line);
  backdrop-filter: blur(16px); box-shadow: 0 16px 50px rgba(0,0,0,.6);
  z-index: 82;
}
#zoomBar .lvl { min-width: 54px; text-align: center; font-size: 12.5px; font-variant-numeric: tabular-nums; color: var(--fg-dim); }
#zoomHint {
  position: fixed; top: 20px; left: 50%; transform: translateX(-50%);
  padding: 7px 14px; border-radius: 999px; z-index: 82;
  background: var(--glass); border: 1px solid var(--line);
  font-size: 12px; color: var(--fg-dim);
  opacity: 0; transition: opacity .4s var(--ease);
}
#zoom.open #zoomHint { opacity: 1; }
#zoom.moved #zoomHint { opacity: 0; }

/* ---------- paylaş ---------- */
#share {
  top: 50%; left: 50%; transform: translate(-50%, -46%) scale(.96);
  width: min(430px, 92vw); border-radius: var(--r-lg);
}
#share.open { transform: translate(-50%, -50%) scale(1); }
.share-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 9px; }
.share-grid a, .share-grid button {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 13px; border-radius: var(--r-md);
  border: 1px solid var(--line); background: rgba(255,255,255,.03);
  font-size: 13.5px; text-decoration: none;
  transition: border-color .2s, background .2s, transform .16s var(--ease-out);
}
.share-grid a:hover, .share-grid button:hover { border-color: rgba(var(--glow),.5); background: rgba(var(--glow),.1); }
.share-grid a:active, .share-grid button:active { transform: scale(.98); }
.share-grid svg { width: 17px; height: 17px; flex: none; }
.link-row {
  display: flex; align-items: center; gap: 8px; margin-top: 12px;
  padding: 9px 10px 9px 13px; border-radius: var(--r-md);
  border: 1px solid var(--line); background: rgba(0,0,0,.3);
}
.link-row input {
  flex: 1; min-width: 0; background: none; border: 0; color: var(--fg-dim);
  font: 400 12.5px var(--font-ui); text-overflow: ellipsis;
}

/* ---------- bildirim ---------- */
#toast {
  position: fixed; left: 50%; bottom: calc(var(--dock-h) + 18px); z-index: 90;
  transform: translate(-50%, 12px);
  padding: 10px 18px; border-radius: 999px;
  background: rgba(8,14,22,.95); border: 1px solid var(--line-str);
  box-shadow: 0 14px 44px rgba(0,0,0,.6);
  font-size: 13px; opacity: 0; pointer-events: none;
  transition: opacity .25s var(--ease), transform .3s var(--ease-out);
}
#toast.on { opacity: 1; transform: translate(-50%, 0); }

/* ============================================================
   Açılış perdesi — kapalı dergi, 3B
   ============================================================ */
#intro {
  position: fixed; inset: 0; z-index: 100;
  display: grid; grid-template-columns: 1.05fr .95fr;
  align-items: center; gap: clamp(20px, 5vw, 80px);
  padding: clamp(24px, 5vw, 90px);
  background:
    radial-gradient(60% 55% at 26% 34%, rgba(var(--glow), .20), transparent 62%),
    linear-gradient(145deg, var(--bg1), var(--bg0) 58%);
  transition: opacity .8s var(--ease), transform .9s var(--ease-in-out), visibility .9s;
}
#intro.gone { opacity: 0; visibility: hidden; transform: scale(1.06); pointer-events: none; }

.intro-copy { max-width: 560px; justify-self: end; }
.intro-kicker {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 6px 14px; border-radius: 999px; margin-bottom: 22px;
  border: 1px solid var(--line-str); background: var(--glass-hi);
  font-size: 11.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--fg-dim);
}
.intro-kicker i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent2); font-style: normal;
  box-shadow: 0 0 0 0 rgba(var(--glow),.6); animation: pulse 2.4s var(--ease) infinite; }
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.35} }

.intro-copy h1 {
  margin: 0 0 6px; font-family: var(--font-dis);
  font-size: clamp(38px, 6.2vw, 78px); line-height: .98;
  font-weight: 600; letter-spacing: -.02em;
}
.intro-copy h1 em {
  display: block; font-style: normal;
  background: linear-gradient(100deg, var(--accent), var(--accent2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.intro-copy .lede {
  margin: 20px 0 0; font-size: clamp(14.5px, 1.5vw, 17px); line-height: 1.68;
  color: var(--fg-dim); max-width: 48ch;
}
.intro-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 26px; border-radius: 999px;
  font-size: 14.5px; font-weight: 600; letter-spacing: .01em; text-decoration: none;
  transition: transform .2s var(--ease-out), box-shadow .25s var(--ease), background .25s;
}
.btn svg { width: 18px; height: 18px; stroke-width: 2; }
.btn-primary {
  background: linear-gradient(100deg, var(--accent), var(--accent2));
  color: #04121c;
  box-shadow: 0 10px 34px rgba(var(--glow), .36);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 46px rgba(var(--glow), .5); }
.btn-primary:active { transform: translateY(0) scale(.98); }
.btn-ghost { border: 1px solid var(--line-str); color: var(--fg-dim); background: var(--glass-hi); }
.btn[disabled] { opacity: .45; pointer-events: none; filter: saturate(.4); }
.btn-ghost:hover { color: var(--fg); border-color: rgba(var(--glow),.5); transform: translateY(-2px); }

.intro-meta {
  display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 34px;
  padding-top: 22px; border-top: 1px solid var(--line);
  font-size: 12.5px; color: var(--fg-mute);
}
.intro-meta b { color: var(--fg-dim); font-weight: 600; }

/* kapalı dergi görseli */
.intro-stage {
  position: relative; display: grid; place-items: center;
  perspective: 1150px; height: min(74vh, 640px);
}
.mag {
  position: relative;
  width: min(300px, 44vw); aspect-ratio: var(--ar, .706);
  transform-style: preserve-3d;
  transform: rotateY(-23deg) rotateX(5deg) rotateZ(-1.5deg);
  animation: magIn 1.5s var(--ease-out) both;
  transition: transform .9s var(--ease-out);
}
.intro-stage:hover .mag { transform: rotateY(-13deg) rotateX(3deg) rotateZ(-.5deg) scale(1.03); }
@keyframes magIn {
  from { opacity: 0; transform: rotateY(-48deg) rotateX(12deg) translateY(40px) scale(.9); }
  to   { opacity: 1; }
}
.mag-face {
  position: absolute; inset: 0;
  border-radius: 3px 7px 7px 3px;
  overflow: hidden;
  box-shadow:
    0 2px 2px rgba(0,0,0,.3),
    0 30px 60px rgba(0,0,0,.55),
    0 60px 120px rgba(0,0,0,.4);
  background: #0e151d;
}
.mag-face img { width: 100%; height: 100%; object-fit: cover; }
.mag-face::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(96deg, rgba(0,0,0,.42) 0%, rgba(0,0,0,.08) 7%, rgba(255,255,255,.07) 18%, transparent 46%);
}
.mag-edge {
  position: absolute; top: 1.4%; bottom: 1.4%; right: -14px; width: 14px;
  transform: rotateY(90deg); transform-origin: left center;
  background: repeating-linear-gradient(180deg, #f4f1ea 0 2px, #cfc9bd 2px 3px);
  border-radius: 0 2px 2px 0;
}
.mag-glow {
  position: absolute; left: 50%; bottom: -8%; width: 120%; height: 54px;
  transform: translateX(-50%);
  background: radial-gradient(50% 50% at 50% 50%, rgba(0,0,0,.7), transparent 70%);
  filter: blur(16px);
}
.mag-badge {
  position: absolute; top: -14px; right: -16px; z-index: 3;
  padding: 7px 13px; border-radius: 999px;
  background: linear-gradient(100deg, var(--accent), var(--accent2));
  color: #04121c; font-size: 11.5px; font-weight: 800; letter-spacing: .06em;
  box-shadow: 0 8px 26px rgba(var(--glow), .45);
  transform: translateZ(26px) rotate(4deg);
}

/* yükleme çubuğu */
#boot {
  position: fixed; left: 0; top: 0; height: 2px; z-index: 110;
  width: 0; background: linear-gradient(90deg, var(--accent), var(--accent2));
  box-shadow: 0 0 14px rgba(var(--glow), .8);
  transition: width .4s var(--ease), opacity .4s .25s;
}

/* kitabın sahneye girişi */
@keyframes bookIn {
  from { opacity: 0; transform: translateY(34px) rotateX(16deg) scale(.93); }
  to   { opacity: 1; transform: none; }
}
#bookWrap.enter { animation: bookIn 1.05s var(--ease-out) both; }

/* ---------- SEO / erişilebilirlik metni ---------- */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- duyarlı ---------- */
@media (max-width: 1040px) {
  #intro { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 26px;
           align-content: center; overflow: auto; }
  .intro-copy { justify-self: center; order: 2; }
  .intro-stage { order: 1; height: auto; }
  .mag { width: min(210px, 42vw); }
  .intro-actions, .intro-meta { justify-content: center; }
  .intro-meta { border-top: 0; padding-top: 0; }
}
@media (max-width: 760px) {
  :root { --bar-h: 52px; --dock-h: 64px; }
  .bar-chapter { display: none; }
  .brand-txt span { display: none; }
  #stage { padding: 4px 6px; }
  .thumb-grid { grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 11px 9px; }
  .share-grid { grid-template-columns: 1fr; }
  #toast { bottom: calc(var(--dock-h) + 12px); }
  .intro-copy h1 { font-size: clamp(30px, 9vw, 46px); }
}
@media (max-width: 420px) {
  .pager { padding: 5px 8px; font-size: 12px; }
  .dock-left .ib:nth-child(n+3) { display: none; }
}

/* ============================================================
   SAMSUN TURİZM REHBERİ 3D PORTAL & LANDING PAGE
   ============================================================ */
#intro.intro-portal {
  display: block;
  padding: 0;
  gap: 0;
  overflow-y: auto;
  overflow-x: hidden;
  background: #030c17;
  scroll-behavior: smooth;
  color: var(--fg);
}

#intro.intro-portal::-webkit-scrollbar {
  width: 8px;
}
#intro.intro-portal::-webkit-scrollbar-track {
  background: #030c17;
}
#intro.intro-portal::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--accent), var(--accent2));
  border-radius: 4px;
}

/* Nav */
.portal-nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  background: rgba(3, 12, 23, 0.82);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.portal-nav-inner {
  max-width: 1280px; margin: 0 auto;
  padding: 14px 24px;
  display: flex; align-items: center; justify-content: space-between;
}
.portal-brand {
  display: flex; align-items: center; gap: 12px;
  text-decoration: none; color: inherit;
}
.portal-brand-icon {
  width: 40px; height: 40px; border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  display: grid; place-items: center;
  font-family: var(--font-dis); font-weight: 800; font-size: 22px;
  color: #04121c;
  box-shadow: 0 4px 18px rgba(var(--glow), 0.4);
}
.portal-brand-text { display: flex; flex-direction: column; }
.portal-brand-text strong {
  font-size: 15px; font-weight: 700; letter-spacing: 0.04em;
  color: #fff;
}
.portal-brand-text span {
  font-size: 11px; color: var(--accent); font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase;
}
.portal-nav-links {
  display: flex; align-items: center; gap: 28px;
}
.portal-nav-links a {
  color: var(--fg-dim); text-decoration: none; font-size: 14px;
  font-weight: 500; transition: color 0.2s ease;
}
.portal-nav-links a:hover { color: #fff; }
.portal-nav-actions {
  display: flex; align-items: center; gap: 12px;
}
.btn-portal-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 18px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.04);
  color: var(--fg-dim); font-size: 13.5px; font-weight: 600;
  text-decoration: none; transition: all 0.2s ease;
}
.btn-portal-ghost:hover {
  background: rgba(255,255,255,0.08); color: #fff; border-color: rgba(var(--glow),0.4);
}
.btn-portal-ghost svg { width: 16px; height: 16px; stroke-width: 2; }
.btn-portal-primary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 20px; border-radius: 999px;
  background: linear-gradient(100deg, var(--accent), var(--accent2));
  color: #04121c; font-size: 13.5px; font-weight: 700;
  border: none; cursor: pointer;
  box-shadow: 0 4px 20px rgba(var(--glow), 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.btn-portal-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 26px rgba(var(--glow), 0.55);
}
.btn-portal-primary svg { width: 16px; height: 16px; stroke-width: 2; }

/* Hero */
.portal-hero {
  position: relative; min-height: calc(100vh - 72px);
  display: flex; align-items: center;
  padding: 40px 24px 80px; overflow: hidden;
  background:
    radial-gradient(80% 60% at 50% 10%, rgba(var(--glow), 0.15), transparent 70%),
    radial-gradient(50% 50% at 85% 40%, rgba(255, 176, 32, 0.08), transparent 60%),
    linear-gradient(180deg, #030c17 0%, #061524 100%);
}
.hero-canvas {
  position: absolute; inset: 0; width: 100%; height: 100%;
  pointer-events: none; z-index: 1;
}
.hero-container {
  max-width: 1280px; margin: 0 auto; width: 100%;
  display: grid; grid-template-columns: 1.15fr 0.85fr;
  align-items: center; gap: 48px;
  position: relative; z-index: 2;
}
.hero-content { max-width: 650px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 16px; border-radius: 999px;
  background: rgba(24, 182, 232, 0.1); border: 1px solid rgba(24, 182, 232, 0.3);
  font-size: 12px; font-weight: 600; color: var(--accent);
  letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 24px;
}
.badge-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent2);
  box-shadow: 0 0 10px var(--accent2);
  animation: pulseDot 2s infinite;
}
@keyframes pulseDot { 0%,100%{opacity:1} 50%{opacity:0.3} }

.hero-title {
  margin: 0 0 20px; font-family: var(--font-dis);
  font-size: clamp(38px, 4.6vw, 68px); line-height: 1.06;
  font-weight: 700; letter-spacing: -0.025em; color: #fff;
}
.hero-title em {
  font-style: normal; display: block;
  background: linear-gradient(100deg, var(--accent) 0%, #7ee7fc 40%, var(--accent2) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-desc {
  margin: 0 0 34px; font-size: clamp(15px, 1.4vw, 17.5px);
  line-height: 1.7; color: #a1b8cf; max-width: 54ch;
}
.hero-actions {
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px;
  margin-bottom: 40px;
}
.btn-hero-cta {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 16px 32px; border-radius: 999px;
  background: linear-gradient(100deg, var(--accent), var(--accent2));
  color: #04121c; font-size: 16px; font-weight: 700;
  border: none; cursor: pointer; text-decoration: none;
  box-shadow: 0 12px 36px rgba(var(--glow), 0.45);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.btn-hero-cta:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 18px 48px rgba(var(--glow), 0.65);
}
.btn-hero-cta svg { width: 22px; height: 22px; stroke-width: 2.2; }
.btn-hero-secondary {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 26px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.16);
  background: rgba(10, 32, 54, 0.6);
  backdrop-filter: blur(12px);
  color: #fff; font-size: 15px; font-weight: 600;
  text-decoration: none; transition: all 0.2s ease;
}
.btn-hero-secondary:hover {
  background: rgba(255,255,255,0.1); border-color: rgba(var(--glow), 0.5);
  transform: translateY(-2px);
}
.btn-hero-secondary svg { width: 18px; height: 18px; stroke-width: 2; }
.btn-hero-secondary small {
  opacity: 0.65; font-size: 12px; background: rgba(255,255,255,0.1);
  padding: 2px 7px; border-radius: 6px;
}

.hero-stats {
  display: flex; align-items: center; gap: 22px;
  padding: 16px 24px; border-radius: 18px;
  background: rgba(10, 32, 54, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(16px);
  width: fit-content;
}
.stat-box { display: flex; flex-direction: column; gap: 2px; }
.stat-box b { font-size: 22px; font-weight: 800; color: #fff; font-family: var(--font-dis); }
.stat-box span { font-size: 11.5px; color: #8aa4bd; text-transform: uppercase; letter-spacing: 0.05em; }
.stat-divider { width: 1px; height: 32px; background: rgba(255,255,255,0.1); }

/* 3D Stage & Orbiting Samsun Cards */
.hero-3d-stage {
  position: relative; width: 100%; height: 580px;
  display: grid; place-items: center;
  perspective: 1200px;
}
.hero-3d-scene {
  position: relative; width: 290px; height: 415px;
  transform-style: preserve-3d;
}

/* Central 3D Magazine */
.hero-3d-mag {
  position: absolute; inset: 0;
  transform-style: preserve-3d; cursor: pointer;
  transform: rotateX(6deg) rotateY(-18deg) translateZ(0);
  transition: transform 0.15s ease-out;
  outline: none;
}
.hero-3d-mag:hover .mag-wrap {
  box-shadow: 0 35px 80px rgba(0,0,0,0.8), 0 0 50px rgba(var(--glow),0.3);
}
.mag-wrap {
  position: absolute; inset: 0;
  border-radius: 4px 10px 10px 4px;
  transform-style: preserve-3d;
  background: #0b1520;
  box-shadow:
    0 20px 50px rgba(0,0,0,0.7),
    0 40px 100px rgba(0,0,0,0.5);
  transition: box-shadow 0.3s ease;
}
.mag-front-face {
  position: absolute; inset: 0;
  border-radius: 4px 10px 10px 4px;
  overflow: hidden;
  background: #08121c;
}
.mag-front-face img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.mag-gloss {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(circle 350px at var(--sheen-x, 30%) var(--sheen-y, 30%), rgba(255,255,255,0.22), transparent 70%);
}
.mag-badge-year {
  position: absolute; top: 14px; right: 14px;
  padding: 5px 12px; border-radius: 999px;
  background: linear-gradient(100deg, var(--accent), var(--accent2));
  color: #04121c; font-size: 11px; font-weight: 800;
  box-shadow: 0 4px 16px rgba(var(--glow), 0.5);
}
.mag-edge-side {
  position: absolute; top: 1.5%; bottom: 1.5%; right: -15px; width: 15px;
  transform: rotateY(90deg); transform-origin: left center;
  background: repeating-linear-gradient(180deg, #f0ebe1 0 2px, #c4bdae 2px 3px);
  border-radius: 0 3px 3px 0;
  box-shadow: inset 0 0 4px rgba(0,0,0,0.4);
}
.mag-spine-side {
  position: absolute; top: 0; bottom: 0; left: 0; width: 8px;
  background: linear-gradient(90deg, rgba(0,0,0,0.55), transparent);
  pointer-events: none;
}
.mag-shadow-blur {
  position: absolute; left: 50%; bottom: -30px; width: 110%; height: 60px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(0,0,0,0.85) 0%, transparent 70%);
  filter: blur(14px); pointer-events: none;
}
.mag-click-pill {
  position: absolute; bottom: -45px; left: 50%;
  transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 18px; border-radius: 999px;
  background: rgba(10, 32, 54, 0.9);
  border: 1px solid rgba(var(--glow), 0.4);
  backdrop-filter: blur(10px);
  color: #fff; font-size: 12.5px; font-weight: 600;
  white-space: nowrap; pointer-events: none;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
  transition: transform 0.25s ease;
}
.mag-click-pill svg { width: 15px; height: 15px; stroke: var(--accent); }
.hero-3d-mag:hover .mag-click-pill {
  transform: translateX(-50%) translateY(3px) scale(1.05);
  background: rgba(24, 182, 232, 0.25);
  border-color: var(--accent);
}

/* Orbiting Samsun Visual Cards */
.orbit-card {
  position: absolute; width: 145px;
  padding: 8px; border-radius: 14px;
  background: rgba(7, 26, 43, 0.82);
  border: 1px solid rgba(56, 189, 248, 0.25);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 16px 36px rgba(0,0,0,0.55);
  transform-style: preserve-3d; cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease, border-color 0.3s ease;
  z-index: 10;
}
.orbit-card img {
  width: 100%; height: 95px; object-fit: cover;
  border-radius: 9px; display: block; margin-bottom: 7px;
}
.orbit-info { display: flex; flex-direction: column; gap: 2px; }
.orbit-badge {
  font-size: 9.5px; font-weight: 700; color: var(--accent);
  text-transform: uppercase; letter-spacing: 0.05em;
}
.orbit-info strong {
  font-size: 11.5px; font-weight: 700; color: #fff;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.orbit-info small { font-size: 10px; color: var(--accent2); font-weight: 600; }

.orbit-card-1 {
  top: -15px; right: -75px;
  transform: translateZ(55px) rotate(4deg);
  animation: floatOrbit1 4.5s ease-in-out infinite;
}
.orbit-card-2 {
  bottom: 25px; left: -85px;
  transform: translateZ(45px) rotate(-5deg);
  animation: floatOrbit2 5s ease-in-out infinite;
}
.orbit-card-3 {
  bottom: -35px; right: -55px;
  transform: translateZ(35px) rotate(3deg);
  animation: floatOrbit3 4.8s ease-in-out infinite;
}
.orbit-card-4 {
  top: 45px; left: -95px;
  transform: translateZ(25px) rotate(-3deg);
  animation: floatOrbit4 5.2s ease-in-out infinite;
}

@keyframes floatOrbit1 { 0%,100%{transform:translateZ(55px) rotate(4deg) translateY(0)} 50%{transform:translateZ(65px) rotate(5deg) translateY(-8px)} }
@keyframes floatOrbit2 { 0%,100%{transform:translateZ(45px) rotate(-5deg) translateY(0)} 50%{transform:translateZ(55px) rotate(-4deg) translateY(-7px)} }
@keyframes floatOrbit3 { 0%,100%{transform:translateZ(35px) rotate(3deg) translateY(0)} 50%{transform:translateZ(45px) rotate(4deg) translateY(6px)} }
@keyframes floatOrbit4 { 0%,100%{transform:translateZ(25px) rotate(-3deg) translateY(0)} 50%{transform:translateZ(35px) rotate(-2deg) translateY(-6px)} }

.orbit-card:hover {
  transform: scale(1.12) translateZ(85px) !important;
  border-color: var(--accent);
  box-shadow: 0 22px 48px rgba(24, 182, 232, 0.45);
}

/* Sections */
.portal-section {
  padding: 85px 24px; position: relative; z-index: 5;
}
.portal-section-alt {
  background: linear-gradient(180deg, rgba(10,32,54,0.4) 0%, rgba(3,12,23,0.8) 100%);
  border-top: 1px solid rgba(255,255,255,0.05);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.portal-container { max-width: 1280px; margin: 0 auto; width: 100%; }
.section-head { text-align: center; max-width: 700px; margin: 0 auto 50px; }
.section-kicker {
  display: inline-block; font-size: 11.5px; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 12px;
}
.section-title {
  margin: 0 0 14px; font-family: var(--font-dis);
  font-size: clamp(30px, 3.4vw, 44px); font-weight: 700;
  letter-spacing: -0.02em; color: #fff; line-height: 1.16;
}
.section-sub {
  margin: 0; font-size: clamp(14.5px, 1.3vw, 16.5px);
  color: #8da6bd; line-height: 1.6;
}

/* 4 Featured 3D Showcase Cards */
.route-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.route-3d-card {
  display: flex; flex-direction: column;
  border-radius: 20px; overflow: hidden;
  background: rgba(10, 32, 54, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
  cursor: pointer; transform-style: preserve-3d;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.route-3d-card:hover {
  border-color: rgba(24, 182, 232, 0.5);
  box-shadow: 0 24px 50px -10px rgba(24, 182, 232, 0.25);
}
.route-media {
  position: relative; width: 100%; height: 210px; overflow: hidden;
}
.route-media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.5s ease;
}
.route-3d-card:hover .route-media img {
  transform: scale(1.08);
}
.route-chip {
  position: absolute; bottom: 12px; left: 12px;
  padding: 5px 12px; border-radius: 999px;
  background: rgba(3, 12, 23, 0.85); backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.12);
  font-size: 11px; font-weight: 600; color: var(--accent);
}
.route-body {
  padding: 24px; display: flex; flex-direction: column; flex: 1;
}
.route-body h3 {
  margin: 0 0 10px; font-size: 18px; font-weight: 700;
  color: #fff; font-family: var(--font-dis); line-height: 1.3;
}
.route-body p {
  margin: 0 0 20px; font-size: 13.5px; line-height: 1.6;
  color: #92abbf; flex: 1;
}
.route-footer { padding-top: 14px; border-top: 1px solid rgba(255,255,255,0.06); }
.route-action {
  font-size: 13px; font-weight: 700; color: var(--accent);
  display: inline-flex; align-items: center; gap: 6px;
  transition: gap 0.2s ease, color 0.2s ease;
}
.route-3d-card:hover .route-action {
  gap: 10px; color: var(--accent2);
}

/* 17 District Grid */
.district-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
}
.district-card {
  display: flex; flex-direction: column;
  border-radius: 16px; overflow: hidden;
  background: rgba(10, 32, 54, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.07);
  cursor: pointer; transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.district-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent);
  box-shadow: 0 16px 36px rgba(0,0,0,0.45);
}
.district-thumb-wrap {
  position: relative; width: 100%; aspect-ratio: 0.706; overflow: hidden;
  background: #08121c;
}
.district-thumb-wrap img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.4s ease;
}
.district-card:hover .district-thumb-wrap img {
  transform: scale(1.06);
}
.district-page-badge {
  position: absolute; top: 10px; right: 10px;
  padding: 4px 10px; border-radius: 999px;
  background: rgba(3, 12, 23, 0.85); backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.15);
  font-size: 10.5px; font-weight: 700; color: #fff;
}
.district-meta { padding: 14px; display: flex; flex-direction: column; gap: 4px; }
.district-meta strong { font-size: 15px; font-weight: 700; color: #fff; }
.district-meta span { font-size: 11px; color: var(--accent); font-weight: 500; }
.district-meta p {
  margin: 4px 0 0; font-size: 12px; line-height: 1.5; color: #8da2b5;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* Feature Grid */
.feature-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
}
.feature-card {
  padding: 30px 24px; border-radius: 20px;
  background: rgba(10, 32, 54, 0.45);
  border: 1px solid rgba(255,255,255,0.07);
  backdrop-filter: blur(12px);
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(var(--glow),0.35);
}
.feature-icon { font-size: 32px; margin-bottom: 16px; }
.feature-card h3 {
  margin: 0 0 10px; font-size: 17px; font-weight: 700; color: #fff;
}
.feature-card p {
  margin: 0; font-size: 13.5px; line-height: 1.65; color: #91a8bd;
}

/* CTA Banner */
.portal-cta-banner { padding: 40px 24px 80px; }
.cta-banner-inner {
  border-radius: 26px; padding: 50px clamp(24px, 5vw, 60px);
  background:
    radial-gradient(ellipse at 80% 50%, rgba(var(--glow), 0.25), transparent 60%),
    linear-gradient(135deg, #0a2036 0%, #030c17 100%);
  border: 1px solid rgba(var(--glow), 0.35);
  display: flex; align-items: center; justify-content: space-between;
  gap: 36px; box-shadow: 0 30px 70px rgba(0,0,0,0.6);
}
.cta-banner-content { max-width: 620px; }
.cta-kicker {
  font-size: 12px; font-weight: 700; letter-spacing: 0.16em;
  color: var(--accent); margin-bottom: 10px; display: inline-block;
}
.cta-banner-content h2 {
  margin: 0 0 12px; font-family: var(--font-dis);
  font-size: clamp(26px, 3.2vw, 38px); font-weight: 700; color: #fff;
}
.cta-banner-content p {
  margin: 0; font-size: 15.5px; color: #9bb3c7; line-height: 1.6;
}
.cta-banner-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* Footer */
.portal-footer {
  padding: 60px 24px 40px;
  background: #020810;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.footer-top {
  display: grid; grid-template-columns: 1.5fr 1fr; gap: 40px;
  padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,0.06);
}
.footer-brand-title {
  font-size: 18px; font-weight: 700; color: #fff;
  font-family: var(--font-dis); margin-bottom: 10px;
}
.footer-note { font-size: 13.5px; color: #7f97ad; line-height: 1.6; max-width: 52ch; margin: 0 0 16px; }
.footer-sister-banner {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 16px; border-radius: 8px;
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08);
  font-size: 13px; color: #8da4b8;
}
.footer-sister-banner a { color: var(--accent); text-decoration: none; font-weight: 600; }
.footer-col-contact h4 { margin: 0 0 14px; font-size: 15px; color: #fff; }
.footer-col-contact p { margin: 0 0 8px; font-size: 13.5px; color: #7f97ad; }
.footer-col-contact a { color: var(--accent); text-decoration: none; }
.footer-bottom {
  padding-top: 24px; display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 14px; font-size: 12.5px; color: #5c748a;
}
.footer-meta-stats span b { color: #8da4b8; }

/* Brand home button */
.brand-home-btn { margin-right: 2px; }

/* Responsive adjustments */
@media (max-width: 1100px) {
  .hero-container { grid-template-columns: 1fr; gap: 48px; }
  .hero-content { max-width: 100%; text-align: center; }
  .hero-actions, .hero-stats { justify-content: center; margin-left: auto; margin-right: auto; }
  .hero-desc { margin-left: auto; margin-right: auto; }
  .route-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .cta-banner-inner { flex-direction: column; text-align: center; }
  .cta-banner-actions { justify-content: center; }
}

@media (max-width: 768px) {
  .portal-nav-links { display: none; }
  .btn-portal-ghost { display: none; }
  .route-grid { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .district-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .hero-3d-stage { height: 440px; }
  .hero-3d-scene { width: 230px; height: 326px; }
  .orbit-card { width: 110px; padding: 6px; }
  .orbit-card img { height: 68px; }
  .orbit-card-1 { right: -30px; }
  .orbit-card-2 { left: -30px; }
  .orbit-card-3 { right: -20px; }
  .orbit-card-4 { left: -30px; }
  .hero-stats { flex-wrap: wrap; justify-content: space-around; width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

@media print {
  #bar, #dock, .nav, .panel, #scrim, #zoom, #intro, #grain, #vignette { display: none !important; }
}
