:root {
  --bg: #0f1115;
  --panel: #1a1d24;
  --panel-soft: #161922;
  --text: #f5f7ff;
  --muted: #a9b0c0;
  --primary: #8d63ff;
  --primary-dark: #6f49d7;
  --secondary-glow: #2ed6ff;
  --border: #2a2f3a;
  --border-soft: rgba(141, 99, 255, 0.28);
  --shadow: 0 12px 35px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  position: relative;
  overflow-x: hidden;
}

body.modal-open {
  overflow: hidden;
}

body::before,
body::after {
  content: "";
  position: fixed;
  pointer-events: none;
  z-index: -1;
}

body::before {
  width: 420px;
  height: 420px;
  top: -170px;
  right: -150px;
  background: radial-gradient(circle, rgba(141, 99, 255, 0.24) 0%, rgba(15, 17, 21, 0) 70%);
}

body::after {
  width: 360px;
  height: 360px;
  bottom: -160px;
  left: -140px;
  background: radial-gradient(circle, rgba(46, 214, 255, 0.16) 0%, rgba(15, 17, 21, 0) 70%);
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(100% - 2rem, 1100px);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(10, 12, 16, 0.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.8rem;
  padding: 0.9rem 0;
}

.brand {
  font-weight: 700;
  letter-spacing: 0.2px;
}

.header-page-title {
  margin-left: auto;
  font-weight: 700;
  color: #eef1ff;
}

.header-kulup-bul {
  margin-left: auto;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(141, 99, 255, 0.55);
  background: linear-gradient(135deg, rgba(141, 99, 255, 0.28), rgba(46, 214, 255, 0.22));
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.7px;
  text-transform: uppercase;
  box-shadow: 0 0 0 rgba(141, 99, 255, 0.45);
  animation: kulupBulBlink 1s ease-in-out infinite;
}

@keyframes kulupBulBlink {
  0%,
  100% {
    opacity: 1;
    box-shadow: 0 0 0 rgba(141, 99, 255, 0.2);
  }
  50% {
    opacity: 0.45;
    box-shadow: 0 0 18px rgba(141, 99, 255, 0.7);
  }
}

.menu-toggle {
  width: 44px;
  height: 44px;
  padding: 0;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: linear-gradient(155deg, rgba(27, 31, 41, 0.95), rgba(15, 17, 21, 0.95));
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.menu-toggle:hover {
  border-color: var(--border-soft);
}

.menu-toggle:active {
  transform: scale(0.96);
}

.menu-toggle span {
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, #ffffff, #d6c8ff);
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.25rem 1rem;
  position: fixed;
  top: 0;
  left: 0;
  width: min(80vw, 300px);
  height: 100vh;
  background: linear-gradient(185deg, #121620 0%, #0d1016 100%);
  border-right: 1px solid var(--border);
  transform: translateX(-100%);
  box-shadow: 18px 0 45px rgba(0, 0, 0, 0.45);
  transition: transform 0.28s ease;
  z-index: 20;
}

.mobile-nav.open {
  transform: translateX(0);
}

.mobile-nav a {
  padding: 0.6rem 0.7rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: linear-gradient(145deg, rgba(29, 33, 44, 0.95), rgba(18, 22, 31, 0.95));
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.mobile-nav a:hover {
  border-color: var(--border-soft);
  transform: translateX(2px);
}

.hero {
  padding: 2.5rem 0 2rem;
}

.badge {
  color: #f1cb7d;
  margin: 0 0 0.8rem;
}

h1,
h2,
h3 {
  line-height: 1.2;
  margin-top: 0;
}

.hero-text {
  color: var(--muted);
  max-width: 60ch;
}

.hero-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.btn {
  display: inline-block;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  font-weight: 600;
  color: var(--text);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), #6f79ff);
  box-shadow: 0 8px 25px rgba(141, 99, 255, 0.35);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-dark), #5c64e0);
  transform: translateY(-1px);
}

.btn-secondary {
  border: 1px solid var(--border);
  background: linear-gradient(145deg, rgba(27, 31, 41, 0.95), rgba(15, 17, 21, 0.95));
}

.btn-secondary:hover {
  border-color: var(--border-soft);
  transform: translateY(-1px);
}

.section {
  padding: 2rem 0;
}

.section-dark {
  background: linear-gradient(180deg, rgba(20, 23, 29, 0.88), rgba(15, 17, 21, 0.88));
}

.grid {
  display: grid;
  gap: 1rem;
}

.grid.two {
  grid-template-columns: 1fr;
}

.grid.three {
  grid-template-columns: 1fr;
}

.card {
  background: linear-gradient(165deg, rgba(28, 32, 42, 0.92), rgba(18, 21, 28, 0.94));
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1rem;
  box-shadow: var(--shadow);
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  border-color: var(--border-soft);
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
}

.club-image {
  width: 100%;
  height: clamp(180px, 42vw, 260px);
  object-fit: contain;
  object-position: center;
  background: #000;
  display: block;
  border-radius: 10px;
  margin-bottom: 0.8rem;
}

.card.dark {
  background: linear-gradient(165deg, rgba(22, 26, 35, 0.95), rgba(14, 17, 24, 0.95));
}

.price-chip {
  display: inline-block;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  border: 1px solid var(--border-soft);
  background: rgba(141, 99, 255, 0.12);
  color: #ddcbff;
  font-size: 0.88rem;
}

.sponsored-tag {
  display: inline-block;
  margin-left: 0.45rem;
  padding: 0.2rem 0.45rem;
  border-radius: 8px;
  font-size: 0.75rem;
  color: #ffe9b5;
  border: 1px solid rgba(255, 207, 112, 0.45);
  background: rgba(150, 103, 7, 0.2);
}

.muted {
  color: var(--muted);
}

.filter-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  margin: 1rem 0;
}

select,
input,
textarea {
  width: 100%;
  padding: 0.7rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: linear-gradient(160deg, rgba(19, 22, 30, 0.95), rgba(13, 16, 22, 0.95));
  color: var(--text);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

select:focus,
input:focus,
textarea:focus {
  outline: none;
  border-color: var(--border-soft);
  box-shadow: 0 0 0 3px rgba(141, 99, 255, 0.2);
}

select option {
  color: #101318;
  background: #ffffff;
}

.form {
  display: grid;
  gap: 0.6rem;
}

.hidden {
  display: none !important;
}

.modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 40;
}

.modal.open {
  display: block;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 8, 12, 0.72);
  backdrop-filter: blur(2px);
}

.modal-panel {
  position: relative;
  width: min(92vw, 480px);
  margin: 8vh auto 0;
  background: linear-gradient(165deg, rgba(29, 33, 43, 0.98), rgba(15, 18, 25, 0.98));
  border: 1px solid var(--border-soft);
  border-radius: 16px;
  padding: 1rem;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.45);
}

.modal-image {
  width: 100%;
  height: 220px;
  object-fit: contain;
  background: #000;
  border-radius: 12px;
  margin-bottom: 0.75rem;
}

.modal-close {
  position: absolute;
  top: 0.5rem;
  right: 0.6rem;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: rgba(10, 12, 16, 0.8);
  color: var(--text);
  cursor: pointer;
}

.swipe-wrap {
  margin-top: 1rem;
}

.swipe-card {
  touch-action: pan-y;
  user-select: none;
  cursor: grab;
  transition: transform 0.22s ease, opacity 0.22s ease;
  will-change: transform;
  position: relative;
  overflow: hidden;
}

.swipe-card.is-dragging {
  cursor: grabbing;
  transition: none;
}

.swipe-card.fly-right {
  transform: translateX(140%) rotate(16deg);
  opacity: 0;
}

.swipe-card.fly-left {
  transform: translateX(-140%) rotate(-16deg);
  opacity: 0;
}

.swipe-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.swipe-actions .btn {
  text-align: center;
  color: #f8f9ff;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.swipe-badge {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 86px;
  min-height: 86px;
  padding: 0.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-size: 2.85rem;
  font-weight: 700;
  border: 1px solid transparent;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.9);
  transition: opacity 0.06s linear, transform 0.06s linear;
  pointer-events: none;
  z-index: 2;
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.45);
}

.swipe-badge.like {
  color: #e8ffee;
  border-color: rgba(111, 244, 146, 0.6);
  background: rgba(15, 94, 44, 0.72);
}

.swipe-badge.dislike {
  color: #fff0f0;
  border-color: rgba(255, 118, 118, 0.6);
  background: rgba(116, 29, 29, 0.72);
}

.like-counter {
  margin: 1rem 0 0.5rem;
  color: var(--muted);
}

.district-inline-badge {
  display: inline-block;
  margin-left: 0.45rem;
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  color: #f8f3ff;
  background: linear-gradient(135deg, rgba(141, 99, 255, 0.35), rgba(46, 214, 255, 0.25));
  border: 1px solid rgba(141, 99, 255, 0.5);
  box-shadow: 0 0 10px rgba(141, 99, 255, 0.28);
  vertical-align: middle;
}

.liked-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

.liked-card {
  cursor: pointer;
}

.turkey-map-wrap {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.6rem;
  margin: 0.8rem 0;
}

.map-city-btn {
  border: 1px solid var(--border);
  background: rgba(31, 35, 46, 0.85);
  color: var(--text);
  border-radius: 10px;
  padding: 0.55rem 0.65rem;
  cursor: pointer;
}

.map-city-btn.active {
  border-color: var(--border-soft);
  box-shadow: 0 0 16px rgba(141, 99, 255, 0.4);
}

.district-map {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.6rem;
  margin-top: 0.7rem;
}

.district-tile {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.65rem;
  text-align: left;
  background: linear-gradient(165deg, hsla(var(--tone), 68%, 21%, 0.75), rgba(18, 21, 28, 0.94));
  color: var(--text);
  cursor: pointer;
}

.district-tile span,
.district-tile strong {
  display: block;
}

.admin-grid {
  display: grid;
  gap: 1rem;
}

.admin-list {
  display: grid;
  gap: 0.75rem;
}

.admin-main {
  min-height: calc(100vh - 78px);
}

.admin-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
}

.admin-topbar-inner {
  justify-content: space-between;
}

.admin-login-layer {
  width: min(100% - 2rem, 520px);
  margin: 0 auto;
}

.admin-login-card {
  margin-top: 1.2rem;
}

.admin-shell {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.admin-sidebar {
  display: grid;
  gap: 0.5rem;
  align-content: start;
}

.admin-tab-btn {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.65rem 0.75rem;
  background: rgba(19, 22, 30, 0.88);
  color: var(--text);
  text-align: left;
  cursor: pointer;
}

.admin-tab-btn.active {
  border-color: var(--border-soft);
  background: linear-gradient(135deg, rgba(141, 99, 255, 0.32), rgba(46, 214, 255, 0.16));
}

.admin-content {
  display: grid;
  gap: 1rem;
}

.admin-tab-panel {
  display: none;
}

.admin-tab-panel.active {
  display: block;
}

.admin-logout {
  padding: 0.55rem 0.85rem;
}

.admin-divider {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 1rem 0;
}

.home-cta-card {
  margin-bottom: 1rem;
}

.leaflet-map {
  width: 100%;
  height: 300px;
  border-radius: 12px;
  border: 1px solid var(--border);
  overflow: hidden;
}

.leaflet-control-attribution {
  display: none !important;
}

.district-label {
  background: transparent;
  border: 0;
  color: #ffffff !important;
  font-size: 11px;
  font-weight: 800;
  padding: 0;
  border-radius: 0;
  text-align: center;
  box-shadow: none;
  -webkit-text-stroke: 0.9px rgba(0, 0, 0, 0.98);
  paint-order: stroke fill;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 1), 0 0 4px rgba(0, 0, 0, 0.9), 0 0 6px rgba(0, 0, 0, 0.75);
}

.leaflet-tooltip.district-label {
  background: transparent;
  border: 0;
  box-shadow: none;
}

.leaflet-tooltip-left.district-label::before,
.leaflet-tooltip-right.district-label::before,
.leaflet-tooltip-top.district-label::before,
.leaflet-tooltip-bottom.district-label::before {
  border: 0;
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 1.2rem 0;
  color: var(--muted);
  background: rgba(10, 12, 16, 0.7);
}

@media (min-width: 768px) {
  .menu-toggle {
    display: none;
  }

  .header-kulup-bul {
    display: none;
  }

  .header-page-title {
    display: none;
  }

  .mobile-nav {
    display: flex;
    flex-direction: row;
    justify-content: center;
    padding: 0 0 0.9rem;
    position: static;
    width: auto;
    height: auto;
    background: transparent;
    border-right: 0;
    box-shadow: none;
    transform: none;
    transition: none;
  }

  .mobile-nav a {
    border: 0;
    background: transparent;
    color: var(--muted);
    padding: 0.4rem 0.55rem;
  }

  .mobile-nav a:hover {
    color: var(--text);
    transform: none;
  }

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

  .grid.three {
    grid-template-columns: repeat(3, 1fr);
  }

  .filter-row {
    grid-template-columns: repeat(2, minmax(0, 260px));
  }

  .admin-shell {
    grid-template-columns: 240px minmax(0, 1fr);
    align-items: start;
  }
}
