/* KentPazarı — sıfır komisyonlu vitrin · mobile-first / PWA-ready */
:root {
  --green-900: #1a3d2e;
  --green-800: #234d3a;
  --green-700: #2d6a4f;
  --green-600: #40916c;
  --green-500: #52b788;
  --green-100: #d8f3dc;
  --green-50: #f0faf4;
  --cream: #faf8f3;
  --cream-dark: #f0ebe0;
  --sand: #e8e0d0;
  --text: #1a2e24;
  --text-muted: #5a6e64;
  --white: #ffffff;
  --shadow: 0 4px 20px rgba(26, 61, 46, 0.08);
  --shadow-lg: 0 12px 40px rgba(26, 61, 46, 0.12);
  --radius: 14px;
  --radius-sm: 8px;
  --font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --max: 1440px;
  --tap: 44px;
  --bottom-nav-h: 56px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-top: env(safe-area-inset-top, 0px);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--cream);
  line-height: 1.6;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  padding-bottom: calc(var(--bottom-nav-h) + var(--safe-bottom) + 0.5rem);
  font-size: 16px;
}

@media (min-width: 769px) {
  body { padding-bottom: 0; }
}

img { max-width: 100%; display: block; height: auto; }
a { color: var(--green-700); text-decoration: none; }
a:hover { color: var(--green-600); }
ul { list-style: none; }
button, input, select, textarea { font: inherit; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 0.75rem;
}
@media (min-width: 480px) {
  .container { padding: 0 1rem; }
}
@media (min-width: 1200px) {
  .container { padding: 0 1.25rem; }
}

/* —— Ad bar (admin-managed: kayan / sabit / resim) —— */
.ad-bar {
  background: linear-gradient(90deg, #ff6b6b, #ffd93d, #6bcb77, #4d96ff, #c77dff, #ff6b6b);
  background-size: 300% 100%;
  animation: ad-bar-festive-bg 8s linear infinite;
  border-bottom: 2px solid rgba(255, 255, 255, 0.35);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 800;
  text-align: center;
  padding: 0.42rem 0.75rem;
  letter-spacing: 0.04em;
  line-height: 1.4;
  max-height: none;
  overflow: hidden;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}
@media (min-width: 769px) {
  .ad-bar {
    font-size: 1.15rem;
    padding: 0.55rem 1rem;
  }
}
.ad-bar--static {
  text-overflow: ellipsis;
  white-space: nowrap;
}
@media (min-width: 769px) {
  .ad-bar--static { white-space: normal; }
}
.ad-bar--static span,
.ad-bar-fallback { opacity: 1; }
.ad-bar--marquee {
  padding: 0;
  max-height: none;
  display: block;
}
.ad-bar-marquee {
  overflow: hidden;
  width: 100%;
  padding: 0.42rem 0;
}
@media (min-width: 769px) {
  .ad-bar-marquee { padding: 0.55rem 0; }
}
.ad-bar-marquee-track {
  display: flex;
  width: max-content;
  animation: ad-bar-marquee 28s linear infinite;
  will-change: transform;
}
.ad-bar-marquee-item {
  flex: 0 0 auto;
  white-space: nowrap;
  padding: 0 1.75rem;
  font-size: 1.05em;
  font-weight: 800;
  letter-spacing: 0.06em;
  background: linear-gradient(90deg, #fff 0%, #ffe566 18%, #fff 36%, #a8ff78 54%, #fff 72%, #ff9ff3 90%, #fff 100%);
  background-size: 220% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  animation: ad-bar-festive-text 3.5s linear infinite;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.35));
}
.ad-bar-marquee-item::before,
.ad-bar-marquee-item::after {
  content: "✦ ";
  -webkit-text-fill-color: #fff;
  color: #fff;
  opacity: 0.95;
}
@media (prefers-reduced-motion: reduce) {
  .ad-bar,
  .ad-bar-marquee-track,
  .ad-bar-marquee-item {
    animation: none;
  }
  .ad-bar-marquee-track {
    width: 100%;
    justify-content: center;
  }
  .ad-bar-marquee-item[aria-hidden="true"] { display: none; }
}
@keyframes ad-bar-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@keyframes ad-bar-festive-bg {
  0% { background-position: 0% 50%; }
  100% { background-position: 300% 50%; }
}
@keyframes ad-bar-festive-text {
  0% { background-position: 0% 50%; }
  100% { background-position: 220% 50%; }
}
.ad-bar--image {
  padding: 0;
  max-height: none;
  line-height: 0;
  background: #fff8e1;
}
.ad-bar-img {
  display: block;
  width: 100%;
  max-height: 120px;
  height: auto;
  object-fit: cover;
  object-position: center;
}
@media (min-width: 769px) {
  .ad-bar-img { max-height: 90px; }
}

/* —— Header (sticky; primary on desktop) —— */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--sand);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 0 rgba(26, 61, 46, 0.04);
  padding-top: var(--safe-top);
}

.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.35rem 0 0.25rem;
  min-height: 0;
}

.logo {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 0.45rem;
  align-items: center;
  color: var(--green-900);
  flex-shrink: 0;
}
.logo-mark {
  grid-row: 1 / span 2;
  width: 36px;
  height: 36px;
  object-fit: cover;
  object-position: left center;
  border-radius: 9px;
  display: block;
}
.logo-name { grid-column: 2; grid-row: 1; }
.logo-tag { grid-column: 2; grid-row: 2; }
.logo:hover { color: var(--green-800); }
.logo-name {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
@media (min-width: 480px) {
  .logo-name { font-size: 1.12rem; }
}
.logo-tag {
  font-size: 0.58rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--green-600);
}
@media (min-width: 480px) {
  .logo-tag { font-size: 0.62rem; }
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.header-actions a {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.78rem;
  padding: 0.28rem 0.55rem;
  min-height: 0;
  line-height: 1.2;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  white-space: nowrap;
}
.header-actions a:hover,
.header-actions a:focus-visible,
.header-actions a.active {
  background: var(--green-50);
  color: var(--green-800);
  outline: none;
}
.header-actions a.cta {
  background: transparent;
  color: var(--green-700);
  border-color: var(--green-600);
  margin-left: 0.15rem;
  font-weight: 600;
}
.header-actions a.cta:hover,
.header-actions a.cta:focus-visible {
  background: var(--green-700);
  border-color: var(--green-700);
  color: var(--white);
}
.header-actions a.link-seller {
  color: var(--green-700);
  font-weight: 600;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--sand);
  border-radius: var(--radius-sm);
  min-width: 36px;
  min-height: 36px;
  padding: 0.25rem 0.45rem;
  cursor: pointer;
  color: var(--green-800);
  font-size: 1.1rem;
  line-height: 1;
  align-items: center;
  justify-content: center;
}

/* —— Search row —— */
.header-search {
  padding: 0 0 0.3rem;
  position: relative;
  z-index: 115;
}
.search-wrap {
  position: relative;
  width: 100%;
  z-index: 115;
}
.search-form {
  display: flex;
  align-items: stretch;
  width: 100%;
  gap: 0;
}
.search-form input[type="search"] {
  flex: 1;
  width: 100%;
  min-height: 36px;
  padding: 0.4rem 0.75rem;
  font-size: 16px; /* prevent iOS zoom */
  border: 1px solid var(--sand);
  border-right: none;
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
  background: var(--cream);
  color: var(--text);
  min-width: 0;
  -webkit-appearance: none;
  appearance: none;
}
.search-form input[type="search"]:focus {
  outline: none;
  border-color: var(--green-500);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(82, 183, 136, 0.2);
}
.search-form input[type="search"]::placeholder {
  color: var(--text-muted);
  opacity: 0.85;
}
.search-form button[type="submit"] {
  background: var(--green-700);
  color: var(--white);
  border: 1px solid var(--green-700);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 0.35rem 0.85rem;
  min-height: 36px;
  min-width: 3.5rem;
  font-weight: 600;
  font-size: 0.82rem;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s;
}
.search-form button[type="submit"]:hover,
.search-form button[type="submit"]:focus-visible {
  background: var(--green-800);
  border-color: var(--green-800);
  outline: none;
}

.search-results {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: var(--white);
  border: 1px solid var(--sand);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  z-index: 130;
  max-height: min(50vh, 360px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  display: none;
}
.search-results.open {
  display: block;
}
.search-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  min-height: var(--tap);
  color: inherit;
  border-bottom: 1px solid var(--cream-dark);
  transition: background 0.12s;
}
.search-item:hover,
.search-item:focus-visible {
  background: var(--green-50);
  color: inherit;
  outline: none;
}
.search-item:last-of-type { border-bottom: none; }
.search-emoji {
  font-size: 1.5rem;
  flex-shrink: 0;
  width: 2rem;
  text-align: center;
}
.search-meta {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}
.search-name {
  font-weight: 650;
  font-size: 0.95rem;
  color: var(--green-900);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.search-seller {
  font-size: 0.78rem;
  color: var(--text-muted);
}
.search-all {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1rem;
  min-height: var(--tap);
  text-align: center;
  font-weight: 600;
  font-size: 0.85rem;
  background: var(--green-50);
  color: var(--green-800);
  border-top: 1px solid var(--sand);
  border-radius: 0 0 var(--radius) var(--radius);
  position: sticky;
  bottom: 0;
}
.search-all:hover,
.search-all:focus-visible {
  background: var(--green-100);
  color: var(--green-900);
  outline: none;
}
.search-empty {
  padding: 1rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  text-align: center;
}
.search-list-empty {
  color: var(--text-muted);
  margin-bottom: 1rem;
  font-size: 0.95rem;
}


/* —— Category nav (under search) —— */
.cat-nav {
  padding: 0 0 0.55rem;
  margin: 0 -1rem; /* bleed to container edges on mobile for full-bleed scroll */
  border-top: 1px solid transparent;
}
@media (min-width: 480px) {
  .cat-nav { margin: 0 -1.25rem; }
}
.cat-nav-scroll {
  display: flex;
  align-items: stretch;
  gap: 0.35rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 0.15rem 1rem 0.1rem;
}
@media (min-width: 480px) {
  .cat-nav-scroll { padding-left: 1.25rem; padding-right: 1.25rem; }
}
.cat-nav-scroll::-webkit-scrollbar { display: none; height: 0; }

.cat-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  flex-shrink: 0;
  scroll-snap-align: start;
  padding: 0.32rem 0.7rem;
  min-height: 32px;
  border-radius: 999px;
  background: var(--cream);
  border: 1px solid var(--sand);
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  text-decoration: none;
  transition: background 0.15s, color 0.15s, border-color 0.15s, box-shadow 0.15s;
  -webkit-tap-highlight-color: transparent;
}
.cat-pill:hover,
.cat-pill:focus-visible {
  background: var(--green-50);
  color: var(--green-800);
  border-color: var(--green-500);
  outline: none;
}
.cat-pill.active {
  background: var(--green-700);
  color: var(--white);
  border-color: var(--green-700);
  box-shadow: 0 2px 8px rgba(45, 106, 79, 0.22);
}
.cat-pill.active:hover,
.cat-pill.active:focus-visible {
  background: var(--green-800);
  color: var(--white);
  border-color: var(--green-800);
}
.cat-ico {
  font-size: 0.95rem;
  line-height: 1;
  flex-shrink: 0;
}
.cat-pill.cat-more {
  background: var(--white);
  border-style: dashed;
  color: var(--green-700);
}
.cat-pill.cat-more:hover,
.cat-pill.cat-more:focus-visible {
  background: var(--green-50);
  border-style: solid;
}

/* Category flyouts (Moda, Emlak, …) — fixed so the horizontal cat scroller does not clip them */
.cat-drop {
  position: relative;
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  scroll-snap-align: start;
  /* Full pill hit area — hover anywhere on the category opens flyout */
  align-self: stretch;
}
.cat-drop .cat-pill {
  height: 100%;
}
.cat-caret {
  width: 0;
  height: 0;
  margin-left: 0.12rem;
  border-left: 3px solid transparent;
  border-right: 3px solid transparent;
  border-top: 4px solid currentColor;
  opacity: 0.75;
  flex-shrink: 0;
}
.cat-drop.is-open .cat-caret {
  transform: rotate(180deg);
}
.cat-flyout {
  position: fixed;
  z-index: 125;
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem;
  min-width: 220px;
  max-width: min(96vw, 520px);
  padding: 0.4rem;
  background: var(--white);
  border: 1px solid var(--sand);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  pointer-events: auto;
}
/* Invisible bridge so the pointer can move from pill → panel without leaving */
.cat-flyout::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -14px;
  height: 14px;
}
.cat-flyout[hidden] { display: none !important; }
.cat-flyout-col {
  display: flex;
  flex-direction: column;
  min-width: 104px;
  padding: 0.1rem;
}
.cat-flyout-col + .cat-flyout-col {
  border-left: 1px solid var(--sand);
}
.cat-sub-head,
.cat-sub-link {
  display: block;
  border-radius: 8px;
  text-decoration: none;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
}
.cat-sub-head {
  padding: 0.38rem 0.6rem 0.2rem;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--green-800);
}
.cat-sub-link {
  padding: 0.22rem 0.6rem 0.22rem 0.85rem;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--text-muted);
}
.cat-sub-head:hover,
.cat-sub-head:focus-visible,
.cat-sub-link:hover,
.cat-sub-link:focus-visible {
  background: var(--green-50);
  color: var(--green-800);
  outline: none;
}
.cat-sub-head.active,
.cat-sub-link.active {
  background: var(--green-50);
  color: var(--green-700);
}

.cat-empty-note {
  background: var(--green-50);
  border: 1px dashed var(--green-500);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  color: var(--green-800);
}

/* Desktop: wrap + subtle dividers between pills */
@media (min-width: 900px) {
  .cat-nav {
    margin: 0;
  }
  .cat-nav-scroll {
    flex-wrap: wrap;
    overflow-x: visible;
    scroll-snap-type: none;
    gap: 0;
    padding: 0.2rem 0 0.05rem;
    row-gap: 0.35rem;
  }
  .cat-pill {
    border-radius: 0;
    background: transparent;
    border: none;
    border-right: 1px solid var(--sand);
    padding: 0.28rem 0.75rem;
    min-height: 28px;
    font-size: 0.8rem;
  }
  .cat-nav-scroll > .cat-pill:first-child { padding-left: 0; }
  .cat-nav-scroll > .cat-pill:last-child {
    border-right: none;
    padding-right: 0;
  }
  .cat-pill:hover,
  .cat-pill:focus-visible {
    background: transparent;
    color: var(--green-700);
    border-color: transparent;
    border-right-color: var(--sand);
  }
  .cat-nav-scroll > .cat-pill:last-child:hover,
  .cat-nav-scroll > .cat-pill:last-child:focus-visible {
    border-right: none;
  }
  .cat-pill.active {
    background: transparent;
    color: var(--green-700);
    border-color: transparent;
    border-right-color: var(--sand);
    box-shadow: none;
    position: relative;
  }
  .cat-pill.active::after {
    content: "";
    position: absolute;
    left: 0.55rem;
    right: 0.55rem;
    bottom: 0;
    height: 2px;
    background: var(--green-600);
    border-radius: 2px;
  }
  .cat-nav-scroll > .cat-pill:first-child.active::after { left: 0; }
  .cat-nav-scroll > .cat-pill:last-child.active::after { right: 0; }
  .cat-pill.active:hover,
  .cat-pill.active:focus-visible {
    background: transparent;
    color: var(--green-800);
  }
  .cat-pill.cat-more {
    background: transparent;
    border-style: none;
    border-right: none;
    color: var(--green-700);
  }
}

/* —— Mobile bottom nav —— */
.bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 150;
  background: var(--white);
  border-top: 1px solid var(--sand);
  box-shadow: 0 -4px 20px rgba(26, 61, 46, 0.08);
  padding-bottom: var(--safe-bottom);
  height: calc(var(--bottom-nav-h) + var(--safe-bottom));
}
.bottom-nav-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  height: var(--bottom-nav-h);
  max-width: var(--max);
  margin: 0 auto;
}
.bottom-nav a,
.bottom-nav button {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  min-height: var(--tap);
  padding: 0.35rem 0.25rem;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.68rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  transition: color 0.15s, background 0.15s;
}
.bottom-nav a:hover,
.bottom-nav a:focus-visible,
.bottom-nav button:hover,
.bottom-nav button:focus-visible {
  color: var(--green-700);
  background: var(--green-50);
  outline: none;
}
.bottom-nav a.active {
  color: var(--green-700);
}
.bottom-nav .bn-icon {
  font-size: 1.25rem;
  line-height: 1;
  display: block;
}
@media (max-width: 768px) {
  .bottom-nav { display: block; }
}

/* —— Hero —— */
.hero {
  background:
    linear-gradient(135deg, var(--green-50) 0%, var(--cream) 50%, var(--cream-dark) 100%);
  padding: 2rem 0 1.75rem;
  border-bottom: 1px solid var(--sand);
}
@media (min-width: 769px) {
  .hero { padding: 3.5rem 0 3rem; }
}
.hero-inner {
  display: grid;
  gap: 1.25rem;
  max-width: 640px;
}
.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--green-100);
  color: var(--green-800);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  width: fit-content;
  max-width: 100%;
  line-height: 1.35;
}
.badge-pill::before {
  content: "";
  width: 7px;
  height: 7px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--green-600);
}
.hero h1 {
  font-size: clamp(1.55rem, 5vw, 2.5rem);
  font-weight: 750;
  line-height: 1.2;
  letter-spacing: -0.03em;
  color: var(--green-900);
}
.hero h1 em {
  font-style: normal;
  color: var(--green-600);
}
.hero p {
  color: var(--text-muted);
  font-size: 1rem;
  max-width: 34em;
}
@media (min-width: 769px) {
  .hero p { font-size: 1.05rem; }
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.25rem;
}
.hero-actions .btn {
  flex: 1 1 auto;
  min-width: min(100%, 10rem);
  min-height: var(--tap);
}

/* —— Buttons —— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.75rem 1.35rem;
  min-height: var(--tap);
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s, box-shadow 0.15s;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(0.98); }
.btn-primary {
  background: var(--green-700);
  color: var(--white);
  box-shadow: 0 2px 8px rgba(45, 106, 79, 0.25);
}
.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--green-800);
  color: var(--white);
  outline: none;
}
.btn-outline {
  background: var(--white);
  color: var(--green-800);
  border: 1.5px solid var(--green-600);
}
.btn-outline:hover,
.btn-outline:focus-visible {
  background: var(--green-50);
  color: var(--green-800);
  outline: none;
}
.btn:disabled,
.btn.disabled {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
}
.btn-block { width: 100%; }

/* —— Sections —— */
.section {
  padding: 2rem 0;
}
@media (min-width: 769px) {
  .section { padding: 3rem 0; }
}
.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}
.section-header h2 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--green-900);
  letter-spacing: -0.02em;
}
@media (min-width: 769px) {
  .section-header h2 { font-size: 1.5rem; }
  .section-header { margin-bottom: 1.75rem; }
}
.section-header a {
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.35rem 0;
  min-height: var(--tap);
  display: inline-flex;
  align-items: center;
}

/* —— Product grid: 2 cols phone, 1 very small optional —— */
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}
@media (max-width: 360px) {
  .product-grid { grid-template-columns: 1fr; }
}
@media (min-width: 640px) {
  .product-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.35rem;
  }
}

.product-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid rgba(232, 224, 208, 0.8);
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
@media (hover: hover) {
  .product-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
  }
}
.product-card:focus-within {
  box-shadow: var(--shadow-lg);
}
.product-card a.card-link {
  color: inherit;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.product-card a.card-link:hover,
.product-card a.card-link:focus-visible {
  color: inherit;
  outline: none;
}

.product-img {
  aspect-ratio: 4 / 3;
  background: linear-gradient(145deg, var(--green-100), var(--cream-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.product-img .emoji {
  font-size: clamp(2.25rem, 8vw, 3.5rem);
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.08));
}
.product-img .zero-badge {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
}
@media (min-width: 640px) {
  .product-img .zero-badge {
    top: 0.75rem;
    left: 0.75rem;
  }
}

.zero-badge {
  display: inline-block;
  background: var(--green-700);
  color: var(--white);
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.28rem 0.5rem;
  border-radius: 6px;
}
@media (min-width: 640px) {
  .zero-badge { font-size: 0.68rem; padding: 0.28rem 0.55rem; }
}

.product-body {
  padding: 0.85rem 0.9rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  flex: 1;
  min-width: 0;
}
@media (min-width: 640px) {
  .product-body { padding: 1.1rem 1.15rem 1.25rem; gap: 0.35rem; }
}
.product-seller {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
@media (min-width: 640px) {
  .product-seller { font-size: 0.78rem; }
}
.product-name {
  font-size: 0.92rem;
  font-weight: 650;
  color: var(--green-900);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
@media (min-width: 640px) {
  .product-name { font-size: 1.05rem; }
}
.product-price {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--green-700);
  margin-top: auto;
  padding-top: 0.4rem;
}
@media (min-width: 640px) {
  .product-price { font-size: 1.15rem; padding-top: 0.5rem; }
}
.product-price span {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
}

/* —— Features strip —— */
.features {
  background: var(--white);
  border-top: 1px solid var(--sand);
  border-bottom: 1px solid var(--sand);
  padding: 1.5rem 0;
}
@media (min-width: 769px) {
  .features { padding: 2rem 0; }
}
.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
@media (min-width: 480px) {
  .features-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
  }
}
.feature {
  text-align: center;
  padding: 0.5rem;
}
.feature-icon {
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
}
.feature h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--green-900);
  margin-bottom: 0.25rem;
}
.feature p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* —— Page header (inner pages) —— */
.page-header {
  padding: 1.35rem 0 0.5rem;
}
@media (min-width: 769px) {
  .page-header { padding: 2rem 0 0.5rem; }
}
.page-header h1 {
  font-size: clamp(1.35rem, 4vw, 1.75rem);
  font-weight: 700;
  color: var(--green-900);
  letter-spacing: -0.02em;
}
.page-header p {
  color: var(--text-muted);
  margin-top: 0.35rem;
  font-size: 0.95rem;
}
.breadcrumb {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  line-height: 1.5;
  word-break: break-word;
}
.breadcrumb a {
  color: var(--green-700);
  padding: 0.25rem 0;
  display: inline;
}

/* —— Product detail —— */
.product-detail {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  padding: 1rem 0 2rem;
  align-items: start;
}
@media (min-width: 768px) {
  .product-detail {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    padding: 1.5rem 0 3rem;
  }
}
.detail-img {
  aspect-ratio: 1;
  background: linear-gradient(145deg, var(--green-100), var(--cream-dark));
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(4rem, 18vw, 6rem);
  border: 1px solid var(--sand);
  position: relative;
}
.detail-img .zero-badge {
  position: absolute;
  top: 0.85rem;
  left: 0.85rem;
}
.detail-info h1 {
  font-size: clamp(1.35rem, 4vw, 1.75rem);
  font-weight: 700;
  color: var(--green-900);
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}
.detail-seller {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}
.detail-seller strong { color: var(--green-800); }
.detail-price {
  font-size: clamp(1.5rem, 4vw, 1.85rem);
  font-weight: 750;
  color: var(--green-700);
  margin-bottom: 0.35rem;
}
.detail-note {
  font-size: 0.85rem;
  color: var(--green-600);
  font-weight: 600;
  margin-bottom: 1.5rem;
}
.detail-desc {
  color: var(--text-muted);
  margin-bottom: 1.75rem;
  font-size: 0.95rem;
}
.detail-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 100%;
}
@media (min-width: 768px) {
  .detail-actions { max-width: 320px; }
}
.qty-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.qty-row label {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
}
.qty-row input {
  width: 80px;
  min-height: var(--tap);
  padding: 0.5rem 0.65rem;
  border: 1.5px solid var(--sand);
  border-radius: var(--radius-sm);
  background: var(--white);
  font-size: 16px;
}

/* —— Member / forms —— */
.member-layout {
  padding: 1rem 0 2rem;
}
@media (min-width: 769px) {
  .member-layout { padding: 1.5rem 0 3rem; }
}
.tabs {
  display: flex;
  gap: 0.2rem;
  border-bottom: 2px solid var(--sand);
  margin-bottom: 1.5rem;
  flex-wrap: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tab-btn {
  background: none;
  border: none;
  padding: 0.75rem 1rem;
  min-height: var(--tap);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: color 0.15s, border-color 0.15s;
  white-space: nowrap;
  flex-shrink: 0;
}
.tab-btn:hover,
.tab-btn:focus-visible {
  color: var(--green-700);
  outline: none;
}
.tab-btn.active {
  color: var(--green-800);
  border-bottom-color: var(--green-600);
}
.tab-panel { display: none; }
.tab-panel.active { display: block; }

.form-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--sand);
  max-width: 480px;
  width: 100%;
}
@media (min-width: 480px) {
  .form-card { padding: 1.75rem; }
}
.form-card h2 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--green-900);
  margin-bottom: 0.35rem;
}
.form-card .form-lead {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1.35rem;
}
.form-group {
  margin-bottom: 1.1rem;
}
.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--green-900);
  margin-bottom: 0.35rem;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  min-height: var(--tap);
  padding: 0.7rem 0.85rem;
  border: 1.5px solid var(--sand);
  border-radius: var(--radius-sm);
  background: var(--cream);
  color: var(--text);
  font-size: 16px; /* prevent iOS zoom */
  transition: border-color 0.15s, background 0.15s;
}
.form-group textarea { min-height: 110px; resize: vertical; }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--green-500);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(82, 183, 136, 0.2);
}
.form-hint {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 0.3rem;
}
.form-wide { max-width: 560px; }

/* —— Seller onboarding / belge yükleme —— */
.seller-fieldset {
  border: 1.5px solid var(--sand);
  border-radius: var(--radius);
  padding: 1rem 1.1rem 0.35rem;
  margin: 0 0 1.25rem;
  background: var(--cream);
}
.seller-fieldset legend {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--green-900);
  padding: 0 0.35rem;
}
.seller-docs-hint { margin: 0 0 0.85rem; }
.doc-upload {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  padding: 0.85rem 0;
  border-top: 1px solid var(--sand);
}
.doc-upload:first-of-type { border-top: none; padding-top: 0.25rem; }
.doc-upload-meta {
  flex: 1 1 12rem;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.doc-upload-title {
  font-weight: 650;
  font-size: 0.9rem;
  color: var(--green-900);
}
.doc-upload-name {
  font-size: 0.82rem;
  color: var(--text-muted);
  word-break: break-all;
}
.doc-upload.has-file .doc-upload-name {
  color: var(--green-800);
  font-weight: 600;
}
.doc-upload-actions {
  flex: 0 0 auto;
}
.doc-pick-btn {
  font-size: 0.85rem;
  padding: 0.55rem 0.9rem;
  min-height: calc(var(--tap) - 4px);
}
.doc-upload.is-invalid {
  background: #fff8f7;
  border-radius: var(--radius-sm);
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}
.seller-success {
  background: var(--green-50);
  border: 1.5px solid var(--green-500);
  border-radius: var(--radius);
  padding: 1rem 1.15rem;
  margin-bottom: 1.25rem;
  color: var(--green-900);
}
.seller-success strong { display: block; margin-bottom: 0.35rem; font-size: 1.02rem; }
.seller-success p { margin: 0.25rem 0; font-size: 0.92rem; }
.seller-no {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: 0.04em;
  color: var(--green-800);
}


.placeholder-box {
  background: var(--green-50);
  border: 1.5px dashed var(--green-500);
  border-radius: var(--radius);
  padding: 1.1rem 1.2rem;
  margin-top: 1.25rem;
  font-size: 0.9rem;
  color: var(--green-800);
}
.placeholder-box strong { display: block; margin-bottom: 0.25rem; }

/* —— Auth forms polish —— */
.form-row-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 1.15rem;
}
.check-label {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  user-select: none;
}
.check-label input {
  width: 1.05rem;
  height: 1.05rem;
  accent-color: var(--green-700);
  flex-shrink: 0;
}
.check-label.check-block {
  display: flex;
  margin-bottom: 1.15rem;
  color: var(--green-900);
  font-weight: 600;
}
.link-btn {
  background: none;
  border: none;
  padding: 0;
  color: var(--green-700);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
  min-height: auto;
}
.link-btn:hover,
.link-btn:focus-visible {
  color: var(--green-600);
  outline: none;
}
.auth-divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1.25rem 0 1rem;
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 600;
}
.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--sand);
}
.social-auth {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.btn-social {
  background: var(--white);
  color: var(--green-900);
  border: 1.5px solid var(--sand);
  font-weight: 600;
  box-shadow: none;
}
.btn-social:hover,
.btn-social:focus-visible {
  background: var(--cream);
  border-color: var(--green-500);
  outline: none;
}
.social-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--sand);
  font-size: 0.75rem;
  font-weight: 700;
  color: #4285f4;
  flex-shrink: 0;
}
.btn-social[data-social="apple"] .social-ico {
  color: #111;
  font-size: 0.95rem;
  border: none;
  background: transparent;
}
.form-demo-note {
  margin-top: 1rem;
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.45;
}
.field-error {
  margin-top: 0.3rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: #b42318;
}
.form-group input.is-invalid,
.form-group select.is-invalid,
.form-group textarea.is-invalid {
  border-color: #f04438;
  background: #fff8f7;
}
.form-group input.is-invalid:focus {
  box-shadow: 0 0 0 3px rgba(240, 68, 56, 0.18);
}

/* Header logged-in state — account dropdown (Trendyol-style Hesabım) */
.header-actions [data-auth-cta][hidden],
.header-actions [data-auth-cta][aria-hidden="true"] {
  display: none !important;
}
.header-actions .auth-menu {
  position: relative;
  display: inline-flex;
  align-items: center;
  z-index: 140;
}
.header-actions .auth-menu[hidden] { display: none !important; }
.header-actions .auth-menu-trigger {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  background: var(--green-50);
  color: var(--green-800);
  border: 1px solid var(--green-100);
  font-weight: 650;
  font-size: 0.78rem;
  padding: 0.28rem 0.65rem;
  min-height: 0;
  line-height: 1.2;
  border-radius: 999px;
  cursor: pointer;
  max-width: 9.5rem;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.header-actions .auth-menu-trigger:hover,
.header-actions .auth-menu-trigger:focus-visible,
.header-actions .auth-menu.open .auth-menu-trigger {
  background: var(--green-100);
  border-color: var(--green-500);
  outline: none;
}
.header-actions .auth-menu-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 7rem;
}
.header-actions .auth-menu-caret {
  font-size: 0.65rem;
  opacity: 0.75;
  flex-shrink: 0;
}
.header-actions .auth-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 15.5rem;
  max-width: min(20rem, calc(100vw - 1.5rem));
  background: var(--white);
  border: 1px solid var(--sand);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 0.35rem;
  z-index: 150;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}
.header-actions .auth-dropdown[hidden] { display: none !important; }
.header-actions .auth-dropdown a,
.header-actions .auth-dropdown button.auth-dd-logout {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  width: 100%;
  text-align: left;
  padding: 0.55rem 0.7rem;
  min-height: var(--tap);
  border-radius: var(--radius-sm);
  border: none;
  background: transparent;
  color: var(--text);
  font-weight: 500;
  font-size: 0.88rem;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.12s, color 0.12s;
  white-space: nowrap;
}
.header-actions .auth-dropdown a:hover,
.header-actions .auth-dropdown a:focus-visible,
.header-actions .auth-dropdown button.auth-dd-logout:hover,
.header-actions .auth-dropdown button.auth-dd-logout:focus-visible {
  background: var(--green-50);
  color: var(--green-900);
  outline: none;
}
.header-actions .auth-dd-ico {
  width: 1.25rem;
  text-align: center;
  flex-shrink: 0;
  font-size: 0.95rem;
}
.header-actions .auth-dd-logout {
  border-top: 1px solid var(--cream-dark) !important;
  margin-top: 0.2rem;
  padding-top: 0.65rem !important;
  color: #b42318 !important;
  font-weight: 600 !important;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
}
.header-actions .auth-dd-logout:hover,
.header-actions .auth-dd-logout:focus-visible {
  background: #fff5f4 !important;
  color: #912018 !important;
}
.header-actions .auth-logout-btn {
  appearance: none;
  background: transparent;
  color: var(--green-700);
  border: 1px solid var(--green-600);
  font-weight: 600;
  font-size: 0.78rem;
  padding: 0.28rem 0.65rem;
  min-height: 0;
  line-height: 1.2;
  border-radius: 999px;
  cursor: pointer;
  margin-left: 0.15rem;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.header-actions .auth-logout-btn:hover,
.header-actions .auth-logout-btn:focus-visible {
  background: var(--green-700);
  border-color: var(--green-700);
  color: var(--white);
  outline: none;
}
.header-actions .auth-user-name {
  font-weight: 650;
  font-size: 0.78rem;
  color: var(--green-800);
  padding: 0.28rem 0.55rem;
  max-width: 7.5rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Forgot-password modal */
.auth-modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.auth-modal[hidden] { display: none !important; }
.auth-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(26, 46, 36, 0.45);
}
.auth-modal-dialog {
  position: relative;
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem;
  max-width: 22rem;
  width: 100%;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--sand);
}
.auth-modal-dialog h2 {
  font-size: 1.15rem;
  color: var(--green-900);
  margin-bottom: 0.5rem;
}
.auth-modal-dialog p {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}
body.modal-open { overflow: hidden; }

/* —— Auth UX: Google-first + profil tamamla —— */
.social-auth-primary {
  margin-bottom: 0.25rem;
}
.btn-google {
  border-color: #dadce0;
  font-weight: 650;
  gap: 0.65rem;
}
.btn-google:hover,
.btn-google:focus-visible {
  border-color: #4285f4;
  background: #f8fbff;
  box-shadow: 0 1px 2px rgba(66, 133, 244, 0.12);
}
.social-ico.google-g {
  width: 1.5rem;
  height: 1.5rem;
  border: none;
  background: transparent;
  padding: 0;
}
.social-ico.google-g svg {
  display: block;
}
.label-opt {
  font-weight: 500;
  color: var(--text-muted);
  font-size: 0.8em;
}
.profil-step-badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--green-700);
  background: rgba(45, 106, 79, 0.1);
  border-radius: 999px;
  padding: 0.28rem 0.7rem;
  margin-bottom: 0.75rem;
}
.profil-email-hint {
  display: inline;
  color: var(--green-800);
  font-weight: 600;
}
.profil-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem 1rem;
  padding: 0.85rem 1rem;
  margin-bottom: 1rem;
  background: #fff8e8;
  border: 1px solid #f0d78c;
  border-radius: var(--radius);
  color: #6b4e00;
  font-size: 0.9rem;
}
.profil-banner[hidden] { display: none !important; }
.profil-banner strong {
  color: #5c4200;
}
.profil-banner .btn-sm {
  margin-left: auto;
  padding: 0.35rem 0.85rem;
  font-size: 0.82rem;
  min-height: 0;
}
.google-picker-dialog {
  max-width: 24rem;
}
.google-picker-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: #3c4043;
  margin-bottom: 0.85rem;
}
.google-picker-sub {
  margin-bottom: 1rem !important;
  font-size: 0.85rem !important;
}
.google-account-chip {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  text-align: left;
  padding: 0.75rem 0.85rem;
  margin-bottom: 1rem;
  border: 1.5px solid #dadce0;
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}
.google-account-chip:hover,
.google-account-chip:focus-visible {
  border-color: #4285f4;
  background: #f8fbff;
  outline: none;
}
.google-account-chip[aria-pressed="true"] {
  border-color: #4285f4;
  box-shadow: 0 0 0 3px rgba(66, 133, 244, 0.18);
}
.google-avatar {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: linear-gradient(135deg, #4285f4, #34a853);
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.google-account-meta {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
  flex: 1;
}
.google-account-name {
  font-weight: 650;
  font-size: 0.92rem;
  color: #202124;
}
.google-account-email {
  font-size: 0.8rem;
  color: #5f6368;
}
.google-account-check {
  color: #1a73e8;
  font-weight: 700;
  font-size: 1rem;
}
.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border: none;
  box-shadow: none;
  font-weight: 600;
  margin-top: 0.35rem;
}
.btn-ghost:hover,
.btn-ghost:focus-visible {
  color: var(--green-800);
  background: var(--cream);
  outline: none;
}
.tab-btn[hidden] { display: none !important; }


@media (max-width: 768px) {
  .header-actions .auth-menu {
    width: 100%;
  }
  .header-actions .auth-menu-trigger {
    font-size: 0.9rem;
    padding: 0.55rem 0.85rem;
    max-width: none;
    width: 100%;
    justify-content: space-between;
  }
  .header-actions .auth-menu-name { max-width: none; }
  .header-actions .auth-dropdown {
    position: static;
    margin-top: 0.35rem;
    min-width: 0;
    max-width: none;
    box-shadow: var(--shadow);
  }
  .header-actions .auth-logout-btn {
    font-size: 0.9rem;
    padding: 0.55rem 0.85rem;
    width: 100%;
    justify-content: center;
    display: inline-flex;
    margin-left: 0;
  }
  .header-actions .auth-user-name {
    font-size: 0.9rem;
    max-width: none;
    padding: 0.55rem 0.75rem;
  }
  .form-card { max-width: none; }
}


/* —— Footer —— */
.site-footer {
  margin-top: auto;
  background: var(--green-900);
  color: rgba(255,255,255,0.85);
  padding: 2rem 0 calc(1.25rem + 0.25rem);
}
@media (min-width: 769px) {
  .site-footer { padding: 2.5rem 0 1.5rem; }
}
.footer-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}
@media (min-width: 640px) {
  .footer-inner {
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
  }
}
.footer-brand .logo-name {
  color: var(--white);
  font-size: 1.2rem;
}
.footer-brand .logo-tag {
  color: var(--green-500);
}
.footer-brand p {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  opacity: 0.8;
  max-width: 28em;
}
.footer-col h4 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--green-500);
  margin-bottom: 0.85rem;
}
.footer-col a {
  display: flex;
  align-items: center;
  color: rgba(255,255,255,0.8);
  font-size: 0.9rem;
  padding: 0.45rem 0;
  min-height: 2.5rem;
}
.footer-col a:hover,
.footer-col a:focus-visible {
  color: var(--white);
  outline: none;
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 1.25rem;
  font-size: 0.8rem;
  opacity: 0.65;
  text-align: center;
}

/* —— Toast (above bottom nav on mobile) —— */
.toast {
  position: fixed;
  bottom: calc(var(--bottom-nav-h) + var(--safe-bottom) + 1rem);
  left: 50%;
  transform: translateX(-50%) translateY(120%);
  background: var(--green-900);
  color: var(--white);
  padding: 0.85rem 1.35rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  z-index: 200;
  transition: transform 0.3s ease;
  max-width: min(90vw, 28rem);
  text-align: center;
}
@media (min-width: 769px) {
  .toast { bottom: 1.5rem; }
}
.toast.show {
  transform: translateX(-50%) translateY(0);
}

/* —— Responsive header / search mobile —— */
@media (max-width: 768px) {
  .nav-toggle {
    display: inline-flex;
    margin-left: auto;
  }
  .header-top {
    flex-wrap: wrap;
    position: relative;
  }
  .header-actions {
    display: none;
    position: absolute;
    top: 100%;
    left: -1rem;
    right: -1rem;
    width: auto;
    background: var(--white);
    flex-direction: column;
    align-items: stretch;
    padding: 0.75rem 1rem 1rem;
    border-bottom: 1px solid var(--sand);
    box-shadow: var(--shadow);
    gap: 0.15rem;
    z-index: 110;
  }
  .header-actions.open { display: flex; }
  .header-actions a {
    padding: 0.55rem 0.75rem;
    min-height: 40px;
    font-size: 0.85rem;
    border-radius: var(--radius-sm);
  }
  .header-actions a.cta {
    margin-left: 0;
    margin-top: 0.25rem;
    text-align: center;
    justify-content: center;
  }

  .header-search { padding-bottom: 0.45rem; }
  .search-form {
    flex-direction: row;
    gap: 0;
  }
  .search-form input[type="search"] {
    border-right: none;
    border-radius: var(--radius-sm) 0 0 var(--radius-sm);
  }
  .search-form button[type="submit"] {
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    flex-shrink: 0;
  }
}

/* Search highlight when focused via bottom nav Ara */
.search-wrap.search-focus-pulse input[type="search"] {
  border-color: var(--green-500);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(82, 183, 136, 0.35);
}


/* —— Hesabım hub & account pages —— */
.site-header-compact .header-search,
.site-header-compact .cat-nav { display: none; }
.page-hesabim .page-header { padding-bottom: 0.25rem; }

.hesabim-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  padding: 0.5rem 0 2.5rem;
}
@media (min-width: 860px) {
  .hesabim-layout {
    grid-template-columns: 15.5rem minmax(0, 1fr);
    gap: 1.5rem;
    align-items: start;
    padding: 1rem 0 3rem;
  }
}
.hesabim-side {
  background: var(--white);
  border: 1px solid var(--sand);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.hesabim-side-title {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--green-600);
  padding: 0.35rem 0.65rem 0.55rem;
}
.hesabim-side a {
  display: flex;
  align-items: center;
  min-height: 2.5rem;
  padding: 0.45rem 0.65rem;
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 500;
  transition: background 0.12s, color 0.12s;
}
.hesabim-side a:hover,
.hesabim-side a:focus-visible {
  background: var(--green-50);
  color: var(--green-900);
  outline: none;
}
.hesabim-side a.active {
  background: var(--green-50);
  color: var(--green-800);
  font-weight: 650;
  box-shadow: inset 3px 0 0 var(--green-600);
}
.hesabim-logout {
  appearance: none;
  margin-top: 0.45rem;
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  border-top: 1px solid var(--cream-dark);
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  padding: 0.75rem 0.65rem;
  min-height: var(--tap);
  color: #b42318;
  font-weight: 650;
  font-size: 0.9rem;
  cursor: pointer;
}
.hesabim-logout:hover,
.hesabim-logout:focus-visible {
  background: #fff5f4;
  outline: none;
}
.hesabim-main .hesabim-panel { max-width: none; width: 100%; }
.hesabim-profile {
  display: grid;
  gap: 0.65rem;
  margin: 1rem 0 1.25rem;
  padding: 0.85rem 1rem;
  background: var(--cream);
  border: 1px solid var(--sand);
  border-radius: var(--radius-sm);
}
.hesabim-profile > div {
  display: grid;
  grid-template-columns: 8.5rem minmax(0, 1fr);
  gap: 0.5rem;
  align-items: baseline;
}
.hesabim-profile dt {
  font-size: 0.78rem;
  font-weight: 650;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.hesabim-profile dd {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--green-900);
  word-break: break-word;
}
.hesabim-profile-compact > div {
  grid-template-columns: 7rem minmax(0, 1fr);
}
.hesabim-tiles {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  margin: 1rem 0 1.25rem;
}
@media (min-width: 560px) {
  .hesabim-tiles { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1000px) {
  .hesabim-tiles { grid-template-columns: 1fr 1fr 1fr; }
}
.hesabim-tile {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 1rem;
  min-height: 5.5rem;
  background: var(--cream);
  border: 1px solid var(--sand);
  border-radius: var(--radius);
  color: inherit;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}
.hesabim-tile:hover,
.hesabim-tile:focus-visible {
  border-color: var(--green-500);
  box-shadow: var(--shadow);
  color: inherit;
  outline: none;
  transform: translateY(-1px);
}
.hesabim-tile-ico { font-size: 1.35rem; line-height: 1; }
.hesabim-tile-label {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--green-900);
}
.hesabim-tile-hint {
  font-size: 0.8rem;
  color: var(--text-muted);
}
.hesabim-balance {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 1rem 1.1rem;
  margin: 0.75rem 0 1rem;
  background: linear-gradient(135deg, var(--green-50), var(--cream));
  border: 1px solid var(--green-100);
  border-radius: var(--radius);
}
.hesabim-balance-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
}
.hesabim-balance-value {
  font-size: 1.35rem;
  font-weight: 750;
  color: var(--green-800);
  letter-spacing: -0.02em;
}

/* Discreet admin entry (footer dot) */

.admin-discreet {
  display: inline-block;
  color: rgba(255,255,255,0.28);
  font-size: 0.75rem;
  margin-left: 0.15rem;
  text-decoration: none;
  vertical-align: baseline;
}
.admin-discreet:hover,
.admin-discreet:focus-visible {
  color: rgba(255,255,255,0.7);
  outline: none;
}


/* —— Admin login gate —— */
.admin-gate {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background: linear-gradient(160deg, #0f2a1f 0%, #1a3d2e 55%, #143228 100%);
}
.admin-gate[hidden] { display: none !important; }
.admin-gate-card {
  width: min(100%, 22rem);
  background: #fff;
  border-radius: 1rem;
  padding: 1.75rem 1.5rem 1.5rem;
  box-shadow: 0 18px 50px rgba(0,0,0,0.28);
}
.admin-gate-card h1 {
  font-size: 1.35rem;
  color: var(--green-900);
  letter-spacing: -0.02em;
  margin: 0 0 0.35rem;
}
.admin-gate-hint {
  color: var(--text-muted);
  font-size: 0.88rem;
  margin: 0 0 1.15rem;
}
.admin-gate-card .form-group { margin-bottom: 1rem; }
.admin-gate-card label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--green-900);
  margin-bottom: 0.35rem;
}
.admin-gate-card input[type="password"] {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border: 1px solid #d1d5db;
  border-radius: 0.55rem;
  font-size: 1rem;
  box-sizing: border-box;
}
.admin-gate-card input[type="password"]:focus {
  outline: 2px solid rgba(82, 183, 136, 0.45);
  border-color: var(--green-500, #52b788);
}
.admin-gate-error {
  color: #b91c1c;
  font-size: 0.85rem;
  font-weight: 600;
  margin: 0 0 0.85rem;
  min-height: 1.2em;
}
.admin-gate-error[hidden] { display: none !important; }
.admin-gate-card .btn { width: 100%; }
.page-admin.admin-locked .admin-shell { display: none !important; }
.admin-logout-btn {
  display: block;
  width: 100%;
  margin-top: 0.65rem;
  padding: 0.4rem 0;
  background: transparent;
  border: none;
  color: rgba(255,255,255,0.55);
  font-size: 0.8rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
}
.admin-logout-btn:hover,
.admin-logout-btn:focus-visible {
  color: rgba(255,255,255,0.9);
  outline: none;
}

/* —— Admin panel —— */
.page-admin {
  background: #f3f6f4;
  padding-bottom: 0;
  min-height: 100vh;
  min-height: 100dvh;
}
.page-admin .ad-bar,
.page-admin .bottom-nav { display: none !important; }
.admin-shell {
  display: grid;
  grid-template-columns: 1fr;
  min-height: 100vh;
  min-height: 100dvh;
}
@media (min-width: 800px) {
  .admin-shell { grid-template-columns: 15rem minmax(0, 1fr); }
}
.admin-sidebar {
  background: var(--green-900);
  color: rgba(255,255,255,0.9);
  padding: 1.25rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.admin-brand {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 0.55rem;
  row-gap: 0.05rem;
  align-items: center;
  color: var(--white);
  padding: 0.25rem 0.5rem 0.75rem;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.admin-brand .logo-mark {
  grid-row: 1 / span 2;
  width: 40px;
  height: 40px;
}
.admin-brand .logo-name,
.admin-brand .admin-brand-sub { grid-column: 2; }
.admin-brand:hover { color: var(--white); }
.admin-brand .logo-name { color: var(--white); font-size: 1.15rem; }
.admin-brand-sub {
  font-size: 0.72rem;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--green-500);
}
.admin-nav {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.admin-nav-btn {
  appearance: none;
  width: 100%;
  text-align: left;
  background: transparent;
  border: 1px solid transparent;
  color: rgba(255,255,255,0.85);
  font-weight: 650;
  font-size: 0.95rem;
  padding: 0.7rem 0.85rem;
  min-height: var(--tap);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background 0.12s, border-color 0.12s;
}
.admin-nav-btn:hover,
.admin-nav-btn:focus-visible {
  background: rgba(255,255,255,0.08);
  outline: none;
}
.admin-nav-btn.active {
  background: rgba(82, 183, 136, 0.18);
  border-color: rgba(82, 183, 136, 0.35);
  color: var(--white);
}
.admin-sidebar-foot {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,0.12);
}
.admin-sidebar-foot a {
  color: rgba(255,255,255,0.8);
  font-size: 0.88rem;
  font-weight: 600;
}
.admin-sidebar-foot a:hover { color: var(--white); }
.admin-demo-note {
  margin-top: 0.45rem;
  font-size: 0.72rem;
  opacity: 0.65;
}
.admin-body {
  padding: 1.25rem 1rem 2rem;
}
@media (min-width: 800px) {
  .admin-body { padding: 1.75rem 1.75rem 2.5rem; }
}
.admin-topbar {
  margin-bottom: 1.25rem;
}
.admin-topbar h1 {
  font-size: 1.45rem;
  color: var(--green-900);
  letter-spacing: -0.02em;
}
.admin-topbar-meta {
  color: var(--text-muted);
  font-size: 0.88rem;
  margin-top: 0.2rem;
}
.admin-panel[hidden] { display: none !important; }
.admin-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}
.admin-filter {
  flex: 1;
  min-width: 12rem;
  min-height: 2.5rem;
  padding: 0.45rem 0.75rem;
  border: 1px solid var(--sand);
  border-radius: var(--radius-sm);
  background: var(--white);
  font-size: 16px;
}
.admin-filter:focus {
  outline: none;
  border-color: var(--green-600);
  box-shadow: 0 0 0 3px rgba(64, 145, 108, 0.18);
}
.admin-count {
  font-size: 0.85rem;
  font-weight: 650;
  color: var(--text-muted);
}
.admin-table-wrap {
  background: var(--white);
  border: 1px solid var(--sand);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}
.admin-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 40rem;
  font-size: 0.9rem;
}
.admin-table th,
.admin-table td {
  padding: 0.7rem 0.85rem;
  text-align: left;
  border-bottom: 1px solid var(--cream-dark);
  white-space: nowrap;
}
.admin-table th {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  background: var(--cream);
  position: sticky;
  top: 0;
}
.admin-table tbody tr:hover { background: var(--green-50); }
.admin-table tbody tr:last-child td { border-bottom: none; }
.admin-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
}
.admin-badge.ok { background: #e8f8ef; color: #1b6b3a; }
.admin-badge.warn { background: #fff6e5; color: #9a6700; }
.admin-badge.muted { background: #eef1ef; color: #5a6e64; }
.admin-foot-note {
  margin-top: 1.25rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* —— Admin settings (Ayarlar) —— */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}
.admin-settings {
  display: grid;
  gap: 1rem;
}
@media (min-width: 960px) {
  .admin-settings {
    grid-template-columns: 13.5rem minmax(0, 1fr);
    align-items: start;
    gap: 1.25rem;
  }
}
.admin-settings-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding: 0.35rem;
  background: var(--white);
  border: 1px solid var(--sand);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
@media (min-width: 960px) {
  .admin-settings-nav {
    flex-direction: column;
    flex-wrap: nowrap;
    position: sticky;
    top: 0.75rem;
    padding: 0.5rem;
  }
}
.admin-settings-tab {
  appearance: none;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-muted);
  font-weight: 650;
  font-size: 0.86rem;
  text-align: left;
  padding: 0.55rem 0.75rem;
  min-height: 2.4rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background 0.12s, color 0.12s, border-color 0.12s;
  white-space: nowrap;
}
.admin-settings-tab:hover,
.admin-settings-tab:focus-visible {
  background: var(--green-50);
  color: var(--green-900);
  outline: none;
}
.admin-settings-tab.active {
  background: rgba(82, 183, 136, 0.16);
  border-color: rgba(64, 145, 108, 0.28);
  color: var(--green-900);
}
.admin-settings-pane[hidden] { display: none !important; }
.admin-card {
  background: var(--white);
  border: 1px solid var(--sand);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.15rem 1.15rem 1.25rem;
}
@media (min-width: 800px) {
  .admin-card { padding: 1.35rem 1.5rem 1.5rem; }
}
.admin-card-title {
  font-size: 1.1rem;
  color: var(--green-900);
  letter-spacing: -0.01em;
  margin: 0 0 0.25rem;
}
.admin-card-lead {
  color: var(--text-muted);
  font-size: 0.88rem;
  margin: 0 0 1.15rem;
  line-height: 1.45;
}
.admin-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 0.5rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--cream-dark);
}
.admin-form-grid {
  display: grid;
  gap: 0 1rem;
}
@media (min-width: 560px) {
  .admin-form-grid { grid-template-columns: 1fr 7.5rem; }
}
.admin-logo-row {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
}
.admin-logo-ph {
  flex: 0 0 auto;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: var(--radius-sm);
  background: linear-gradient(145deg, var(--green-700), var(--green-900));
  color: var(--white);
  font-weight: 800;
  font-size: 0.95rem;
  display: grid;
  place-items: center;
  letter-spacing: 0.02em;
  box-shadow: 0 2px 8px rgba(26, 61, 46, 0.2);
}
.admin-logo-meta { flex: 1; min-width: 0; }
.admin-logo-meta input { width: 100%; }
.admin-switch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0.95rem;
  background: var(--cream);
  border: 1px solid var(--sand);
  border-radius: var(--radius-sm);
  margin-bottom: 1.1rem;
}
.admin-switch-row strong {
  display: block;
  font-size: 0.92rem;
  color: var(--green-900);
}
.admin-switch {
  position: relative;
  display: inline-flex;
  cursor: pointer;
  flex: 0 0 auto;
}
.admin-switch input {
  position: absolute;
  opacity: 0;
  width: 0; height: 0;
}
.admin-switch-ui {
  width: 2.75rem;
  height: 1.55rem;
  border-radius: 999px;
  background: #c5d0c9;
  position: relative;
  transition: background 0.15s;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.08);
}
.admin-switch-ui::after {
  content: "";
  position: absolute;
  top: 0.18rem;
  left: 0.18rem;
  width: 1.2rem;
  height: 1.2rem;
  border-radius: 50%;
  background: var(--white);
  box-shadow: 0 1px 3px rgba(0,0,0,0.18);
  transition: transform 0.15s;
}
.admin-switch input:checked + .admin-switch-ui {
  background: var(--green-600);
}
.admin-switch input:checked + .admin-switch-ui::after {
  transform: translateX(1.15rem);
}
.admin-switch input:focus-visible + .admin-switch-ui {
  outline: 2px solid var(--green-500);
  outline-offset: 2px;
}
.admin-check-grid {
  border: none;
  margin: 0 0 1.1rem;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}
@media (min-width: 560px) {
  .admin-check-grid { grid-template-columns: 1fr 1fr; }
}
.admin-legend {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--green-900);
  margin-bottom: 0.55rem;
  padding: 0;
}
.admin-check,
.admin-radio {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  padding: 0.55rem 0.65rem;
  border: 1px solid var(--sand);
  border-radius: var(--radius-sm);
  background: var(--cream);
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--text);
}
.admin-check:hover,
.admin-radio:hover { background: var(--green-50); }
.admin-check input,
.admin-radio input {
  margin-top: 0.15rem;
  accent-color: var(--green-700);
  width: 1.05rem;
  height: 1.05rem;
  flex: 0 0 auto;
}
.admin-radio-group {
  display: grid;
  gap: 0.55rem;
  margin-bottom: 1.1rem;
}
.admin-radio span { display: flex; flex-direction: column; gap: 0.15rem; }
.admin-radio .form-hint { margin: 0; }
.admin-table-compact { margin-bottom: 0.75rem; }
.admin-table-compact .admin-table { min-width: 18rem; }
.admin-table-compact .admin-table input[type="number"] {
  width: 5.5rem;
  min-height: 2.15rem;
  padding: 0.35rem 0.5rem;
  border: 1.5px solid var(--sand);
  border-radius: var(--radius-sm);
  background: var(--cream);
  font-size: 16px;
}
.admin-table-compact .admin-table input[type="number"]:focus {
  outline: none;
  border-color: var(--green-500);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(82, 183, 136, 0.2);
}
.admin-settings .form-group input,
.admin-settings .form-group select,
.admin-settings .form-group textarea {
  background: var(--cream);
}
.admin-foot-note code {
  font-size: 0.78em;
  background: var(--cream-dark);
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
}


.admin-reklam-file-row .btn-sm {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.15rem;
  padding: 0.35rem 0.85rem;
  font-size: 0.85rem;
  cursor: pointer;
  margin: 0;
}
.admin-reklam-file-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 1rem;
  margin-top: 0.55rem;
}
.admin-reklam-file-row .form-hint { margin: 0; }
.admin-reklam-sizes {
  margin-top: 0.65rem;
  padding: 0.55rem 0.7rem;
  background: var(--cream);
  border: 1px dashed var(--sand);
  border-radius: var(--radius-sm);
  line-height: 1.45;
}
.ad-bar[hidden],
.ad-bar.is-off { display: none !important; }
@media (max-width: 799px) {
  .admin-sidebar { padding-bottom: 0.75rem; }
  .admin-nav { flex-direction: row; flex-wrap: wrap; }
  .admin-nav-btn { flex: 1 1 auto; text-align: center; min-width: 5.5rem; }
}

/* —— Destek talepleri (admin) —— */
.admin-nav-btn {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.45rem;
}
.admin-nav-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.35rem;
  height: 1.35rem;
  padding: 0 0.4rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1;
}
.admin-nav-badge.is-zero {
  background: rgba(255,255,255,0.16);
  color: rgba(255,255,255,0.85);
}
.admin-nav-badge.is-hot {
  background: #e03131;
  color: #fff;
  animation: ticket-status-blink 1s steps(1, end) infinite;
}
.admin-source {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 650;
}
.ticket-layout {
  display: grid;
  gap: 1rem;
}
@media (min-width: 900px) {
  .ticket-layout {
    grid-template-columns: minmax(16rem, 22rem) minmax(0, 1fr);
    align-items: start;
  }
}
.ticket-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.ticket-item {
  width: 100%;
  text-align: left;
  background: var(--white);
  border: 1px solid var(--sand);
  border-radius: var(--radius-sm);
  padding: 0.75rem 0.85rem;
  cursor: pointer;
  color: inherit;
  font: inherit;
}
.ticket-item:hover,
.ticket-item:focus-visible {
  border-color: var(--green-500);
  outline: none;
}
.ticket-item.is-selected {
  border-color: var(--green-600);
  box-shadow: 0 0 0 3px rgba(64, 145, 108, 0.16);
}
.ticket-item-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}
.ticket-item-subject {
  font-weight: 750;
  color: var(--green-900);
}
.ticket-item-meta {
  margin-top: 0.25rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}
.ticket-status {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  padding: 0.12rem 0.5rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  white-space: nowrap;
}
.ticket-status--waiting {
  color: #9b1c1c;
  background: #fde8e8;
  animation: ticket-status-blink 1s steps(1, end) infinite;
}
.ticket-status--answered {
  color: #146c36;
  background: #e5f7ec;
}
@keyframes ticket-status-blink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0.25; }
}
@media (prefers-reduced-motion: reduce) {
  .ticket-status--waiting,
  .admin-nav-badge.is-hot { animation: none; }
}
.ticket-empty,
.ticket-detail-empty {
  color: var(--text-muted);
  font-size: 0.92rem;
}
.ticket-detail {
  background: var(--white);
  border: 1px solid var(--sand);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1rem 1.05rem 1.1rem;
}
.ticket-detail-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 0.75rem;
}
.ticket-detail-head h2 {
  font-size: 1.15rem;
  color: var(--green-900);
}
.ticket-meta {
  margin-top: 0.35rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}
.ticket-message,
.ticket-reply-view {
  margin-top: 0.9rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--cream-dark);
}
.ticket-message h3,
.ticket-reply-view h3 {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}
.ticket-message p,
.ticket-reply-view p {
  white-space: pre-wrap;
  line-height: 1.45;
}
.ticket-reply-view { background: #f3fbf6; margin-left: -0.35rem; margin-right: -0.35rem; padding: 0.75rem; border-radius: var(--radius-sm); border-top: none; }
#ticket-reply-form { margin-top: 1rem; }
#support-refresh { min-height: 2.4rem; padding: 0.35rem 0.9rem; }
