/* ===== JÓTÉRIKUS — ÚJ LAYOUT ===== */
:root {
  --gold: #C9A84C;
  --gold-hover: #B8943F;
  --gold-light: #F5ECD7;
  --gold-glow: rgba(201, 168, 76, 0.25);
  --purple: #7B2FCC;
  --purple-light: rgba(123, 47, 204, 0.1);
  --dark: #0D0D1A;
  --dark2: #1A1A2E;
  --surface: #FFFFFF;
  --bg: #FFFFFF;
  --text: #1A1A2E;
  --text2: #9CA3AF;
  --text3: #6B7280;
  --border: #E8E4DC;
  --error: #D4443B;
  --success: #5A9E5F;
  --radius: 12px;
  --shadow: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 30px rgba(0,0,0,0.08);
}

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

body {
  font-family: 'Poppins', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  font-size: 16px;
}

/* ===== FEJLÉC ===== */
#main-header {
  position: static; top: 0; left: 0; right: 0; z-index: 200;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
@media (max-width: 768px) { #main-header { position: fixed; } }
.header-inner {
  max-width: 1200px; margin: 0 auto;
  padding: 8px 16px;
  display: flex; align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.header-left {
  display: flex; align-items: center; gap: 10px;
}
.hamburger {
  display: none; background: none; border: none;
  font-size: 2rem; cursor: pointer; color: var(--text);
}
.header-brand { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.brand-icon { font-size: 1.2rem; }
.brand-logo { height: 152px; width: auto; object-fit: contain; }
@media (max-width: 768px) { .brand-logo { height: 50px; } }
.brand-name {
  font-family: 'Poppins', sans-serif; font-size: 1.3rem;
  font-weight: 700; color: var(--purple);
}
.brand-sub {
  font-size: 0.7rem; color: var(--purple);
  letter-spacing: 0.5px;
}
.header-right {
  display: flex; gap: 8px; align-items: center;
  flex-shrink: 0;
}
.header-user-info {
  display: flex; align-items: center; gap: 10px;
  cursor: pointer; transition: all 0.2s;
  width: 30%; max-width: 300px; min-width: 160px;
  justify-content: flex-end;
  padding: 6px 12px;
  border-radius: 30px;
  background: var(--purple-light);
  border: 1px solid rgba(123,47,204,0.15);
}
.header-user-info:hover {
  border-color: var(--purple);
  box-shadow: 0 2px 10px rgba(123,47,204,0.15);
}
.header-avatar-circle {
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg, var(--purple), #B388FF);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.85rem; color: white;
  flex-shrink: 0;
  border: 2px solid rgba(123,47,204,0.3); overflow: hidden;
}
.header-avatar-circle img {
  width: 36px; height: 36px; border-radius: 50%; object-fit: cover;
}
.header-username {
  font-family: 'Poppins', sans-serif;
  font-weight: 600; font-size: 0.92rem; color: var(--purple);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  flex: 1;
}
@media (max-width: 768px) {
  .header-user-info { width: auto; max-width: none; min-width: 0; padding: 6px 10px; }
  .header-username { font-size: 0.82rem; }
}

/* ===== PROFIL KÁRTYA (dashboard) — elrejtve, már nem használjuk ===== */
.profile-card-panel {
  display: none !important;
}

/* ===== PROFIL PANEL (dropdown) ===== */
.profile-panel {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: 340px; z-index: 300;
  background: var(--surface);
  border-left: 1px solid var(--border);
  box-shadow: -8px 0 30px rgba(0,0,0,0.1);
  overflow-y: auto;
  animation: slideInRight 0.25s ease;
}
@keyframes slideInRight {
  from { transform: translateX(100%); } to { transform: translateX(0); }
}
.profile-panel-inner {
  padding: 20px;
}
.profile-panel-header {
  display: flex; align-items: center; gap: 14px;
  padding-bottom: 16px; border-bottom: 1px solid var(--border);
  margin-bottom: 12px;
}
.profile-panel-avatar {
  width: 50px; height: 50px; border-radius: 50%;
  background: linear-gradient(135deg, var(--purple), #B388FF);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 1.2rem; color: white;
  flex-shrink: 0; overflow: hidden;
  border: 2px solid rgba(123,47,204,0.3);
}
.profile-panel-avatar img {
  width: 50px; height: 50px; border-radius: 50%; object-fit: cover;
}
.profile-panel-info { flex: 1; }
.profile-panel-name {
  font-family: 'Poppins', sans-serif;
  font-weight: 600; font-size: 1rem; color: var(--text);
}
.profile-panel-city {
  font-size: 0.82rem; color: var(--text3); margin-top: 2px;
}
.profile-panel-close {
  width: 32px; height: 32px; border-radius: 50%;
  background: none; border: 1px solid var(--border);
  font-size: 1rem; cursor: pointer; color: var(--text3);
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s;
}
.profile-panel-close:hover {
  background: rgba(212,68,59,0.1); border-color: var(--error); color: var(--error);
}
.profile-panel-cats {
  display: flex; flex-wrap: wrap; gap: 4px;
  margin-bottom: 16px;
}
.profile-panel-cats span {
  font-size: 0.7rem; padding: 2px 8px;
  background: var(--purple-light); color: var(--purple);
  border-radius: 10px;
}
.profile-panel-menu {
  display: flex; flex-direction: column; gap: 4px;
}
.profile-panel-item {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px; background: none;
  border: 1px solid transparent; border-radius: 10px;
  font-family: 'Poppins', sans-serif; font-size: 0.9rem;
  font-weight: 500; color: var(--text); cursor: pointer;
  transition: all 0.2s; text-align: left; width: 100%;
}
.profile-panel-item:hover {
  background: var(--purple-light); border-color: var(--purple);
  color: var(--purple);
}
.profile-panel-item span {
  font-size: 1.1rem;
}
.profile-panel-footer {
  margin-top: 20px; padding-top: 16px;
  border-top: 1px solid var(--border);
}
.profile-panel-logout {
  width: 100%; padding: 12px;
  background: none; border: 1px solid var(--error);
  border-radius: 10px; color: var(--error);
  font-family: 'Poppins', sans-serif; font-size: 0.9rem;
  font-weight: 500; cursor: pointer; transition: all 0.2s;
}
.profile-panel-logout:hover {
  background: rgba(212,68,59,0.1);
}
/* Profil panel overlay */
.profile-panel-overlay {
  position: fixed; inset: 0; z-index: 299;
  background: rgba(0,0,0,0.3);
}
@media (max-width: 768px) {
  .profile-panel { width: 100%; }
}
.profile-card-inner {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.profile-card-avatar {
  width: 70px; height: 70px; border-radius: 50%;
  background: linear-gradient(135deg, var(--purple), #B388FF);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 1.5rem; color: white;
  overflow: hidden;
}
.profile-card-avatar img {
  width: 70px; height: 70px; border-radius: 50%; object-fit: cover;
}
.profile-card-panel .profile-card-name {
  font-family: 'Poppins', sans-serif;
  font-weight: 600; font-size: 0.95rem; color: var(--text);
  margin-top: 4px;
}
.profile-card-panel .profile-card-cats {
  display: flex; flex-wrap: wrap; gap: 4px; justify-content: center;
}
.profile-card-panel .profile-card-cats span {
  font-size: 0.65rem; padding: 2px 8px;
  background: var(--purple-light); color: var(--purple);
  border-radius: 10px;
}
.profile-card-panel .profile-card-city {
  font-size: 0.8rem; color: var(--text3);
}
.profile-card-settings {
  margin-top: 8px; padding: 8px 16px;
  background: var(--purple-light); color: var(--purple);
  border: 1px solid var(--purple); border-radius: 8px;
  font-family: 'Poppins', sans-serif; font-size: 0.8rem;
  font-weight: 500; cursor: pointer; transition: all 0.2s;
  width: 100%;
}
.profile-card-settings:hover {
  background: var(--purple); color: white;
}
.profile-card-nav {
  display: flex; flex-direction: column; gap: 6px;
  width: 100%; margin-top: 8px;
}
.profile-card-btn {
  padding: 8px 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: 'Poppins', sans-serif; font-size: 0.78rem;
  font-weight: 500; color: var(--text);
  cursor: pointer; transition: all 0.2s;
  text-align: left;
}
.profile-card-btn:hover {
  background: var(--purple-light);
  border-color: var(--purple);
  color: var(--purple);
}
.profile-card-btn-logout {
  color: var(--error);
  border-color: var(--error);
}
.profile-card-btn-logout:hover {
  background: rgba(212,68,59,0.1);
}

/* ===== DASHBOARD HERO — új háttérkép ===== */
.dashboard-hero {
  width: 100%;
  min-height: 480px;
  background: none;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.dashboard-hero-img {
  width: 100%;
  height: auto;
  max-height: 640px;
  object-fit: contain;
  display: block;
}
@media (max-width: 768px) {
  .dashboard-hero { min-height: auto; flex-direction: column; justify-content: flex-start; }
  .dashboard-hero-img { width: 100%; max-height: 480px; }
}

/* ===== KERESŐ PANEL ===== */
.search-panel {
  position: fixed; inset: 0; z-index: 250;
  background: rgba(13,13,26,0.6);
  display: flex; align-items: flex-start; justify-content: center;
  padding-top: 80px;
  overflow-y: auto;
}
.search-panel-inner {
  width: 100%; max-width: 900px;
  background: var(--surface);
  border-radius: 16px;
  margin: 20px;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  animation: slideInRight 0.2s ease;
}
.search-panel-header {
  display: flex; align-items: center; gap: 8px;
  padding: 20px 24px; border-bottom: 1px solid var(--border);
  position: sticky; top: 0; background: var(--surface); z-index: 2;
  border-radius: 16px 16px 0 0;
}
.search-panel-header input {
  flex: 1; padding: 12px 16px;
  border: 2px solid var(--border); border-radius: 12px;
  font-size: 1rem; font-family: 'Poppins', sans-serif;
  background: var(--bg); color: var(--text);
}
.search-panel-header input:focus {
  outline: none; border-color: var(--purple);
}
.search-panel-close {
  width: 40px; height: 40px; border-radius: 50%;
  background: none; border: 1px solid var(--border);
  font-size: 1.1rem; cursor: pointer; color: var(--text3);
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s;
}
.search-panel-close:hover {
  background: rgba(212,68,59,0.1); border-color: var(--error); color: var(--error);
}
.search-panel-results {
  padding: 0;
}
.search-result-item {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 24px;
  border-bottom: 1px solid var(--border);
  cursor: pointer; transition: all 0.15s;
}
.search-result-item:hover {
  background: var(--purple-light);
}
.search-result-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(135deg, var(--purple), #B388FF);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 1rem; color: white;
  flex-shrink: 0; overflow: hidden;
}
.search-result-avatar img {
  width: 44px; height: 44px; border-radius: 50%; object-fit: cover;
}
.search-result-info { flex: 1; }
.search-result-name {
  font-weight: 600; font-size: 0.95rem; color: var(--text);
}
.search-result-city {
  font-size: 0.82rem; color: var(--text3);
}
.search-result-cats {
  display: flex; gap: 4px; flex-wrap: wrap; margin-top: 4px;
}
.search-result-cats span {
  font-size: 0.7rem; padding: 2px 8px;
  background: var(--purple-light); color: var(--purple);
  border-radius: 10px;
}
.search-panel-cats {
  padding: 20px 24px;
}
.search-panel-cats .categories-grid {
  grid-template-columns: repeat(2, 1fr);
}
.search-panel-no-result {
  text-align: center; padding: 30px; color: var(--text3); font-size: 0.95rem;
}
@media (max-width: 768px) {
  .search-panel { padding-top: 60px; }
  .search-panel-inner { margin: 10px; }
  .search-panel-cats .categories-grid { grid-template-columns: 1fr; }
}
.dashboard-search-section {
  background: var(--surface);
  padding: 0 24px 16px;
}
.dashboard-search-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.search-bar-wide {
  max-width: 1100px; width: 100%;
}

/* ===== DASHBOARD SECTIONS ===== */
.dashboard-section {
  padding: 20px 24px;
  background: white;
}
.dashboard-title {
  font-family: 'Poppins', sans-serif;
  font-size: 1.2rem; font-weight: 600;
  color: var(--purple); margin-bottom: 16px;
}
.top-profiles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
}
.top-profile-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; padding: 16px; text-align: center;
  transition: all 0.3s; cursor: pointer;
}
.top-profile-card:hover {
  border-color: var(--purple);
  box-shadow: 0 4px 15px rgba(123,47,204,0.1);
  transform: translateY(-2px);
}
.top-profile-card .avatar-circle {
  width: 50px; height: 50px; font-size: 1.1rem;
  margin: 0 auto 8px;
}
.top-profile-card img.avatar-circle {
  width: 50px; height: 50px;
}
.top-profile-name {
  font-weight: 600; font-size: 0.9rem; margin-bottom: 4px;
}
.top-profile-cat {
  font-size: 0.7rem; padding: 2px 8px;
  background: var(--purple-light); color: var(--purple);
  border-radius: 10px; display: inline-block;
}
.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}
.event-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; padding: 16px;
  transition: all 0.3s; cursor: pointer;
}
.event-card:hover {
  border-color: var(--gold);
  box-shadow: 0 4px 15px var(--gold-glow);
}
.event-title {
  font-weight: 600; font-size: 0.95rem; margin-bottom: 4px;
}
.event-date {
  font-size: 0.8rem; color: var(--text3);
}
.event-desc {
  font-size: 0.82rem; color: var(--text3); margin-top: 6px;
}

/* ===== KATEGÓRIA LEGÖRDÜLŐ (fő + alkategóriák) ===== */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.cat-main {
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.2s;
  cursor: pointer;
  background: var(--surface);
}
.cat-main:hover {
  border-color: var(--purple);
  box-shadow: 0 4px 12px rgba(123,47,204,0.1);
}
.cat-main.open {
  border-color: var(--purple);
  box-shadow: 0 4px 15px rgba(123,47,204,0.15);
}
.cat-main-header {
  padding: 14px 16px;
  font-family: 'Poppins', sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--purple);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.cat-icon {
  width: 36px; height: 36px;
  object-fit: contain;
  flex-shrink: 0;
  border-radius: 8px;
}
.cat-main-header::after {
  content: '▾';
  font-size: 0.8rem;
  color: var(--text3);
  transition: transform 0.2s;
}
.cat-main.open .cat-main-header::after {
  transform: rotate(180deg);
}
.cat-sub {
  display: none;
  padding: 0 16px 14px;
  flex-wrap: wrap;
  gap: 6px;
}
.cat-main.open .cat-sub {
  display: flex;
}
.cat-sub span {
  font-size: 0.78rem;
  padding: 4px 10px;
  background: var(--purple-light);
  color: var(--purple);
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.15s;
  font-weight: 500;
}
.cat-sub span:hover {
  background: var(--purple);
  color: white;
}
@media (max-width: 768px) {
  .categories-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .cat-main-header { font-size: 0.8rem; padding: 10px 12px; }
  .cat-sub span { font-size: 0.72rem; padding: 3px 8px; }
}

/* ===== MIÉRT SZABADSZIGET ===== */
.why-section {
  background: linear-gradient(135deg, var(--purple-light) 0%, rgba(201,168,76,0.08) 100%);
}
.why-list {
  display: flex; flex-direction: row; gap: 12px;
  flex-wrap: wrap;
}
.why-item {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 12px 14px;
  background: var(--surface); border-radius: 12px;
  border: 1px solid var(--border);
  flex: 1; min-width: 180px;
}
.why-icon-img {
  width: 40px; height: 40px;
  object-fit: contain; flex-shrink: 0;
}
.why-text strong {
  display: block; font-size: 0.95rem; color: var(--text);
  margin-bottom: 4px;
}
.why-text p {
  font-size: 0.82rem; color: var(--text3); line-height: 1.5; margin: 0;
}

@media (max-width: 768px) {
  .popular-cats-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .popular-cat-icon { width: 32px; height: 32px; }
  .popular-cat span { font-size: 0.72rem; }
  .why-list { flex-direction: column; }
  .why-item { min-width: 100%; }
  .dashboard-hero-inner { flex-direction: column; padding: 16px; }
  .top-profiles-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
  .events-grid { grid-template-columns: 1fr; }
}

/* ===== MOBIL MENÜ ===== */
.mobile-menu {
  position: fixed; top: 60px; left: 0; right: 0;
  background: var(--surface); border-bottom: 1px solid var(--border);
  z-index: 199; padding: 16px 24px;
  display: flex; flex-direction: column; gap: 12px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}
.mobile-menu a {
  text-decoration: none; color: var(--text); font-weight: 500;
  padding: 10px 0; border-bottom: 1px solid var(--border);
}
.mobile-menu a.logout { color: var(--error); }

/* ===== GOMBOK ===== */
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 18px 40px; background: linear-gradient(135deg, var(--gold), #E8D48B); color: var(--dark); border: none; border-radius: 10px; font-size: 1.1rem; font-weight: 600; cursor: pointer; transition: all 0.25s; text-decoration: none; font-family: inherit; }
.btn:hover { box-shadow: 0 4px 15px var(--gold-glow); transform: translateY(-1px); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-sm { padding: 7px 14px; font-size: 0.82rem; border-radius: 6px; }
.btn-ghost { background: transparent; color: var(--purple); border: 1px solid var(--purple); padding: 16px 36px; border-radius: 10px; font-weight: 500; font-size: 1.1rem; }
.btn-ghost:hover { background: var(--purple-light); }
.btn-logout { color: var(--error) !important; border-color: var(--error) !important; }
.btn-logout:hover { background: rgba(212,68,59,0.1) !important; }
.btn-gold { background: linear-gradient(135deg, var(--gold), #E8D48B); color: var(--dark); border: none; padding: 16px 36px; border-radius: 10px; font-size: 1.1rem; }
.btn-outline { background: transparent; color: var(--gold); border: 1px solid var(--gold); }
.btn-outline:hover { background: rgba(201,168,76,0.1); }
.btn-full { width: 100%; padding: 13px; font-size: 1rem; border-radius: 8px; }
.btn-danger { background: var(--error); color: white; }
.btn-danger:hover { background: #C03B33; }

/* ===== FŐ SZEKCIÓ: SZÖVEG BAL, KÉP JOBB ===== */
.hero-main {
  padding-top: 20px;
  background: var(--surface);
}
@media (max-width: 768px) { .hero-main { padding-top: 60px; } }
.hero-main-inner {
  max-width: 1200px; margin: 0 auto;
  padding: 20px 24px;
  display: flex; align-items: center; gap: 40px;
}
.hero-text { flex: 1; min-width: 340px; }
.hero-title {
  font-family: 'Poppins', sans-serif;
  font-size: 2.8rem; font-weight: 700;
  line-height: 1.3;
  margin-bottom: 24px;
}
.hero-title .text-purple {
  color: var(--purple);
}
.hero-title .text-gold {
  color: var(--gold);
}
.hero-subtitle {
  font-size: 3.5rem; color: var(--purple);
  line-height: 1.4; max-width: 700px;
  font-weight: 500;
}
.hero-lotus {
  font-size: 2rem; margin-bottom: 16px;
}
.hero-lotus-img {
  width: 80px; height: auto; margin-bottom: 16px; margin-top: 8px;
}
@media (max-width: 768px) { .hero-lotus-img { width: 60px; } }
.hero-text p {
  font-size: 1.05rem; color: var(--text3);
  line-height: 1.7; max-width: 480px;
}
.hero-image { flex: 1.5; max-width: 700px; }
.hero-image img {
  width: 100%; max-height: 550px;
  object-fit: contain;
  border-radius: 0;
  box-shadow: none;
}

/* ===== KERESŐ SÁV ===== */
.search-section {
  background: var(--bg); padding: 12px 24px;
}
.search-bar {
  display: flex;
  align-items: center;
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: 60px;
  padding: 4px 10px;
  max-width: 1100px;
  margin: 0 auto;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  width: 100%;
}
.search-item {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 20px;
  background: transparent;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 500;
  color: var(--purple);
  border-radius: 60px;
  transition: all 0.2s;
}
.search-item:hover {
  background: var(--purple-light);
}
.search-item-emoji {
  font-size: 1.3rem;
}
.search-item-icon {
  width: 28px; height: 28px;
  object-fit: contain; flex-shrink: 0;
}
.search-item-text {
  font-size: 0.95rem;
}
.search-divider {
  width: 1px;
  height: 32px;
  background: var(--border);
  flex-shrink: 0;
}
.search-oval {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 28px;
  background: linear-gradient(135deg, var(--gold), #E8D48B);
  color: var(--dark);
  border: none;
  border-radius: 60px;
  cursor: pointer;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  transition: all 0.25s;
  flex-shrink: 0;
}
.search-oval:hover {
  box-shadow: 0 4px 15px var(--gold-glow);
  transform: translateY(-2px);
}

/* ===== STATISZTIKÁK ===== */
.stats-section {
  background: var(--surface); padding: 12px 24px;
}
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.stat-card {
  text-align: center; padding: 14px 12px;
  background: var(--bg); border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: all 0.3s;
}
.stat-card:hover {
  border-color: var(--purple);
  box-shadow: 0 4px 15px rgba(123,47,204,0.1);
}
.stat-icon {
  display: block; font-size: 1.8rem; margin-bottom: 8px;
}
.stat-icon-img {
  width: 24px; height: 24px;
  object-fit: contain;
  border-radius: 50%;
  background: var(--purple-light);
  padding: 4px;
  display: inline-block;
  vertical-align: middle;
  margin-right: 6px;
}
.stat-num {
  display: block; font-family: 'Poppins', sans-serif;
  font-size: 2.2rem; font-weight: 700;
  color: #4A90D9; margin-bottom: 6px;
}
.stat-label {
  font-size: 0.85rem; color: var(--text3);
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
}
.section { padding: 70px 24px; }
.section-alt { background: var(--dark); color: white; }
.section-title {
  font-family: 'Poppins', sans-serif; font-size: 1.6rem;
  text-align: center; margin-bottom: 12px;
  color: var(--purple);
}
.section-alt .section-title { color: var(--gold); }
.section-desc {
  text-align: center; color: var(--text3);
  max-width: 600px; margin: 0 auto;
  font-size: 1rem; line-height: 1.7;
}
.section-alt .section-desc { color: rgba(255,255,255,0.5); }

/* ===== PROFILES GRID ===== */
.profiles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px; margin-top: 30px;
}
.profile-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 16px; padding: 24px; text-align: center;
  transition: all 0.3s; cursor: pointer;
}
.profile-card:hover {
  border-color: var(--purple);
  box-shadow: 0 8px 30px rgba(123,47,204,0.15);
  transform: translateY(-4px);
}
.profile-card .avatar-circle { width: 70px; height: 70px; font-size: 1.5rem; margin: 0 auto 12px; }
.profile-card img.avatar-circle { width: 70px; height: 70px; }
.profile-card-name { font-family: 'Poppins', sans-serif; font-weight: 600; font-size: 1rem; margin-bottom: 4px; }
.profile-card-city { font-size: 0.8rem; color: var(--text3); }
.profile-card-cats { display: flex; gap: 4px; flex-wrap: wrap; justify-content: center; margin-top: 10px; }
.profile-card-cats span { font-size: 0.7rem; padding: 3px 10px; background: var(--purple-light); color: var(--purple); border-radius: 10px; }

/* ===== IDÉZET ===== */
.quote-section {
  padding: 60px 24px;
  text-align: center;
  background: linear-gradient(180deg, var(--bg) 0%, var(--surface) 100%);
}
.quote-icon { font-size: 2.5rem; margin-bottom: 16px; }
.quote {
  font-family: 'Poppins', sans-serif; font-size: 1.5rem;
  color: var(--purple); font-style: italic;
}

/* ===== KATEGÓRIA KÉPEK ===== */
.category-images-section {
  padding: 20px 24px;
  background: var(--bg);
}
.category-images-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}
.category-img-card {
  text-align: center;
  cursor: pointer;
  transition: all 0.3s;
  padding: 0;
  border-radius: 0;
  background: transparent;
}
.category-img-card:hover {
  transform: none;
  box-shadow: none;
}
.category-img-card img {
  width: 100%;
  height: auto;
  border-radius: 0;
  object-fit: contain;
}

.category-quote {
  font-family: 'Allura', cursive;
  font-size: 2.5rem;
  text-align: center;
  color: var(--gold);
  margin-bottom: 30px;
}

/* ===== PROFIL OLDAL ===== */
.profile-page {
  display: flex;
  min-height: 100vh;
  background: var(--surface);
}

/* Bal sáv */
.profile-sidebar {
  width: 260px;
  background: var(--surface);
  border-right: 1px solid var(--border);
  padding: 24px 0;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}
.profile-sidebar-header {
  text-align: center;
  padding: 0 20px 20px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 12px;
}
.profile-sidebar-avatar {
  width: 100px; height: 100px; border-radius: 50%;
  background: linear-gradient(135deg, var(--purple), #B388FF);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 2.2rem; color: white;
  margin: 0 auto 14px; overflow: hidden;
  border: 3px solid rgba(123,47,204,0.3);
}
.profile-sidebar-avatar img {
  width: 100px; height: 100px; border-radius: 50%; object-fit: cover;
}
.profile-sidebar-name {
  font-family: 'Poppins', sans-serif;
  font-weight: 700; font-size: 1.3rem; color: var(--text);
}
.profile-sidebar-city {
  font-size: 0.9rem; color: var(--text3); margin-top: 6px;
}
.profile-sidebar-nav {
  flex: 1;
  padding: 0 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.profile-nav-item {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 14px;
  background: none; border: none; border-radius: 8px;
  font-family: 'Poppins', sans-serif; font-size: 0.88rem;
  font-weight: 500; color: var(--text2);
  cursor: pointer; transition: all 0.15s;
  text-align: left; width: 100%;
}
.profile-nav-item:hover {
  background: var(--purple-light); color: var(--purple);
}
.profile-nav-item.active {
  background: var(--purple-light); color: var(--purple); font-weight: 600;
}
.profile-sidebar-footer {
  padding: 12px 12px 0;
  border-top: 1px solid var(--border);
  margin-top: 8px;
}
.profile-nav-logout {
  width: 100%; padding: 10px 14px;
  background: none; border: 1px solid var(--error);
  border-radius: 8px; color: var(--error);
  font-family: 'Poppins', sans-serif; font-size: 0.88rem;
  font-weight: 500; cursor: pointer; transition: all 0.2s;
  display: flex; align-items: center; gap: 8px;
}
.profile-nav-logout:hover {
  background: rgba(212,68,59,0.1);
}

/* Jobb tartalom */
.profile-content {
  flex: 1;
  padding: 30px 40px;
  min-width: 0;
}
.profile-section-title {
  font-family: 'Poppins', sans-serif;
  font-size: 1.4rem; font-weight: 700;
  color: var(--purple); margin-bottom: 24px;
}
.profile-top-row {
  display: flex;
  gap: 24px;
}
.profile-card-box {
  flex: 1;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
}
.profile-card-box h3 {
  font-family: 'Poppins', sans-serif;
  font-size: 1rem; font-weight: 600;
  color: var(--text); margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--purple-light);
}
.profile-field {
  margin-bottom: 16px;
}
.profile-field label {
  display: block; font-size: 0.82rem; font-weight: 600;
  color: var(--text2); margin-bottom: 6px;
}
.profile-field input,
.profile-field textarea {
  width: 100%; padding: 10px 14px;
  border: 1px solid var(--border); border-radius: 8px;
  font-size: 0.92rem; font-family: 'Poppins', sans-serif;
  background: var(--bg); color: var(--text);
  transition: border-color 0.2s;
}
.profile-field input:focus,
.profile-field textarea:focus {
  outline: none; border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(123,47,204,0.1);
}
.profile-field input:disabled {
  opacity: 0.5; cursor: not-allowed;
}
.profile-field .city-input-wrapper {
  display: flex; gap: 8px;
}
.profile-field .city-input-wrapper input { flex: 1; }
.profile-field .city-result {
  margin-top: 6px; padding: 8px 12px;
  background: var(--purple-light); border-radius: 8px;
  font-size: 0.86rem; color: var(--purple);
}
.profile-field .mini-map {
  height: 180px; border-radius: 8px; margin-top: 8px;
  border: 1px solid var(--border); overflow: hidden;
}
.profile-field textarea {
  resize: vertical; min-height: 100px;
}
.profile-checkbox-group {
  margin-top: 8px;
}
.profile-check {
  color: var(--purple) !important;
  border-color: rgba(123,47,204,0.2) !important;
  background: var(--bg) !important;
}
.profile-check:hover {
  border-color: var(--purple) !important;
  background: var(--purple-light) !important;
}
.profile-cats-tree {
  margin-top: 8px;
}
.profile-cats-tree .cat-main {
  margin-bottom: 6px;
}
.profile-cats-tree .cat-sub {
  padding: 8px 12px 12px;
}
.profile-cats-tree .cat-sub .checkbox-label {
  margin-bottom: 4px;
}
.profile-empty {
  text-align: center; padding: 60px 20px;
  color: var(--text3); font-size: 1rem;
}
.profile-messages-list {
  display: flex; flex-direction: column; gap: 0;
}
.profile-msg-item {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 20px;
  border: 1px solid var(--border);
  border-radius: 12px;
  cursor: pointer; transition: all 0.15s;
  background: var(--surface);
  margin-bottom: 8px;
}
.profile-msg-item:hover {
  border-color: var(--purple);
  background: var(--purple-light);
}
.profile-msg-avatar {
  width: 46px; height: 46px; border-radius: 50%;
  background: linear-gradient(135deg, var(--purple), #B388FF);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 1rem; color: white;
  flex-shrink: 0; overflow: hidden;
}
.profile-msg-avatar img {
  width: 46px; height: 46px; border-radius: 50%; object-fit: cover;
}
.profile-msg-info { flex: 1; min-width: 0; }
.profile-msg-name {
  font-weight: 600; font-size: 0.95rem; color: var(--text);
}
.profile-msg-preview {
  font-size: 0.82rem; color: var(--text3);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  margin-top: 2px;
}
.profile-msg-time {
  font-size: 0.72rem; color: var(--text3);
  flex-shrink: 0;
}

/* Toggle kapcsoló */
.toggle-group {
  display: flex; flex-direction: column; gap: 14px;
  margin-top: 8px;
}
.toggle-row {
  display: flex; align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}
.toggle-row span {
  font-size: 0.9rem; color: var(--text);
}
.toggle-switch {
  position: relative; display: inline-block;
  width: 44px; height: 24px; flex-shrink: 0;
}
.toggle-switch input {
  opacity: 0; width: 0; height: 0;
}
.toggle-slider {
  position: absolute; cursor: pointer;
  inset: 0; background: #ccc;
  border-radius: 24px; transition: 0.3s;
}
.toggle-slider::before {
  content: ''; position: absolute;
  height: 18px; width: 18px;
  left: 3px; bottom: 3px;
  background: white; border-radius: 50%;
  transition: 0.3s;
}
.toggle-switch input:checked + .toggle-slider {
  background: var(--purple);
}
.toggle-switch input:checked + .toggle-slider::before {
  transform: translateX(20px);
}

@media (max-width: 768px) {
  .profile-page { flex-direction: column; }
  .profile-sidebar {
    width: 100%; height: auto; position: static;
    flex-direction: row; flex-wrap: wrap;
    padding: 12px;
    border-right: none; border-bottom: 1px solid var(--border);
  }
  .profile-sidebar-header {
    width: 100%; border-bottom: none;
    padding-bottom: 8px; margin-bottom: 8px;
    display: flex; align-items: center; gap: 12px; text-align: left;
  }
  .profile-sidebar-avatar {
    width: 40px; height: 40px; font-size: 1rem; margin: 0;
  }
  .profile-sidebar-avatar img { width: 40px; height: 40px; }
  .profile-sidebar-nav {
    flex-direction: row; flex-wrap: wrap; gap: 4px;
  }
  .profile-nav-item { padding: 6px 10px; font-size: 0.78rem; }
  .profile-sidebar-footer {
    border-top: none; margin-top: 0; padding: 0;
    width: 100%;
  }
  .profile-content { padding: 16px; }
  .profile-top-row { flex-direction: column; }
}
.main-footer {
  background: var(--dark); color: rgba(255,255,255,0.7);
  padding: 50px 24px 24px;
}
.footer-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 40px; margin-bottom: 30px;
}
.footer-brand {
  font-family: 'Poppins', sans-serif; font-size: 1.2rem;
  color: var(--gold); display: block; margin-bottom: 8px;
}
.footer-col p { font-size: 0.85rem; margin-bottom: 4px; }
.footer-col h4 { color: var(--gold); font-size: 0.9rem; margin-bottom: 12px; }
.footer-col a { display: block; color: rgba(255,255,255,0.5); text-decoration: none; font-size: 0.85rem; margin-bottom: 6px; }
.footer-col a:hover { color: var(--gold); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 20px; text-align: center; font-size: 0.8rem; color: rgba(255,255,255,0.3); }

/* ===== AVATAR ===== */
.avatar-circle { width: 46px; height: 46px; border-radius: 50%; background: linear-gradient(135deg, var(--purple) 0%, #B388FF 100%); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 1rem; color: white; border: 2px solid rgba(123,47,204,0.3); object-fit: cover; }
.avatar-circle-lg { width: 80px; height: 80px; font-size: 1.8rem; margin: 0 auto; cursor: pointer; }

/* ===== AUTH CARD ===== */
.fullscreen-bg { position: fixed; inset: 0; background: url('hero-bg.jpg') center center/contain no-repeat; background-color: #FFFFFF; z-index: 1; overflow-y: auto; }
.auth-overlay { position: absolute; inset: 0; background: rgba(13,13,26,0.6); }
.center-card { position: relative; z-index: 2; display: flex; align-items: flex-start; justify-content: center; min-height: 100vh; padding: 20px; padding-top: 40px; }
.auth-card { background: rgba(13,13,26,0.92); backdrop-filter: blur(20px); border: 1px solid rgba(123,47,204,0.2); border-radius: 16px; padding: 40px 34px; box-shadow: 0 20px 60px rgba(0,0,0,0.4); width: 100%; max-width: 420px; }
.auth-card h2 { text-align: center; margin-bottom: 24px; font-family: 'Poppins', sans-serif; font-size: 1.5rem; color: var(--purple); }
.auth-symbol { text-align: center; font-size: 1.5rem; margin-bottom: 8px; opacity: 0.5; }
.setup-hint { text-align: center; color: rgba(255,255,255,0.5); font-size: 0.88rem; margin-bottom: 20px; }
.auth-back { text-align: center; margin-top: 16px; font-size: 0.88rem; }
.auth-back a { color: rgba(255,255,255,0.4); text-decoration: none; }
.auth-back a:hover { color: var(--purple); }

/* ===== FORM ===== */
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 7px; font-weight: 600; font-size: 0.88rem; color: rgba(255,255,255,0.7); }
.form-group small { display: block; margin-top: 4px; color: rgba(255,255,255,0.3); font-size: 0.78rem; }
.form-group input, .form-group textarea, .form-group select { width: 100%; padding: 12px 14px; border: 1px solid rgba(255,255,255,0.1); border-radius: 8px; font-size: 0.95rem; font-family: 'Poppins', sans-serif; transition: all 0.2s; background: rgba(255,255,255,0.05); color: white; }
.form-group input::placeholder, .form-group textarea::placeholder { color: rgba(255,255,255,0.25); }
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { outline: none; border-color: var(--purple); box-shadow: 0 0 0 3px rgba(123,47,204,0.2); background: rgba(255,255,255,0.08); }
.form-group select option { background: var(--dark2); color: white; }
.form-group textarea { resize: vertical; min-height: 100px; }
.auth-switch { text-align: center; margin-top: 22px; font-size: 0.88rem; color: rgba(255,255,255,0.4); }
.auth-switch a { color: var(--purple); text-decoration: none; font-weight: 600; }
.auth-switch a:hover { text-decoration: underline; }
.error-msg { color: var(--error); font-size: 0.86rem; margin-bottom: 12px; min-height: 20px; }

/* ===== AVATAR UPLOAD ===== */
.avatar-upload { position: relative; text-align: center; cursor: pointer; padding: 16px; border: 1px dashed rgba(123,47,204,0.3); border-radius: var(--radius); transition: all 0.2s; }
.avatar-upload:hover { border-color: var(--purple); background: rgba(123,47,204,0.05); }
.avatar-upload input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.avatar-upload small { display: block; margin-top: 8px; color: rgba(255,255,255,0.3); }

/* ===== CITY ===== */
.city-input-wrapper { display: flex; gap: 8px; }
.city-input-wrapper input { flex: 1; }
.city-result { margin-top: 8px; padding: 8px 12px; background: rgba(123,47,204,0.1); border-radius: 8px; font-size: 0.86rem; color: var(--purple); }
.mini-map { height: 200px; border-radius: var(--radius); margin-top: 10px; border: 1px solid rgba(123,47,204,0.2); overflow: hidden; }

/* ===== CHECKBOX ===== */
.checkbox-group { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 8px; margin-top: 8px; }
.checkbox-label { display: flex; align-items: center; gap: 6px; padding: 8px 10px; border: 1px solid rgba(255,255,255,0.08); border-radius: 8px; cursor: pointer; font-size: 0.85rem; color: rgba(255,255,255,0.7); transition: all 0.2s; user-select: none; }
.checkbox-label:hover { border-color: rgba(123,47,204,0.3); background: rgba(123,47,204,0.05); }
.checkbox-label input[type="checkbox"] { accent-color: var(--purple); width: 16px; height: 16px; }

/* ===== LAYOUT ===== */
.container { max-width: 1100px; margin: 0 auto; padding: 30px 24px; padding-top: 20px; }
.narrow { max-width: 500px; }
.page { display: none; }
.page.active { display: block; }

/* ===== TÉRKÉP ===== */
.map-container { max-width: 1000px; }
.main-map { height: 480px; border-radius: var(--radius); border: 1px solid var(--border); overflow: hidden; margin-top: 14px; }
.map-search { display: flex; gap: 8px; margin-bottom: 12px; }
.map-search input { flex: 1; padding: 12px 14px; border: 2px solid var(--border); border-radius: 8px; font-size: 0.95rem; font-family: inherit; background: var(--surface); }
.map-search input:focus { outline: none; border-color: var(--purple); }
.map-filter-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.map-users-list { margin-top: 20px; }
.map-user-card { display: flex; align-items: center; gap: 14px; padding: 14px 18px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 10px; transition: all 0.2s; cursor: pointer; }
.map-user-card:hover { border-color: var(--purple); box-shadow: 0 4px 12px rgba(123,47,204,0.15); }
.map-user-card .avatar-circle { width: 40px; height: 40px; font-size: 0.9rem; flex-shrink: 0; }
.map-user-info { flex: 1; }
.map-user-name { font-weight: 600; font-size: 0.95rem; }
.map-user-city { font-size: 0.82rem; color: var(--text3); }
.map-user-cats { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 4px; }
.map-user-cats span { font-size: 0.7rem; padding: 2px 8px; background: var(--purple-light); color: var(--purple); border-radius: 10px; }

/* ===== BROWSE ===== */
.browse-header { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }
.browse-actions { display: flex; gap: 8px; }
.browse-filters { margin-bottom: 24px; }
.browse-filters input { width: 100%; padding: 12px 18px; border: 2px solid var(--border); border-radius: var(--radius); font-size: 0.95rem; font-family: inherit; background: var(--surface); margin-bottom: 12px; }
.browse-filters input:focus { outline: none; border-color: var(--purple); }
.category-filters { display: flex; gap: 6px; flex-wrap: wrap; }
.filter-chip { padding: 6px 14px; border: 1px solid var(--border); border-radius: 20px; background: var(--surface); font-size: 0.8rem; font-weight: 500; cursor: pointer; transition: all 0.2s; font-family: inherit; color: var(--text3); }
.filter-chip:hover { border-color: var(--purple); color: var(--purple); }
.filter-chip.active { background: var(--purple); border-color: var(--purple); color: white; }

/* ===== POST CARDS ===== */
.posts-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.post-card { background: var(--surface); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); cursor: pointer; transition: all 0.3s; border: 1px solid var(--border); }
.post-card:hover { transform: translateY(-4px); box-shadow: 0 10px 25px rgba(123,47,204,0.15); border-color: rgba(123,47,204,0.3); }
.post-card-image { width: 100%; height: 200px; object-fit: cover; background: #F0EDE5; }
.post-card-image-placeholder { width: 100%; height: 200px; background: linear-gradient(135deg, var(--purple-light) 0%, #F3F0FF 100%); display: flex; align-items: center; justify-content: center; font-size: 3rem; }
.post-card-body { padding: 16px; }
.post-card-category { display: inline-block; padding: 3px 10px; background: var(--purple-light); color: var(--purple); border-radius: 12px; font-size: 0.72rem; font-weight: 600; margin-bottom: 8px; }
.post-card-title { font-family: 'Poppins', sans-serif; font-size: 1.05rem; font-weight: 600; margin-bottom: 6px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.post-card-desc { font-size: 0.86rem; color: var(--text3); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.5; }
.post-card-footer { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; }
.post-card-date { font-size: 0.76rem; color: #B5A98A; }
.post-card-author { display: flex; align-items: center; gap: 6px; font-size: 0.78rem; color: var(--text3); }
.post-card-author .avatar-circle { width: 22px; height: 22px; font-size: 0.55rem; border: none; box-shadow: none; }

/* ===== SEGÍTŐ KÁRTYÁK (böngészés / keresés oldal) ===== */
.browse-search-row { display: flex; gap: 10px; align-items: stretch; }
.browse-filters .browse-search-row input { flex: 1; margin-bottom: 0; width: auto; min-width: 0; }
.helper-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); cursor: pointer; transition: all 0.3s; display: flex; flex-direction: column; gap: 12px; }
.helper-card:hover { transform: translateY(-4px); box-shadow: 0 10px 25px rgba(123,47,204,0.15); border-color: rgba(123,47,204,0.3); }
.helper-card-top { display: flex; align-items: center; gap: 12px; }
.helper-card-avatar { width: 54px; height: 54px; border-radius: 50%; background: linear-gradient(135deg, var(--purple) 0%, #B388FF 100%); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 1.2rem; color: white; border: 2px solid rgba(201,168,76,0.6); overflow: hidden; flex-shrink: 0; }
.helper-card-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.helper-card-info { min-width: 0; flex: 1; }
.helper-card-name { font-family: 'Poppins', sans-serif; font-weight: 600; font-size: 1rem; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.helper-card-badgerow { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 5px; }
.helper-badge { display: inline-block; padding: 2px 10px; background: var(--purple-light); color: var(--purple); border-radius: 10px; font-size: 0.7rem; font-weight: 600; }
.helper-card-city { font-size: 0.8rem; color: var(--text3); }
.helper-card-cats { display: flex; flex-wrap: wrap; gap: 6px; }
.helper-card-cats span { padding: 3px 10px; background: #F5ECD7; color: #B8943F; border-radius: 10px; font-size: 0.74rem; font-weight: 500; }
.helper-card-cats .helper-card-more { background: var(--purple-light); color: var(--purple); }
.helper-chat-btn { flex-shrink: 0; white-space: nowrap; }

/* ===== SEGÍTŐ HIRDETÉSEI (profil oldalon) ===== */
.user-profile-posts { display: flex; flex-direction: column; gap: 10px; }
.user-profile-post { background: var(--bg); border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; cursor: pointer; transition: all 0.2s; }
.user-profile-post:hover { border-color: var(--gold); background: #FDFAF2; }
.user-profile-post-title { font-family: 'Poppins', sans-serif; font-weight: 600; font-size: 0.95rem; margin-top: 6px; color: var(--text); }
.user-profile-post-desc { font-size: 0.85rem; color: var(--text3); margin-top: 4px; line-height: 1.5; }

/* ===== FILE UPLOAD ===== */
.file-upload { position: relative; border: 1px dashed rgba(123,47,204,0.3); border-radius: var(--radius); padding: 28px; text-align: center; cursor: pointer; transition: all 0.25s; }
.file-upload:hover { border-color: var(--purple); }
.file-upload input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.file-upload-text { color: rgba(255,255,255,0.4); font-size: 0.9rem; }
.image-preview { max-width: 100%; max-height: 250px; border-radius: 8px; margin-top: 10px; }

/* ===== POST DETAIL ===== */
.post-detail { background: var(--surface); border-radius: 16px; overflow: hidden; box-shadow: var(--shadow-lg); border: 1px solid var(--border); }
.post-detail-image { width: 100%; max-height: 450px; object-fit: contain; background: #FAF8F3; }
.post-detail-body { padding: 28px; }
.post-detail-title { font-family: 'Poppins', sans-serif; font-size: 1.6rem; font-weight: 700; margin-bottom: 14px; }
.post-detail-desc { font-size: 1rem; line-height: 1.75; color: var(--text3); white-space: pre-wrap; }
.post-detail-meta { margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }
.post-detail-date { font-size: 0.85rem; color: #B5A98A; }
.back-link { display: inline-flex; align-items: center; gap: 6px; color: var(--purple); text-decoration: none; font-weight: 500; margin-bottom: 18px; font-size: 0.88rem; }
.back-link:hover { text-decoration: underline; }
.page-title { font-family: 'Poppins', sans-serif; font-size: 1.4rem; margin-bottom: 20px; color: var(--purple); }

/* ===== PROFIL RÉSZLET ===== */
.user-profile-detail {
  background: var(--surface);
  border-radius: 16px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  max-width: 700px;
  margin: 0 auto;
}
.user-profile-header {
  display: flex; align-items: center; gap: 24px;
  padding: 30px;
  background: linear-gradient(135deg, var(--purple-light) 0%, rgba(201,168,76,0.1) 100%);
  border-bottom: 1px solid var(--border);
}
.user-profile-avatar {
  width: 100px; height: 100px; border-radius: 50%;
  background: linear-gradient(135deg, var(--purple), #B388FF);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 2.5rem; color: white;
  flex-shrink: 0; overflow: hidden;
  border: 3px solid var(--gold);
}
.user-profile-avatar img {
  width: 100px; height: 100px; border-radius: 50%; object-fit: cover;
}
.user-profile-info { flex: 1; }
.user-profile-name {
  font-family: 'Poppins', sans-serif;
  font-size: 1.5rem; font-weight: 700; color: var(--purple);
  margin-bottom: 6px;
}
.user-profile-city {
  font-size: 0.9rem; color: var(--text3); margin-bottom: 8px;
}
.user-profile-cats {
  display: flex; flex-wrap: wrap; gap: 6px;
}
.user-profile-cats span {
  font-size: 0.75rem; padding: 4px 12px;
  background: var(--purple-light); color: var(--purple);
  border-radius: 10px; font-weight: 500;
}
.user-profile-body {
  padding: 30px;
}
.user-profile-section {
  margin-bottom: 24px;
}
.user-profile-section-title {
  font-family: 'Poppins', sans-serif;
  font-size: 1rem; font-weight: 600; color: var(--text);
  margin-bottom: 12px; padding-bottom: 8px;
  border-bottom: 2px solid var(--border);
}
.user-profile-section-title span {
  color: var(--gold);
}
.user-profile-reviews {
  display: flex; flex-direction: column; gap: 12px;
}
.user-review-card {
  background: var(--bg); border-radius: 12px;
  padding: 14px 16px; border: 1px solid var(--border);
}
.user-review-text {
  font-size: 0.9rem; color: var(--text3); line-height: 1.5;
  font-style: italic;
}
.user-review-author {
  font-size: 0.78rem; color: var(--text3); margin-top: 6px;
  font-weight: 600; font-style: normal;
}
.user-profile-empty {
  text-align: center; padding: 20px; color: var(--text3);
  font-size: 0.9rem;
}

.user-profile-links { display: flex; flex-wrap: wrap; gap: 10px; }
.user-profile-link { display: inline-block; padding: 8px 18px; background: var(--purple-light); color: var(--purple); border-radius: 20px; font-size: 0.85rem; font-weight: 600; text-decoration: none; transition: all 0.2s; }
.user-profile-link:hover { background: var(--purple); color: white; }


@media (max-width: 768px) {
  .user-profile-header { flex-direction: column; text-align: center; padding: 20px; }
  .user-profile-cats { justify-content: center; }
  .user-profile-name { font-size: 1.2rem; }
  .user-profile-body { padding: 20px; }
}

/* ===== CHAT OLDAL ===== */
.chat-page {
  display: flex;
  min-height: calc(100vh - 60px);
}
.chat-sidebar {
  width: 280px;
  border-right: 1px solid var(--border);
  background: var(--surface);
  flex-shrink: 0;
  overflow-y: auto;
}
.chat-sidebar-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}
.chat-sidebar-header h3 {
  font-family: 'Poppins', sans-serif;
  font-size: 1.1rem; font-weight: 600; color: var(--purple);
  margin-top: 8px;
}
.chat-list {
  padding: 8px 0;
}
.chat-list-item {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 20px; cursor: pointer;
  transition: all 0.15s; border-bottom: 1px solid var(--border);
}
.chat-list-item:hover {
  background: var(--purple-light);
}
.chat-list-item.active {
  background: var(--purple-light); border-left: 3px solid var(--purple);
}
.chat-list-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: linear-gradient(135deg, var(--purple), #B388FF);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.9rem; color: white;
  flex-shrink: 0; overflow: hidden;
}
.chat-list-avatar img {
  width: 40px; height: 40px; border-radius: 50%; object-fit: cover;
}
.chat-list-name {
  font-weight: 600; font-size: 0.9rem; color: var(--text);
}
.chat-list-preview {
  font-size: 0.78rem; color: var(--text3);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  max-width: 180px;
}
.chat-list-time {
  font-size: 0.7rem; color: var(--text3); margin-top: 2px;
}

/* Chat fő terület */
.chat-main {
  flex: 1; display: flex; flex-direction: column;
  min-width: 0; background: var(--bg);
  min-height: 0;
}
.chat-empty {
  display: flex; align-items: center; justify-content: center;
  height: 100%; color: var(--text3); font-size: 1.1rem;
}
.chat-conversation {
  display: flex; flex-direction: column;
  flex: 1;
  min-height: 0;
}
.chat-conversation-header {
  display: flex; align-items: center; gap: 12px;
  padding: 16px 24px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}
.chat-partner-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg, var(--purple), #B388FF);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.85rem; color: white;
  flex-shrink: 0; overflow: hidden;
}
.chat-partner-avatar img {
  width: 36px; height: 36px; border-radius: 50%; object-fit: cover;
}
.chat-partner-name {
  font-family: 'Poppins', sans-serif;
  font-weight: 600; font-size: 1rem; color: var(--text);
}
.chat-messages {
  flex: 1; overflow-y: auto;
  padding: 20px 24px;
  display: flex; flex-direction: column; gap: 8px;
  min-height: 200px;
}
.chat-msg {
  max-width: 70%;
  padding: 10px 16px;
  border-radius: 16px;
  font-size: 0.92rem;
  line-height: 1.5;
  word-break: break-word;
}
.chat-msg-sent {
  background: var(--purple);
  color: white;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}
.chat-msg-received {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}
.chat-msg-time {
  font-size: 0.65rem;
  opacity: 0.6;
  margin-top: 4px;
  display: block;
}
.chat-input-row {
  display: flex; gap: 8px;
  padding: 16px 24px;
  border-top: 1px solid var(--border);
  background: var(--surface);
  flex-shrink: 0;
}
.chat-input-row input {
  flex: 1; padding: 12px 16px;
  border: 1px solid var(--border); border-radius: 12px;
  font-size: 0.95rem; font-family: 'Poppins', sans-serif;
  background: var(--bg); color: var(--text);
}
.chat-input-row input:focus {
  outline: none; border-color: var(--purple);
}

.chat-start-btn {
  flex-shrink: 0; align-self: center;
}

@media (max-width: 768px) {
  .chat-page { flex-direction: column; }
  .chat-sidebar { width: 100%; border-right: none; border-bottom: 1px solid var(--border); max-height: 40vh; }
  .chat-conversation { height: 60vh; }
}
#toast-container { position: fixed; bottom: 24px; right: 24px; z-index: 9999; display: flex; flex-direction: column; gap: 8px; }
.toast { background: var(--dark2); color: white; padding: 14px 22px; border-radius: 10px; font-size: 0.88rem; box-shadow: var(--shadow-lg); animation: slideIn 0.3s ease; max-width: 340px; border-left: 3px solid var(--purple); }
.toast.success { border-left-color: var(--success); }
.toast.error { border-left-color: var(--error); }
@keyframes slideIn { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
.loading { text-align: center; padding: 50px; color: var(--text3); font-size: 0.95rem; }
.empty-state { text-align: center; padding: 60px 20px; color: var(--text3); }
.empty-state .emoji { font-size: 3rem; margin-bottom: 16px; }
.empty-state p { font-size: 1rem; }
.custom-marker { background: none !important; border: none !important; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .header-right { display: flex; }
  .header-right .btn { padding: 8px 14px; font-size: 0.8rem; }
  .header-right .btn-ghost { padding: 8px 14px; font-size: 0.8rem; }
  .header-right .btn-gold { padding: 8px 14px; font-size: 0.8rem; }
  .hero-main { padding-top: 60px; }
  .hero-main-inner { flex-direction: column; padding: 20px 16px; gap: 20px; }
  .hero-title { font-size: 1.6rem; }
  .hero-subtitle { font-size: 1.1rem; }
  .hero-text h1 { font-size: 1.6rem; }
  .hero-image { max-width: 100%; }
  .hero-image img { max-height: 300px; }
  .search-section { padding: 10px 16px; }
  .search-bar { flex-direction: column; border-radius: 20px; padding: 8px; }
  .search-item { width: 100%; justify-content: flex-start; padding: 10px 12px; font-size: 0.85rem; }
  .search-item-icon { width: 20px; height: 20px; }
  .search-divider { width: 100%; height: 1px; }
  .search-oval { width: 100%; justify-content: center; padding: 10px; font-size: 0.85rem; }
  .stats-section { padding: 10px 16px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .stat-card { padding: 10px 8px; }
  .stat-num { font-size: 1.4rem; }
  .stat-icon-img { width: 20px; height: 20px; padding: 3px; }
  .stat-label { font-size: 0.75rem; }
  .category-images-section { padding: 16px; }
  .category-quote { font-size: 1.4rem; }
  .category-images-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .container { padding-top: 60px; padding-left: 16px; padding-right: 16px; }
  .profiles-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
  .posts-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
  .checkbox-group { grid-template-columns: 1fr; }
  .main-map { height: 320px; }
  .map-search { flex-direction: column; }
  .city-input-wrapper { flex-direction: column; }
  .section { padding: 30px 16px; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .quote { font-size: 1.2rem; }
}

/* ===== HERO CTA GOMBOK (mobilos Heallist-stílus) ===== */
.hero-cta-buttons {
  display: flex; flex-direction: column; gap: 10px;
  margin-top: 24px;
}
@media (min-width: 769px) {
  .hero-cta-buttons {
    flex-direction: row; gap: 12px;
  }
  .hero-cta-buttons .btn-full { width: auto; flex: 1; }
}

/* ===== DASHBOARD HERO CONTENT (csak mobil) ===== */
.dashboard-hero-content {
  display: none;
}
.dashboard-hero-title {
  font-family: 'Poppins', sans-serif;
  font-size: 1.6rem; font-weight: 700;
  color: var(--purple); margin-bottom: 8px;
  max-width: 600px;
}
.dashboard-hero-subtitle {
  font-size: 0.95rem; color: var(--text3);
  margin-bottom: 20px;
}
@media (max-width: 768px) {
  .dashboard-hero-content {
    display: flex; flex-direction: column;
    position: static;
    align-items: center; justify-content: center;
    text-align: center;
    width: 100%;
    padding: 14px 16px 26px;
    background: none;
  }
  .dashboard-hero-title,
  .dashboard-hero-subtitle {
    display: none;
  }
  .dashboard-hero .hero-cta-buttons {
    width: 90%;
  }
  .dashboard-hero .hero-cta-buttons .btn-full {
    padding: 10px 16px;
    font-size: 0.85rem;
  }
}

/* ===== CTA SZEKCIÓ (gyakorlóknak) ===== */
.cta-section {
  background: linear-gradient(135deg, var(--purple-light) 0%, rgba(201,168,76,0.08) 100%);
  padding: 40px 24px; text-align: center;
}
.cta-title {
  font-family: 'Poppins', sans-serif;
  font-size: 1.6rem; font-weight: 700;
  color: var(--purple); margin-bottom: 12px;
}
.cta-subtitle {
  font-size: 0.95rem; color: var(--text3);
  max-width: 500px; margin: 0 auto 20px;
}
.cta-bullets {
  display: flex; flex-direction: column; gap: 8px;
  max-width: 400px; margin: 0 auto 24px;
  text-align: left;
}
.cta-bullet {
  font-size: 0.9rem; color: var(--text); font-weight: 500;
}

/* ===== MOBIL: Heallist-stílusú kategória chip-ek scroll ===== */
@media (max-width: 768px) {
  .categories-grid {
    grid-template-columns: 1fr !important;
  }
  .cat-sub {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    gap: 8px;
    padding-bottom: 8px;
  }
  .cat-sub span {
    white-space: nowrap;
    flex-shrink: 0;
  }
  /* Mobil: keresősáv elrejtése, csak CTA gombok */
  .dashboard-search-section {
    display: none;
  }
  /* Mobil: why-list egy oszlop */
  .why-list {
    flex-direction: column;
  }
  .why-item {
    min-width: 100%;
  }
}

/* ===== JOGI OLDALAK (adatkezelés, ÁSZF, impresszum) ===== */
.legal-page { max-width: 780px; margin: 0 auto; padding: 32px 20px 64px; }
.legal-page h2 { font-family: 'Poppins', sans-serif; font-size: 1.7rem; font-weight: 700; color: var(--purple); margin: 12px 0 4px; }
.legal-updated { font-size: 0.82rem; color: var(--text3); margin-bottom: 18px; }
.legal-intro { font-size: 0.95rem; color: var(--text); line-height: 1.7; margin-bottom: 22px; }
.legal-section { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px 24px; margin-bottom: 14px; box-shadow: 0 2px 10px rgba(13,13,26,0.04); }
.legal-section h3 { font-family: 'Poppins', sans-serif; color: var(--purple); font-size: 1.02rem; font-weight: 600; margin-bottom: 10px; }
.legal-section p, .legal-section li { font-size: 0.92rem; color: var(--text3); line-height: 1.7; margin-bottom: 8px; }
.legal-section ul { padding-left: 20px; margin: 0 0 8px 0; }
.legal-section li { margin-bottom: 6px; }
.legal-highlight { background: var(--gold-light); border: 1px solid rgba(201,168,76,0.45); border-radius: 10px; padding: 14px 16px; font-size: 0.92rem; color: #8A6D1F; line-height: 1.65; font-weight: 500; }
.legal-placeholder { background: #FDECEC; color: #C0392B; border: 1px dashed #E74C3C; border-radius: 6px; padding: 1px 8px; font-weight: 600; font-size: 0.88rem; }
.footer-disclaimer { font-size: 0.78rem; color: rgba(255,255,255,0.45); max-width: 720px; margin: 0 auto 10px; line-height: 1.5; }

/* ===== MODÁL PÁRBESZÉDABLAKOK (csatlakozás választó, fiók törlés) ===== */
.modal-panel { position: fixed; inset: 0; z-index: 260; display: flex; align-items: center; justify-content: center; padding: 20px; }
.modal-overlay { position: absolute; inset: 0; background: rgba(13,13,26,0.65); }
.modal-card { position: relative; background: var(--surface); border-radius: var(--radius); padding: 34px 28px 24px; max-width: 380px; width: 100%; text-align: center; box-shadow: 0 20px 60px rgba(0,0,0,0.3); }
.modal-card h3 { font-family: 'Poppins', sans-serif; color: var(--purple); font-size: 1.25rem; margin-bottom: 8px; }
.modal-card p { font-size: 0.92rem; color: var(--text3); line-height: 1.65; margin-bottom: 20px; }
.modal-card .btn { margin-bottom: 10px; }
.modal-close { position: absolute; top: 10px; right: 12px; background: none; border: none; font-size: 1.1rem; color: var(--text3); cursor: pointer; padding: 4px 8px; }
.modal-close:hover { color: var(--text); }

/* ===== FIOK TÖRLÉS (veszélyes zóna a Beállításokban) ===== */
.profile-danger-zone { margin-top: 28px; background: #FEF2F2; border: 1px solid rgba(212,68,59,0.35); border-radius: var(--radius); padding: 20px 24px; text-align: center; }
.profile-danger-zone h3 { color: var(--error); font-size: 1rem; margin-bottom: 8px; font-family: 'Poppins', sans-serif; }
.profile-danger-zone p { font-size: 0.85rem; color: var(--text3); line-height: 1.6; margin-bottom: 14px; }

/* ===== STASZTIKA KÁRTYÁK — kattinthatók (regisztrációs figyelmeztetés) ===== */
.stats-section .stat-card { cursor: pointer; }
.stats-section .stat-card:active { transform: scale(0.97); }

/* ===== SZEREP RENDSZER (Kereső / Segítő) ===== */
.role-select { display: flex; gap: 12px; }
.role-option { flex: 1; border: 2px solid var(--border); border-radius: var(--radius); padding: 16px 12px; text-align: center; cursor: pointer; transition: all 0.25s; background: var(--surface); }
.role-option:hover { border-color: var(--purple); }
.role-option.selected { border-color: var(--gold); background: #FDFAF2; box-shadow: 0 4px 15px rgba(201,168,76,0.18); }
.role-option .role-emoji { font-size: 1.6rem; display: block; margin-bottom: 6px; }
.role-option strong { display: block; color: var(--purple); font-family: 'Poppins', sans-serif; font-size: 0.95rem; }
.role-option small { display: block; color: var(--text3); font-size: 0.75rem; margin-top: 4px; line-height: 1.4; }

.role-switch { display: flex; gap: 10px; }
.role-pill { flex: 1; padding: 10px 16px; border: 2px solid var(--border); border-radius: 24px; background: var(--surface); font-family: inherit; font-size: 0.9rem; font-weight: 600; color: var(--text3); cursor: pointer; transition: all 0.25s; }
.role-pill:hover { border-color: var(--purple); color: var(--purple); }
.role-pill.active { background: var(--purple); border-color: var(--purple); color: white; }

.chat-profile-btn { flex-shrink: 0; }
@media (max-width: 768px) {
  .role-select { flex-direction: column; }
  .role-option { display: flex; align-items: center; gap: 12px; text-align: left; padding: 12px 16px; }
  .role-option .role-emoji { font-size: 1.4rem; margin-bottom: 0; }
}
