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

:root {
  /* Alap világos háttér */
  --bg: #f8fafc;
  --bg-soft: #ffffff;

  /* InLove akcentus – pink */
  --accent: #ec4899;
  --accent-soft: rgba(236, 72, 153, 0.12);
  --accent-strong: #db2777;

  /* Szövegek */
  --text: #0f172a; /* általános szöveg (világos háttéren) */
  --text-on-dark: #e5e7eb; /* szöveg sötét blokkokon (pl. mobil menü) */
  --muted: #64748b;

  /* Állapot színek */
  --error: #f97373;
  --success: #16a34a;

  /* Lekerekítések */
  --radius-lg: 18px;
  --radius-pill: 999px;
}

/* Háttér, középre igazítás */
body {
  min-height: 100vh;
  background:
    radial-gradient(circle at top, rgba(56, 189, 248, 0.25), transparent 60%),
    radial-gradient(
      circle at bottom,
      rgba(129, 140, 248, 0.18),
      transparent 55%
    ),
    var(--bg);
  font-family:
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: var(--text);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start; /* ⬅️ NEM középre, hanem felülről indul */
  padding: 2.5rem 1.5rem 1.5rem; /* ⬅️ kis felső margó */
}

/* Kártya jellegű elrendezés az oldalon lévő tartalomnak */
body > h1 {
  margin-bottom: 0.75rem;
  text-align: center;
  letter-spacing: 0.03em;
}

body > p {
  margin-bottom: 0.75rem;
  text-align: center;
  color: var(--muted);
}

/* Form kártya */
.app-main.app-main-auth form {
  width: 100%;
  max-width: 420px;
  background: var(--bg-soft);
  padding: 1.75rem 1.9rem;
  border-radius: var(--radius-lg);
  box-shadow:
    0 18px 45px rgba(15, 23, 42, 0.85),
    0 0 0 1px rgba(148, 163, 184, 0.25);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 0.75rem;
}

/* Profile oldal – form kártya */
.app-main form.profile-form {
  width: 100%;
  max-width: 520px;
  background: var(--bg-soft);
  padding: 1.75rem 1.9rem;
  border-radius: var(--radius-lg);
  box-shadow:
    0 18px 45px rgba(15, 23, 42, 0.85),
    0 0 0 1px rgba(148, 163, 184, 0.25);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 1.25rem auto 2.5rem;
}

/* Hibák / siker üzenetek */
p[style*="color:red"] {
  color: var(--error) !important;
  margin-bottom: 0.75rem;
  text-align: center;
}

p[style*="color:green"] {
  color: var(--success) !important;
  margin-bottom: 0.75rem;
  text-align: center;
}

/* Űrlap elemek */
label {
  font-size: 0.9rem;
  color: var(--muted);
  display: block;
  margin-bottom: 0.25rem;
}

input[type="email"],
input[type="password"],
input[type="text"] {
  width: 100%;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(148, 163, 184, 0.4);
  padding: 0.7rem 1rem;
  font-size: 0.95rem;
  background: #f9fafb; /* világos mező */
  color: var(--text);
  outline: none;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease,
    background 0.15s ease;
}

input[type="email"]:focus,
input[type="password"]:focus,
input[type="text"]:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(236, 72, 153, 0.35);
  background: #ffffff;
}

input[type="number"],
input[type="date"],
select {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box; /* ⬅ ne lógjon túl a szülő szélességén */
  border-radius: var(--radius-pill);
  border: 1px solid rgba(148, 163, 184, 0.4);
  padding: 0.7rem 1rem;
  font-size: 0.95rem;
  background: #f9fafb;
  color: var(--text);
  outline: none;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease,
    background 0.15s ease;
}

/* Profil űrlap dátummező – ne natív widget, hanem a saját stílusunk legyen */
.profile-form input[type="date"] {
  -webkit-appearance: none;
  appearance: none;
  max-width: 100%;
}

input[type="number"]:focus,
input[type="date"]:focus,
select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(236, 72, 153, 0.35);
  background: #ffffff;
}

textarea {
  width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  padding: 0.7rem 0.9rem;
  font-size: 0.85rem;
  background: #f9fafb;
  color: var(--text);
  outline: none;
  resize: vertical;
  min-height: 120px;
}

textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(236, 72, 153, 0.35);
  background: #ffffff;
}

/* Gomb – InLove akcentus, világos UI-hoz igazítva */
button[type="submit"] {
  margin-top: 0.5rem;
  border: none;
  border-radius: var(--radius-pill);
  padding: 0.75rem 1.2rem;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  background: var(--accent, #ff4b8b);
  color: #fdf2f8; /* enyhén rózsaszínes fehér szöveg */

  transition:
    transform 0.08s ease,
    box-shadow 0.08s ease,
    filter 0.08s ease;
}

button[type="submit"]:hover {
  transform: translateY(-1px);
  filter: brightness(1.04);
}

button[type="submit"]:active {
  transform: translateY(0);
  box-shadow:
    0 8px 18px rgba(236, 72, 153, 0.4),
    0 0 0 1px rgba(248, 187, 208, 0.9);
}

/* Linkek */
a {
  color: #5faaff;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

body > p a {
  font-weight: 500;
}

/* Főoldal extra */
hr {
  width: 100%;
  max-width: 520px;
  border: none;
  border-top: 1px solid rgba(148, 163, 184, 0.35);
  margin: 1rem 0;
}

/* === App keret + fejléc === */

.app-shell {
  width: 100%;
  max-width: 1200px; /* szép, széles, modern layout */
  margin: 0 auto;
}

header.app-header {
  width: 100%;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border-radius: 18px;
  padding: 0.9rem 1.4rem;
  margin-bottom: 1.2rem;
  box-shadow:
    0 18px 40px rgba(15, 23, 42, 0.06),
    0 0 0 1px rgba(148, 163, 184, 0.35);
  display: flex;
  align-items: center;
  justify-content: space-between;

  position: relative;
  z-index: 100000;
}

.app-header-left {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.app-logo {
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.app-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.app-title {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: #e6397a; /* pl. InLove-rózsaszín :) */
}

.app-subtitle {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 0.5rem;
  text-align: center;
}

.app-header-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9rem;
}

.app-pill {
  padding: 0.2rem 0.75rem;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.16);
  border: 1px solid rgba(148, 163, 184, 0.65);
  color: var(--text);
}

.app-nav-link {
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.5);
  background: #ffffff;
  color: var(--text);
  font-weight: 500;
  text-decoration: none;
  transition:
    background 0.12s ease,
    border-color 0.12s ease,
    transform 0.08s ease,
    box-shadow 0.12s ease;
}

.app-nav-link:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
}

.app-nav-link.primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  border-color: rgba(248, 113, 170, 0.7);
  color: #fdf2f8;
}

/* A fő tartalom szépen illeszkedjen a fejléchez */
main.app-main {
  width: 100%;
  max-width: 80%;
  margin: 0 auto;
}

/* === Kezdőlap hero szekció === */

.home-hero {
  padding: 3rem 0 4rem; /* kevesebb oldalsó padding → több hely az oszlopoknak */
}

.home-hero-inner {
  max-width: 1280px; /* nagyobb konténer */
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); /* kicsit szélesebb bal oszlop */
  gap: 2rem; /* kisebb rés a két oszlop között */
  align-items: center;
}

.home-hero-title {
  font-size: clamp(28px, 3vw, 34px);
  margin-bottom: 0.75rem;
}

.home-hero-lead {
  font-size: clamp(15px, 1.25vw, 18px);
  line-height: 1.75;
  color: var(--muted); /* normál, sötétebb szöveg világos háttéren */
  font-weight: 300;
  margin-top: 1rem;
  margin-bottom: 2rem;
  max-width: 620px;
  text-align: left;
  letter-spacing: 0.2px;
}

.home-hero-lead strong {
  font-weight: 500;
  color: var(--text); /* erősebb, de sötét szöveg */
}

.home-hero-info {
  margin-top: 1rem;
  color: var(--muted, #666);
}

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

.home-hero-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.4rem;
  border-radius: 999px;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
}

.home-hero-btn-primary {
  background: #e6397a;
  color: #fff;
  border-color: #e6397a;
}

.home-hero-btn-primary:hover {
  filter: brightness(1.05);
}

.home-hero-btn-ghost {
  background: transparent;
  color: #e6397a;
  border-color: #e3b2c7;
}

.home-hero-btn-ghost:hover {
  background: rgba(230, 57, 122, 0.05);
}

.home-hero-small {
  margin-top: 0.75rem;
  font-size: 0.9rem;
  color: var(--muted, #777);
}

/* Jobb oldali illusztráció – kör alakú, “szellemkép” */

.home-hero-illustration {
  min-height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-image-circle {
  width: 380px;
  height: 280px;
  border-radius: 18px; /* ⬅️ szépen lekerekített kártya */
  overflow: hidden;
  position: relative;
  background: radial-gradient(
    circle at 30% 0%,
    rgba(255, 255, 255, 0.18),
    transparent 60%
  );
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.5);
}

.hero-image-circle::before {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: inherit;
  background: radial-gradient(
    circle at 10% 0%,
    rgba(255, 255, 255, 0.35),
    transparent 65%
  );
  opacity: 0.4;
  pointer-events: none;
}

.hero-image-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.25; /* itt lesz “teljesen átlátszó” hatás */
  filter: grayscale(20%);
}

/* mobilra kicsit kisebb kör */
@media (max-width: 768px) {
  .hero-image-circle {
    width: 280px;
    height: 280px;
  }
}

.app-footer {
  width: 100%;
  margin-top: 3rem;
  padding: 1.5rem 0;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
  opacity: 0.8;
}

.app-footer .footer-links a {
  color: var(--muted);
  margin: 0 0.5rem;
  text-decoration: none;
  transition: color 0.15s ease;
}

.app-footer .footer-links a:hover {
  color: var(--accent);
}

.footer-divider {
  width: 100%;
  max-width: 1600px;
  margin: 2.5rem auto 1.5rem auto;
  border: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(91, 99, 110, 0.4),
    transparent
  );
  box-shadow: 0 0 12px rgba(148, 163, 184, 0.4);
}

.app-footer a {
  color: #5faaff;
  font-weight: 500;
}

.app-footer a:hover {
  text-decoration: underline;
}

.footer-spacer {
  height: 210px; /* ha kevés, nyugodtan emeld 160–200px-re */
}
/* === Főoldal – 3 pontos bizalmi mini-szekció === */

.home-trust-strip {
  margin: 0.5rem 0 3.25rem;
}

.home-trust-strip-inner {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid rgba(148, 163, 184, 0.28);
  border-bottom: 1px solid rgba(148, 163, 184, 0.28);
  background: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(6px);
}

.trust-item {
  padding: 1.6rem 1.4rem 1.5rem;
  min-width: 0;
}

.trust-item + .trust-item {
  border-left: 1px solid rgba(148, 163, 184, 0.22);
}

.trust-item h2 {
  margin: 0 0 0.55rem;
  font-size: 1.08rem;
  line-height: 1.3;
  font-weight: 700;
  color: var(--text);
}

.trust-item p {
  margin: 0;
  max-width: 28ch;
  font-size: 0.96rem;
  line-height: 1.65;
  color: var(--muted);
}

@media (max-width: 980px) {
  .home-trust-strip-inner {
    grid-template-columns: 1fr;
  }

  .trust-item + .trust-item {
    border-left: 0;
    border-top: 1px solid rgba(148, 163, 184, 0.22);
  }

  .trust-item p {
    max-width: 100%;
  }
}

@media (max-width: 860px) {
  .home-trust-strip {
    margin: 0 0 2.5rem;
  }

  .home-trust-strip-inner {
    border-radius: 16px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.78);
  }

  .trust-item {
    padding: 1.15rem 1rem 1.1rem;
  }

  .trust-item h2 {
    font-size: 1rem;
    margin-bottom: 0.4rem;
  }

  .trust-item p {
    font-size: 0.92rem;
    line-height: 1.55;
  }
}

/* === Hogyan működik – 3 lépés blokk === */

.how-it-works {
  margin-top: 4rem;
  text-align: center;
}

.how-it-works h2 {
  font-size: 1.8rem;
  margin-bottom: 2rem;
}

.how-steps {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.step {
  background: #ffffff; /* fehér kártya */
  padding: 1.4rem;
  border-radius: 14px;
  width: 260px;
  text-align: center;
  border: 1px solid rgba(148, 163, 184, 0.35);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    background 0.25s ease;
}

.step-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-strong);
}

.step-icon svg {
  width: 26px;
  height: 26px;
  display: block;
}

.step h3 {
  margin-bottom: 0.4rem;
  font-size: 1.2rem;
  color: var(--text); /* erősebb cím */
}

.step p {
  font-size: 0.9rem;
  color: var(--muted); /* halványabb leírás */
}

/* === KIEMELT FELHASZNÁLÓK === */

.featured-users {
  margin-top: 4rem;
}

.featured-grid {
  margin-top: 1.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 280px));
  justify-content: center;
  gap: 1.5rem;
}

.featured-card {
  background: #ffffff; /* fehér kártya */
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 14px;
  padding: 1rem;
  text-align: center;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.06);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

.featured-card:hover {
  background: var(--accent-soft);
  transform: translateY(-3px);
  box-shadow: 0 16px 35px rgba(15, 23, 42, 0.12);
}

.featured-card a {
  color: inherit;
  text-decoration: none;
}

/* -- ÚJ egységesített avatar (ugyanaz, mint a carousel-ben) -- */
.featured-avatar {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 10px;
  opacity: 0.95;
  transition: 0.2s ease;
}

.featured-card:hover .featured-avatar {
  transform: scale(1.04);
  opacity: 1;
}

/* -- Név + város egységesítése a carousel megjelenéssel -- */
.featured-card h3,
.featured-card .featured-city {
  margin: 0.4rem 0 0;
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.35;
  text-align: center;
}

.featured-card h3 {
  color: var(--text); /* név – erősebb szöveg */
}

.featured-card .featured-city {
  color: var(--muted); /* város – halványabb szöveg */
}

.love-banner {
  width: 100%;
  margin: 3rem 0 4rem;
  padding: 4rem 1rem;
  border-radius: 20px;

  background: url("/assets/img/love-banner.jpg") center/cover no-repeat;
  position: relative;
  overflow: hidden;
  box-shadow:
    0 20px 45px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(255, 255, 255, 0.05);
}

.love-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(2, 6, 23, 0.65), rgba(2, 6, 23, 0.85));
  backdrop-filter: blur(0px);
}

.love-banner-inner {
  position: relative;
  z-index: 5;
  text-align: center;
  color: #fff;
  max-width: 680px;
  margin: 0 auto;
}

.love-banner-inner h2 {
  font-size: clamp(26px, 4vw, 36px);
  font-weight: 700;
  margin-bottom: 0.8rem;
  text-shadow: 0 3px 12px rgba(0, 0, 0, 0.55);
}

.love-banner-inner p {
  font-size: 1.05rem;
  margin-bottom: 1.8rem;
  color: rgba(255, 255, 255, 0.85);
}

.love-banner-btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 999px;
  background: linear-gradient(135deg, #e63673, #f14984);
  color: #fff;
  text-decoration: none;
  box-shadow: 0 12px 30px rgba(229, 54, 114, 0.45);
  transition: 0.2s ease;
}

.love-banner-btn:hover {
  filter: brightness(1.08);
  transform: translateY(-2px);
}

/* === SITE STATS – STABIL, ERŐSEBB SÖTÉT BLOKK === */

.site-stats {
  margin: 3rem 0 4rem;
}

.site-stats-inner {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

@media (min-width: 900px) {
  .site-stats-inner {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.stat-card {
  padding: 1rem 1.1rem;
  border-radius: 16px;
  background: #ffffff; /* világos kártya */
  border: 1px solid rgba(148, 163, 184, 0.35);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
  text-align: center;
}

.stat-icon {
  width: 40px;
  height: 40px;
  margin: 0 auto 0.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent); /* alap ikon szín */
}

.stat-icon svg {
  width: 34px;
  height: 34px;
}

/* ONLINE DOT – profi zöld LED */
.stat-icon.online-dot span {
  width: 18px;
  height: 18px;
  background: #22c55e;
  border-radius: 50%;
  box-shadow: 0 0 10px #22c55e;
}

.stat-card--online .stat-icon {
  color: #22c55e; /* zöld "online" jelzés */
}

.stat-value {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.1;
}

.stat-label {
  margin-top: 0.25rem;
  font-size: 0.85rem;
  letter-spacing: 0.01em;
  color: var(--muted);
}

/* AUTH oldalak: login / register / forgot / reset
   - csak extra függőleges térköz
   - a tartalmat középre húzzuk egy keskenyebb oszlopban
*/
.app-main.app-main-auth {
  padding: 4rem 1.5rem 4rem; /* több levegő fent-lent */
}

/* Címsor középre zárva, fix max szélességgel */
.app-main.app-main-auth h1 {
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

/* Alcím + felső bekezdések középen futó blokkban, de maradhatnak balra zárva */
.app-main.app-main-auth .app-subtitle,
.app-main.app-main-auth > p {
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.app-main.app-main-auth form {
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
  margin-top: 4rem;
  margin-bottom: 4rem;
}

/* Auth oldalakon szellősebb szöveg */
.app-main.app-main-auth p,
.app-main.app-main-auth .app-subtitle {
  line-height: 1.6;
  font-size: 0.95rem;
}

/* 2FA / login form alatti magyarázó szöveg kicsit lejjebb */
.app-main.app-main-auth form + p {
  margin-top: 1.5rem;
}

.social-login {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: stretch; /* gombok teljes szélességben */
}

.social-login-note {
  margin: 0 0 0.75rem;
  text-align: center;
  font-size: 0.92rem;
  line-height: 1.45;
  color: var(--muted, #64748b);
  max-width: 34rem;
  margin-left: auto;
  margin-right: auto;
}
.social-login-note strong {
  color: var(--text, #0f172a);
  font-weight: 600;
}

.social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;

  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  border: 1px solid #d1d5db;

  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.2;
  text-align: center;
  white-space: nowrap;
  margin-bottom: 0.75rem;
}

.social-btn__icon-img {
  width: 22px;
  height: 22px;
  display: block;
}

/* Apple gombon a fekete logót világosítjuk */
.social-btn--apple .social-btn__icon-img {
  filter: invert(1);
}

.social-btn--google {
  background: #ffffff;
  color: #111827;
}

.social-btn--apple {
  background: #000000;
  color: #ffffff;
}

.social-btn--disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Normalizáljuk a BUTTON alap stílusát a social gomboknál */
button.social-btn {
  background: #ffffff;
  color: #111827;
  border: 1px solid #d1d5db;
  font: inherit; /* ne legyen "gombos" font, vegye át az oldalét */
  cursor: pointer;
}

/* Hover állapot – finom, elegáns */
button.social-btn:hover {
  background: #f9fafb;
}

/* Ha külön Google-színt akarsz, itt tovább finomíthatod */
button.social-btn.social-btn--google {
  background: #ffffff;
  color: #111827;
}

button.social-btn {
  background: #ffffff;
  color: #111827;
  border: 1px solid #d1d5db;
  font: inherit;
  cursor: pointer;
  box-shadow: none;
}

/* Saját fókusz stílus */
button.social-btn:focus,
button.social-btn:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
  box-shadow: none;
}

/* 🔒 Prémiumhoz kötött elemek – zárt állapot */
.user-card-meta--locked,
.user-card-bio--locked {
  opacity: 0.8;
  font-style: italic;
  font-size: 0.9rem;
}

/* opcionális: kis „szalag” érzet */
.user-card-bio--locked {
  border-left: 3px solid #f0b429;
  padding-left: 0.75rem;
}

.user-card-btn--locked {
  opacity: 0.6;
  cursor: not-allowed;
}

.verified-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  margin-left: 0.4rem;
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;

  border: 1px solid #22c55e;
  color: #000000;
  background: rgba(22, 163, 74, 0.12);
}

.verified-badge::before {
  content: "🛡️";
  font-size: 0.8rem;
}

/* Mobilon: csak a pajzs ikon (nincs háttér/keret, nincs szöveg) */
@media (max-width: 520px) {
  .verified-badge {
    font-size: 0; /* szöveg eltűnik */
    padding: 0;
    margin-left: 0.4rem; /* maradhat egy kis távolság a névtől */
    border: 0;
    background: transparent;
  }

  .verified-badge::before {
    font-size: 0.9rem; /* pajzs mérete */
  }
}

.app-header-email {
  font-size: 0.85rem;
  color: var(--muted);
}

/* === Fiókom menü – világos, kártyás stílus === */
.app-user-menu {
  position: relative;
}

.app-user-menu-toggle {
  border-radius: var(--radius-pill);
  padding: 0.45rem 0.9rem;
  font-size: 0.9rem;
  font-weight: 500;
  border: 1px solid rgba(148, 163, 184, 0.6);
  background: #ffffff;
  color: var(--text);
  cursor: pointer;
  transition:
    background 0.12s ease,
    border-color 0.12s ease,
    box-shadow 0.12s ease,
    transform 0.08s ease;
}

.app-user-menu-toggle:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.12);
  transform: translateY(-1px);
}

/* A lenyíló kártya – világos, mint a többi UI */
.app-user-menu-dropdown {
  position: absolute;
  top: 200%;
  right: -25px;
  min-width: 220px;
  background: #ffffff;
  border-radius: 0.75rem;
  border: 1px solid rgba(148, 163, 184, 0.35);
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
  padding: 0.4rem 0;
  display: none;
  z-index: 99999;
}

.app-user-menu-dropdown.is-open {
  display: block;
}

.app-user-menu-dropdown a {
  display: block;
  padding: 0.45rem 1rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: #111827; /* erős, sötét szöveg */
  text-decoration: none;
  white-space: nowrap;
}

.app-user-menu-dropdown a:hover {
  background: var(--accent-soft);
  color: #111827;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0.75rem 0;
  font-size: 0.9rem;
  color: rgba(148, 163, 184, 0.95); /* halvány szürke szöveg */
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  border-bottom: 1px solid rgba(75, 85, 99, 0.6); /* vonal színe */
}

/* Ha a szöveg legyen kicsit finomabb */
.auth-divider span {
  white-space: nowrap;
}

/* === FLASH ÜZENETEK STÍLUSA === */

.flash {
  padding: 0.75rem 1rem;
  border-radius: 8px;
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
  line-height: 1.4;
  display: inline-block;
  transition:
    opacity 0.4s ease,
    transform 0.4s ease;
}

.flash-success {
  background: #ecfdf3;
  color: #14532d;
  border: 1px solid #bbf7d0;
}

.flash-error {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.flash-hide {
  opacity: 0;
  transform: translateY(-4px);
  pointer-events: none;
}

/* === Header – alap finomítások === */
.app-avatar {
  width: 52px;
  height: 52px;
  border-radius: 999px;
  object-fit: cover;
  border: 1px solid rgba(148, 163, 184, 0.45);
  display: block;
}

.app-nav-toggle {
  display: none;
  border-radius: 999px;
  padding: 0.45rem 0.85rem;
  font-size: 1.05rem;
  border: 1px solid rgba(148, 163, 184, 0.6);
  background: rgba(15, 23, 42, 0.95);
  color: var(--text);
  cursor: pointer;
}

/* Mobil menü – bottom sheet (stabil, nem “mászik fel” végtelenre) */
.app-mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, 0.55);
  z-index: 9999;
}

/* maga a sheet */
.app-mobile-nav-inner {
  position: fixed;
  left: 50%;
  bottom: 0;

  width: min(620px, calc(100% - 1.5rem));
  max-height: 80vh; /* ✅ ne nőjön a végtelenbe */
  overflow-y: auto; /* ✅ inkább belül görgessünk */
  -webkit-overflow-scrolling: touch; /* ✅ iOS “smooth” */

  background: #ffffff;
  border: 1px solid rgba(148, 163, 184, 0.45);
  border-radius: 18px 18px 0 0;
  box-shadow: 0 -18px 45px rgba(15, 23, 42, 0.85);

  padding: 0.75rem;
  padding-bottom: calc(0.75rem + env(safe-area-inset-bottom));

  transform: translate(-50%, 110%);
  opacity: 0;
  transition:
    transform 180ms ease,
    opacity 180ms ease;
}

/* kis “fogantyú” felül */
.app-mobile-nav-inner::before {
  content: "";
  display: block;
  width: 44px;
  height: 4px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.55);
  margin: 0.2rem auto 0.6rem;
}

.app-mobile-nav-inner a {
  display: block;
  padding: 0.75rem 0.9rem;
  border-radius: 12px;
  color: var(--text);
  text-decoration: none;
  border: 1px solid transparent;
}

.app-mobile-nav-inner a:hover {
  background: rgba(30, 64, 175, 0.35);
  border-color: rgba(148, 163, 184, 0.35);
  text-decoration: none;
}

.app-mobile-email {
  padding: 0.6rem 0.9rem;
  margin-bottom: 0.35rem;
  border-radius: 12px;
  background: rgba(2, 6, 23, 0.55);
  color: var(--muted);
  border: 1px solid rgba(148, 163, 184, 0.25);
  font-size: 0.9rem;
}

/* Nyitott állapot */
.app-mobile-nav.is-open {
  display: block;
}

.app-mobile-nav.is-open .app-mobile-nav-inner {
  transform: translate(-50%, 0);
  opacity: 1;
}

/* === Reszponzív fejléc === */
.app-tagline {
  font-size: 0.85rem;
  color: var(--muted);
}

.app-nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.55);
  background: #ffffff;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.burger {
  width: 18px;
  height: 14px;
  display: inline-flex;
  flex-direction: column;
  justify-content: space-between;
}

.burger span {
  display: block;
  height: 2px;
  border-radius: 999px;
  background: var(--text); /* sötét vonalak világos gombon */
}

/* Burger -> X animáció */
.app-nav-toggle .burger span {
  transition:
    transform 160ms ease,
    opacity 160ms ease;
  transform-origin: center;
}

/* Nyitott állapotban X */
.app-nav-toggle.is-open .burger span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.app-nav-toggle.is-open .burger span:nth-child(2) {
  opacity: 0;
}
.app-nav-toggle.is-open .burger span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

@media (max-width: 860px) {
  body {
    padding: 1rem 0.75rem 1rem;
  }

  header.app-header {
    padding: 0.65rem 0.85rem;
    border-radius: 16px;
    gap: 0.75rem;
    flex-wrap: nowrap; /* 🔥 ne törjön sorba */
    position: relative;
    z-index: 99998;
  }

  .app-logo {
    width: 46px;
    height: 46px;
  }

  .app-tagline {
    display: none; /* mobilon ne legyen 2 soros szöveg */
  }

  .app-header-right {
    display: none; /* mobilon minden a menübe megy */
  }

  .app-nav-toggle {
    display: inline-flex; /* csak mobilon látszik */
    margin-left: auto; /* jobbra tolja */
  }

  main.app-main {
    max-width: 100%;
  }
}

/* === Kezdőlap hero mobilon – app-szerű kártya === */
@media (max-width: 860px) {
  .home-hero {
    padding: 1.75rem 0 2.5rem;
  }

  .home-hero-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;

    padding: 1.5rem 1.1rem 1.8rem;
    border-radius: 18px;
    background: #ffffff; /* világos kártya mobilon is */
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.9);
  }

  /* kép FELÜL */
  .home-hero-illustration {
    order: 1;
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .hero-image-circle {
    width: 100%;
    max-width: 320px;
    height: auto;
    aspect-ratio: 4 / 3;
  }

  /* szöveg ALATTA */
  .home-hero-text {
    order: 2;
    width: 100%;
    text-align: left;
  }

  .home-hero-title {
    font-size: 1.4rem;
    line-height: 1.25;
    margin-bottom: 0.75rem;
  }

  .home-hero-lead {
    font-size: 0.9rem;
    line-height: 1.6;
    margin-top: 0.5rem;
    margin-bottom: 1.25rem;
    max-width: 100%;
  }

  .home-hero-actions {
    margin-top: 1rem;
    gap: 0.5rem;
    flex-wrap: wrap;
  }

  .home-hero-btn {
    flex: 1 1 auto;
    min-width: 0;
    justify-content: center;
  }

  .home-hero-small {
    font-size: 0.8rem;
    margin-top: 0.5rem;
  }
}

/* === Felfedezés (discover.php) – rácsok === */

.recommended-users .recommended-grid,
.users-section .user-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)); /* asztalin lehet 3 */
  gap: 1.25rem;
  align-items: stretch;
}

/* Tablet + mobil: 2 oszlop */
@media (max-width: 900px) {
  .recommended-users .recommended-grid,
  .users-section .user-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem;
  }
}

/* Nagyon keskeny mobil: marad 2 oszlop, de kisebb hézag */
@media (max-width: 420px) {
  .recommended-users .recommended-grid,
  .users-section .user-grid {
    gap: 0.7rem;
  }
}

/* Kártyán belül: ne “nyúljon el” a flex tartalom miatt */
.recommended-users .user-card,
.users-section .user-card {
  min-width: 0;
}

.recommended-users .user-card-link,
.users-section .user-card-link {
  min-width: 0;
}

.scroll-top-btn {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 999px;
  border: none;
  background: var(--accent, #ff4b8b);
  color: #fff;
  font-size: 1.4rem;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
  transform: translateY(10px);
  z-index: 50;
}

.scroll-top-btn.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

/* Discover – szűrők */
.discover-filters {
  max-width: 1100px;
  margin: 12px auto 16px;
  padding: 0 12px;
}

.df-row {
  display: grid;
  grid-template-columns: 1.2fr 1.2fr 0.9fr 1.1fr auto;
  gap: 10px;
  align-items: end;
}

.df-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.df-field label {
  display: block;
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 6px 2px;
}

.df-field input,
.df-field select {
  width: 100%;
  min-height: 46px;
  border-radius: var(--radius-pill); /* ugyanaz a “kapszula”, mint máshol */
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: #f9fafb;
  padding: 0.7rem 1rem;
  color: var(--text);
  font-size: 0.95rem;
}

.df-field--range .df-range {
  display: flex;
  align-items: center;
  gap: 8px;
}

.df-field--range .df-range input {
  min-height: 46px;
}

.df-field--range .df-range span {
  opacity: 0.6;
}

.df-actions {
  display: flex;
  gap: 10px;
}

.df-btn {
  min-height: 46px;
  padding: 0 14px;
  border: 0;
  border-radius: var(--radius-pill); /* ugyanaz a forma, mint az inputok */
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  white-space: nowrap;
}

.df-btn:hover {
  background: var(--accent-strong);
}

.df-clear {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border-radius: var(--radius-pill); /* itt is kapszula forma */
  text-decoration: none;
  border: 1px solid rgba(15, 23, 42, 0.12);
  color: var(--text);
  background: var(--bg-soft);
  white-space: nowrap;
}

.df-more {
  margin-top: 10px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 14px;
  background: var(--bg-soft);
  padding: 10px 12px 12px;
}

.df-more > summary {
  cursor: pointer;
  color: var(--text);
  font-weight: 600;
  list-style: none;
}

.df-more > summary::-webkit-details-marker {
  display: none;
}

.df-premium-hint {
  grid-column: 1 / -1;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(236, 72, 153, 0.1);
  color: var(--text);
}

/* Tablet */
@media (max-width: 1024px) {
  .df-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .df-actions {
    grid-column: 1 / -1;
  }
  .df-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Mobil */
@media (max-width: 640px) {
  .df-grid {
    grid-template-columns: 1fr;
  }

  /* a felső szűrősor egymás alatt, teljes szélességen */
  .df-row {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: stretch;
  }

  .df-actions {
    width: 100%;
    display: flex;
    gap: 10px;
  }

  .df-actions .df-btn,
  .df-actions .df-clear {
    flex: 1 1 0;
    justify-content: center;
  }
}

/* Értesítések kártya – "Profil megtekintése" + Elfogadom / Elutasítom */
.meet-request-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

/* Mobilon: link felül, gombok alatt, egymás alatt / teljes soron */
@media (max-width: 768px) {
  .meet-request-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .meet-request-actions form {
    width: 100%;
  }

  .meet-request-actions form button {
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 640px) {
  input[type="text"],
  input[type="email"],
  input[type="password"],
  input[type="number"],
  input[type="date"],
  input[type="tel"],
  textarea,
  select {
    font-size: 16px;
  }
}
