:root, [data-theme="dark"] {
  --bg: #0d1416;
  --bg-2: #121c1f;
  --surface: #1a262a;
  --ink: #e8f1f3;
  --muted: #8aa0a8;
  --line: rgba(232, 241, 243, 0.1);
  --teal: #2ec4b6;
  --teal-deep: #1a9e92;
  --citrus: #ff7a45;
  --citrus-deep: #e85d28;
  --sky: #4aa3c8;
  --ok: #3dce8e;
  --danger: #f07178;
  --shadow: 0 16px 48px rgba(0, 0, 0, 0.45);
  --header-glass: rgba(13, 20, 22, 0.82);
  --hero-wash: rgba(13, 20, 22, 0.88);
  /* PazarNyx — self-hosted, TR latin-ext */
  --display: "Nyx Display", "Bricolage Grotesque", sans-serif;
  --myth: "Nyx Myth", "Fraunces", Georgia, serif;
  --sans: "Nyx UI", "Geologica", sans-serif;
  --serif: var(--display);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 84px;
}

[data-theme="light"] {
  --bg: #dce6ea;
  --bg-2: #eef4f6;
  --surface: #ffffff;
  --ink: #132028;
  --muted: #5a6b75;
  --line: rgba(19, 32, 40, 0.1);
  --teal: #0b6e6a;
  --teal-deep: #085650;
  --citrus: #ff6a3d;
  --citrus-deep: #e85528;
  --sky: #3a8bb5;
  --ok: #1f9d6c;
  --danger: #d64545;
  --shadow: 0 12px 40px rgba(19, 32, 40, 0.08);
  --header-glass: rgba(247, 251, 252, 0.84);
  --hero-wash: rgba(238, 244, 246, 0.9);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; color-scheme: dark; }
[data-theme="light"] { color-scheme: light; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--sans);
  font-weight: 450;
  font-optical-sizing: auto;
  font-feature-settings: "kern" 1, "liga" 1, "calt" 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  color: var(--ink);
  background:
    radial-gradient(900px 500px at 100% -10%, rgba(46, 196, 182, 0.14), transparent 55%),
    radial-gradient(700px 420px at 0% 20%, rgba(255, 122, 69, 0.1), transparent 50%),
    linear-gradient(180deg, var(--bg-2) 0%, var(--bg) 55%, #0a1012 100%);
  overflow-x: hidden;
  transition: background 0.45s var(--ease), color 0.35s var(--ease);
}
[data-theme="light"] body,
html[data-theme="light"] body {
  background:
    radial-gradient(900px 500px at 100% -10%, rgba(58, 139, 181, 0.18), transparent 55%),
    radial-gradient(700px 420px at 0% 20%, rgba(11, 110, 106, 0.14), transparent 50%),
    linear-gradient(180deg, var(--bg-2) 0%, var(--bg) 55%, #dde8eb 100%);
}

a { color: var(--teal); text-decoration: none; transition: color 0.2s var(--ease); }
a:hover { color: var(--citrus-deep); }
button, input, select, textarea { font: inherit; color: inherit; }
.hidden { display: none !important; }

.site-header {
  position: sticky; top: 0; z-index: 40;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1rem;
  align-items: center;
  min-height: var(--header-h);
  padding: 0.8rem 1.25rem;
  background: var(--header-glass);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.site-header.scrolled {
  border-bottom-color: var(--line);
  box-shadow: var(--shadow);
}
.header-tools { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; justify-content: flex-end; }
.theme-toggle {
  width: 42px; height: 42px;
  border-radius: 0.7rem;
  border: 1px solid var(--line);
  background: var(--surface);
  cursor: pointer;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
}
.theme-ico { position: absolute; font-size: 1.05rem; transition: transform 0.45s var(--ease), opacity 0.35s; }
[data-theme="dark"] .theme-ico-sun { opacity: 1; transform: none; }
[data-theme="dark"] .theme-ico-moon { opacity: 0; transform: translateY(12px) rotate(40deg); }
[data-theme="light"] .theme-ico-sun { opacity: 0; transform: translateY(-12px) rotate(-40deg); }
[data-theme="light"] .theme-ico-moon { opacity: 1; transform: none; }
.logo {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.6rem;
  letter-spacing: -0.045em;
  font-variation-settings: "opsz" 48, "wdth" 100;
  color: var(--ink);
  transition: color 0.25s var(--ease), transform 0.25s var(--ease);
}
.logo:hover { color: var(--teal); transform: translateY(-1px); }

.search { display: flex; gap: 0.4rem; max-width: 520px; width: 100%; }
.search input, .search select,
.filters select, .filters input,
.box input, .box select, .box textarea {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 0.65rem;
  padding: 0.62rem 0.8rem;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.search input:focus, .search select:focus,
.filters select:focus, .filters input:focus,
.box input:focus, .box select:focus, .box textarea:focus {
  outline: none;
  border-color: rgba(11, 110, 106, 0.45);
  box-shadow: 0 0 0 3px rgba(11, 110, 106, 0.12);
}

.btn {
  border: 0;
  border-radius: 0.65rem;
  padding: 0.62rem 1rem;
  cursor: pointer;
  background: var(--bg-2);
  color: var(--ink);
  font-weight: 600;
  border: 1px solid var(--line);
  transition: transform 0.2s var(--ease), background 0.2s var(--ease), color 0.2s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: scale(0.98); }
.btn.primary {
  background: linear-gradient(135deg, var(--citrus), var(--citrus-deep));
  color: #fff;
  border-color: transparent;
}
.btn.teal {
  background: linear-gradient(135deg, var(--teal), var(--teal-deep));
  color: #fff;
  border-color: transparent;
}
.btn.ghost {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink);
}
.search-go,
.search button[type="submit"] {
  border: 0;
  border-radius: 0.65rem;
  padding: 0.62rem 1.1rem;
  cursor: pointer;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--teal), var(--teal-deep));
  transition: transform 0.2s var(--ease), filter 0.2s;
}
.search-go:hover,
.search button[type="submit"]:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
}

/* Language picker */
.lang-picker { position: relative; }
.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 42px;
  padding: 0.35rem 0.7rem;
  border-radius: 0.7rem;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  font-weight: 700;
}
.lang-flag { font-size: 1.15rem; line-height: 1; }
.lang-code { font-size: 0.82rem; letter-spacing: 0.04em; }
.lang-caret { font-size: 0.7rem; color: var(--muted); }
.lang-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  margin: 0;
  padding: 0.35rem;
  list-style: none;
  min-width: 168px;
  border-radius: 0.75rem;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
  z-index: 50;
}
.lang-menu[hidden] { display: none !important; }
.lang-menu li {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 0.65rem;
  border-radius: 0.55rem;
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 600;
}
.lang-menu li span {
  min-width: 1.6rem;
  color: var(--muted);
  font-size: 0.78rem;
}
.lang-menu li:hover,
.lang-menu li[aria-selected="true"] {
  background: color-mix(in srgb, var(--teal) 18%, var(--bg-2));
}

.nav { display: flex; flex-wrap: wrap; gap: 0.4rem; align-items: center; }
.nav button {
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  padding: 0.45rem 0.7rem;
  border-radius: 0.55rem;
  font-weight: 600;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.nav button:hover { color: var(--ink); background: rgba(11, 110, 106, 0.08); }
.nav button.active {
  color: #fff;
  background: var(--teal);
}
.nav-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.25rem;
  height: 1.25rem;
  padding: 0 0.35rem;
  margin-left: 0.2rem;
  border-radius: 0.4rem;
  background: var(--citrus);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
}
.nav button.active .nav-badge {
  background: #fff;
  color: var(--teal-deep);
}

.menu-toggle {
  display: none;
  width: 44px; height: 44px;
  border-radius: 0.65rem;
  border: 1px solid var(--line);
  background: var(--surface);
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.menu-toggle span {
  display: block; width: 18px; height: 2px; background: var(--ink);
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.site-header.nav-open .menu-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.site-header.nav-open .menu-toggle span:nth-child(2) { opacity: 0; }
.site-header.nav-open .menu-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Hero — stilize harita dokusu (Leaflet yok; tek harita = Harita sayfası) */
.hero {
  position: relative;
  min-height: min(78vh, 620px);
  display: grid;
  place-items: end start;
  overflow: hidden;
  background: #0a1214;
}
[data-theme="light"] .hero { background: #d5e4e8; }
.hero-visual {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, var(--hero-wash) 0%, color-mix(in srgb, var(--hero-wash) 70%, transparent) 42%, transparent 78%),
    linear-gradient(to top, var(--bg) 0%, transparent 30%),
    radial-gradient(circle at 72% 42%, rgba(46, 196, 182, 0.22), transparent 28%),
    radial-gradient(circle at 58% 55%, rgba(255, 122, 69, 0.14), transparent 32%),
    repeating-linear-gradient(0deg, transparent, transparent 27px, rgba(232, 241, 243, 0.04) 28px),
    repeating-linear-gradient(90deg, transparent, transparent 27px, rgba(232, 241, 243, 0.04) 28px),
    linear-gradient(160deg, #152226, #0f181b 50%, #0a1214);
}
[data-theme="light"] .hero-visual {
  background:
    linear-gradient(105deg, rgba(247, 251, 252, 0.96) 0%, rgba(247, 251, 252, 0.82) 40%, rgba(247, 251, 252, 0.28) 68%, transparent 82%),
    linear-gradient(to top, var(--bg) 0%, transparent 30%),
    radial-gradient(circle at 72% 42%, rgba(58, 139, 181, 0.22), transparent 28%),
    radial-gradient(circle at 58% 55%, rgba(11, 110, 106, 0.16), transparent 32%),
    repeating-linear-gradient(0deg, transparent, transparent 27px, rgba(19, 32, 40, 0.04) 28px),
    repeating-linear-gradient(90deg, transparent, transparent 27px, rgba(19, 32, 40, 0.04) 28px),
    linear-gradient(160deg, #eaf3f5, #d7e6ea 50%, #c5d8de);
}
.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 1180px;
  width: 100%;
  margin: 0 auto;
  padding: 4.5rem 1.25rem 2.5rem;
}
.leaflet-marker-listing-wrap,
.leaflet-marker-safe-wrap {
  background: transparent !important;
  border: 0 !important;
}
.map-pin {
  display: flex;
  align-items: flex-end;
  gap: 0.3rem;
  cursor: pointer;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.28));
  transition: transform 0.15s var(--ease);
}
.map-pin:hover { transform: translateY(-2px); z-index: 2; }
.map-pin-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--citrus);
  border: 2px solid #fff;
  flex-shrink: 0;
  margin-bottom: 4px;
}
.map-pin-card {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  min-width: 148px;
  max-width: 178px;
  padding: 0.28rem 0.4rem 0.28rem 0.28rem;
  background: rgba(255, 255, 255, 0.97);
  border: 1px solid rgba(19, 32, 40, 0.12);
  border-radius: 0.6rem;
  line-height: 1.15;
  color: #132028;
}
.map-pin-thumb {
  width: 40px;
  height: 40px;
  border-radius: 0.4rem;
  object-fit: cover;
  flex-shrink: 0;
  background: #e8eef0;
}
.map-pin-meta {
  display: grid;
  gap: 0.08rem;
  min-width: 0;
  flex: 1;
}
.map-pin-meta strong {
  font-size: 0.74rem;
  font-weight: 700;
  color: #132028;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.map-pin-meta em {
  font-style: normal;
  font-size: 0.76rem;
  font-weight: 700;
  color: #e85528;
}
.map-pin-meta small {
  font-size: 0.64rem;
  color: #5a6b75;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.map-pin-safe span {
  display: block;
  width: 14px;
  height: 14px;
  border-radius: 3px;
  background: var(--teal);
  border: 2px solid #fff;
  box-shadow: 0 2px 8px rgba(19, 32, 40, 0.2);
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--teal-deep);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.72rem;
  font-weight: 700;
  margin-bottom: 0.85rem;
  animation: rise 0.7s var(--ease) both;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 2px;
  background: var(--citrus);
}
.hero-copy h1 {
  font-family: var(--myth);
  font-weight: 650;
  font-size: clamp(3.4rem, 9vw, 6.2rem);
  letter-spacing: -0.035em;
  line-height: 0.94;
  margin: 0 0 0.85rem;
  color: var(--ink);
  font-variation-settings: "SOFT" 42, "WONK" 0.55, "opsz" 96;
  animation: rise 0.85s var(--ease) both;
}
.hero-copy p {
  max-width: 34rem;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.18rem);
  margin: 0 0 1.35rem;
  animation: rise 1s var(--ease) both;
}
.hero-actions {
  display: flex; gap: 0.65rem; flex-wrap: wrap;
  animation: rise 1.15s var(--ease) both;
}

main { max-width: 1180px; margin: 0 auto; padding: 0.25rem 1.25rem 3.5rem; }

.panel {
  margin: 2rem 0;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
}
.panel.in-view { opacity: 1; transform: none; }
.panel.view { display: none; opacity: 1; transform: none; }
.panel.view.active {
  display: block;
  animation: viewReveal 0.95s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.panel-head {
  display: flex; justify-content: space-between; align-items: end;
  gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem;
}
.panel-head h2 {
  font-family: var(--myth);
  font-weight: 600;
  font-size: clamp(1.55rem, 3vw, 2rem);
  letter-spacing: -0.025em;
  margin: 0;
  font-variation-settings: "SOFT" 40, "WONK" 0.4, "opsz" 48;
}
.hint { color: var(--muted); font-size: 0.9rem; }
.filters { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.filters input { width: 6.5rem; }
.rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(230px, 270px);
  gap: 0.95rem;
  overflow-x: auto;
  padding: 0.2rem 0.1rem 0.6rem;
  scroll-snap-type: x mandatory;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
}

/* Dedicated map page */
body.map-open #view-home,
body.map-open #showcaseWrap,
body.map-open #browsePanel {
  display: none !important;
}
body.map-open main {
  max-width: none;
  padding: 0;
  margin: 0;
}
body.map-open .site-footer,
body.map-open #cookie { display: none; }
#view-map.panel {
  opacity: 1 !important;
  transform: none !important;
  margin: 0;
}
#view-map.map-page.active {
  display: block !important;
  position: relative;
  z-index: 5;
  background: var(--surface);
}
.map-layout {
  display: grid;
  grid-template-columns: minmax(300px, 380px) 1fr;
  min-height: calc(100vh - var(--header-h));
  background: var(--surface);
}
.map-sidebar {
  display: block;
  border-radius: 0;
  border: 0;
  border-right: 1px solid var(--line);
  margin: 0;
  overflow: auto;
  max-height: calc(100vh - var(--header-h));
  background: var(--surface);
  opacity: 1;
  padding: 1.1rem 1rem 1.5rem;
  box-shadow: none;
  animation: none;
}
.map-side-head h2 {
  margin: 0 0 0.2rem;
  font-family: var(--myth);
  font-weight: 600;
  letter-spacing: -0.025em;
  font-size: 1.35rem;
  font-variation-settings: "SOFT" 35, "WONK" 0.35, "opsz" 36;
}
.map-side-head .muted { margin: 0 0 0.85rem; font-size: 0.82rem; }
.map-filters {
  display: block;
  margin-top: 0.25rem;
}
.mf-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  column-gap: 0.6rem;
  row-gap: 0.7rem;
  align-items: stretch;
  width: 100%;
}
.mf-field {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  min-width: 0;
  width: 100%;
  position: relative;
  margin: 0;
  align-items: stretch;
}
.mf-label {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1.2;
}
.mf-span2 { grid-column: 1 / -1; }
.mf-field > select,
.mf-field > input[type="text"],
.mf-field > input[type="number"] {
  display: block;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  min-height: 2.6rem;
  height: 2.6rem;
  padding: 0 0.7rem;
  border-radius: 0.7rem;
  border: 1px solid var(--line);
  background: var(--bg-2);
  color: var(--ink);
  appearance: none;
  -webkit-appearance: none;
}
.mf-field > select {
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%),
    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 14px) 55%, calc(100% - 9px) 55%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 1.6rem;
}
.mf-field > select:focus,
.mf-field > input:focus {
  outline: none;
  border-color: color-mix(in srgb, var(--teal) 55%, var(--line));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--teal) 22%, transparent);
}
.mf-check {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-top: 0.75rem;
  padding: 0.55rem 0.65rem;
  border-radius: 0.7rem;
  background: var(--bg-2);
  border: 1px solid var(--line);
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  color: var(--ink);
}
.mf-check input { width: 1.05rem; height: 1.05rem; accent-color: var(--teal); flex-shrink: 0; }
.mf-clear { width: 100%; margin-top: 0.55rem; }
.map-result-meta { margin: 0.85rem 0 0.35rem; font-size: 0.82rem; }

/* Autocomplete */
.mf-ac { z-index: 2; }
.mf-ac:focus-within { z-index: 6; }
.ac-list {
  position: absolute;
  left: 0; right: 0;
  top: calc(100% + 3px);
  margin: 0;
  padding: 0.3rem;
  list-style: none;
  max-height: 220px;
  overflow: auto;
  border-radius: 0.75rem;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
  z-index: 8;
}
.ac-list[hidden] { display: none !important; }
.ac-list li {
  padding: 0.5rem 0.65rem;
  border-radius: 0.5rem;
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 600;
}
.ac-list li:hover,
.ac-list li.active {
  background: color-mix(in srgb, var(--teal) 18%, var(--bg-2));
  color: var(--ink);
}
.ac-list li small {
  display: block;
  font-weight: 500;
  color: var(--muted);
  font-size: 0.72rem;
  margin-top: 0.1rem;
}
.ac-list li.ac-empty {
  color: var(--muted);
  cursor: default;
  font-weight: 500;
}
.page-map {
  width: 100%;
  min-height: calc(100vh - var(--header-h));
  height: calc(100vh - var(--header-h));
  background: #d9e6ea;
  z-index: 0;
}
.map-results {
  display: grid;
  gap: 0.45rem;
  margin-top: 0.75rem;
}
.map-results button,
.map-result-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-align: left;
  border: 1px solid var(--line);
  background: var(--bg-2);
  border-radius: 0.65rem;
  padding: 0.45rem 0.55rem;
  cursor: pointer;
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease);
  width: 100%;
  color: inherit;
}
.map-results button:hover,
.map-result-item:hover {
  border-color: color-mix(in srgb, var(--teal) 45%, var(--line));
  transform: translateY(-1px);
}
.map-result-item img {
  width: 44px;
  height: 44px;
  border-radius: 0.45rem;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--surface);
}
.map-result-item span { min-width: 0; flex: 1; }
.map-result-item strong {
  display: block;
  font-size: 0.88rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.map-results .price { color: var(--citrus); font-weight: 700; font-size: 0.9rem; }

@media (max-width: 900px) {
  .map-layout {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(220px, 38vh) minmax(50vh, 1fr);
  }
  .map-sidebar {
    max-height: 38vh;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    order: 1;
  }
  .page-map,
  .map-canvas,
  #pageMap {
    order: 0;
    min-height: 50vh;
    height: 50vh;
  }
  .map-results { max-height: 28vh; }
}
.lang {
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  padding: 0.35rem 0.45rem;
  font-weight: 700;
}

.card {
  scroll-snap-align: start;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 1rem;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 1px 0 rgba(19,32,40,0.03);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
  animation: cardIn 0.5s var(--ease) both;
}
.card:hover {
  transform: translateY(-5px);
  border-color: rgba(11, 110, 106, 0.28);
  box-shadow: var(--shadow);
}
.card .media {
  aspect-ratio: 4/3;
  background-color: #1a262a;
  background-image: linear-gradient(135deg, #cfe3e4, #b7d3df);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  image-rendering: auto;
  -webkit-backface-visibility: hidden;
  transition: transform 0.5s var(--ease);
}
.card:hover .media { transform: scale(1.04); }
.card .body { padding: 0.9rem 1rem 1.05rem; }
.card h3 { margin: 0 0 0.3rem; font-size: 1.05rem; font-weight: 700; letter-spacing: -0.02em; }
.price { color: var(--citrus-deep); font-weight: 800; }
.price-old {
  margin-left: 0.4rem;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.85em;
  text-decoration: line-through;
  opacity: 0.75;
}
.meta { color: var(--muted); font-size: 0.82rem; margin-top: 0.3rem; }
.badge {
  display: inline-block;
  margin-top: 0.4rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
  background: var(--teal);
  padding: 0.18rem 0.45rem;
  border-radius: 0.35rem;
}

.box {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 1.15rem;
  display: grid;
  gap: 0.7rem;
  box-shadow: 0 1px 0 rgba(19,32,40,0.03);
  animation: swap 0.4s var(--ease) both;
}
.box.wide { max-width: 780px; }
.box label {
  color: var(--muted); font-size: 0.9rem;
  display: flex; gap: 0.45rem; align-items: flex-start;
}
.row { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 0.55rem; }
.auth-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1rem; }
.dyn { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-bottom: 0.5rem; }
.thumbs { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.thumbs img {
  width: 76px; height: 76px; object-fit: cover;
  border-radius: 0.5rem; border: 1px solid var(--line);
}
.status { color: var(--teal-deep); min-height: 1.2em; font-weight: 600; }
.muted { color: var(--muted); font-size: 0.9rem; }

/* Toast: popover = top-layer; sabit yüksek kontrast (tema --ink kullanma) */
.toast,
.toast:popover-open {
  position: fixed;
  inset: auto 1rem 1rem auto;
  margin: 0;
  border: 0;
  border-left: 4px solid #3db8a8;
  z-index: 2147483000;
  min-width: 240px;
  max-width: min(380px, 92vw);
  padding: 0.95rem 1.15rem 0.95rem 1rem;
  border-radius: 0.85rem;
  background: #f4fbfa !important;
  color: #0a1f22 !important;
  box-shadow:
    0 18px 50px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(10, 31, 34, 0.12);
  font-family: var(--sans);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  line-height: 1.35;
  transform: translateY(120%);
  opacity: 0;
  transition: transform 0.35s var(--ease), opacity 0.35s var(--ease);
  overflow: visible;
  color-scheme: light;
}
.toast.show,
.toast:popover-open.show {
  transform: none;
  opacity: 1;
}
[data-theme="light"] .toast,
[data-theme="light"] .toast:popover-open {
  background: #0f2a2c;
  color: #f4fbfa;
  border-left-color: #ff7a45;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28), 0 0 0 1px rgba(15, 42, 44, 0.2);
  color-scheme: dark;
}

/* Mini action modal (prompt yerine) */
.py-modal {
  border: 0;
  padding: 0;
  background: transparent;
  max-width: min(420px, 94vw);
  width: 100%;
}
.py-modal::backdrop {
  background: rgba(6, 12, 14, 0.58);
  backdrop-filter: blur(7px);
}
.py-modal-card {
  position: relative;
  margin: 0;
  padding: 1.25rem 1.3rem 1.15rem;
  border-radius: 1.25rem;
  border: 1px solid var(--line);
  background: linear-gradient(165deg, color-mix(in srgb, var(--surface) 94%, var(--teal)), var(--surface));
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.4);
  color: var(--ink);
  animation: assembleIn 0.35s var(--ease) both;
}
.py-modal-x {
  position: absolute;
  top: 0.65rem; right: 0.7rem;
  width: 2rem; height: 2rem;
  border: 1px solid var(--line);
  border-radius: 0.55rem;
  background: var(--bg-2);
  color: var(--ink);
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
}
.py-modal-card h3 {
  margin: 0 1.5rem 0.35rem 0;
  font-family: var(--myth);
  font-weight: 600;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  font-variation-settings: "SOFT" 40, "WONK" 0.35, "opsz" 36;
}
.py-modal-card > .muted { margin: 0 0 0.9rem; font-size: 0.88rem; }
.py-modal-fields { display: grid; gap: 0.75rem; margin-bottom: 1rem; }
.py-field { display: grid; gap: 0.3rem; }
.py-field label {
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.py-field input,
.py-field textarea,
.py-field select {
  min-height: 2.6rem;
  border-radius: 0.75rem;
  border: 1px solid var(--line);
  background: var(--bg-2);
  color: var(--ink);
  padding: 0.55rem 0.8rem;
  font: inherit;
}
.py-field textarea { min-height: 5.5rem; resize: vertical; }
.py-stars {
  display: flex;
  gap: 0.35rem;
  justify-content: center;
  padding: 0.35rem 0;
}
.py-star {
  width: 2.5rem; height: 2.5rem;
  border: 1px solid var(--line);
  border-radius: 0.7rem;
  background: var(--bg-2);
  color: var(--muted);
  font-size: 1.25rem;
  cursor: pointer;
  transition: transform 0.15s, background 0.2s, color 0.2s, border-color 0.2s;
}
.py-star:hover { transform: translateY(-2px); }
.py-star.on {
  color: #fff;
  background: linear-gradient(135deg, var(--citrus), var(--citrus-deep));
  border-color: transparent;
  box-shadow: 0 8px 18px rgba(255, 122, 69, 0.35);
}
.py-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
}

.inbox { display: grid; grid-template-columns: minmax(240px, 300px) 1fr; gap: 0.9rem; min-height: 520px; }
.inbox-list { overflow: auto; max-height: min(70vh, 640px); padding: 0.65rem !important; }
.conv-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.35rem;
  align-items: start;
  margin-bottom: 0.45rem;
}
.conv-item > button.conv-main {
  display: block; width: 100%; text-align: left;
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 0.75rem;
  padding: 0.7rem 0.75rem; cursor: pointer; font-weight: 650;
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease), background 0.2s;
  color: inherit; font: inherit;
}
.conv-item > button.conv-main:hover,
.conv-item.active > button.conv-main {
  border-color: color-mix(in srgb, var(--teal) 45%, var(--line));
  background: color-mix(in srgb, var(--surface) 70%, var(--teal));
}
.conv-item .conv-peer { display: block; font-size: 0.78rem; color: var(--muted); font-weight: 500; margin-top: 0.15rem; }
.conv-item .conv-preview { font-size: 0.8rem; color: var(--muted); font-weight: 500; margin-top: 0.25rem; }
.conv-item .conv-badge {
  display: inline-block;
  margin-left: 0.35rem;
  padding: 0.1rem 0.4rem;
  border-radius: 999px;
  background: var(--citrus);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
}
.chat-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  padding-bottom: 0.65rem;
  margin-bottom: 0.65rem;
  border-bottom: 1px solid var(--line);
}
.chat-meta-text { display: grid; gap: 0.15rem; }
.chat-meta-text strong { font-family: var(--myth); font-weight: 600; font-size: 1.05rem; }
.chat-meta-actions { display: flex; gap: 0.4rem; flex-wrap: wrap; }
.chat {
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 480px;
}
.chat #chatLog {
  list-style: none; padding: 0.25rem 0; margin: 0;
  max-height: min(48vh, 420px); overflow: auto; display: grid; gap: 0.5rem;
  align-content: start;
}
.chat #chatLog li {
  max-width: min(85%, 420px);
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 0.65rem 0.85rem;
  animation: rise 0.3s var(--ease) both;
  font-size: 0.92rem;
  line-height: 1.4;
}
.chat #chatLog li.me {
  justify-self: end;
  background: linear-gradient(135deg, color-mix(in srgb, var(--teal) 35%, var(--surface)), var(--surface));
  border-color: color-mix(in srgb, var(--teal) 40%, var(--line));
  border-bottom-right-radius: 0.35rem;
}
.chat #chatLog li.them {
  justify-self: start;
  background: var(--bg-2);
  border-bottom-left-radius: 0.35rem;
}
.chat #chatLog li .who {
  display: block;
  font-size: 0.68rem;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.2rem;
}
.chat #chatLog li .when {
  display: inline;
  margin-top: 0.3rem;
  font-size: 0.7rem;
  color: var(--muted);
}
.chat #chatLog li .chat-msg-actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-top: 0.35rem;
}
.chat #chatLog li .chat-msg-del {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 0.68rem;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
}
.chat #chatLog li .chat-msg-del:hover { color: var(--danger, #c44); }
.chat-form { display: grid; grid-template-columns: 1fr auto; gap: 0.5rem; margin-top: 0.65rem; }
.chat-form input {
  min-height: 2.7rem;
  border-radius: 0.85rem;
  border: 1px solid var(--line);
  background: var(--bg-2);
  padding: 0.55rem 0.85rem;
}
.chat-blocked-note {
  padding: 0.75rem;
  border-radius: 0.85rem;
  background: color-mix(in srgb, var(--danger) 12%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--danger) 35%, var(--line));
  color: var(--ink);
  font-size: 0.88rem;
  margin-bottom: 0.5rem;
}

.plans-hero, .compare-hero {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
  padding: 1.25rem 1.35rem;
  border-radius: 1.15rem;
  border: 1px solid var(--line);
  background:
    radial-gradient(900px 220px at 10% -20%, rgba(11,110,106,0.22), transparent 55%),
    radial-gradient(700px 200px at 90% 0%, rgba(255,106,61,0.14), transparent 50%),
    var(--surface);
}
.plans-hero h2, .compare-hero h2 {
  margin: 0.15rem 0 0.35rem;
  font-family: var(--myth);
  font-size: clamp(1.45rem, 2.4vw, 1.9rem);
  letter-spacing: -0.03em;
}
.plans-kicker {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal-deep);
}
.plans {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  align-items: stretch;
}
@media (max-width: 1100px) {
  .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .plans { grid-template-columns: 1fr; }
}
.plan {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  border: 1px solid var(--line);
  border-radius: 1.15rem;
  padding: 1.25rem 1.2rem 1.15rem;
  background: linear-gradient(165deg, color-mix(in srgb, var(--surface) 92%, var(--teal-deep)), var(--surface));
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
  position: relative;
  overflow: hidden;
}
.plan::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--teal-deep), var(--citrus));
  opacity: 0.85;
}
.plan.featured {
  border-color: color-mix(in srgb, var(--citrus) 55%, var(--line));
  box-shadow: 0 16px 40px rgba(0,0,0,0.18);
  transform: translateY(-4px);
}
.plan.featured::after {
  content: "Önerilen";
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.25rem 0.5rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--citrus) 22%, transparent);
  color: var(--citrus-deep);
}
.plan:hover {
  transform: translateY(-6px);
  border-color: rgba(11,110,106,0.35);
  box-shadow: var(--shadow);
}
.plan h3 {
  font-family: var(--myth);
  margin: 0 0 0.3rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  font-variation-settings: "SOFT" 35, "WONK" 0.35, "opsz" 36;
  padding-right: 4.5rem;
}
.plan .amt { color: var(--citrus-deep); font-size: 1.55rem; font-weight: 800; margin: 0.45rem 0 0.7rem; }
.plan ul {
  margin: 0 0 1rem;
  padding-left: 1.1rem;
  color: var(--muted);
  flex: 1;
  display: grid;
  gap: 0.35rem;
}
.plan .btn { width: 100%; margin-top: auto; }
.plan .btn.wa {
  background: #1f9d5c;
  border-color: #1f9d5c;
  color: #fff;
}
.plan .btn.wa:hover { filter: brightness(1.06); }

.detail-dlg {
  position: fixed;
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  background: var(--surface);
  color: var(--ink);
  width: min(820px, 96vw);
  max-height: min(92vh, 920px);
  padding: 0;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  animation: assembleIn 0.45s var(--ease) both;
  overflow: hidden;
}
.detail-dlg::backdrop {
  background: rgba(6, 12, 14, 0.62);
  backdrop-filter: blur(6px);
  cursor: pointer;
}
.detail-close {
  position: absolute;
  top: 0.7rem; right: 0.7rem;
  z-index: 3;
  width: 2.2rem; height: 2.2rem;
  border: 1px solid var(--line);
  border-radius: 0.65rem;
  background: color-mix(in srgb, var(--surface) 88%, black);
  color: var(--ink);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}
.detail-body {
  display: grid;
  gap: 0;
  max-height: min(92vh, 920px);
  overflow: auto;
}
.detail-hero {
  position: relative;
  background: var(--bg-2);
  min-height: 180px;
}
.detail-gallery {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(70%, 1fr);
  gap: 0.45rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 0.75rem;
}
.detail-gallery img,
.detail-gallery .detail-ph {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  border-radius: 0.85rem;
  scroll-snap-align: start;
  background: linear-gradient(135deg, var(--bg), var(--surface));
}
.detail-ph {
  display: grid;
  place-items: center;
  color: var(--muted);
  font-weight: 600;
}
.detail-main { padding: 1rem 1.15rem 1.35rem; display: grid; gap: 0.85rem; }
.detail-head { display: grid; gap: 0.35rem; }
.detail-head h2 {
  margin: 0;
  font-family: var(--myth);
  font-weight: 600;
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  letter-spacing: -0.025em;
  line-height: 1.15;
  padding-right: 2rem;
  font-variation-settings: "SOFT" 38, "WONK" 0.4, "opsz" 40;
}
.detail-price {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--citrus);
}
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.75rem;
  color: var(--muted);
  font-size: 0.88rem;
}
.detail-desc {
  margin: 0;
  line-height: 1.55;
  color: var(--ink);
}
.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}
.detail-actions .btn { flex: 1 1 auto; min-width: 7.5rem; }
.detail-actions .btn.ghost { flex: 0 1 auto; }
.detail-sec {
  border-top: 1px solid var(--line);
  padding-top: 0.85rem;
  display: grid;
  gap: 0.55rem;
}
.detail-sec h4 {
  margin: 0;
  font-family: var(--serif);
  letter-spacing: -0.02em;
}
.related-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(168px, 190px);
  gap: 0.6rem;
  overflow-x: auto;
  padding-bottom: 0.2rem;
}
.related-card {
  display: grid;
  grid-template-rows: 96px auto auto;
  gap: 0.4rem;
  text-align: left;
  border: 1px solid var(--line);
  background: var(--bg-2);
  border-radius: 0.9rem;
  padding: 0.45rem;
  cursor: pointer;
  color: inherit;
  transition: transform 0.2s var(--ease), border-color 0.2s;
}
.related-card:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--teal) 45%, var(--line));
}
.related-card img {
  width: 100%;
  height: 96px;
  object-fit: cover;
  border-radius: 0.55rem;
  background: var(--surface);
}
.related-card-body { display: grid; gap: 0.2rem; min-width: 0; }
.related-card-body strong {
  font-size: 0.82rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.related-card .price { color: var(--citrus); font-weight: 700; font-size: 0.88rem; }
.related-cmp {
  display: block;
  text-align: center;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.4rem;
  border-radius: 0.5rem;
  background: color-mix(in srgb, var(--teal) 16%, var(--surface));
  color: var(--teal);
  border: 0;
  cursor: pointer;
  width: 100%;
}

/* Auth stage */
.auth-stage {
  position: relative;
  min-height: calc(100vh - var(--header-h));
  display: grid;
  place-items: center;
  padding: 2rem 1rem 3rem;
  overflow: hidden;
}
.auth-orbit {
  position: absolute;
  inset: -10%;
  pointer-events: none;
  background:
    radial-gradient(circle at 20% 30%, rgba(46, 196, 182, 0.18), transparent 35%),
    radial-gradient(circle at 80% 70%, rgba(255, 122, 69, 0.14), transparent 40%);
}
.auth-orbit i {
  position: absolute;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--teal);
  opacity: 0.55;
  animation: floatOrb 12s var(--ease) infinite;
  box-shadow: 0 0 24px color-mix(in srgb, var(--teal) 50%, transparent);
}
.auth-orbit i:nth-child(1) { left: 12%; top: 22%; animation-delay: 0s; }
.auth-orbit i:nth-child(2) { left: 78%; top: 18%; width: 14px; height: 14px; background: var(--citrus); animation-delay: -2s; }
.auth-orbit i:nth-child(3) { left: 24%; top: 72%; width: 8px; height: 8px; animation-delay: -4s; }
.auth-orbit i:nth-child(4) { left: 66%; top: 64%; width: 12px; height: 12px; background: var(--sky); animation-delay: -1s; }
.auth-orbit i:nth-child(5) { left: 48%; top: 30%; width: 6px; height: 6px; animation-delay: -6s; }
.auth-orbit i:nth-child(6) { left: 88%; top: 48%; animation-delay: -3s; }
.auth-orbit i:nth-child(7) { left: 8%; top: 50%; width: 16px; height: 16px; background: var(--citrus); animation-delay: -5s; }
.auth-orbit i:nth-child(8) { left: 55%; top: 80%; animation-delay: -7s; }
@keyframes floatOrb {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.35; }
  50% { transform: translate(18px, -28px) scale(1.35); opacity: 0.85; }
}
.auth-shell {
  position: relative;
  z-index: 1;
  width: min(920px, 100%);
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 1.25rem;
  align-items: stretch;
}
.auth-brand {
  display: grid;
  align-content: center;
  gap: 0.75rem;
  padding: 1.5rem;
  border-radius: 1.4rem;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 80%, transparent);
  backdrop-filter: blur(10px);
  animation: assembleIn 0.7s var(--ease) both;
}
.auth-brand-mark {
  width: 3rem; height: 3rem;
  display: grid; place-items: center;
  border-radius: 0.9rem;
  font-family: var(--display);
  font-weight: 800;
  font-variation-settings: "opsz" 28;
  background: linear-gradient(135deg, var(--teal), var(--citrus));
  color: #fff;
}
.auth-brand-logo {
  display: block;
  width: min(180px, 55%);
  height: auto;
  object-fit: contain;
  margin-bottom: 0.25rem;
}
.auth-brand h2 {
  margin: 0;
  font-family: var(--myth);
  font-weight: 600;
  font-size: clamp(1.85rem, 4vw, 2.65rem);
  letter-spacing: -0.03em;
  line-height: 1.08;
  font-variation-settings: "SOFT" 55, "WONK" 0.7, "opsz" 72;
}
.auth-brand p {
  margin: 0;
  color: var(--muted);
  max-width: 28rem;
  font-family: var(--sans);
  font-weight: 450;
  line-height: 1.45;
}
.auth-card {
  border-radius: 1.4rem;
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 1.15rem 1.2rem 1.35rem;
  box-shadow: var(--shadow);
  animation: assembleIn 0.85s var(--ease) both;
}
.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.35rem;
  padding: 0.3rem;
  border-radius: 0.9rem;
  background: var(--bg-2);
  margin-bottom: 1rem;
}
.auth-tab {
  border: 0;
  border-radius: 0.7rem;
  padding: 0.65rem;
  background: transparent;
  color: var(--muted);
  font-weight: 700;
  cursor: pointer;
}
.auth-tab.active {
  background: linear-gradient(135deg, var(--teal), var(--teal-deep));
  color: #fff;
}
.auth-form { display: grid; gap: 0.7rem; }
.auth-field { display: grid; gap: 0.28rem; }
.auth-field span {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.auth-field input {
  min-height: 2.7rem;
  border-radius: 0.75rem;
  border: 1px solid var(--line);
  background: var(--bg-2);
  color: var(--ink);
  padding: 0.55rem 0.8rem;
}
.auth-check {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
  color: var(--muted);
  font-size: 0.86rem;
}
.auth-submit { width: 100%; margin-top: 0.25rem; }
.auth-demo { margin: 0; font-size: 0.8rem; text-align: center; }
@media (max-width: 820px) {
  .auth-shell { grid-template-columns: 1fr; }
  .auth-brand { order: -1; }
}

.site-footer {
  max-width: 1180px; margin: 0 auto;
  padding: 1.6rem 1.25rem 2.8rem;
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  color: var(--muted); border-top: 1px solid var(--line);
}
.site-footer a { margin-right: 0.85rem; font-weight: 600; }

.cookie {
  position: fixed; bottom: 1rem; left: 50%;
  transform: translateX(-50%) translateY(120%);
  width: min(640px, 92vw); z-index: 50;
  display: flex; gap: 0.8rem; align-items: center; justify-content: space-between;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 0.9rem; padding: 0.85rem 1rem;
  box-shadow: var(--shadow);
  transition: transform 0.4s var(--ease);
}
.cookie:not(.hidden) { transform: translateX(-50%) translateY(0); }
.cookie p { margin: 0; font-size: 0.9rem; color: var(--muted); }

.skeleton {
  background: linear-gradient(90deg, #e7eef1, #f6fafb, #e7eef1);
  background-size: 200% 100%;
  animation: shimmer 1.2s linear infinite;
  border-radius: 1rem;
  min-height: 220px;
}

.store-head {
  display: grid; gap: 0.35rem;
  padding: 1.2rem;
  border-radius: 1rem;
  background: linear-gradient(135deg, rgba(11,110,106,0.1), rgba(58,139,181,0.1));
  border: 1px solid var(--line);
  margin-bottom: 1rem;
}
.store-head h2 { margin: 0; font-family: var(--serif); }

.compare-toolbar { margin: 0; }
.compare-arena {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin-top: 0.35rem;
}
.compare-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 1.2rem;
  background: var(--surface);
  overflow: hidden;
  min-height: 100%;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
  animation: cardIn 0.45s var(--ease) both;
}
.compare-card:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--teal-deep) 40%, var(--line));
  box-shadow: var(--shadow);
}
.compare-card.best-price {
  border-color: color-mix(in srgb, var(--citrus) 50%, var(--line));
  box-shadow: 0 12px 36px rgba(255, 106, 61, 0.12);
}
.compare-card-media {
  position: relative;
  aspect-ratio: 4/3;
  background: var(--bg-2);
  overflow: hidden;
}
.compare-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s var(--ease);
}
.compare-card:hover .compare-thumb { transform: scale(1.04); }
.compare-card-body {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: 1rem 1.05rem 1.1rem;
  flex: 1;
}
.compare-card-body h3 {
  margin: 0;
  font-family: var(--myth);
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  line-height: 1.25;
}
.compare-price {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--citrus-deep);
  letter-spacing: -0.02em;
}
.compare-price small {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--teal-deep);
  letter-spacing: 0.02em;
}
.compare-specs {
  display: grid;
  gap: 0.4rem;
  margin: 0.15rem 0 0.35rem;
}
.compare-spec {
  display: grid;
  grid-template-columns: 6.2rem 1fr;
  gap: 0.4rem;
  font-size: 0.86rem;
  padding: 0.35rem 0;
  border-bottom: 1px solid color-mix(in srgb, var(--line) 80%, transparent);
}
.compare-spec:last-child { border-bottom: 0; }
.compare-spec dt {
  margin: 0;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.compare-spec dd { margin: 0; font-weight: 600; }
.compare-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: auto;
}
.bucket {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.2rem 0.45rem;
  border-radius: 0.4rem;
}
.bucket.new { background: rgba(31, 157, 108, 0.15); color: #146b4a; }
.bucket.used { background: rgba(255, 106, 61, 0.15); color: var(--citrus-deep); }
.compare-insight {
  margin: 0 0 1rem;
  padding: 0.95rem 1.15rem;
  border-radius: 0.95rem;
  border: 1px solid rgba(11, 110, 106, 0.25);
  background: linear-gradient(135deg, rgba(11,110,106,0.1), rgba(58,139,181,0.08));
}
.compare-insight strong { color: var(--teal-deep); }
.compare-empty { text-align: center; padding: 2rem 1.25rem; }
.edit-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem 0.9rem;
}
.edit-form .mf-span2 { grid-column: 1 / -1; }
.edit-form .mf-field { display: grid; gap: 0.3rem; }
.edit-form input, .edit-form select, .edit-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 0.7rem;
  background: var(--bg-2);
  color: var(--ink);
  padding: 0.6rem 0.75rem;
  font: inherit;
}
.edit-panel { margin-top: 1rem; }
.photo-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.photo-preview img {
  width: 88px;
  height: 88px;
  object-fit: cover;
  border-radius: 0.65rem;
  border: 1px solid var(--line);
  background: var(--bg-2);
}
@media (max-width: 720px) {
  .edit-form { grid-template-columns: 1fr; }
  .edit-form .mf-span2 { grid-column: auto; }
}
.peer-box {
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--line);
}
.peer-box h4 { margin: 0 0 0.55rem; font-family: var(--serif); }
.peer-list { display: grid; gap: 0.45rem; }
.peer-list button {
  text-align: left;
  border: 1px solid var(--line);
  background: var(--bg-2);
  border-radius: 0.65rem;
  padding: 0.55rem 0.7rem;
  cursor: pointer;
}
.peer-list button:hover { border-color: rgba(11,110,106,0.4); }

@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}
@keyframes swap {
  from { opacity: 0; transform: translateY(14px) scale(0.99); filter: blur(4px); }
  to { opacity: 1; transform: none; filter: none; }
}
@keyframes cardIn {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}
@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

@media (max-width: 960px) {
  .site-header {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "logo tools"
      "search search";
    gap: 0.55rem 0.65rem;
    padding: 0.65rem 0.85rem;
  }
  .logo { grid-area: logo; }
  .menu-toggle { display: inline-flex; }
  .search { grid-area: search; max-width: none; }
  .header-tools {
    grid-area: tools;
    justify-self: end;
    display: flex;
    align-items: center;
    gap: 0.55rem;
  }
  .logo-img { height: 40px; max-width: 120px; }
  .theme-toggle { z-index: 41; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    flex-direction: column; align-items: stretch;
    padding: 0.75rem;
    background: var(--header-glass);
    border-bottom: 1px solid var(--line);
    transform: translateY(-120%); opacity: 0; pointer-events: none;
    transition: transform 0.35s var(--ease), opacity 0.35s var(--ease);
    z-index: 39;
    max-height: calc(100dvh - var(--header-h));
    overflow: auto;
  }
  .site-header.nav-open .nav {
    transform: none; opacity: 1; pointer-events: auto;
  }
  .nav button { width: 100%; justify-content: flex-start; padding: 0.7rem 0.85rem; }
  .inbox { grid-template-columns: 1fr; }
  .plans-hero, .compare-hero { padding: 1rem; }
  .compare-dock,
  .compare-dock.has-items,
  .compare-dock.drag-over {
    left: 0.5rem;
    right: 0.5rem;
    width: auto;
    transform: translateY(0);
  }
  .compare-dock:not(.has-items):not(.drag-over) {
    transform: translateY(140%);
  }
  .rail { scroll-snap-type: x mandatory; }
  .rail .card { scroll-snap-align: start; min-width: min(72vw, 260px); }
  main { padding-inline: 0.85rem; }
}

@media (max-width: 560px) {
  .hero-copy { padding: 3.5rem 1rem 2rem; }
  .filters input { width: 100%; }
  .row, .chat-form { grid-template-columns: 1fr; }
  .search { gap: 0.35rem; }
  .search-go { padding-inline: 0.85rem; }
  .toast, .toast:popover-open {
    inset: auto 0.65rem 0.65rem 0.65rem;
    min-width: 0;
    max-width: none;
    width: auto;
  }
  .compare-arena { grid-template-columns: 1fr; }
  .auth-grid { grid-template-columns: 1fr; }
}

/* Filter deck + category rail */
.filter-deck {
  display: grid;
  gap: 0.85rem;
  margin: 0.75rem 0 1.25rem;
  padding: 1rem;
  border-radius: 1.1rem;
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--surface) 92%, var(--teal)), var(--surface));
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.cat-rail {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}
.cat-pill {
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg-2) 80%, transparent);
  color: var(--ink);
  border-radius: 999px;
  padding: 0.4rem 0.85rem;
  font-weight: 650;
  font-size: 0.85rem;
  cursor: pointer;
  transition: transform 0.2s var(--ease), background 0.2s, border-color 0.2s;
}
.cat-pill:hover { transform: translateY(-2px); border-color: var(--teal); }
.cat-pill.active {
  background: linear-gradient(135deg, var(--teal), var(--teal-deep));
  color: #fff;
  border-color: transparent;
}
.cat-pill.leaf { font-size: 0.78rem; opacity: 0.92; }
.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: stretch;
}
.fchip {
  display: grid;
  gap: 0.25rem;
  min-width: 120px;
  padding: 0.45rem 0.65rem;
  border-radius: 0.85rem;
  background: var(--bg-2);
  border: 1px dashed color-mix(in srgb, var(--teal) 40%, var(--line));
  cursor: grab;
}
.fchip:active { cursor: grabbing; }
.fchip.dragging { opacity: 0.45; transform: scale(0.96); }
.fchip span {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  font-weight: 700;
}
.fchip select, .fchip input {
  border: 0;
  background: transparent;
  padding: 0.15rem 0;
  width: 100%;
}
.price-pair { display: flex; gap: 0.35rem; }
.price-pair input { width: 4.5rem; }

/* —— Sinematik sayfa perdesi (veil) —— */
.page-veil {
  --veil-ease-in: cubic-bezier(0.65, 0, 0.35, 1);
  --veil-ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  opacity: 0;
  overflow: hidden;
}
.page-veil.on {
  opacity: 1;
  pointer-events: auto;
}
.page-veil.done { opacity: 0; transition: opacity 0.2s ease; }

.veil-bloom {
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(ellipse 55% 45% at 50% 48%,
      color-mix(in srgb, var(--teal) 28%, transparent) 0%,
      transparent 70%),
    radial-gradient(ellipse 40% 35% at 50% 52%,
      color-mix(in srgb, var(--citrus) 12%, transparent) 0%,
      transparent 65%);
  opacity: 0;
  transform: scale(0.7);
  filter: blur(2px);
}
.veil-panel {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 52%;
  background:
    linear-gradient(180deg,
      color-mix(in srgb, var(--bg-2) 92%, var(--teal)) 0%,
      var(--bg) 45%,
      color-mix(in srgb, var(--bg) 90%, #000) 100%);
  box-shadow: 0 0 60px rgba(0, 0, 0, 0.35);
}
.veil-left {
  left: 0;
  transform: translateX(-102%);
  border-right: 1px solid color-mix(in srgb, var(--teal) 22%, transparent);
  background-image:
    linear-gradient(105deg,
      transparent 40%,
      color-mix(in srgb, var(--teal) 8%, transparent) 100%),
    linear-gradient(180deg,
      color-mix(in srgb, var(--bg-2) 92%, var(--teal)) 0%,
      var(--bg) 45%,
      color-mix(in srgb, var(--bg) 90%, #000) 100%);
}
.veil-right {
  right: 0;
  transform: translateX(102%);
  border-left: 1px solid color-mix(in srgb, var(--citrus) 14%, transparent);
  background-image:
    linear-gradient(255deg,
      transparent 40%,
      color-mix(in srgb, var(--citrus) 7%, transparent) 100%),
    linear-gradient(180deg,
      color-mix(in srgb, var(--bg-2) 92%, var(--teal)) 0%,
      var(--bg) 45%,
      color-mix(in srgb, var(--bg) 90%, #000) 100%);
}
.veil-seam {
  position: absolute;
  top: 12%;
  bottom: 12%;
  left: 50%;
  width: 1px;
  transform: translateX(-50%) scaleY(0);
  transform-origin: center;
  background: linear-gradient(
    180deg,
    transparent 0%,
    color-mix(in srgb, var(--teal) 70%, #fff) 35%,
    color-mix(in srgb, var(--citrus) 55%, #fff) 65%,
    transparent 100%
  );
  box-shadow:
    0 0 18px color-mix(in srgb, var(--teal) 55%, transparent),
    0 0 48px color-mix(in srgb, var(--teal) 25%, transparent);
  opacity: 0;
}
.veil-mark {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
  opacity: 0;
  transform: scale(0.88);
}
.veil-mark span {
  font-family: var(--myth);
  font-weight: 650;
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  letter-spacing: 0.18em;
  color: color-mix(in srgb, var(--ink) 88%, var(--teal));
  text-shadow: 0 0 40px color-mix(in srgb, var(--teal) 40%, transparent);
  border: 1px solid color-mix(in srgb, var(--teal) 35%, transparent);
  border-radius: 999px;
  padding: 0.55rem 1.35rem 0.5rem;
  background: color-mix(in srgb, var(--bg) 55%, transparent);
  backdrop-filter: blur(8px);
}

/* Kapanış */
.page-veil.cover .veil-left {
  animation: veilInLeft 0.52s var(--veil-ease-in) forwards;
}
.page-veil.cover .veil-right {
  animation: veilInRight 0.52s var(--veil-ease-in) forwards;
}
.page-veil.cover .veil-seam {
  animation: seamIgnite 0.45s 0.18s var(--veil-ease-out) forwards;
}
.page-veil.cover .veil-mark {
  animation: markIn 0.4s 0.22s var(--veil-ease-out) forwards;
}
.page-veil.cover .veil-bloom {
  animation: bloomIn 0.5s 0.1s var(--veil-ease-out) forwards;
}

/* Açılış */
.page-veil.reveal .veil-left {
  animation: veilOutLeft 0.78s var(--veil-ease-out) forwards;
}
.page-veil.reveal .veil-right {
  animation: veilOutRight 0.78s var(--veil-ease-out) forwards;
}
.page-veil.reveal .veil-seam {
  animation: seamFade 0.35s var(--veil-ease-in) forwards;
}
.page-veil.reveal .veil-mark {
  animation: markOut 0.4s var(--veil-ease-in) forwards;
}
.page-veil.reveal .veil-bloom {
  animation: bloomOut 0.7s var(--veil-ease-out) forwards;
}

@keyframes veilInLeft {
  from { transform: translateX(-102%); }
  to { transform: translateX(0); }
}
@keyframes veilInRight {
  from { transform: translateX(102%); }
  to { transform: translateX(0); }
}
@keyframes veilOutLeft {
  from { transform: translateX(0); }
  to { transform: translateX(-102%); }
}
@keyframes veilOutRight {
  from { transform: translateX(0); }
  to { transform: translateX(102%); }
}
@keyframes seamIgnite {
  0% { opacity: 0; transform: translateX(-50%) scaleY(0); }
  55% { opacity: 1; transform: translateX(-50%) scaleY(1); }
  100% { opacity: 0.85; transform: translateX(-50%) scaleY(1); }
}
@keyframes seamFade {
  to { opacity: 0; transform: translateX(-50%) scaleY(0.3); }
}
@keyframes markIn {
  from { opacity: 0; transform: scale(0.86); filter: blur(6px); }
  to { opacity: 1; transform: scale(1); filter: blur(0); }
}
@keyframes markOut {
  to { opacity: 0; transform: scale(1.06); filter: blur(4px); }
}
@keyframes bloomIn {
  from { opacity: 0; transform: scale(0.7); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes bloomOut {
  to { opacity: 0; transform: scale(1.15); }
}

body.is-veiling > *:not(.page-veil):not(.toast) {
  transition: filter 0.35s ease, transform 0.5s var(--ease);
  filter: saturate(0.85) brightness(0.92);
}
body.is-veiling .site-header {
  transform: scale(0.992);
}

@keyframes viewReveal {
  0% {
    opacity: 0;
    filter: blur(10px);
    transform: translateY(28px) scale(0.985);
  }
  45% {
    opacity: 1;
    filter: blur(0);
  }
  100% {
    opacity: 1;
    filter: none;
    transform: none;
  }
}

.grid .card {
  animation: assembleIn 0.85s cubic-bezier(0.16, 1, 0.3, 1) both;
}
@keyframes assembleIn {
  0% { opacity: 0; filter: blur(6px); transform: translateY(16px) scale(0.97); }
  55% { opacity: 1; filter: blur(0); }
  100% { transform: none; filter: none; }
}
.grid .card:nth-child(2n) { animation-delay: 0.05s; }
.grid .card:nth-child(3n) { animation-delay: 0.1s; }
.grid .card:nth-child(4n) { animation-delay: 0.15s; }
.grid .card:nth-child(5n) { animation-delay: 0.2s; }
.grid .card.drag-ghost { outline: 2px dashed var(--citrus); }

@media (prefers-reduced-motion: reduce) {
  .page-veil { display: none !important; }
  .panel.view.active,
  .grid .card {
    animation: none !important;
  }
  body.is-veiling > *:not(.page-veil) {
    filter: none !important;
    transform: none !important;
  }
}

/* Map clusters */
.map-cluster-wrap { background: transparent !important; border: 0 !important; }
.map-cluster {
  width: 40px; height: 40px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: linear-gradient(145deg, var(--teal), var(--teal-deep));
  color: #fff;
  font-weight: 800;
  font-size: 0.85rem;
  border: 3px solid #fff;
  box-shadow: 0 6px 16px rgba(0,0,0,0.28);
}
.map-cluster.lg { width: 48px; height: 48px; font-size: 0.95rem; }
.marker-cluster-small,
.marker-cluster-medium,
.marker-cluster-large {
  background: transparent !important;
}

/* Compare dock */
.compare-dock {
  position: fixed;
  left: 50%;
  bottom: 0.85rem;
  transform: translateX(-50%) translateY(140%);
  z-index: 35;
  width: min(720px, calc(100% - 1.25rem));
  display: grid;
  gap: 0.35rem;
  transition: transform 0.35s var(--ease);
  pointer-events: none;
}
.compare-dock.has-items,
.compare-dock.drag-over {
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}
.dock-tab {
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
  padding: 0.7rem 0.95rem;
  border-radius: 1rem;
  border: 1px solid color-mix(in srgb, var(--teal) 35%, var(--line));
  background: linear-gradient(145deg, #163538, #102628);
  color: #f2faf9;
  cursor: pointer;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(12px);
}
.dock-tab-main { display: flex; flex-direction: column; align-items: flex-start; gap: 0.15rem; }
.dock-tab-main strong { font-size: 0.98rem; color: #fff; }
.dock-tab-main span,
.dock-tab-main span.muted {
  color: rgba(242, 250, 249, 0.82) !important;
  font-size: 0.78rem;
  font-weight: 600;
}
.dock-chevron {
  transition: transform 0.3s var(--ease);
  color: #3db8a8;
  font-size: 0.9rem;
}
[data-theme="light"] .dock-tab {
  background: linear-gradient(145deg, #f4fbfa, #e7f4f2);
  color: #0a1f22;
  border-color: rgba(11, 110, 106, 0.35);
}
[data-theme="light"] .dock-tab-main strong { color: #0a1f22; }
[data-theme="light"] .dock-tab-main span,
[data-theme="light"] .dock-tab-main span.muted { color: #3a5a5e !important; }
.compare-dock.expanded .dock-chevron { transform: rotate(180deg); }
.compare-dock-panel {
  border-radius: 1rem;
  border: 1px solid rgba(61, 184, 168, 0.35);
  background: linear-gradient(160deg, #163538, #102628);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
  overflow: hidden;
}
.compare-dock-panel[hidden] { display: none !important; }
.compare-dock-inner {
  display: grid;
  gap: 0.75rem;
  padding: 0.75rem 0.9rem 0.9rem;
}
.dock-slots {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.5rem;
}
.dock-slot {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.5rem;
  border-radius: 0.7rem;
  background: #0e2224;
  border: 1px solid rgba(61, 184, 168, 0.28);
  min-width: 0;
  color: #f2faf9;
}
.dock-slot img {
  width: 36px; height: 36px;
  border-radius: 0.4rem;
  object-fit: cover;
  flex-shrink: 0;
  background: #163538;
}
.dock-slot .dock-slot-text {
  min-width: 0;
  flex: 1;
  display: grid;
  gap: 0.1rem;
}
.dock-slot strong {
  font-size: 0.8rem;
  font-weight: 700;
  color: #f2faf9;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dock-slot em {
  font-style: normal;
  font-size: 0.75rem;
  font-weight: 800;
  color: #ff9a6a;
}
.dock-slot .dock-x {
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  padding: 0.15rem;
}
.dock-slot .dock-x:hover { color: var(--danger); }
.dock-actions {
  display: flex;
  gap: 0.5rem;
  justify-content: flex-end;
}
.dock-empty {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 0.85rem;
  padding: 0.35rem 0;
}


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

/* —— 0komisyon brand + lightbox + edit gallery —— */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  line-height: 0;
}
.logo-img {
  display: block;
  height: 52px;
  width: auto;
  max-width: 156px;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 12px;
  padding: 4px 8px;
  backdrop-filter: blur(10px);
}
[data-theme="light"] .logo-img {
  background: rgba(255, 255, 255, 0.55);
  border-color: rgba(0, 0, 0, 0.08);
}
.logo-mark {
  display: inline-grid;
  place-items: center;
  width: 1.55rem;
  height: 1.55rem;
  border-radius: 0.42rem;
  background: linear-gradient(135deg, #4F8CFF, #1D4ED8);
  color: #fff;
  font-size: 1rem;
  font-weight: 900;
  line-height: 1;
}
.logo-word { font-weight: 800; letter-spacing: -0.04em; }

.edit-thumb {
  position: relative;
  display: inline-block;
  margin: 0 0.4rem 0.4rem 0;
}
.edit-thumb img {
  width: 88px;
  height: 88px;
  object-fit: cover;
  border-radius: 0.65rem;
  display: block;
}
.edit-thumb-x {
  position: absolute;
  top: -0.35rem;
  right: -0.35rem;
  width: 1.4rem;
  height: 1.4rem;
  border-radius: 999px;
  border: 0;
  background: #d64545;
  color: #fff;
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
}

.py-lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(8, 7, 11, 0.92);
  padding: 1rem;
}
.py-lightbox.open { display: flex; }
.py-lightbox img {
  max-width: min(96vw, 1100px);
  max-height: 82vh;
  object-fit: contain;
  border-radius: 0.5rem;
}
.py-lightbox-x {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 999px;
  border: 0;
  background: rgba(255,255,255,0.15);
  color: #fff;
  font-size: 1.6rem;
  cursor: pointer;
}
.py-lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 999px;
  border: 0;
  background: rgba(255,255,255,0.12);
  color: #fff;
  font-size: 1.8rem;
  cursor: pointer;
}
.py-lightbox-nav.prev { left: 0.75rem; }
.py-lightbox-nav.next { right: 0.75rem; }
.py-lightbox-count {
  position: absolute;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  font-weight: 800;
  letter-spacing: 0.06em;
  background: rgba(0,0,0,0.55);
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
}
