/* Betűtípusok: helyben kiszolgálva (nem a Google szerveréről), így a látogatók IP-címe nem jut el a Google-höz */
/* latin-ext */
@font-face {
  font-family: 'Fraunces';
  font-style: italic;
  font-weight: 500 800;
  font-display: swap;
  src: url(../fonts/fraunces-italic-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Fraunces';
  font-style: italic;
  font-weight: 500 800;
  font-display: swap;
  src: url(../fonts/fraunces-italic-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 500 800;
  font-display: swap;
  src: url(../fonts/fraunces-normal-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 500 800;
  font-display: swap;
  src: url(../fonts/fraunces-normal-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(../fonts/plusjakartasans-normal-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(../fonts/plusjakartasans-normal-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ==========================================================================
   Termelőpiac – stíluslap
   Meleg, természetközeli "termelői piac" hangulat.
   ========================================================================== */

:root {
  --cream: #f8f3e8;
  --cream-2: #f1e9d6;
  --paper: #fffdf8;
  --ink: #1c2a1f;
  --ink-2: #3c4a3f;
  --muted: #6f786c;
  --line: #e6dcc6;
  --line-2: #d8ccb2;

  --green: #1d4a2a;
  --green-2: #2c6b3c;
  --green-3: #3f8a51;
  --green-soft: #e3eedd;
  --yolk: #f4b73f;
  --yolk-2: #e9a21c;
  --yolk-soft: #fdf0cf;
  --terra: #d0643a;
  --terra-soft: #fbe3d7;
  --brand-red: #b83a1e;     /* a logó "piac" színe */
  --danger: #b8361f;

  --on-green: #fffdf8;
  --shadow-sm: 0 1px 2px rgb(40 30 10 / .06), 0 1px 1px rgb(40 30 10 / .04);
  --shadow: 0 2px 4px rgb(40 30 10 / .04), 0 8px 24px -6px rgb(40 30 10 / .12);
  --shadow-lg: 0 4px 8px rgb(40 30 10 / .04), 0 24px 48px -12px rgb(40 30 10 / .22);

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --header-h: 68px;
  --tabbar-h: 0px;
  --ease: cubic-bezier(.2, .8, .2, 1);

  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --cream: #13170f;
    --cream-2: #1a2016;
    --paper: #1d241a;
    --ink: #eef0e6;
    --ink-2: #cfd5c6;
    --muted: #9aa393;
    --line: #2d3628;
    --line-2: #3a4533;
    --green: #8fcf9a;
    --green-2: #a5dcae;
    --green-3: #7cc48a;
    --green-soft: #22301f;
    --yolk: #f6c35a;
    --yolk-2: #f4b73f;
    --yolk-soft: #372d17;
    --terra: #ee8a61;
    --terra-soft: #3a2519;
    --brand-red: #ec8458;
    --danger: #ff8a73;
    --on-green: #10200f;
    --shadow-sm: 0 1px 2px rgb(0 0 0 / .3);
    --shadow: 0 8px 24px -6px rgb(0 0 0 / .45);
    --shadow-lg: 0 24px 48px -12px rgb(0 0 0 / .6);
    color-scheme: dark;
  }
}

/* ---------- Alapok ---------- */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 100% -10%, color-mix(in srgb, var(--yolk) 10%, transparent), transparent 60%),
    var(--cream);
  -webkit-font-smoothing: antialiased;
  padding-bottom: var(--tabbar-h);
}
img { max-width: 100%; display: block; }
a { color: var(--green-2); text-decoration: none; }
a:hover { color: var(--green); }
h1, h2, h3 { line-height: 1.15; margin: 0; }
p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--yolk) 80%, transparent); outline-offset: 2px; border-radius: 6px; }
::selection { background: var(--yolk); color: #1c2a1f; }

.container { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: 20px; }
.container.narrow { max-width: 820px; }
.site-main { flex: 1; padding-bottom: 64px; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.center { text-align: center; }
.text-danger { color: var(--danger) !important; }
.stack > * + * { margin-top: 18px; }

.skip-link { position: absolute; left: -999px; top: 8px; background: var(--paper); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip-link:focus { left: 8px; }

.icon, .tab svg, .icon-btn svg, .card-city svg, .send-btn svg {
  width: 1.15em; height: 1.15em; flex-shrink: 0;
  fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}

/* Kiemelő: dőlt, tojássárga aláhúzással */
h1 em, h2 em, .page-title em {
  font-style: italic;
  color: var(--green-2);
  background: linear-gradient(transparent 62%, color-mix(in srgb, var(--yolk) 55%, transparent) 62%, color-mix(in srgb, var(--yolk) 55%, transparent) 92%, transparent 92%);
  padding-inline: .05em;
}

/* ---------- Gombok ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .7em 1.2em;
  border: 1.5px solid transparent;
  border-radius: 999px;
  font-weight: 700; font-size: .95rem; line-height: 1.2;
  cursor: pointer; white-space: nowrap;
  transition: transform .15s var(--ease), box-shadow .2s var(--ease), background-color .2s, color .2s, border-color .2s;
}
.btn:active { transform: translateY(1px) scale(.98); }
.btn-lg { padding: .9em 1.5em; font-size: 1.02rem; }
.btn-sm { padding: .45em .9em; font-size: .85rem; }
.btn-block { width: 100%; }

.btn-primary { background: var(--green); color: var(--on-green); box-shadow: 0 6px 16px -6px color-mix(in srgb, var(--green) 70%, transparent); }
.btn-primary:hover { background: var(--green-2); color: var(--on-green); transform: translateY(-1px); box-shadow: 0 10px 22px -8px color-mix(in srgb, var(--green) 80%, transparent); }
.btn-yolk { background: var(--yolk); color: #1c2a1f; box-shadow: 0 8px 20px -8px color-mix(in srgb, var(--yolk-2) 90%, transparent); }
.btn-yolk:hover { background: var(--yolk-2); color: #1c2a1f; transform: translateY(-1px); }
.btn-outline { background: var(--paper); border-color: var(--line-2); color: var(--ink); }
.btn-outline:hover { border-color: var(--green-2); color: var(--green-2); }
.btn-ghost { background: transparent; color: var(--ink-2); }
.btn-ghost:hover { background: color-mix(in srgb, var(--ink) 6%, transparent); color: var(--ink); }

/* Hívás gomb: élénk, "pulzáló" zöld */
.btn-call {
  background: linear-gradient(135deg, var(--green-3), var(--green));
  color: var(--on-green);
  box-shadow: 0 10px 24px -10px color-mix(in srgb, var(--green-3) 90%, transparent);
  position: relative;
}
.btn-call:hover { color: var(--on-green); transform: translateY(-1px); }
.btn-call small { display: block; font-weight: 500; opacity: .85; font-size: .8em; margin-top: 2px; }
.btn-call > span { text-align: left; }
.btn-call .icon { animation: ring 2.8s ease-in-out infinite; transform-origin: 50% 50%; }
@keyframes ring {
  0%, 60%, 100% { transform: rotate(0); }
  64%, 72% { transform: rotate(-14deg); }
  68%, 76% { transform: rotate(14deg); }
}

.icon-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; color: var(--ink); }
.icon-btn:hover { background: color-mix(in srgb, var(--ink) 7%, transparent); color: var(--ink); }
.icon-btn svg { width: 22px; height: 22px; }

/* ---------- Fejléc ---------- */

.site-header {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--cream) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}
.header-inner { height: var(--header-h); display: flex; align-items: center; gap: 28px; }

.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); }
.logo:hover { color: var(--ink); }
.logo-mark { display: block; flex-shrink: 0; transition: transform .3s var(--ease); }
.logo-mark img { display: block; width: 44px; height: auto; }
.logo:hover .logo-mark { transform: translateY(-2px) rotate(-3deg); }
.logo-footer .logo-mark img { width: 36px; }
.logo-text { font-family: var(--font-display); font-weight: 800; font-size: 1.45rem; letter-spacing: -.02em; }
.logo-text { font-weight: 700; }
.logo-text em { font-style: italic; color: var(--brand-red); font-weight: 600; background: none; padding: 0; }

.main-nav { display: flex; gap: 4px; }
.nav-link {
  position: relative;
  padding: 8px 14px; border-radius: 999px;
  color: var(--ink-2); font-weight: 600; font-size: .95rem;
  display: inline-flex; align-items: center; gap: 6px;
}
.nav-link:hover { color: var(--ink); background: color-mix(in srgb, var(--ink) 5%, transparent); }
.nav-link.is-active { color: var(--green); background: var(--green-soft); }

.badge {
  min-width: 20px; height: 20px; padding: 0 6px;
  border-radius: 999px; background: var(--terra); color: #fff;
  font-size: .72rem; font-weight: 800; display: inline-grid; place-items: center;
  animation: pop .4s var(--ease);
}
@keyframes pop { from { transform: scale(0); } 70% { transform: scale(1.2); } }

.header-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.show-sm { display: none; }

.user-menu { position: relative; }
.user-menu summary { list-style: none; cursor: pointer; }
.user-menu summary::-webkit-details-marker { display: none; }
.avatar-btn { display: flex; align-items: center; gap: 8px; padding: 4px 12px 4px 4px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--paper); font-weight: 700; font-size: .9rem; }
.avatar-btn:hover { border-color: var(--line-2); }
.user-dropdown {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 220px;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); padding: 8px; z-index: 50;
  animation: drop .18s var(--ease);
}
@keyframes drop { from { opacity: 0; transform: translateY(-6px); } }
.user-dropdown a, .user-dropdown button {
  display: block; width: 100%; text-align: left; padding: 10px 12px; border-radius: 10px;
  color: var(--ink); background: none; border: 0; cursor: pointer; font-weight: 600; font-size: .92rem;
}
.user-dropdown a:hover, .user-dropdown button:hover { background: var(--cream); }
.dropdown-head { padding: 8px 12px 12px; border-bottom: 1px solid var(--line); margin-bottom: 6px; line-height: 1.35; }
.dropdown-head small { color: var(--muted); }

/* Avatar (monogram) */
.avatar {
  --size: 40px;
  width: var(--size); height: var(--size); border-radius: 50%;
  display: inline-grid; place-items: center; flex-shrink: 0;
  background: linear-gradient(135deg, var(--yolk), var(--terra));
  color: #fff; font-weight: 800; font-size: calc(var(--size) * .42);
  font-family: var(--font-display);
  box-shadow: inset 0 -2px 0 rgb(0 0 0 / .12);
}
.avatar-xs { --size: 22px; }
.avatar-sm { --size: 30px; }
.avatar-lg { --size: 54px; }

/* ---------- Értesítések ---------- */

.toasts { position: fixed; top: calc(var(--header-h) + 12px); left: 50%; transform: translateX(-50%); z-index: 60; display: grid; gap: 8px; width: min(92vw, 440px); }
.toast {
  padding: 14px 18px; border-radius: var(--radius); background: var(--green); color: var(--on-green);
  font-weight: 600; box-shadow: var(--shadow-lg);
  animation: toast-in .4s var(--ease), toast-out .4s var(--ease) 4.2s forwards;
}
@keyframes toast-in { from { opacity: 0; transform: translateY(-12px) scale(.96); } }
@keyframes toast-out { to { opacity: 0; transform: translateY(-12px); visibility: hidden; } }

.notice { padding: 14px 18px; border-radius: var(--radius); margin-bottom: 18px; font-size: .95rem; border: 1px solid; }
.notice-error { background: color-mix(in srgb, var(--danger) 8%, var(--paper)); border-color: color-mix(in srgb, var(--danger) 30%, transparent); color: var(--danger); }
.notice-warn { background: var(--yolk-soft); border-color: color-mix(in srgb, var(--yolk-2) 40%, transparent); }
.notice-green { background: var(--green-soft); border-color: color-mix(in srgb, var(--green-3) 30%, transparent); margin-top: 18px; }

/* ---------- Hero ---------- */

.hero { padding: 56px 0 96px; position: relative; overflow: hidden; }
.hero-inner { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 14px 6px 10px; border-radius: 999px;
  background: var(--paper); border: 1px solid var(--line);
  font-size: .82rem; font-weight: 700; letter-spacing: .02em; color: var(--ink-2);
  box-shadow: var(--shadow-sm);
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green-3); box-shadow: 0 0 0 4px color-mix(in srgb, var(--green-3) 25%, transparent); animation: live 2s infinite; }
@keyframes live { 50% { box-shadow: 0 0 0 8px transparent; } }
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  font-weight: 800; letter-spacing: -.035em; line-height: 1.02;
  margin: 22px 0 20px;
  font-variation-settings: "opsz" 144;
}
.hero-title em { display: inline; }
.hero-lead { font-size: 1.15rem; color: var(--ink-2); max-width: 34em; }
.hero-stats { display: flex; gap: 36px; margin: 32px 0 0; }
.hero-stats div { display: flex; flex-direction: column; }
.hero-stats dt { font-family: var(--font-display); font-size: 2.2rem; font-weight: 800; line-height: 1; color: var(--green); }
.hero-stats dd { margin: 6px 0 0; font-size: .85rem; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }

.hero-art { position: relative; aspect-ratio: 1; max-width: 460px; justify-self: center; width: 100%; }
.hero-plate {
  position: absolute; inset: 6%;
  border-radius: 46% 54% 52% 48% / 55% 45% 55% 45%;
  background:
    radial-gradient(circle at 32% 28%, rgb(255 236 170 / .55), transparent 38%),
    radial-gradient(circle at 75% 80%, rgb(0 0 0 / .18), transparent 45%),
    linear-gradient(145deg, #4c9a5e, #1d4a2a);
  box-shadow: var(--shadow-lg), inset 0 -20px 40px rgb(0 0 0 / .15);
  animation: blob 14s ease-in-out infinite;
}
@keyframes blob {
  50% { border-radius: 55% 45% 42% 58% / 45% 58% 42% 55%; }
}
.sticker {
  position: absolute;
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  width: 1.7em; height: 1.7em; display: grid; place-items: center;
  background: var(--paper); border-radius: 30%;
  box-shadow: var(--shadow);
  animation: float 6s ease-in-out infinite;
}
.s1 { top: -4%; left: 8%; --r: -8deg; animation-delay: 0s; }
.s2 { top: 12%; right: -6%; --r: 10deg; animation-delay: -1s; }
.s3 { bottom: 4%; left: -6%; --r: 6deg; animation-delay: -2s; }
.s4 { bottom: -6%; right: 16%; --r: -10deg; animation-delay: -3s; }
.s5 { top: 42%; left: 36%; --r: 4deg; animation-delay: -4s; font-size: clamp(2.8rem, 6vw, 4.4rem); }
.s6 { top: 50%; right: -2%; --r: -4deg; animation-delay: -5s; font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(var(--r)); }
  50% { transform: translateY(-12px) rotate(calc(var(--r) * -1)); }
}

/* ---------- Kereső ---------- */

.search-panel {
  position: relative; z-index: 5;
  margin-top: -56px;
  display: grid;
  grid-template-columns: 2fr 1.1fr 1.1fr auto auto;
  align-items: end; gap: 14px;
  padding: 18px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
.search-panel.is-compact { margin-top: 28px; box-shadow: var(--shadow); }
.search-field { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.search-label { font-size: .75rem; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); padding-left: 4px; }
.search-field input, .search-field select {
  height: 50px; padding: 0 16px;
  border: 1.5px solid var(--line); border-radius: 14px;
  background: var(--cream); outline: none;
  transition: border-color .2s, background .2s, box-shadow .2s;
}
.search-field input:focus, .search-field select:focus { border-color: var(--green-3); background: var(--paper); box-shadow: 0 0 0 4px color-mix(in srgb, var(--green-3) 15%, transparent); }
.search-btn { height: 50px; }

/* Kapcsoló (switch) */
.switch-field, .toggle-card { display: flex; align-items: center; gap: 10px; cursor: pointer; user-select: none; font-weight: 600; font-size: .9rem; }
.switch-field { height: 50px; padding: 0 6px; }
.switch-field input, .toggle-card input { position: absolute; opacity: 0; pointer-events: none; }
.switch {
  width: 44px; height: 26px; border-radius: 999px; flex-shrink: 0;
  background: var(--line-2); position: relative; transition: background .2s;
}
.switch::after {
  content: ""; position: absolute; top: 3px; left: 3px;
  width: 20px; height: 20px; border-radius: 50%; background: #fff;
  box-shadow: 0 2px 4px rgb(0 0 0 / .2);
  transition: transform .25s var(--ease);
}
input:checked + .switch { background: var(--green-3); }
input:checked + .switch::after { transform: translateX(18px); }
input:focus-visible + .switch { outline: 3px solid color-mix(in srgb, var(--yolk) 80%, transparent); outline-offset: 2px; }

/* ---------- Szekciók ---------- */

.section { margin-top: 56px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.section-title { font-family: var(--font-display); font-size: clamp(1.6rem, 3vw, 2.1rem); font-weight: 700; letter-spacing: -.02em; display: flex; align-items: center; gap: 12px; }
.section-title.center { justify-content: center; text-align: center; }
.count-pill { font-family: var(--font-body); font-size: .9rem; font-weight: 800; padding: 3px 12px; border-radius: 999px; background: var(--green-soft); color: var(--green); }
.link-muted { color: var(--muted); font-weight: 600; font-size: .92rem; }
.link-muted:hover { color: var(--danger); }

/* Kategória színek */
.cat-TOJAS     { --c1: #fff4d6; --c2: #ffd978; --ct: #8a5b00; }
.cat-ZOLDSEG   { --c1: #e5f3dc; --c2: #a9d98f; --ct: #2d6a1f; }
.cat-GYUMOLCS  { --c1: #fde2dc; --c2: #f7a08c; --ct: #9c2f1a; }
.cat-TEJTERMEK { --c1: #e6eff8; --c2: #b3cde8; --ct: #2a4f78; }
.cat-HUS       { --c1: #f8dfd6; --c2: #e59a82; --ct: #8a3218; }
.cat-MEZ       { --c1: #fdebc8; --c2: #f2bd57; --ct: #7c4f00; }
.cat-PEKARU    { --c1: #f5e7d3; --c2: #dcb88a; --ct: #6d4620; }
.cat-EGYEB     { --c1: #ece6f5; --c2: #c2b3dd; --ct: #4d3a74; }
@media (prefers-color-scheme: dark) {
  [class*="cat-"] { --c1: color-mix(in srgb, var(--c2) 22%, #1d241a) !important; --ct: color-mix(in srgb, var(--c2) 80%, #fff) !important; }
}

.cat-grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 12px; }
.cat-tile {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 20px 8px 16px; border-radius: var(--radius-lg);
  background: var(--c1); color: var(--ct);
  font-weight: 700; font-size: .92rem;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
  position: relative; overflow: hidden;
}
.cat-tile::before { content: ""; position: absolute; inset: auto -30% -60% -30%; height: 90%; background: radial-gradient(closest-side, color-mix(in srgb, var(--c2) 70%, transparent), transparent); transition: transform .4s var(--ease); }
.cat-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow); color: var(--ct); }
.cat-tile:hover::before { transform: translateY(-20%); }
.cat-emoji { font-size: 2.3rem; line-height: 1; position: relative; transition: transform .3s var(--ease); }
.cat-tile:hover .cat-emoji { transform: scale(1.18) rotate(-8deg); }
.cat-label { position: relative; }

/* ---------- Hirdetés kártya ---------- */

.listing-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 22px; }
.listing-card {
  display: flex; flex-direction: column;
  background: var(--paper); color: var(--ink);
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}
.listing-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--line-2); color: var(--ink); }
.card-media {
  position: relative; aspect-ratio: 4 / 3; overflow: hidden;
  background: radial-gradient(circle at 50% 110%, var(--c2), var(--c1) 70%);
  display: grid; place-items: center;
}
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.listing-card:hover .card-media img { transform: scale(1.06); }
.card-emoji { font-size: 5rem; filter: drop-shadow(0 10px 12px rgb(0 0 0 / .18)); transition: transform .5s var(--ease); }
.listing-card:hover .card-emoji { transform: scale(1.12) rotate(-6deg); }
.card-cat, .card-delivery {
  position: absolute; top: 12px;
  padding: 5px 11px; border-radius: 999px;
  font-size: .75rem; font-weight: 800;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.card-cat { left: 12px; background: rgb(255 253 248 / .88); color: #1c2a1f; }
.card-delivery { right: 12px; background: var(--green); color: #fffdf8; }
.card-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-title { font-size: 1.05rem; font-weight: 700; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-price { font-family: var(--font-display); font-size: 1.55rem; font-weight: 800; color: var(--green-2); letter-spacing: -.02em; }
.card-price span { font-family: var(--font-body); font-size: .85rem; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.card-meta { margin-top: auto; padding-top: 10px; border-top: 1px dashed var(--line); display: flex; justify-content: space-between; gap: 10px; font-size: .85rem; color: var(--muted); font-weight: 600; }
.card-seller, .card-city { display: inline-flex; align-items: center; gap: 6px; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- Üres állapot ---------- */

.empty-state {
  text-align: center; padding: 56px 24px;
  background: var(--paper); border: 1.5px dashed var(--line-2); border-radius: var(--radius-lg);
  display: flex; flex-direction: column; align-items: center; gap: 12px;
}
.empty-state.big { margin-top: 48px; padding: 80px 24px; }
.empty-state h3 { font-family: var(--font-display); font-size: 1.5rem; }
.empty-state .btn { margin-top: 8px; }
.empty-emoji { font-size: 3.6rem; animation: float 5s ease-in-out infinite; --r: 0deg; }
.wobble { animation: wobble 2.4s ease-in-out infinite; font-size: 5rem; }
@keyframes wobble { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-12deg); } 75% { transform: rotate(12deg) translateX(8px); } }

/* ---------- Hogyan működik ---------- */

.how { margin-top: 80px; }
.steps { list-style: none; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.step {
  position: relative; padding: 28px; border-radius: var(--radius-lg);
  background: var(--paper); border: 1px solid var(--line);
  counter-increment: step;
}
.step::after {
  content: counter(step);
  position: absolute; top: 18px; right: 24px;
  font-family: var(--font-display); font-size: 3.4rem; font-weight: 800; line-height: 1;
  color: color-mix(in srgb, var(--yolk) 45%, transparent);
}
.step-icon { font-size: 2rem; display: grid; place-items: center; width: 60px; height: 60px; border-radius: 18px; background: var(--yolk-soft); margin-bottom: 16px; }
.step h3 { font-family: var(--font-display); font-size: 1.35rem; margin-bottom: 6px; }
.step p { color: var(--muted); }

/* ---------- CTA sáv ---------- */

.cta-band {
  margin-top: 64px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  padding: 44px 48px; border-radius: var(--radius-xl);
  background:
    radial-gradient(500px 200px at 90% 0%, color-mix(in srgb, var(--yolk) 35%, transparent), transparent),
    radial-gradient(400px 200px at 0% 100%, color-mix(in srgb, var(--green-3) 60%, transparent), transparent),
    #1d4a2a;
  color: #fffdf8;
  position: relative; overflow: hidden;
}
.cta-band::after { content: "🌾"; position: absolute; right: 30%; bottom: -30px; font-size: 8rem; opacity: .12; transform: rotate(-12deg); }
.cta-band h2 { font-family: var(--font-display); font-size: clamp(1.7rem, 3.5vw, 2.4rem); letter-spacing: -.02em; }
.cta-band h2 em { color: #fffdf8; background: linear-gradient(transparent 62%, rgb(244 183 63 / .6) 62%, rgb(244 183 63 / .6) 92%, transparent 92%); }
.cta-band p { opacity: .85; margin-top: 8px; }

/* ---------- Oldalfejek ---------- */

.page-head { padding: 40px 0 24px; }
.page-head.row { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.page-title { font-family: var(--font-display); font-size: clamp(2rem, 4.5vw, 2.8rem); font-weight: 800; letter-spacing: -.03em; margin-bottom: 8px; }

/* ---------- Hirdetés részletek ---------- */

.detail { padding-top: 24px; }
.breadcrumb { display: flex; gap: 8px; font-size: .88rem; font-weight: 600; color: var(--muted); margin-bottom: 18px; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--green-2); }
.detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 28px; align-items: start; }
.detail-media {
  aspect-ratio: 16 / 10; border-radius: var(--radius-xl); overflow: hidden;
  background: radial-gradient(circle at 50% 120%, var(--c2), var(--c1) 70%);
  display: grid; place-items: center;
  box-shadow: var(--shadow);
}
.detail-media img { width: 100%; height: 100%; object-fit: cover; }
.detail-emoji { font-size: clamp(6rem, 16vw, 10rem); filter: drop-shadow(0 20px 20px rgb(0 0 0 / .2)); animation: float 6s ease-in-out infinite; --r: -4deg; }
.detail-card { margin-top: 24px; padding: 32px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-xl); }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; font-size: .8rem; font-weight: 800; }
.cat-chip { background: var(--c1); color: var(--ct); }
.detail-title { font-family: var(--font-display); font-size: clamp(1.9rem, 4vw, 2.7rem); font-weight: 800; letter-spacing: -.03em; margin: 12px 0 22px; }
.facts { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.facts li { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: var(--radius); background: var(--cream); }
.fact-icon { font-size: 1.4rem; }
.facts small { display: block; font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.facts strong { font-size: .95rem; }
.detail-subtitle { font-family: var(--font-display); font-size: 1.35rem; margin: 30px 0 10px; }
.prose { font-size: 1.05rem; color: var(--ink-2); line-height: 1.75; overflow-wrap: anywhere; }

.detail-side { position: sticky; top: calc(var(--header-h) + 20px); }
.buy-card {
  padding: 28px; border-radius: var(--radius-xl);
  background: var(--paper); border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  display: flex; flex-direction: column; gap: 14px;
}
.buy-price { font-family: var(--font-display); font-size: 2.6rem; font-weight: 800; letter-spacing: -.03em; color: var(--green-2); line-height: 1; }
.buy-price span { font-family: var(--font-body); font-size: 1rem; color: var(--muted); font-weight: 600; letter-spacing: 0; }
.seller { display: flex; align-items: center; gap: 14px; padding: 16px 0; margin-bottom: 4px; border-block: 1px dashed var(--line); }
.seller-name { font-weight: 800; font-size: 1.1rem; }
.safety { padding: 12px 14px; border-radius: 12px; background: var(--cream); color: var(--muted); line-height: 1.45; }

.action-bar { display: none; }

/* ---------- Űrlapok ---------- */

.form-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-xl); box-shadow: var(--shadow); overflow: hidden; }
.form-section { border: 0; margin: 0; padding: 28px 32px; }
.form-section + .form-section { border-top: 1px solid var(--line); }
.form-section legend { float: left; width: 100%; font-family: var(--font-display); font-size: 1.3rem; font-weight: 700; margin-bottom: 18px; display: flex; align-items: center; gap: 10px; }
.form-section legend + * { clear: both; }
.step-no { width: 30px; height: 30px; border-radius: 50%; background: var(--yolk); color: #1c2a1f; display: inline-grid; place-items: center; font-family: var(--font-body); font-size: .9rem; font-weight: 800; }

.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; min-width: 0; }
.field:last-child { margin-bottom: 0; }
.field > label, .label { font-weight: 700; font-size: .92rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field input:not([type=checkbox]):not([type=radio]):not([type=file]), .field textarea, .field select {
  width: 100%; padding: 13px 16px;
  border: 1.5px solid var(--line); border-radius: 14px;
  background: var(--cream); outline: none;
  transition: border-color .2s, background .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 130px; line-height: 1.6; }
.field input:focus, .field textarea:focus { border-color: var(--green-3); background: var(--paper); box-shadow: 0 0 0 4px color-mix(in srgb, var(--green-3) 15%, transparent); }
.field .is-invalid { border-color: var(--danger) !important; background: color-mix(in srgb, var(--danger) 5%, var(--paper)) !important; }
.field-error { color: var(--danger); font-size: .86rem; font-weight: 600; display: flex; gap: 6px; align-items: center; }
.field-error::before { content: "!"; width: 16px; height: 16px; border-radius: 50%; background: var(--danger); color: #fff; font-size: .7rem; font-weight: 800; display: inline-grid; place-items: center; flex-shrink: 0; }
.hint { font-size: .82rem; color: var(--muted); }
.input-affix { position: relative; }
.input-affix input { padding-right: 48px !important; }
.affix { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); color: var(--muted); font-weight: 700; pointer-events: none; }
.check { display: inline-flex; align-items: center; gap: 8px; font-size: .9rem; font-weight: 600; cursor: pointer; margin-top: 4px; }
.check input { accent-color: var(--danger); width: 16px; height: 16px; }

/* Kategória-választó csempék */
.cat-picker { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.cat-option input { position: absolute; opacity: 0; }
.cat-option-inner {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 16px 8px; border-radius: var(--radius);
  border: 2px solid var(--line); background: var(--cream);
  font-weight: 700; font-size: .9rem; cursor: pointer;
  transition: all .2s var(--ease);
}
.cat-option-inner .cat-emoji { font-size: 1.9rem; }
.cat-option:hover .cat-option-inner { border-color: var(--c2); background: var(--c1); }
.cat-option input:checked + .cat-option-inner { border-color: var(--ct); background: var(--c1); color: var(--ct); box-shadow: 0 0 0 4px color-mix(in srgb, var(--c2) 45%, transparent); transform: translateY(-2px); }
.cat-option input:checked + .cat-option-inner .cat-emoji { transform: scale(1.15) rotate(-8deg); }
.cat-option input:focus-visible + .cat-option-inner { outline: 3px solid color-mix(in srgb, var(--yolk) 80%, transparent); outline-offset: 2px; }

/* Képfeltöltő */
.dropzone {
  position: relative; display: grid; place-items: center; min-height: 190px;
  border: 2px dashed var(--line-2); border-radius: var(--radius-lg);
  background: repeating-linear-gradient(45deg, var(--cream), var(--cream) 12px, color-mix(in srgb, var(--cream-2) 60%, var(--cream)) 12px, color-mix(in srgb, var(--cream-2) 60%, var(--cream)) 24px);
  cursor: pointer; overflow: hidden; transition: border-color .2s, transform .2s;
}
.dropzone:hover, .dropzone.is-drag { border-color: var(--green-3); }
.dropzone.is-drag { transform: scale(1.01); }
.dropzone input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.dropzone-text { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; padding: 20px; pointer-events: none; }
.dropzone-icon { font-size: 2.2rem; }
.dropzone-text small { color: var(--muted); }
.dropzone-preview { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.dropzone.has-image .dropzone-text { position: relative; z-index: 1; background: rgb(255 253 248 / .9); color: #1c2a1f; border-radius: 14px; padding: 10px 16px; opacity: 0; transition: opacity .2s; }
.dropzone.has-image:hover .dropzone-text { opacity: 1; }
.dropzone.has-image .dropzone-icon, .dropzone.has-image small { display: none; }

.toggle-card { padding: 16px 18px; border-radius: var(--radius); border: 1.5px solid var(--line); background: var(--cream); margin-bottom: 16px; font-weight: 500; line-height: 1.4; transition: border-color .2s, background .2s; }
.toggle-card:has(input:checked) { border-color: var(--green-3); background: var(--green-soft); }
.reveal-field { animation: drop .25s var(--ease); }

.form-actions { display: flex; justify-content: flex-end; gap: 12px; padding: 20px 32px; background: var(--cream); border-top: 1px solid var(--line); }

/* ---------- Belépés / regisztráció ---------- */

.auth-wrap { padding-top: 40px; }
.auth-card { display: grid; grid-template-columns: .9fr 1.1fr; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-xl); box-shadow: var(--shadow-lg); overflow: hidden; max-width: 1000px; margin-inline: auto; }
.auth-art {
  position: relative; min-height: 520px;
  background:
    radial-gradient(circle at 25% 20%, color-mix(in srgb, var(--yolk) 80%, transparent) 0 70px, transparent 71px),
    radial-gradient(400px 300px at 100% 100%, #3f8a51, transparent),
    #1d4a2a;
  color: #fffdf8; overflow: hidden;
}
.auth-art-inner { position: absolute; inset: 0; padding: 40px; display: flex; flex-direction: column; justify-content: flex-end; }
.auth-art .sticker { font-size: 2.6rem; }
.auth-art .s1, .auth-art .s4 { top: 14%; left: 14%; }
.auth-art .s3, .auth-art .s5 { top: 30%; right: 14%; left: auto; bottom: auto; }
.auth-art .s2, .auth-art .s6 { top: 48%; left: 28%; right: auto; }
.auth-quote { font-family: var(--font-display); font-style: italic; font-size: 1.5rem; line-height: 1.3; font-weight: 600; }
.auth-perks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-weight: 700; font-size: 1.1rem; }
.auth-form { padding: 48px; display: flex; flex-direction: column; justify-content: center; }
.auth-form > .muted { margin-bottom: 24px; }
.auth-switch { margin-top: 24px; text-align: center; color: var(--muted); font-size: .95rem; }
.auth-switch a { font-weight: 700; }

/* ---------- Hirdetéseim ---------- */

.manage-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.manage-item { display: flex; align-items: center; gap: 18px; padding: 14px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); transition: box-shadow .2s; }
.manage-item:hover { box-shadow: var(--shadow); }
.manage-item.is-inactive { opacity: .7; }
.manage-item.is-inactive .manage-thumb { filter: grayscale(.8); }
.manage-thumb { width: 88px; height: 88px; border-radius: var(--radius); overflow: hidden; flex-shrink: 0; display: grid; place-items: center; font-size: 2.4rem; background: radial-gradient(circle at 50% 120%, var(--c2), var(--c1) 70%); }
.manage-thumb img { width: 100%; height: 100%; object-fit: cover; }
.manage-info { flex: 1; min-width: 0; display: grid; gap: 4px; }
.manage-title { font-weight: 800; font-size: 1.05rem; color: var(--ink); }
.manage-actions { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.status { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; font-size: .78rem; padding: 3px 10px; border-radius: 999px; }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status-on { background: var(--green-soft); color: var(--green-2); }
.status-off { background: var(--yolk-soft); color: #8a5b00; }

/* ---------- Üzenetek ---------- */

.inbox { list-style: none; padding: 0; margin: 0; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.inbox li + li { border-top: 1px solid var(--line); }
.inbox-item { display: flex; align-items: center; gap: 16px; padding: 16px 20px; color: var(--ink); transition: background .15s; }
.inbox-item:hover { background: var(--cream); color: var(--ink); }
.inbox-thumb { position: relative; width: 56px; height: 56px; border-radius: 16px; flex-shrink: 0; display: grid; place-items: center; font-size: 1.7rem; background: radial-gradient(circle at 50% 120%, var(--c2), var(--c1) 70%); }
.inbox-thumb img { width: 100%; height: 100%; object-fit: cover; border-radius: 16px; }
.inbox-avatar { position: absolute; right: -6px; bottom: -6px; border: 2px solid var(--paper); --size: 26px; }
.inbox-body { flex: 1; min-width: 0; display: grid; gap: 2px; }
.inbox-top { display: flex; align-items: center; gap: 8px; }
.inbox-top time { margin-left: auto; white-space: nowrap; }
.inbox-listing { color: var(--muted); font-size: .9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.is-unread .inbox-listing { color: var(--ink); font-weight: 600; }
.role-tag { font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; padding: 2px 8px; border-radius: 999px; background: var(--cream-2); color: var(--muted); }
.unread-dot { min-width: 24px; height: 24px; padding: 0 7px; border-radius: 999px; background: var(--terra); color: #fff; font-size: .78rem; font-weight: 800; display: grid; place-items: center; }

/* Chat */
.page-chat .site-footer { display: none; }
.page-chat .site-main { padding-bottom: 0; }
.chat-wrap { max-width: 820px; padding-top: 20px; height: calc(100dvh - var(--header-h) - var(--tabbar-h)); display: flex; flex-direction: column; padding-bottom: 20px; }
.chat-head { display: flex; align-items: center; gap: 12px; padding: 12px 16px 12px 8px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg) var(--radius-lg) 0 0; border-bottom: 0; }
.chat-who { flex: 1; min-width: 0; display: grid; }
.chat-listing { font-size: .85rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat {
  flex: 1; min-height: 0; display: flex; flex-direction: column;
  border: 1px solid var(--line); border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  background:
    radial-gradient(circle at 20% 20%, color-mix(in srgb, var(--yolk) 6%, transparent), transparent 40%),
    var(--cream-2);
  overflow: hidden;
}
.chat-scroll { flex: 1; overflow-y: auto; padding: 20px; overscroll-behavior: contain; }
.chat-secure { text-align: center; font-size: .78rem; color: var(--muted); font-weight: 600; margin-bottom: 16px; }
.chat-empty { text-align: center; padding: 40px 20px; color: var(--muted); }
.chat-empty span { font-size: 2.6rem; display: block; margin-bottom: 8px; animation: wave 2s ease-in-out infinite; transform-origin: 70% 70%; }
@keyframes wave { 0%, 60%, 100% { transform: rotate(0); } 10%, 30% { transform: rotate(14deg); } 20%, 40% { transform: rotate(-8deg); } }
.chat-messages { display: flex; flex-direction: column; gap: 6px; }
.msg { max-width: 78%; padding: 10px 14px 6px; border-radius: 20px; box-shadow: var(--shadow-sm); animation: msg-in .3s var(--ease); overflow-wrap: anywhere; }
@keyframes msg-in { from { opacity: 0; transform: translateY(8px) scale(.97); } }
.msg p { line-height: 1.45; }
.msg time { display: block; text-align: right; font-size: .7rem; opacity: .65; margin-top: 2px; }
.msg-theirs { align-self: flex-start; background: var(--paper); border-bottom-left-radius: 6px; }
.msg-mine { align-self: flex-end; background: var(--green); color: var(--on-green); border-bottom-right-radius: 6px; }
.composer { display: flex; align-items: flex-end; gap: 10px; padding: 12px; background: var(--paper); border-top: 1px solid var(--line); }
.composer textarea {
  flex: 1; resize: none; max-height: 140px;
  padding: 12px 18px; border-radius: 24px;
  border: 1.5px solid var(--line); background: var(--cream); outline: none; line-height: 1.4;
}
.composer textarea:focus { border-color: var(--green-3); background: var(--paper); }
.send-btn { width: 48px; height: 48px; flex-shrink: 0; border-radius: 50%; border: 0; cursor: pointer; background: var(--green); color: var(--on-green); display: grid; place-items: center; transition: transform .2s var(--ease), background .2s; }
.send-btn:hover { background: var(--green-2); transform: rotate(-12deg) scale(1.05); }
.send-btn:disabled { opacity: .5; transform: none; cursor: default; }
.send-btn svg { width: 22px; height: 22px; }
.chat-error { padding: 0 16px 12px; background: var(--paper); color: var(--danger); font-size: .88rem; font-weight: 600; }

/* ---------- Lábléc ---------- */

.site-footer { border-top: 1px solid var(--line); background: var(--cream-2); padding: 40px 0; }
.footer-inner { display: grid; grid-template-columns: 1fr auto; gap: 20px 40px; align-items: start; }
.logo-footer .logo-text { font-size: 1.3rem; }
.site-footer p { margin-top: 8px; font-size: .92rem; }
.footer-links { display: flex; gap: 24px; font-weight: 600; font-size: .92rem; }
.footer-links a { color: var(--ink-2); }
.footer-note { grid-column: 1 / -1; font-size: .82rem !important; padding-top: 20px; border-top: 1px dashed var(--line-2); }

/* ---------- Jogi oldalak ---------- */

.legal .page-head .muted { font-size: .92rem; }
.legal-summary {
  padding: 24px 28px; margin-bottom: 20px;
  border-radius: var(--radius-lg);
  background: var(--green-soft); border: 1px solid color-mix(in srgb, var(--green-3) 25%, transparent);
}
.legal-summary h2 { font-family: var(--font-display); font-size: 1.3rem; margin-bottom: 10px; }
.legal-summary ul { margin: 0 0 10px; padding-left: 0; list-style: none; display: grid; gap: 8px; }
.legal-card { padding: 32px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-xl); }
.legal-card h2 { font-family: var(--font-display); font-size: 1.3rem; margin: 28px 0 10px; }
.legal-card h2:first-child { margin-top: 0; }
.legal-card p, .legal-card li { color: var(--ink-2); line-height: 1.7; }
.legal-card p + p { margin-top: 10px; }
.legal-card ul { padding-left: 22px; margin: 8px 0; }
.legal-card a, .legal-summary a { text-decoration: underline; text-underline-offset: 2px; }
.legal-card code { background: var(--cream); padding: 1px 6px; border-radius: 6px; font-size: .9em; }
.legal-dl { display: grid; grid-template-columns: max-content 1fr; gap: 8px 24px; margin: 0; }
.legal-dl dt { font-weight: 700; color: var(--muted); font-size: .9rem; }
.legal-dl dd { margin: 0; }
.table-wrap { overflow-x: auto; margin: 12px 0; border: 1px solid var(--line); border-radius: var(--radius); }
.legal-table { width: 100%; border-collapse: collapse; font-size: .88rem; min-width: 680px; }
.legal-table th, .legal-table td { padding: 12px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); line-height: 1.5; }
.legal-table th { background: var(--cream); font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.legal-table tr:last-child td { border-bottom: 0; }
mark.todo { background: #ffe1dc; color: #b8361f; padding: 1px 8px; border-radius: 6px; font-weight: 700; font-size: .85em; }

/* Jogi elfogadás, figyelmeztetések */
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; font-weight: 500 !important; line-height: 1.5; cursor: pointer; padding: 12px 14px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--cream); }
.consent input { width: 18px; height: 18px; margin-top: 2px; flex-shrink: 0; accent-color: var(--green-2); }
.consent a { font-weight: 700; text-decoration: underline; }
.consent.is-invalid { border-color: var(--danger); }
.form-legal { padding: 16px 32px; font-size: .86rem; color: var(--muted); border-top: 1px solid var(--line); line-height: 1.55; }
.form-legal a { text-decoration: underline; }
.report-link { align-self: center; font-size: .85rem; font-weight: 600; color: var(--muted); }
.report-link:hover { color: var(--danger); }
.safety a { text-decoration: underline; color: inherit; }
.report-reasons { display: grid; gap: 8px; }
.radio-row { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--cream); cursor: pointer; font-weight: 600; font-size: .92rem; transition: border-color .2s, background .2s; }
.radio-row input { accent-color: var(--green-2); width: 18px; height: 18px; }
.radio-row:has(input:checked) { border-color: var(--green-3); background: var(--green-soft); }

.footer-cols { display: flex; gap: 40px; }
.footer-cols .footer-links { flex-direction: column; gap: 8px; }
.footer-disclaimer { grid-column: 1 / -1; font-size: .8rem !important; line-height: 1.5; max-width: 760px; }

/* ---------- Admin felület ---------- */

.toast-error { background: var(--danger); color: #fff; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: color-mix(in srgb, var(--danger) 85%, #000); color: #fff; }
.nav-admin { color: var(--terra); }

.admin { padding-top: 28px; }
.admin-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.admin-head .page-title { margin: 0; }
.admin-tabs { display: flex; gap: 4px; flex-wrap: wrap; padding: 4px; background: var(--paper); border: 1px solid var(--line); border-radius: 999px; }
.admin-tabs a { padding: 8px 16px; border-radius: 999px; font-weight: 700; font-size: .9rem; color: var(--ink-2); display: inline-flex; align-items: center; gap: 6px; }
.admin-tabs a:hover { background: var(--cream); color: var(--ink); }
.admin-tabs a.is-active { background: var(--green); color: var(--on-green); }

.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.stat { display: flex; flex-direction: column; gap: 2px; padding: 20px; border-radius: var(--radius-lg); background: var(--paper); border: 1px solid var(--line); color: var(--ink); transition: transform .2s var(--ease), box-shadow .2s; }
a.stat:hover { transform: translateY(-2px); box-shadow: var(--shadow); color: var(--ink); }
.stat-num { font-family: var(--font-display); font-size: 2.4rem; font-weight: 800; line-height: 1; color: var(--green-2); }
.stat-label { font-weight: 700; }
.stat-sub { font-size: .82rem; color: var(--muted); }
.stat-alert { background: var(--terra-soft); border-color: color-mix(in srgb, var(--terra) 40%, transparent); }
.stat-alert .stat-num { color: var(--terra); }

.admin-section { margin-top: 32px; }
.admin-section .section-title { font-size: 1.35rem; }
.admin-two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; }
.admin-empty { padding: 28px; text-align: center; background: var(--paper); border: 1.5px dashed var(--line-2); border-radius: var(--radius-lg); color: var(--muted); font-weight: 600; }
.admin-list { list-style: none; margin: 0; padding: 0; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.admin-list li { display: flex; align-items: center; gap: 12px; padding: 12px 16px; line-height: 1.35; }
.admin-list li + li { border-top: 1px solid var(--line); }
.admin-list time { margin-left: auto; white-space: nowrap; }
.admin-list li > span:not(.avatar):not(.admin-thumb):not(.status):not(.reason-tag) { min-width: 0; overflow-wrap: anywhere; }
.admin-list li > a { min-width: 0; overflow-wrap: anywhere; }
.admin-thumb { width: 44px; height: 44px; border-radius: 12px; flex-shrink: 0; display: grid; place-items: center; font-size: 1.4rem; overflow: hidden; background: radial-gradient(circle at 50% 120%, var(--c2), var(--c1) 70%); }
.admin-thumb img { width: 100%; height: 100%; object-fit: cover; }
.reason-tag { display: inline-block; padding: 3px 10px; border-radius: 999px; background: var(--terra-soft); color: var(--terra); font-size: .78rem; font-weight: 800; white-space: nowrap; }

.admin-filters { display: flex; gap: 8px; margin-bottom: 16px; }
.chip-filter { padding: 7px 16px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--paper); color: var(--ink-2); font-weight: 700; font-size: .88rem; }
.chip-filter.is-active { border-color: var(--green-2); background: var(--green-soft); color: var(--green); }

.admin-search { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.admin-search input, .admin-search select { height: 46px; padding: 0 14px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--paper); outline: none; }
.admin-search input { flex: 1 1 320px; }
.admin-search input:focus, .admin-search select:focus { border-color: var(--green-3); }
.admin-count { margin: 8px 0 12px; }

.admin-table-wrap { overflow-x: auto; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.admin-table { width: 100%; border-collapse: collapse; font-size: .9rem; min-width: 820px; }
.admin-table th { text-align: left; padding: 12px 14px; background: var(--cream); font-size: .74rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); border-bottom: 1px solid var(--line); }
.admin-table td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; line-height: 1.4; }
.admin-table tr:last-child td { border-bottom: 0; }
.admin-table tr.is-banned td { background: color-mix(in srgb, var(--danger) 5%, transparent); }
.admin-table .status, .admin-table .reason-tag { margin: 2px 2px 2px 0; }
.admin-cell-main { display: flex; align-items: center; gap: 12px; min-width: 220px; }

.admin-actions { display: flex; gap: 6px; flex-wrap: wrap; align-items: flex-start; }
.admin-actions.is-compact { justify-content: flex-end; }
.admin-card { margin-top: 16px; padding: 18px; border-radius: var(--radius-lg); background: var(--terra-soft); border: 1px dashed color-mix(in srgb, var(--terra) 50%, transparent); }
.admin-card-title { width: 100%; font-weight: 800; font-size: .9rem; margin-bottom: 4px; }
.admin-pop { position: relative; }
.admin-pop summary { list-style: none; cursor: pointer; }
.admin-pop summary::-webkit-details-marker { display: none; }
.admin-pop-body {
  position: absolute; right: 0; top: calc(100% + 6px); z-index: 20; width: 300px;
  display: grid; gap: 10px; padding: 14px;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg);
  animation: drop .18s var(--ease);
}
.admin-card .admin-pop-body { left: 0; right: auto; }
.admin-pop-body label { display: grid; gap: 6px; font-size: .82rem; font-weight: 700; color: var(--ink-2); }
.admin-pop-body input { padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--cream); outline: none; font-weight: 500; }
.admin-pop-body input:focus { border-color: var(--green-3); }

.report-list { display: grid; gap: 14px; }
.report-card { padding: 20px; background: var(--paper); border: 1px solid var(--line); border-left: 4px solid var(--terra); border-radius: var(--radius-lg); }
.report-card.is-handled { border-left-color: var(--line-2); opacity: .75; }
.report-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.report-title { font-size: 1.1rem; margin: 10px 0 6px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.report-details { padding: 12px 14px; background: var(--cream); border-radius: 12px; margin-bottom: 8px; overflow-wrap: anywhere; }
.report-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: flex-start; margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--line); }
.report-actions .admin-actions.is-compact { justify-content: flex-start; }
.report-actions .admin-pop-body { left: 0; right: auto; }

/* ---------- Mobil alsó menüsor ---------- */

.tabbar { display: none; }

/* ---------- Belépő animáció ---------- */

.reveal { animation: reveal .7s var(--ease) both; }
.listing-grid > * { animation: reveal .6s var(--ease) both; }
.listing-grid > :nth-child(2) { animation-delay: .05s; }
.listing-grid > :nth-child(3) { animation-delay: .1s; }
.listing-grid > :nth-child(4) { animation-delay: .15s; }
.listing-grid > :nth-child(5) { animation-delay: .2s; }
.listing-grid > :nth-child(n+6) { animation-delay: .25s; }
@keyframes reveal { from { opacity: 0; transform: translateY(16px); } }

/* ==========================================================================
   Reszponzív
   ========================================================================== */

@media (max-width: 1080px) {
  .search-panel { grid-template-columns: 1fr 1fr; }
  .search-q { grid-column: 1 / -1; }
  .switch-field { grid-column: 1 / 2; }
  .cat-grid { grid-template-columns: repeat(4, 1fr); }
  .detail-grid { grid-template-columns: minmax(0, 1fr) 340px; }
}

@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; gap: 20px; }
  .hero-art { max-width: 300px; order: -1; margin-bottom: 8px; }
  .hero { padding-top: 32px; }
  .detail-grid { grid-template-columns: 1fr; }
  .detail-side { position: static; }
  .auth-card { grid-template-columns: 1fr; }
  .auth-art { min-height: 180px; }
  .auth-art .sticker { display: none; }
  .auth-art-inner { padding: 28px; }
  .steps { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  :root { --header-h: 60px; --tabbar-h: calc(68px + env(safe-area-inset-bottom)); }
  .container { padding-inline: 16px; }
  .main-nav, .hide-sm { display: none; }
  .show-sm { display: inline-flex; }
  .user-name { display: none; }
  .avatar-btn { padding: 3px; }
  .logo-mark img { width: 38px; }
  .logo-text { font-size: 1.3rem; }

  .hero { padding: 24px 0 80px; }
  .hero-art { max-width: 240px; }
  .hero-lead { font-size: 1.02rem; }
  .hero-stats { gap: 24px; }
  .hero-stats dt { font-size: 1.8rem; }

  .search-panel { grid-template-columns: 1fr; padding: 14px; gap: 10px; border-radius: 20px; }
  .search-q, .switch-field { grid-column: auto; }
  .switch-field { height: auto; padding: 4px; }

  .cat-grid { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: -16px; padding: 4px 16px 12px; scrollbar-width: none; }
  .cat-grid::-webkit-scrollbar { display: none; }
  .cat-tile { flex: 0 0 96px; scroll-snap-align: start; padding: 16px 6px 12px; }
  .cat-emoji { font-size: 2rem; }

  .listing-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .card-body { padding: 12px; }
  .card-title { font-size: .95rem; }
  .card-price { font-size: 1.25rem; }
  .card-price span { display: block; font-size: .78rem; }
  .card-meta { flex-direction: column; gap: 4px; font-size: .78rem; }
  .card-emoji { font-size: 3.4rem; }
  .card-cat { display: none; }
  .card-delivery { top: 8px; right: 8px; font-size: .68rem; padding: 4px 8px; }

  .section { margin-top: 40px; }
  .cta-band { padding: 32px 24px; }

  .detail-media { border-radius: var(--radius-lg); margin-inline: -16px; border-radius: 0; aspect-ratio: 4 / 3; }
  .detail-card { padding: 22px; margin-top: 16px; border-radius: var(--radius-lg); }
  .facts { grid-template-columns: 1fr; }
  .buy-card { box-shadow: none; padding: 22px; border-radius: var(--radius-lg); }
  .buy-card .btn-call, .buy-card form:has(.btn-outline) { display: none; }
  .action-bar {
    display: grid; grid-template-columns: 1.4fr 1fr; gap: 10px;
    position: fixed; left: 0; right: 0; bottom: var(--tabbar-h); z-index: 30;
    padding: 12px 16px;
    background: color-mix(in srgb, var(--paper) 92%, transparent);
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    border-top: 1px solid var(--line);
    box-shadow: 0 -8px 24px -12px rgb(0 0 0 / .2);
  }
  .action-bar .btn, .action-bar form, .action-bar button { width: 100%; }
  .detail { padding-bottom: 80px; }

  .form-section { padding: 22px 18px; }
  .form-actions { padding: 16px 18px; }
  .form-actions .btn-primary { flex: 1; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .field-row .field { margin-bottom: 18px; }
  .cat-picker { grid-template-columns: repeat(4, 1fr); gap: 8px; }
  .cat-option-inner { padding: 12px 4px; font-size: .78rem; }
  .cat-option-inner .cat-emoji { font-size: 1.6rem; }

  .auth-form { padding: 28px 22px; }
  .auth-wrap { padding-top: 16px; padding-inline: 0; }
  .auth-card { border-radius: 0; border-inline: 0; }

  .manage-item { flex-wrap: wrap; gap: 12px; }
  .manage-thumb { width: 64px; height: 64px; font-size: 1.8rem; }
  .manage-info { flex: 1 1 calc(100% - 80px); }
  .manage-actions { width: 100%; justify-content: stretch; }
  .manage-actions > * { flex: 1; }
  .manage-actions .btn { width: 100%; }

  .inbox { border-radius: var(--radius); }
  .inbox-item { padding: 14px; gap: 12px; }

  .chat-wrap { padding: 0; }
  .chat-head { border-radius: 0; border-inline: 0; }
  .chat { border-radius: 0; border-inline: 0; border-bottom: 0; }
  .msg { max-width: 86%; }

  .footer-inner { grid-template-columns: 1fr; }
  .footer-cols { gap: 32px; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .admin-two { grid-template-columns: minmax(0, 1fr); }
  .admin-list li { flex-wrap: wrap; }
  .admin-tabs { width: 100%; overflow-x: auto; flex-wrap: nowrap; border-radius: 16px; }
  .admin-tabs a { white-space: nowrap; }
  .admin-pop-body { position: fixed; left: 16px !important; right: 16px !important; top: auto; bottom: calc(var(--tabbar-h) + 16px); width: auto; }
  .legal-card { padding: 22px 18px; border-radius: var(--radius-lg); }
  .legal-summary { padding: 20px 18px; }
  .legal-dl { grid-template-columns: 1fr; gap: 2px; }
  .legal-dl dd { margin-bottom: 10px; }
  .form-legal { padding: 14px 18px; }
  .page-head { padding: 24px 0 18px; }

  .tabbar {
    display: grid; grid-template-columns: repeat(5, 1fr);
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    height: var(--tabbar-h); padding-bottom: env(safe-area-inset-bottom);
    background: color-mix(in srgb, var(--paper) 94%, transparent);
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid var(--line);
  }
  .tab { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: var(--muted); font-size: .68rem; font-weight: 700; }
  .tab svg { width: 24px; height: 24px; }
  .tab.is-active { color: var(--green-2); }
  .tab.is-active svg { fill: color-mix(in srgb, var(--green-3) 18%, transparent); }
  .tab-plus {
    width: 52px; height: 52px; border-radius: 18px; margin-top: -22px;
    display: grid; place-items: center;
    background: linear-gradient(135deg, var(--yolk), var(--yolk-2)); color: #1c2a1f;
    box-shadow: 0 10px 20px -6px color-mix(in srgb, var(--yolk-2) 90%, transparent), 0 0 0 5px var(--cream);
    transform: rotate(-6deg); transition: transform .25s var(--ease);
  }
  .tab-cta:active .tab-plus { transform: rotate(6deg) scale(.95); }
  .tab-plus svg { width: 26px; height: 26px; stroke-width: 2.6; }
  .tab-badge { position: absolute; top: 8px; left: calc(50% + 6px); min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--terra); color: #fff; font-size: .65rem; font-weight: 800; display: grid; place-items: center; border: 2px solid var(--paper); }
  .toasts { top: auto; bottom: calc(var(--tabbar-h) + 12px); }
}

@media (max-width: 380px) {
  .listing-grid { grid-template-columns: 1fr; }
  .cat-picker { grid-template-columns: repeat(2, 1fr); }
}

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