@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&display=swap');

/*DESIGN TOKENS — Light mode (default)*/
 
:root {
  /* Brand */
  --brand-start:   #0284c7;
  --brand-end:     #0ea5e9;
  --brand:         #0284c7;
  --brand-hover:   #0369a1;
  --brand-light:   #f0f9ff;
  --brand-mid:     #bae6fd;
  --brand-dim:     rgba(2,132,199,.1);
  --brand-glow:    rgba(2,132,199,.2);
  --brand-border:  rgba(2,132,199,.35);
  --accent:        #10b981;
  --accent-light:  #ecfdf5;
  --accent-mid:    #6ee7b7;

  /* Surfaces */
  --bg:            #f8fafc;
  --white:         #ffffff;
  --surface-1:     #f1f5f9;
  --surface-2:     #e2e8f0;
  --surface-3:     #cbd5e1;
  --border:        #cbd5e1;
  --border-2:      #94a3b8;
  --glass-bg:      rgba(255,255,255,.92);
  --glass-border:  rgba(2,132,199,.15);

  /* Text */
  --text-1:   #0f172a;
  --text-2:   #334155;
  --text-3:   #64748b;
  --text-4:   #94a3b8;

  /* Status colours */
  --green:        #059669;
  --green-bg:     #ecfdf5;
  --green-border: #6ee7b7;
  --blue-bg:      #e0f2fe;
  --blue-text:    #0369a1;
  --purple-bg:    #faf5ff;
  --purple-text:  #7c3aed;
  --amber-bg:     #fffbeb;
  --amber-text:   #d97706;
  --red:          #dc2626;
  --red-bg:       #fef2f2;
  --red-text:     #dc2626;

  /* Tokens */
  --radius-sm:  6px;
  --radius:     10px;
  --radius-lg:  14px;
  --radius-xl:  20px;
  --shadow-sm:  0 1px 3px rgba(2,132,199,.06);
  --shadow-md:  0 4px 16px rgba(2,132,199,.1);
  --shadow-lg:  0 8px 32px rgba(2,132,199,.14);
  --glow-brand: 0 0 20px var(--brand-glow);
  --transition: 200ms cubic-bezier(.4,0,.2,1);
  --nav-h:      64px;
  --sidebar-w:  270px;
  --max-w:      1120px;
}

/*DESIGN TOKENS — Dark mode*/

[data-theme="dark"] {
  --brand:         #10b981;
  --brand-start:   #10b981;
  --brand-end:     #34d399;
  --brand-hover:   #34d399;
  --brand-light:   rgba(16,185,129,.15);
  --brand-mid:     rgba(16,185,129,.4);
  --brand-dim:     rgba(16,185,129,.12);
  --brand-glow:    rgba(16,185,129,.22);
  --brand-border:  rgba(16,185,129,.35);
  --accent:        #34d399;
  --accent-light:  rgba(16,185,129,.1);
  --accent-mid:    rgba(16,185,129,.4);

  --bg:        #09090b;
  --white:     #09090b;
  --surface-1: #111113;
  --surface-2: #18181b;
  --surface-3: #27272a;
  --border:    #27272a;
  --border-2:  #3f3f46;
  --glass-bg:  rgba(24,24,27,.85);
  --glass-border: rgba(255,255,255,.08);

  --text-1: #fafafa;
  --text-2: #a1a1aa;
  --text-3: #71717a;
  --text-4: #52525b;

  --green:        #22c55e;
  --green-bg:     rgba(34,197,94,.1);
  --green-border: rgba(34,197,94,.3);
  --blue-bg:      rgba(96,165,250,.1);
  --blue-text:    #93c5fd;
  --purple-bg:    rgba(167,139,250,.1);
  --purple-text:  #c4b5fd;
  --amber-bg:     rgba(251,191,36,.1);
  --amber-text:   #fbbf24;
  --red:          #f87171;
  --red-bg:       rgba(248,113,113,.1);
  --red-text:     #fca5a5;

  --shadow-sm:  0 1px 4px rgba(0,0,0,.6);
  --shadow-md:  0 4px 24px rgba(0,0,0,.7);
  --shadow-lg:  0 8px 40px rgba(0,0,0,.8);
  --nav-h:      60px;
}


*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'DM Sans', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text-1);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background var(--transition), color var(--transition);
}
[data-theme="dark"] body {
  color-scheme: dark;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='.03'/%3E%3C/svg%3E");
}
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 4px; }
img { max-width: 100%; }


nav {
  background: var(--glass-bg);
  border-bottom: 1px solid var(--glass-border);
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: background var(--transition), border-color var(--transition);
}
.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  padding: 0 1.5rem;
  height: 100%;
  position: relative;
}
.nav-controls {
  display: flex;
  align-items: center;
  gap: .35rem;
  flex-shrink: 0;
}
.logo {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--brand);
  background: linear-gradient(135deg, var(--brand-start), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -.3px;
  text-decoration: none;
  flex-shrink: 0; /* Never compress the logo */
}
.logo span { opacity: .55; }
[data-theme="dark"] .logo span {
  opacity: 1;
  text-shadow: 0 0 14px var(--brand-glow);
  -webkit-text-fill-color: var(--brand);
}
.logo:hover { opacity: .85; text-decoration: none; }
.nav-links {
  display: flex;
  flex: 1;           /* grow to fill all space between logo and controls */
  min-width: 0;      /* allow shrinking below intrinsic content width */
  align-items: center;
  gap: .25rem;
  flex-wrap: nowrap;
  overflow: visible; /* never clip links — the root cause of compression */
  justify-content: flex-end;
}
.nav-link {
  padding: .4rem .8rem;
  border-radius: var(--radius-sm);
  font-size: .875rem;
  font-weight: 500;
  color: var(--text-3);
  transition: color var(--transition), background var(--transition);
  white-space: nowrap;
}
.nav-link:hover { color: var(--text-1); background: var(--surface-1); text-decoration: none; }
.nav-link.aktiv { color: var(--brand); background: var(--brand-light); font-weight: 600; }
.nav-logout-form { margin: 0; }

/* Theme toggle button */
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px; height: 34px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  background: var(--surface-1);
  color: var(--text-3);
  cursor: pointer;
  font-size: 1rem;
  transition: all var(--transition);
  flex-shrink: 0;
  line-height: 1;
  padding: 0;
}
.theme-toggle:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-light); }
/* Hamburger: hidden on desktop */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px; height: 36px;
  padding: 6px;
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  flex-shrink: 0;
}
.nav-hamburger span {
  display: block; height: 2px;
  background: var(--text-2);
  border-radius: 1px;
  transition: transform .25s, opacity .25s;
}
.nav-hamburger-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger-open span:nth-child(2) { opacity: 0; }
.nav-hamburger-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1024px) {
  .nav-hamburger { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0; right: 0;
    background: var(--glass-bg);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: stretch;
    padding: .5rem 1rem 1rem;
    gap: 0;
    box-shadow: var(--shadow-md);
    z-index: 200;
    backdrop-filter: blur(16px);
    overflow: visible;
  }
  .nav-links.nav-open { display: flex; }
  .nav-link { padding: .65rem .9rem; }
  .nav-logout-form { padding: .35rem 0 0; }
  nav { position: relative; }
}


.btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .52rem 1.1rem;
  border-radius: var(--radius-sm);
  font-size: .875rem;
  font-weight: 600;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
  font-family: inherit;
}
.btn:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.btn-primary {
  background: linear-gradient(135deg, var(--brand-start), var(--brand-end));
  color: #fff;
  border-color: transparent;
  box-shadow: 0 1px 3px var(--brand-dim);
}
.btn-primary:hover {
  background: linear-gradient(135deg, var(--brand-hover), var(--brand));
  box-shadow: 0 4px 14px var(--brand-dim);
  transform: translateY(-1px);
  text-decoration: none;
  color: #fff;
}
[data-theme="dark"] .btn-primary {
  background: var(--brand);
  color: #09090b;
  box-shadow: 0 0 12px var(--brand-glow);
}
[data-theme="dark"] .btn-primary:hover {
  background: var(--brand-hover);
  box-shadow: var(--glow-brand);
  color: #09090b;
}
.btn-outline { background: transparent; color: var(--brand); border-color: var(--brand-mid); }
.btn-outline:hover { background: var(--brand-light); text-decoration: none; border-color: var(--brand); }
.btn-ghost { background: transparent; color: var(--text-3); border-color: var(--border); }
.btn-ghost:hover { background: var(--surface-1); color: var(--text-2); text-decoration: none; }
.btn-danger { background: var(--red-bg); color: var(--red-text); border-color: transparent; }
.btn-warning { background: var(--amber-bg); color: var(--amber-text); border-color: transparent; }
.btn-danger:hover { background: #fecaca; color: #7f1d1d; text-decoration: none; }
[data-theme="dark"] .btn-danger { background: rgba(248,113,113,.15); color: var(--red-text); }
[data-theme="dark"] .btn-danger:hover { background: rgba(248,113,113,.25); }
.btn-sm { padding: .33rem .72rem; font-size: .8rem; }
.btn-teljes { width: 100%; justify-content: center; }

/* ══════════════════════════════════════════════════════════════
   BADGES
   ══════════════════════════════════════════════════════════════ */
.badge {
  display: inline-flex;
  align-items: center;
  padding: .2rem .55rem;
  border-radius: var(--radius-sm);
  font-size: .72rem;
  font-weight: 600;
  white-space: nowrap;
  letter-spacing: .01em;
}
.badge-kek    { background: var(--blue-bg);   color: var(--blue-text); }
.badge-zold   { background: var(--green-bg);  color: var(--green); }
.badge-lila   { background: var(--purple-bg); color: var(--purple-text); }
.badge-szurke { background: var(--surface-1); color: var(--text-3); }
.badge-piros  { background: var(--red-bg);    color: var(--red-text); }
.badge-micro  { font-size: .68rem !important; padding: .14rem .42rem !important; }
.ml-xs        { margin-left: .35rem; }

/* ══════════════════════════════════════════════════════════════
   FLASH MESSAGES
   ══════════════════════════════════════════════════════════════ */
.flash {
  padding: .8rem 1.1rem;
  border-radius: var(--radius);
  margin-bottom: 1rem;
  font-size: .875rem;
  border: 1px solid transparent;
}
.flash-success { background: var(--green-bg);  border-color: var(--green-border); color: #065f46; }
.flash-error   { background: var(--red-bg);    border-color: #fca5a5;             color: #7f1d1d; }
.flash-info    { background: var(--blue-bg);   border-color: var(--brand-mid);    color: var(--blue-text); }
.flash-warning { background: var(--amber-bg);  border-color: #fcd34d;             color: #92400e; }
[data-theme="dark"] .flash-success { color: #86efac; border-color: var(--green-border); }
[data-theme="dark"] .flash-error   { color: var(--red-text); border-color: rgba(248,113,113,.3); }
[data-theme="dark"] .flash-info    { color: var(--blue-text); border-color: rgba(96,165,250,.3); }
.cv-figyelmeztetes {
  background: var(--amber-bg);
  border: 1px solid #fcd34d;
  color: #92400e;
  border-radius: var(--radius);
  padding: .7rem 1rem;
  font-size: .82rem;
  margin-bottom: 1rem;
}
[data-theme="dark"] .cv-figyelmeztetes { color: #fcd34d; border-color: rgba(252,211,77,.3); }

/* ══════════════════════════════════════════════════════════════
   LAYOUT
   ══════════════════════════════════════════════════════════════ */
.page-wrap   { max-width: var(--max-w); margin: 0 auto; padding: 1.5rem; }
.page-wrap-sm{ max-width: 540px;       margin: 0 auto; padding: 2rem 1.5rem; }
.two-col     { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; align-items: start; }
.two-col-rev { display: grid; grid-template-columns: 1fr 340px; gap: 1.5rem; align-items: start; }
@media (max-width: 760px) {
  .two-col, .two-col-rev { grid-template-columns: 1fr; }
}

/* Backward compat aliases for old class names */
.oldal-wrap      { max-width: var(--max-w); margin: 0 auto; padding: 1.5rem; }
.oldal-wrap-szuk { max-width: 540px; margin: 0 auto; padding: 2rem 1.5rem; }
.ket-oszlop      { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; align-items: start; }
.ket-oszlop-aszim{ display: grid; grid-template-columns: 1fr 380px; gap: 1.5rem; align-items: start; }
@media (max-width: 860px) {
  .ket-oszlop       { grid-template-columns: 1fr; }
  .ket-oszlop-aszim { grid-template-columns: 1fr; }
}

/* ══════════════════════════════════════════════════════════════
   CARDS
   ══════════════════════════════════════════════════════════════ */
.card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 1.4rem 1.6rem;
  backdrop-filter: blur(8px);
}
/* Alias used throughout existing pages */
.oldalsav-kartya {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 1.3rem 1.5rem;
  backdrop-filter: blur(8px);
  margin-bottom: 1.2rem;
}
.oldalsav-kartya h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: .9rem;
  padding-bottom: .7rem;
  border-bottom: 1px solid var(--glass-border);
  color: var(--text-1);
}
.oldal-wrap-kesz { /* card that fills content area */ }

/* ══════════════════════════════════════════════════════════════
   HERO
   ══════════════════════════════════════════════════════════════ */
.hero {
  background: linear-gradient(135deg, #e0f2fe 0%, var(--bg) 45%, #ecfdf5 100%);
  padding: 3.5rem 1.5rem 3rem;
  text-align: center;
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
[data-theme="dark"] .hero {
  background: var(--bg);
  border-bottom: 1px solid var(--glass-border);
}
.hero::before {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 320px; height: 320px;
  background: radial-gradient(circle, var(--brand-dim) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -60px; left: -60px;
  width: 240px; height: 240px;
  background: radial-gradient(circle, rgba(16,185,129,.06) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
[data-theme="dark"] .hero::before {
  background: radial-gradient(ellipse at center, rgba(16,185,129,.09) 0%, transparent 70%);
  top: -100px; left: 50%; transform: translateX(-50%);
  width: 600px; height: 400px; right: auto;
  border-radius: 0;
}
[data-theme="dark"] .hero::after {
  background: radial-gradient(ellipse, rgba(16,185,129,.05) 0%, transparent 70%);
  bottom: -80px; right: -80px; left: auto;
  width: 300px; height: 300px;
}
.hero-cim {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--text-1);
  letter-spacing: -.6px;
  margin-bottom: .5rem;
  line-height: 1.2;
  animation: fade-in-up .45s ease both;
}
[data-theme="dark"] .hero-cim {
  background: linear-gradient(135deg, var(--text-1) 30%, var(--brand) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-cim em {
  font-style: normal;
  background: linear-gradient(135deg, var(--brand-start), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-alcim {
  color: var(--text-3);
  font-size: .95rem;
  margin-bottom: 2rem;
  animation: fade-in-up .45s .1s ease both;
}
@keyframes fade-in-up {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Search bar */
.kereses-sor-uj {
  display: flex;
  gap: .5rem;
  max-width: 580px;
  margin: 0 auto;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-xl);
  padding: .35rem .35rem .35rem 1rem;
  box-shadow: var(--shadow-md);
  transition: box-shadow var(--transition), border-color var(--transition);
  animation: fade-in-up .45s .2s ease both;
}
[data-theme="dark"] .kereses-sor-uj {
  background: var(--glass-bg);
  border-color: var(--glass-border);
  backdrop-filter: blur(12px);
}
.kereses-sor-uj:focus-within {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px var(--brand-dim), var(--shadow-md);
}
[data-theme="dark"] .kereses-sor-uj:focus-within {
  box-shadow: var(--glow-brand), var(--shadow-md);
}
.kereses-sor-uj input[type=text] {
  flex: 1; border: none; outline: none;
  font-size: .95rem; background: transparent;
  color: var(--text-1); font-family: inherit;
}
.kereses-sor-uj input::placeholder { color: var(--text-3); }
.kereses-sor-uj .btn { border-radius: var(--radius-lg); }

/* ══════════════════════════════════════════════════════════════
   FILTER SIDEBAR
   ══════════════════════════════════════════════════════════════ */
.oldal-grid {
  display: grid;
  grid-template-columns: var(--sidebar-w) 1fr;
  gap: 1.5rem;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 1.5rem;
  align-items: start;
}
@media (max-width: 860px) {
  .oldal-grid { grid-template-columns: 1fr; }
  .szuro-panel { position: static !important; }
  .mobil-szuro-toggle { display: flex !important; }
  .szuro-tartalom { display: none; }
  .szuro-tartalom.nyitva { display: block; }
}
.szuro-panel {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: calc(var(--nav-h) + 1rem);
  backdrop-filter: blur(8px);
}
.szuro-fejlec {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: .95rem 1.2rem;
  background: linear-gradient(135deg, #e0f2fe, #ecfdf5);
  border-bottom: 1px solid var(--border);
}
[data-theme="dark"] .szuro-fejlec {
  background: rgba(16,185,129,.05);
  border-bottom-color: var(--glass-border);
}
.szuro-fejlec h2 { font-size: .85rem; font-weight: 700; color: var(--brand); }
.szuro-fejlec-link { font-size: .78rem; color: var(--brand); font-weight: 500; }
.szuro-fejlec-link:hover { text-decoration: underline; }
.szuro-tartalom { padding: .95rem 1.1rem; }
.szuro-blokk { margin-bottom: 1.1rem; }
.szuro-blokk:last-child { margin-bottom: 0; }
.blokk-cim {
  display: block;
  font-size: .71rem; font-weight: 700; color: var(--text-4);
  text-transform: uppercase; letter-spacing: .07em; margin-bottom: .35rem;
}
.szuro-blokk select,
.szuro-blokk input[type=text] {
  width: 100%; padding: .48rem .7rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: .84rem;
  background: var(--surface-1);
  color: var(--text-1);
  cursor: pointer;
  transition: border-color var(--transition);
  font-family: inherit;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.szuro-blokk select:focus,
.szuro-blokk input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-dim); }
.szuro-checkbox {
  display: flex; align-items: center; gap: .5rem;
  padding: .4rem .3rem; cursor: pointer; border-radius: var(--radius-sm);
  transition: background var(--transition);
}
.szuro-checkbox:hover { background: var(--surface-1); }
.szuro-checkbox span { font-size: .875rem; color: var(--text-2); }
.szuro-checkbox input[type=checkbox] { width: 16px; height: 16px; accent-color: var(--accent); }
.mobil-szuro-toggle { display: none; margin-bottom: .75rem; }
.salary-range-inputs { display: flex; align-items: center; gap: .4rem; margin-top: .35rem; }
.salary-input {
  flex: 1; min-width: 0;
  padding: .44rem .55rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: .8rem;
  background: var(--surface-1);
  color: var(--text-1);
  font-family: inherit;
}
.salary-input:focus { outline: none; border-color: var(--brand); }
.salary-sep { color: var(--text-4); font-size: .85rem; }

/* ══════════════════════════════════════════════════════════════
   LISTING CARDS
   ══════════════════════════════════════════════════════════════ */
.aktiv-szurok { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1rem; }
.aktiv-szuro-badge {
  display: inline-flex; align-items: center; gap: .3rem;
  padding: .26rem .7rem;
  background: var(--brand-light); color: var(--brand);
  border: 1px solid var(--brand-mid);
  border-radius: var(--radius-xl);
  font-size: .77rem; font-weight: 500;
  text-decoration: none;
  transition: background var(--transition);
}
.aktiv-szuro-badge:hover { background: var(--brand-mid); text-decoration: none; }
.aktiv-szuro-badge .x { opacity: .6; font-size: .68rem; }
.aktiv-szuro-badge-torol { background: var(--red-bg); color: var(--red-text); border-color: #fecaca; border-radius: var(--radius-xl); }
.aktiv-szuro-badge-torol:hover { background: #fee2e2; }
[data-theme="dark"] .aktiv-szuro-badge { background: var(--brand-dim); }
[data-theme="dark"] .aktiv-szuro-badge:hover { background: rgba(16,185,129,.2); }
[data-theme="dark"] .aktiv-szuro-badge-torol { background: var(--red-bg); border-color: rgba(248,113,113,.35); }

.talalat-fejlec { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.talalat-szam { font-size: .875rem; color: var(--text-3); }
.talalat-szam strong { color: var(--text-1); font-size: 1.05rem; font-weight: 700; }

.hirdetes-lista { display: flex; flex-direction: column; gap: 1rem; }

/* ── Homepage minimal job card grid (index.php only) ─────────────
   Dedicated classes — .hirdetes-lista/.hirdetes-kartya above remain
   untouched for index-backup.php and post.php (employer dashboard,
   wizard preview), which have richer content and interactive nested
   elements incompatible with a single full-card <a> wrapper. */
.hirdetes-racs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  align-items: stretch; /* equal height per row */
}
@media (max-width: 1024px) {
  .hirdetes-racs { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .hirdetes-racs { grid-template-columns: 1fr; }
}

.hirdetes-kartya-min {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 1.3rem 1.5rem;
  backdrop-filter: blur(6px);
  transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
  animation: card-in .3s ease both;
}
.hirdetes-kartya-min:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  border-color: var(--brand-mid);
}
[data-theme="dark"] .hirdetes-kartya-min:hover { border-color: rgba(255,255,255,.14); }
.hirdetes-kartya-min:hover .hirdetes-cim { color: var(--brand); }

.hirdetes-kartya-min .kartya-fej {
  display: flex; gap: .8rem; align-items: flex-start;
  margin-bottom: .8rem;
}
.hirdetes-kartya-min .hirdetes-cim {
  font-size: 1.05rem; font-weight: 600; color: var(--text-1);
  transition: color var(--transition);
  /* Reserve exactly 2 lines of height regardless of actual title
     length — a 1-line title leaves empty space below it instead of
     letting the company name/location/salary shift upward, so every
     card's content starts at the same vertical position. Longer
     titles still wrap to at most 2 lines, then truncate with an
     ellipsis via -webkit-line-clamp. */
  line-height: 1.3;
  height: 2.6em;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.hirdetes-kartya-min .ceg-nev {
  font-size: .84rem; color: var(--text-3); margin-top: .3rem;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.kartya-adatsor {
  display: flex; flex-direction: column; gap: .35rem;
  font-size: .84rem; color: var(--text-2);
  margin-bottom: .9rem;
}
.kartya-adat { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.kartya-berezes {
  margin-top: auto; /* pins salary to the same position on every card,
                        regardless of how much text is above it */
  padding-top: .85rem;
  border-top: 1px solid var(--glass-border);
  font-size: .95rem; font-weight: 700; color: var(--text-1);
}
.hirdetes-kartya {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 1.3rem 1.5rem;
  backdrop-filter: blur(6px);
  transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
  animation: card-in .3s ease both;
}
@keyframes card-in {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hirdetes-kartya:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  border-color: var(--brand-mid);
}
[data-theme="dark"] .hirdetes-kartya:hover { border-color: rgba(255,255,255,.14); }
.hirdetes-kiemelt {
  border-color: var(--accent) !important;
  background: linear-gradient(to right, var(--accent-light), var(--glass-bg)) !important;
  box-shadow: 0 0 0 1px var(--accent-mid), var(--shadow-sm) !important;
}
[data-theme="dark"] .hirdetes-kiemelt {
  border-color: var(--brand-border) !important;
  box-shadow: 0 0 28px var(--brand-glow), 0 0 0 1px var(--brand-border) !important;
  background: linear-gradient(135deg, var(--brand-dim), var(--glass-bg)) !important;
}
.kiemelt-label {
  display: inline-flex; align-items: center; gap: .3rem;
  font-size: .69rem; font-weight: 700;
  color: var(--accent);
  background: var(--accent-light); border: 1px solid var(--accent-mid);
  border-radius: var(--radius-xl); padding: .32rem .7rem;
  margin-bottom: .75rem; text-transform: uppercase; letter-spacing: .05em;
  white-space: nowrap;
}
[data-theme="dark"] .kiemelt-label { color: var(--brand); background: var(--brand-dim); border-color: var(--brand-border); }

.hirdetes-kartya-min .kiemelt-label { margin-bottom: 0; }
.kiemelt-hely {
  /* Reserved on EVERY card (featured or not) so the badge — when
     present — never shifts the title/company/location/salary block
     down relative to non-featured cards in the same row. Height
     matches the badge's own rendered size + spacing below it. */
  min-height: 2.5rem;
  margin-bottom: .5rem;
}

.kartya-fej {
  display: flex; gap: 1rem;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: .5rem;
}
.kartya-logo {
  width: 44px; height: 44px;
  object-fit: contain; border-radius: var(--radius-sm);
  border: 1px solid var(--border); flex-shrink: 0;
  background: var(--surface-1);
  box-shadow: var(--shadow-sm);
}
.kartya-cim-blokk {
  /* Takes over the logo's space gracefully when there is none — no
     placeholder, no reserved gap, title/company stay left-aligned
     and simply use the full row width. min-width:0 lets long titles
     wrap instead of forcing the card wider than its grid cell. */
  flex: 1;
  min-width: 0;
  text-align: left;
}
.hirdetes-cim a { font-size: 1.05rem; font-weight: 600; color: var(--text-1); transition: color var(--transition); }
.hirdetes-cim a:hover { color: var(--brand); }
.ceg-nev { font-size: .84rem; color: var(--text-3); margin-top: .2rem; }
.kartya-meta { display: flex; gap: .4rem; flex-wrap: wrap; margin: .7rem 0; align-items: center; }
.kartya-meta a { text-decoration: none; transition: opacity var(--transition); }
.kartya-meta a:hover { opacity: .8; }
.hirdetes-leiras {
  font-size: .84rem; color: var(--text-2); line-height: 1.65;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; margin-bottom: .9rem;
}
.kartya-lab {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: .85rem; border-top: 1px solid var(--glass-border);
  gap: .5rem; flex-wrap: wrap;
}
.datum-forras { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.datum { font-size: .77rem; color: var(--text-4); }
.forras-badge {
  font-size: .73rem; color: var(--text-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: .17rem .48rem;
  text-decoration: none; transition: all var(--transition);
}
.forras-badge:hover { border-color: var(--brand); color: var(--brand); }

/* ══════════════════════════════════════════════════════════════
   FORMS
   ══════════════════════════════════════════════════════════════ */
.form-group { margin-bottom: .95rem; }
.form-group label {
  display: block; font-size: .82rem; font-weight: 600;
  color: var(--text-2); margin-bottom: .35rem;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: .52rem .75rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: .9rem; font-family: inherit;
  background: var(--surface-1); color: var(--text-1);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none; border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-dim);
}
.form-group textarea { resize: vertical; min-height: 90px; line-height: 1.55; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
.form-group input[type=file] {
  padding: .4rem .5rem; cursor: pointer;
  background: var(--surface-1); border-style: dashed;
}
.form-group input[type=checkbox] { width: auto; }
.checkbox-sor { display: flex; align-items: center; gap: .5rem; }

.kotelező-jel { color: var(--red); margin-left: .15rem; }

/* ══════════════════════════════════════════════════════════════
   ADMIN TABLE
   ══════════════════════════════════════════════════════════════ */
.admin-tabla { width: 100%; border-collapse: collapse; font-size: .875rem; }
.admin-tabla th {
  text-align: left; padding: .5rem .75rem;
  background: var(--surface-1); color: var(--text-3);
  font-size: .73rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .05em;
  border-bottom: 2px solid var(--border);
}
.admin-tabla td { padding: .55rem .75rem; border-bottom: 1px solid var(--glass-border); color: var(--text-2); }
.admin-tabla tr:last-child td { border-bottom: none; }
.admin-tabla tr:hover td { background: var(--surface-1); }
.tabla-nev  { font-weight: 600; color: var(--text-1); }
.tabla-sub  { font-size: .78rem; color: var(--text-4); margin-top: .1rem; }

/* ══════════════════════════════════════════════════════════════
   STATS GRID
   ══════════════════════════════════════════════════════════════ */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px,1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.stat-box {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 1.2rem 1rem;
  text-align: center;
  backdrop-filter: blur(6px);
  text-decoration: none;
  transition: border-color var(--transition), box-shadow var(--transition);
  display: block;
}
.stat-box:hover { border-color: var(--brand-mid); box-shadow: var(--shadow-sm); text-decoration: none; }
.stat-aktiv { border-color: var(--brand) !important; background: var(--brand-light) !important; }
[data-theme="dark"] .stat-aktiv { background: var(--brand-dim) !important; }
.stat-szam  { font-size: 2rem; font-weight: 700; color: var(--brand); display: block; line-height: 1; margin-bottom: .3rem; }
.stat-cimke { font-size: .8rem; color: var(--text-3); }

/* ══════════════════════════════════════════════════════════════
   ADMIN GRID & PANEL LAYOUT
   ══════════════════════════════════════════════════════════════ */
.admin-grid   { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.admin-full   { grid-column: 1 / -1; }
.admin-fejlec { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.5rem; flex-wrap: wrap; gap: .5rem; }
.admin-datum  { font-size: .85rem; color: var(--text-3); }
@media (max-width: 760px) { .admin-grid { grid-template-columns: 1fr; } }

/* ══════════════════════════════════════════════════════════════
   TREND CHART (analytics)
   ══════════════════════════════════════════════════════════════ */
.trend-bar-wrap { display: flex; align-items: flex-end; gap: 4px; height: 80px; margin-top: .8rem; }
.trend-bar {
  flex: 1;
  background: var(--brand-mid);
  border-radius: 4px 4px 0 0;
  min-height: 4px;
  position: relative;
  transition: background var(--transition);
}
.trend-bar:hover { background: var(--brand); }
.trend-bar .tip {
  display: none; position: absolute;
  bottom: 105%; left: 50%; transform: translateX(-50%);
  background: var(--text-1); color: var(--bg);
  font-size: .72rem; padding: .2rem .4rem;
  border-radius: 4px; white-space: nowrap;
}
.trend-bar:hover .tip { display: block; }
.trend-labels { display: flex; gap: 4px; margin-top: .3rem; }
.trend-labels span { flex: 1; font-size: .65rem; color: var(--text-4); text-align: center; }

/* Page view bar */
.latogatas-sor { margin-bottom: .7rem; }
.latogatas-fejsor { display: flex; justify-content: space-between; font-size: .83rem; margin-bottom: .25rem; color: var(--text-2); }
.latogatas-sav { height: 6px; background: var(--surface-2); border-radius: 3px; overflow: hidden; }
.latogatas-sav-bels { height: 100%; background: linear-gradient(90deg, var(--brand-start), var(--accent)); border-radius: 3px; }

/* ══════════════════════════════════════════════════════════════
   JOURNEY ANALYTICS
   ══════════════════════════════════════════════════════════════ */
.journey-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-bottom: 1.2rem; }
@media (max-width: 700px) { .journey-grid { grid-template-columns: 1fr; } }
.journey-sor { margin-bottom: .75rem; }
.journey-cimke { display: flex; justify-content: space-between; align-items: center; margin-bottom: .3rem; font-size: .84rem; }
.journey-oldal { color: var(--text-2); font-weight: 500; }
.journey-sav-wrap { display: flex; align-items: center; gap: .6rem; }
.journey-sav { height: 6px; background: linear-gradient(90deg, var(--brand-start), var(--accent)); border-radius: 3px; min-width: 4px; transition: width .4s ease; }
.journey-szazalek { font-size: .78rem; color: var(--text-3); min-width: 36px; }
.journey-mutato-lista { display: flex; flex-direction: column; gap: .8rem; }
.journey-mutato-fej { display: flex; justify-content: space-between; font-size: .84rem; color: var(--text-2); margin-bottom: .3rem; }
.journey-mutato-sav { height: 6px; background: var(--surface-2); border-radius: 3px; overflow: hidden; margin-bottom: .2rem; }
.journey-mutato-sav > div { height: 100%; background: var(--accent); border-radius: 3px; }
.journey-utvonalak { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
@media (max-width: 700px) { .journey-utvonalak { grid-template-columns: 1fr; } }
.utvonal-sor { display: flex; justify-content: space-between; align-items: center; margin-bottom: .5rem; gap: .8rem; }
.utvonal-cimke { font-size: .8rem; color: var(--text-2); flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.utvonal-sav-wrap { display: flex; align-items: center; gap: .4rem; flex-shrink: 0; }
.utvonal-sav { height: 5px; background: var(--brand-mid); border-radius: 3px; min-width: 4px; }
[data-theme="dark"] .utvonal-sav { background: var(--brand-dim); }
.utvonal-szam { font-size: .78rem; font-weight: 600; color: var(--brand); min-width: 22px; text-align: right; }

/* ══════════════════════════════════════════════════════════════
   WIZARD (listing post)
   ══════════════════════════════════════════════════════════════ */
.varazso-fejlec {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 1.5rem; flex-wrap: wrap; gap: .5rem;
}
.varazso-lepesek { display: flex; align-items: center; }
.varazso-lepes {
  display: flex; align-items: center; gap: .4rem;
  font-size: .84rem; font-weight: 500; color: var(--text-3);
}
.varazso-lepes-szam {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--surface-2); color: var(--text-3);
  display: flex; align-items: center; justify-content: center;
  font-size: .78rem; font-weight: 700;
  border: 2px solid var(--border);
  transition: all var(--transition);
}
.varazso-lepes.aktiv .varazso-lepes-szam { background: var(--brand); color: #fff; border-color: var(--brand); }
.varazso-lepes.aktiv { color: var(--text-1); }
.varazso-lepes.kesz .varazso-lepes-szam { background: var(--accent); color: #fff; border-color: var(--accent); }
.varazso-osszekoto { width: 40px; height: 2px; background: var(--border); margin: 0 .4rem; }
.varazso-osszekoto.aktiv { background: var(--brand); }
.varazso-tartalom { max-width: 680px; margin: 0 auto; }
.varazso-gomb-sor { display: flex; justify-content: space-between; margin-top: 1.2rem; padding-top: 1rem; border-top: 1px solid var(--glass-border); }

.elonezet-kartya {
  background: var(--surface-1);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg); padding: 1.3rem 1.5rem;
}
.elonezet-szekció { margin-bottom: 1rem; }

/* Activation options (featured / paid listing choice) */
.aktivalas-opciok { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; margin: .8rem 0; }
@media (max-width: 580px) { .aktivalas-opciok { grid-template-columns: 1fr; } }
.aktivalas-opcio { border: 1.5px solid var(--border); border-radius: var(--radius); padding: 1rem; cursor: pointer; transition: all var(--transition); }
.aktivalas-opcio:has(input:checked) { border-color: var(--brand); background: var(--brand-light); }
[data-theme="dark"] .aktivalas-opcio:has(input:checked) { background: var(--brand-dim); }
.aktivalas-opcio input[type=radio] { display: none; }
.aktivalas-opcio-tartalom h4 { font-size: .9rem; font-weight: 700; margin-bottom: .3rem; color: var(--text-1); }
.aktivalas-opcio-tartalom p  { font-size: .8rem; color: var(--text-3); }

/* Salary row */
.beresav-blokk { background: var(--surface-1); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem; margin: .5rem 0; }
.beresav-deviza-sor { display: grid; grid-template-columns: 1fr 1fr 100px; gap: .6rem; }
@media (max-width: 580px) { .beresav-deviza-sor { grid-template-columns: 1fr 1fr; } }
.beresav-deviza label { font-size: .78rem; color: var(--text-3); margin-bottom: .25rem; display: block; }

/* ══════════════════════════════════════════════════════════════
   APPLICANT CARDS (employer view)
   ══════════════════════════════════════════════════════════════ */
.palyazo-kartya {
  background: var(--surface-1);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius); padding: 1rem; margin-bottom: .8rem;
}
.palyazo-kartya-fej  { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: .5rem; }
.palyazo-info-sor    { font-size: .82rem; color: var(--text-2); margin-bottom: .35rem; }
.palyazo-gomb-sor    { display: flex; gap: .4rem; margin-bottom: .5rem; flex-wrap: wrap; }
.palyazo-allapot-sor { display: flex; gap: .4rem; align-items: center; flex-wrap: wrap; }
.palyazo-megjegyzes  { font-size: .8rem; color: var(--text-3); margin-top: .4rem; }
.cv-link-sor         { margin-top: .4rem; font-size: .82rem; }

/* ══════════════════════════════════════════════════════════════
   JOBSEEKER — my applications list
   ══════════════════════════════════════════════════════════════ */
.sajat-item {
  display: flex; justify-content: space-between; align-items: flex-start;
  padding: .75rem 0; border-bottom: 1px solid var(--glass-border); gap: .8rem;
}
.sajat-item:last-child { border-bottom: none; }
.sajat-item-cim { font-size: .9rem; font-weight: 600; color: var(--text-1); }
.sajat-item-sub { font-size: .8rem; color: var(--text-3); margin-top: .15rem; }
.app-employer-note {
  margin-top: .35rem; font-size: .8rem; color: var(--text-3);
  background: var(--surface-1); border-radius: 6px; padding: .3rem .6rem;
}
.cv-figyelmeztes {
  background: var(--amber-bg);
  border: 1px solid #fcd34d;
  border-radius: 8px; padding: .7rem .9rem;
  font-size: .84rem; color: #92400e; margin-bottom: .9rem;
}
.cv-figyelmeztes a { color: #92400e; font-weight: 600; }
[data-theme="dark"] .cv-figyelmeztes { background: var(--amber-bg); color: var(--amber-text); border-color: rgba(251,191,36,.4); }

/* ══════════════════════════════════════════════════════════════
   SINGLE LISTING PAGE
   ══════════════════════════════════════════════════════════════ */
.listing-wrap  { max-width: var(--max-w); margin: 0 auto; padding: 2rem 1.5rem 3rem; }
.listing-grid  { display: grid; grid-template-columns: 1fr 340px; gap: 2rem; align-items: start; }
@media (max-width: 860px) { .listing-grid { grid-template-columns: 1fr; } }
.listing-header { display: flex; gap: 1.2rem; align-items: flex-start; margin-bottom: 1.2rem; }
.listing-main {
  /* Grid item inside .listing-grid (1fr 340px) — without min-width:0 a
     long job title or company name can force this column past its
     grid track's intrinsic width, overflowing the whole page layout
     (the classic CSS Grid "content wider than track" overflow bug). */
  min-width: 0;
}
.listing-header-text {
  /* Flex item next to the fixed-size .listing-logo — same overflow
     issue in flexbox: without min-width:0 a long <h1> can push this
     block (and the row) wider than the available space. */
  flex: 1;
  min-width: 0;
}
.listing-logo { width: 72px; height: 72px; object-fit: contain; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface-1); flex-shrink: 0; }
.listing-cim   { font-size: 1.6rem; font-weight: 700; margin-bottom: .4rem; line-height: 1.2; }
.listing-ceg   { color: var(--text-3); font-size: .95rem; }
.listing-ceg a { color: var(--brand); }
.listing-meta  { margin-bottom: 1.5rem; display: flex; gap: .4rem; flex-wrap: wrap; }
.listing-szekció { margin-bottom: 1.8rem; padding-bottom: 1.8rem; border-bottom: 1px solid var(--glass-border); }
.listing-szekció:last-child { border-bottom: none; }
.listing-szekció-cim { font-size: 1rem; font-weight: 700; margin-bottom: .8rem; color: var(--text-1); }
.listing-szoveg { color: var(--text-2); line-height: 1.8; font-size: .95rem; white-space: pre-wrap; }
.listing-ceg-info { background: var(--surface-1); border-radius: var(--radius); padding: 1.2rem 1.4rem; border: 1px solid var(--glass-border); }
.listing-sidebar { position: sticky; top: calc(var(--nav-h) + 1rem); }
.listing-apply-kartya h3 { font-size: 1rem; font-weight: 600; margin-bottom: .8rem; padding-bottom: .6rem; border-bottom: 1px solid var(--glass-border); }
.listing-vissza { margin-top: .8rem; }
.sticky-oldalsav { position: sticky; top: calc(var(--nav-h) + 1rem); }

/* ══════════════════════════════════════════════════════════════
   TAB NAVIGATION
   ══════════════════════════════════════════════════════════════ */
.tab-nav {
  display: flex; gap: .3rem;
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--radius); padding: .3rem;
}
.tab-gomb {
  padding: .42rem 1rem; border-radius: var(--radius-sm);
  font-size: .875rem; font-weight: 600;
  color: var(--text-3); text-decoration: none;
  transition: all var(--transition);
}
.tab-gomb:hover { background: var(--white); color: var(--text-1); text-decoration: none; }
.tab-aktiv { background: var(--white); color: var(--brand); box-shadow: var(--shadow-sm); }
[data-theme="dark"] .tab-gomb:hover { background: var(--surface-3); }
[data-theme="dark"] .tab-aktiv { background: var(--surface-3); }

/* ══════════════════════════════════════════════════════════════
   SUPPORT PANEL
   ══════════════════════════════════════════════════════════════ */
.support-grid { display: grid; grid-template-columns: 380px 1fr; gap: 1.5rem; align-items: start; }
@media (max-width: 900px) { .support-grid { grid-template-columns: 1fr; } }
.support-filter-bar { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: .8rem; align-items: center; }
.support-filter-bar select,
.support-kereses {
  padding: .4rem .65rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: .83rem; background: var(--surface-1);
  color: var(--text-1); font-family: inherit;
}
.support-kereses { flex: 1; min-width: 140px; }
.support-lista { display: flex; flex-direction: column; gap: .4rem; }
.support-ticket-sor {
  display: block; padding: .75rem 1rem;
  border: 1.5px solid var(--glass-border);
  border-radius: var(--radius); background: var(--glass-bg);
  text-decoration: none; color: var(--text-1);
  transition: border-color var(--transition), background var(--transition);
  backdrop-filter: blur(4px);
}
.support-ticket-sor:hover { border-color: var(--brand); background: var(--brand-light); text-decoration: none; }
[data-theme="dark"] .support-ticket-sor:hover { background: var(--brand-dim); }
.support-ticket-aktiv { border-color: var(--brand); background: var(--brand-light); }
[data-theme="dark"] .support-ticket-aktiv { background: var(--brand-dim); }
.support-ticket-fej { display: flex; justify-content: space-between; align-items: center; margin-bottom: .3rem; }
.support-ticket-badge-sor { display: flex; gap: .3rem; flex-wrap: wrap; }
.support-gyors-akciok { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 1rem; }
.support-ticket-cim { font-weight: 600; font-size: .9rem; margin-bottom: .3rem; line-height: 1.3; }
.support-ticket-meta { display: flex; gap: .8rem; flex-wrap: wrap; font-size: .78rem; color: var(--text-3); }
.support-detail-wrap { position: sticky; top: calc(var(--nav-h) + 1rem); }
.support-detail-ures { padding: 3rem; text-align: center; background: var(--surface-1); border-radius: var(--radius-lg); border: 1.5px dashed var(--border); color: var(--text-3); }
.support-detail { padding: 0; }
.support-detail-fejlec { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; margin-bottom: 1rem; padding-bottom: 1rem; border-bottom: 1px solid var(--glass-border); }
.support-detail-cim { font-size: 1.05rem; font-weight: 700; margin: 0; color: var(--text-1); }
.support-reporter-info { display: grid; grid-template-columns: repeat(auto-fit,minmax(130px,1fr)); gap: .8rem; background: var(--surface-1); border-radius: 8px; padding: .8rem 1rem; margin-bottom: 1rem; font-size: .85rem; }
.support-leiras { margin-bottom: 1rem; }
.support-leiras-szoveg { background: var(--surface-1); border-radius: 8px; padding: .8rem 1rem; font-size: .875rem; color: var(--text-2); line-height: 1.7; white-space: pre-wrap; }
.support-update-form { margin-bottom: 1.2rem; padding: .9rem 1rem; background: var(--surface-1); border-radius: 8px; }
.support-update-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem .8rem; margin-bottom: .6rem; }
@media (max-width:600px) { .support-update-grid { grid-template-columns: 1fr; } }
.support-notes { border-top: 1px solid var(--glass-border); padding-top: 1rem; }
.support-note { background: var(--amber-bg); border: 1px solid #fde68a; border-radius: 8px; padding: .65rem .8rem; margin-bottom: .5rem; }
[data-theme="dark"] .support-note { background: rgba(251,191,36,.08); border-color: rgba(251,191,36,.25); }
.support-note-fej { display: flex; align-items: center; gap: .6rem; margin-bottom: .3rem; }
.support-note-szoveg { font-size: .85rem; line-height: 1.6; color: var(--text-2); white-space: pre-wrap; }
.support-note-torol { margin-left: auto; background: none; border: none; cursor: pointer; color: var(--text-3); font-size: .8rem; }
.support-note-torol:hover { color: var(--red); }
.support-note-form { display: flex; flex-direction: column; gap: .5rem; margin-top: .6rem; }
.support-note-form textarea { border: 1.5px solid var(--border); border-radius: var(--radius-sm); padding: .5rem .7rem; font-size: .875rem; resize: vertical; background: var(--surface-1); color: var(--text-1); font-family: inherit; }
.support-stat-mini { display: flex; flex-direction: column; gap: .3rem; }
.support-stat-mini-sor { display: flex; justify-content: space-between; align-items: center; padding: .3rem .1rem; text-decoration: none; color: var(--text-2); font-size: .875rem; border-radius: 6px; }
.support-stat-mini-sor:hover { background: var(--surface-1); text-decoration: none; }
.support-listas-wrap { } /* container alias */
.support-lista-wrap  { }

/* ══════════════════════════════════════════════════════════════
   CONTACT PAGE
   ══════════════════════════════════════════════════════════════ */
.kapcsolat-hero {
  background: linear-gradient(135deg, #e0f2fe, #ecfdf5);
  padding: 2.5rem 1.5rem;
  text-align: center;
  border-bottom: 1px solid var(--border);
}
[data-theme="dark"] .kapcsolat-hero { background: linear-gradient(135deg, rgba(16,185,129,.08), var(--bg)); }
.kapcsolat-cim   { font-size: 1.8rem; font-weight: 700; margin-bottom: .4rem; }
.kapcsolat-alcim { color: var(--text-3); font-size: .95rem; }
/* .kapcsolat-wrap is a plain max-width wrapper — NOT a grid.
   The two-column layout lives in .kapcsolat-grid which is its only child.
   Making .kapcsolat-wrap a grid too squeezed .kapcsolat-grid into col 1. */
.kapcsolat-wrap  { /* width + padding from .oldal-wrap; no grid here */ }
@media (max-width: 760px) { .kapcsolat-wrap { /* nothing to override */ } }
.kapcsolat-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 2rem;
  align-items: start;
  width: 100%;
  /* min-width:0 prevents grid children from overflowing and compressing siblings */
  min-width: 0;
}
/* Ensure both columns can shrink and grow correctly */
.kapcsolat-bal,
.kapcsolat-jobb {
  min-width: 0;
  width: 100%;
}
@media (max-width: 760px) { .kapcsolat-grid { grid-template-columns: 1fr; } }
@media (max-width: 900px) and (min-width: 761px) {
  .kapcsolat-grid { grid-template-columns: 1fr 1.3fr; gap: 1.5rem; }
}
.kapcsolat-bal, .kapcsolat-jobb { }
.kapcsolat-adat-sor { display: flex; gap: .9rem; margin-bottom: .9rem; }
.kapcsolat-ikon { font-size: 1.3rem; flex-shrink: 0; width: 28px; text-align: center; }
.kapcsolat-adat-cimke { font-size: .75rem; color: var(--text-4); text-transform: uppercase; letter-spacing: .05em; margin-bottom: .15rem; }
.kapcsolat-adat-ertek { font-size: .9rem; color: var(--text-1); font-weight: 500; }
.kapcsolat-link { color: var(--brand); }
.social-lista { display: flex; flex-direction: column; gap: .6rem; }
.social-gomb  { display: flex; align-items: center; gap: .8rem; padding: .7rem .9rem; border-radius: var(--radius); border: 1.5px solid var(--border); background: var(--surface-1); text-decoration: none; transition: all var(--transition); }
.social-gomb:hover { border-color: var(--brand); box-shadow: var(--shadow-sm); text-decoration: none; }
.social-logo  { width: 32px; height: 32px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 1rem; font-weight: 700; color: #fff; flex-shrink: 0; }
.social-linkedin  .social-logo { background: #0a66c2; }
.social-facebook  .social-logo { background: #1877f2; }
.social-instagram .social-logo { background: linear-gradient(45deg,#f09433,#e6683c,#dc2743,#cc2366,#bc1888); }
.social-szoveg { display: flex; flex-direction: column; }
.social-szoveg strong { font-size: .9rem; color: var(--text-1); }
.social-szoveg span   { font-size: .78rem; color: var(--text-3); }
.prioritas-gombok { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: .5rem; }
.prioritas-opcio  { display: flex; flex-direction: column; align-items: center; gap: .3rem; cursor: pointer; padding: .5rem .3rem; border-radius: var(--radius-sm); border: 1.5px solid transparent; transition: all var(--transition); text-align: center; }
.prioritas-opcio:has(input:checked) { background: var(--brand-light); border-color: var(--brand); }
[data-theme="dark"] .prioritas-opcio:has(input:checked) { background: var(--brand-dim); }
.prioritas-opcio input { display: none; }
.prioritas-opcio small { font-size: .73rem; color: var(--text-3); }
.prioritas-badge { font-size: .75rem; font-weight: 700; padding: .2rem .55rem; border-radius: 6px; }
.prioritas-magas   { background: var(--red-bg);   color: var(--red-text); }
.prioritas-kozepes { background: var(--amber-bg);  color: var(--amber-text); }
.prioritas-alacsony{ background: var(--green-bg);  color: var(--green); }
.bug-bejelentkezett-info { background: var(--surface-1); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: .6rem .9rem; font-size: .84rem; color: var(--text-2); margin-bottom: .9rem; }

/* ══════════════════════════════════════════════════════════════
   LEGAL PAGES
   ══════════════════════════════════════════════════════════════ */
.legal-wrap       { max-width: 800px; margin: 0 auto; padding: 2rem 1.5rem 4rem; }
.legal-fejlec     { margin-bottom: 2rem; padding-bottom: 1.2rem; border-bottom: 2px solid var(--border); }
.legal-fejlec h1  { font-size: 1.8rem; margin-bottom: .3rem; }
.legal-tartalom h2 { font-size: 1.05rem; font-weight: 700; margin: 1.8rem 0 .6rem; color: var(--text-1); }
.legal-tartalom h3 { font-size: .95rem; font-weight: 600; margin: 1.2rem 0 .4rem; color: var(--text-2); }
.legal-tartalom p, .legal-tartalom li { color: var(--text-2); line-height: 1.75; font-size: .93rem; margin-bottom: .5rem; }
.legal-tartalom ul { padding-left: 1.4rem; margin-bottom: .8rem; }
.legal-tabla { width: 100%; border-collapse: collapse; font-size: .84rem; margin-bottom: 1rem; }
.legal-tabla th, .legal-tabla td { padding: .5rem .75rem; border: 1px solid var(--border); text-align: left; color: var(--text-2); }
.legal-tabla th { background: var(--surface-1); font-weight: 600; color: var(--text-1); }

/* ══════════════════════════════════════════════════════════════
   PAGINATION
   ══════════════════════════════════════════════════════════════ */
.pagination {
  display: flex; align-items: center; gap: .4rem; flex-wrap: wrap;
  margin: 1.5rem 0 .5rem; padding-top: 1.25rem;
  border-top: 1px solid var(--glass-border);
}
.page-btn {
  display: inline-flex; align-items: center;
  padding: .37rem .78rem;
  border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  font-size: .8rem; font-weight: 500;
  color: var(--text-2); text-decoration: none;
  background: var(--glass-bg); transition: all var(--transition);
}
.page-btn:hover { border-color: var(--brand); color: var(--brand); text-decoration: none; }
.page-aktiv {
  background: linear-gradient(135deg, var(--brand-start), var(--accent));
  color: #fff !important; border-color: transparent;
  box-shadow: var(--shadow-sm);
}
[data-theme="dark"] .page-aktiv { background: var(--brand); box-shadow: 0 0 12px var(--brand-glow); }
.page-gap { color: var(--text-4); padding: 0 .2rem; }
.page-info { margin-left: auto; font-size: .77rem; color: var(--text-4); }

/* ══════════════════════════════════════════════════════════════
   SUPERADMIN — role / pricing
   ══════════════════════════════════════════════════════════════ */
.szerepkor-sor   { padding: .7rem 0; border-bottom: 1px solid var(--glass-border); }
.szerepkor-sor:last-child { border-bottom: none; }
.naplo-sor { padding: .6rem 0; border-bottom: 1px solid var(--glass-border); }
.naplo-sor:last-child { border-bottom: none; }
.kulso-hirdetes-form {}

/* ══════════════════════════════════════════════════════════════
   UTILITIES
   ══════════════════════════════════════════════════════════════ */
.flex-kozep    { display: flex; align-items: center; gap: .5rem; }

/* "Hirdetés megosztása" share buttons — the global .btn white-space:
   nowrap is fine for short labels, but in the narrow sidebar card
   "🔗 Link másolása" can be wider than the available row width.
   Let buttons in this group shrink and wrap their text instead of
   spilling past the card edge. */
.megosztas-gombok {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(6rem, 1fr));
  gap: .5rem;
  width: 100%;
}
.megosztas-gombok .btn {
  width: 100%;
  box-sizing: border-box;
  justify-content: center;
  text-align: center;
  white-space: normal;
  overflow-wrap: break-word;
}
.flex-koz-szet { display: flex; align-items: center; justify-content: space-between; gap: .5rem; flex-wrap: wrap; }
.section-label { font-size: .73rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--text-4); }
.kartya-h2     { font-size: 1rem; font-weight: 600; margin-bottom: .9rem; padding-bottom: .7rem; border-bottom: 1px solid var(--glass-border); color: var(--text-1); }
.oldal-cim     { font-size: 1.5rem; font-weight: 700; margin-bottom: 1.5rem; color: var(--text-1); }
.oldal-cim-sm  { font-size: 1.2rem; font-weight: 700; margin-bottom: .4rem; color: var(--text-1); }
.oldal-alcim   { color: var(--text-3); font-size: .9rem; margin-bottom: 1.5rem; }
.hirdeteseim-cim { font-size: 1.2rem; font-weight: 700; }
.szoveg-halvany    { color: var(--text-4); }
.szoveg-masodlagos { color: var(--text-3); }
.szoveg-kis        { font-size: .82rem; }
.szoveg-kiskis     { font-size: .75rem; }
.szoveg-medio      { font-size: .9rem; }
.szoveg-bold       { font-weight: 600; }
.link-diszkret { color: inherit; }
.link-diszkret:hover { color: var(--brand); }
.mt-xs { margin-top: .4rem; } .mt-sm { margin-top: .8rem; }
.mt-md { margin-top: 1rem;  } .mt-lg { margin-top: 1.5rem; }
.mb-xs { margin-bottom: .4rem; } .mb-sm { margin-bottom: .8rem; }
.mb-md { margin-bottom: 1rem;  } .mb-lg { margin-bottom: 1.5rem; }
.ml-xs { margin-left: .35rem; }
.ures { text-align: center; padding: 4rem 1rem; color: var(--text-4); }
.ures-ikon { font-size: 2.5rem; margin-bottom: 1rem; opacity: .45; }
.warn { background: var(--amber-bg); border: 1px solid #fcd34d; border-radius: var(--radius); padding: .75rem 1rem; margin-bottom: 1.5rem; font-size: .875rem; color: #92400e; }
[data-theme="dark"] .warn { background: var(--amber-bg); color: var(--amber-text); border-color: rgba(251,191,36,.4); }

/* ══════════════════════════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════════════════════════ */
footer {
  text-align: center; padding: 1.75rem 1.5rem; margin-top: 2rem;
  background: var(--glass-bg); border-top: 1px solid var(--glass-border);
  font-size: .8rem; color: var(--text-4);
  backdrop-filter: blur(8px);
}
footer a { color: var(--text-4); }
footer a:hover { color: var(--brand); }

/* ══════════════════════════════════════════════════════════════
   COOKIE BANNER
   ══════════════════════════════════════════════════════════════ */
#cookie-banner {
  /* display is controlled by theme.js — not set here.
     The element starts with style="display:none" in HTML.
     JS sets style="display:flex" when consent is needed. */
  position: fixed; bottom: 0; left: 0; right: 0;
  background: rgba(15,23,42,.96);
  backdrop-filter: blur(16px);
  color: #e2e8f0;
  padding: 1rem 1.5rem; z-index: 9999;
  align-items: center; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap;
  border-top: 2px solid var(--brand-border);
}
[data-theme="dark"] #cookie-banner { background: rgba(9,9,11,.96); }
#cookie-banner p   { margin: 0; font-size: .84rem; flex: 1; min-width: 200px; color: #94a3b8; }
#cookie-banner a   { color: var(--brand); }
#cookie-banner-btns{ display: flex; gap: .5rem; }
.cookie-btn-accept {
  background: var(--brand); color: #fff; border: none;
  border-radius: var(--radius-sm); padding: .46rem 1.1rem;
  font-size: .82rem; font-weight: 600; cursor: pointer;
  box-shadow: 0 0 12px var(--brand-glow);
}
[data-theme="dark"] .cookie-btn-accept { color: #09090b; }
.cookie-btn-reject {
  background: transparent; color: #64748b;
  border: 1px solid #334155; border-radius: var(--radius-sm);
  padding: .46rem .9rem; font-size: .82rem; cursor: pointer;
}
.cookie-btn-reject:hover { color: #e2e8f0; border-color: #64748b; }

/* ══════════════════════════════════════════════════════════════
   THEME SWITCHER SCRIPT TARGET
   ══════════════════════════════════════════════════════════════ */
html { transition: background var(--transition); }

/* ══════════════════════════════════════════════════════════════
   ALTERNATIVE HORIZONTAL FILTER BAR (index-horizontal.php only)
   Purely additive — nothing here is used by the current index.php
   sidebar layout, so that page's appearance is unaffected.
   ══════════════════════════════════════════════════════════════ */

/* Widen the search row slightly to comfortably fit the new location select */
.kereses-sor-uj:has(.kereses-helyszin) { max-width: 720px; }

.kereses-helyszin {
  border: none; outline: none; background: transparent;
  color: var(--text-1); font-family: inherit; font-size: .9rem;
  padding: .3rem .4rem; border-left: 1.5px solid var(--border);
  max-width: 180px; cursor: pointer;
}
[data-theme="dark"] .kereses-helyszin { border-left-color: var(--glass-border); }

.oldal-grid-h { max-width: var(--max-w); margin: 0 auto; padding: 1.5rem; }

.szuro-sor-vizszintes-wrap {
  background: var(--bg); border-bottom: 1px solid var(--border);
  padding: 1rem 0; position: relative; z-index: 10;
}
[data-theme="dark"] .szuro-sor-vizszintes-wrap { border-bottom-color: var(--glass-border); }

.szuro-sor-vizszintes {
  display: flex; flex-wrap: wrap; gap: .6rem;
  max-width: var(--max-w); margin: 0 auto; padding: 0 1.5rem;
}
.szuro-elem-h { flex: 1 1 180px; min-width: 150px; position: relative; }
.szuro-elem-h select {
  width: 100%; padding: .55rem .8rem;
  border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  background: var(--white); color: var(--text-1);
  font-size: .85rem; font-family: inherit; cursor: pointer;
  transition: border-color var(--transition);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
[data-theme="dark"] .szuro-elem-h select {
  background: var(--glass-bg); border-color: var(--glass-border);
}
.szuro-elem-h select:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-dim); }
.szuro-elem-h select:disabled,
.szuro-blokk select:disabled {
  opacity: .55; cursor: not-allowed; background-color: var(--surface-1);
}

.szuro-egyeb-wrap { flex: 0 0 auto; min-width: 0; }
.szuro-egyeb-gomb {
  width: 100%; padding: .55rem .8rem;
  border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  background: var(--white); color: var(--text-1);
  font-size: .85rem; font-family: inherit; font-weight: 400;
  cursor: pointer; text-align: left; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis;
  transition: border-color var(--transition);
  display: flex; align-items: center; justify-content: space-between; gap: .4rem;
}
[data-theme="dark"] .szuro-egyeb-gomb {
  background: var(--glass-bg); border-color: var(--glass-border);
}
.szuro-egyeb-gomb:hover { border-color: var(--brand-mid); }
.szuro-egyeb-gomb:focus {
  outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-dim);
}
.szuro-egyeb-gomb.szuro-egyeb-aktiv { border-color: var(--brand); color: var(--brand); }

/* "Egyéb szűrők" popover — anchored to the right edge of its own
   trigger button so it can never overflow the right side of the
   viewport, regardless of where the button lands in the wrapped row. */
.szuro-egyeb-panel {
  display: none;
  position: absolute; top: calc(100% + .4rem); right: 0;
  min-width: 260px; max-width: calc(100vw - 2rem);
  background: var(--white); border: 1.5px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow-lg);
  padding: 1rem; z-index: 20;
}
[data-theme="dark"] .szuro-egyeb-panel {
  background: var(--surface-1); border-color: var(--glass-border);
}
.szuro-egyeb-panel.nyitva { display: block; }
.szuro-egyeb-alkalmaz { width: 100%; margin-top: .85rem; }

/* Salary range slider popover — wider than the plain Egyéb szűrők
   panel to comfortably fit the two-handle track. */
.szuro-berezes-panel { min-width: 280px; }

.berezes-ertekek {
  display: flex; justify-content: space-between;
  font-size: .8rem; font-weight: 600; color: var(--brand);
  margin: .4rem 0 .3rem;
}
.berezes-ertekek-egy { justify-content: flex-start; }
.berezes-slider {
  position: relative; height: 28px; margin: 0 0 .6rem;
}
.berezes-track {
  position: absolute; top: 50%; left: 0; right: 0; height: 4px;
  background: var(--border); border-radius: 2px; transform: translateY(-50%);
}
[data-theme="dark"] .berezes-track { background: var(--glass-border); }
.berezes-track-aktiv {
  position: absolute; top: 50%; height: 4px;
  background: var(--brand); border-radius: 2px; transform: translateY(-50%);
}
.berezes-slider input[type="range"] {
  position: absolute; top: 50%; left: 0; width: 100%; margin: 0;
  transform: translateY(-50%);
  -webkit-appearance: none; appearance: none;
  background: transparent; pointer-events: none;
}
.berezes-slider input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; pointer-events: auto;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--brand); border: 3px solid var(--white);
  box-shadow: 0 1px 3px rgba(0,0,0,.35); cursor: pointer;
}
.berezes-slider input[type="range"]::-moz-range-thumb {
  pointer-events: auto; width: 18px; height: 18px; border-radius: 50%;
  background: var(--brand); border: 3px solid var(--white);
  box-shadow: 0 1px 3px rgba(0,0,0,.35); cursor: pointer;
}
[data-theme="dark"] .berezes-slider input[type="range"]::-webkit-slider-thumb,
[data-theme="dark"] .berezes-slider input[type="range"]::-moz-range-thumb {
  border-color: var(--surface-1);
}
.berezes-slider input[type="range"]::-webkit-slider-runnable-track { background: transparent; }
.berezes-slider input[type="range"]::-moz-range-track { background: transparent; }
.berezes-slider input[type="range"]:focus { outline: none; }
.berezes-slider input[type="range"]:focus::-webkit-slider-thumb { box-shadow: 0 0 0 4px var(--brand-dim); }
.berezes-slider input[type="range"]:focus::-moz-range-thumb { box-shadow: 0 0 0 4px var(--brand-dim); }

/* Mobile: stack every filter to full width instead of wrapping
   awkwardly, and let the "Egyéb szűrők" popover span the full width
   too so it never gets clipped at a screen edge. */
@media (max-width: 640px) {
  .kereses-sor-uj:has(.kereses-helyszin) { flex-wrap: wrap; max-width: 100%; }
  .kereses-sor-uj input[type=text] { flex: 1 1 100%; }
  .kereses-helyszin { flex: 1 1 auto; border-left: none; border-top: 1.5px solid var(--border); }

  .szuro-sor-vizszintes { padding: 0 1rem; }
  .szuro-elem-h { flex: 1 1 100%; }
  .szuro-egyeb-panel { left: 0; right: 0; max-width: none; }
}

