/* ===== DUETT prototípus ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg: #120d1a;
  --bg2: #1c1428;
  --card: #251a35;
  --card2: #2e2143;
  --text: #f3edf9;
  --muted: #a795c0;
  --accent: #ff4d7e;
  --accent2: #b06cf7;
  --good: #3ddc97;
  --radius: 18px;
}

html, body { height: 100%; }
body {
  background: #060409;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  display: flex; justify-content: center; align-items: center;
}

#phone {
  width: 100%; max-width: 420px; height: 100vh; max-height: 880px;
  background: linear-gradient(160deg, var(--bg2) 0%, var(--bg) 60%);
  position: relative; overflow: hidden;
  display: flex; flex-direction: column;
}
@media (min-width: 480px) {
  #phone { border-radius: 28px; box-shadow: 0 0 80px rgba(176,108,247,.18); height: 92vh; }
}

/* ---- képernyők ---- */
.screen { position: absolute; inset: 0; display: none; flex-direction: column; }
.screen.active { display: flex; }

.brand {
  font-size: 38px; letter-spacing: 8px; font-weight: 800;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.brand.small { font-size: 18px; letter-spacing: 4px; }

.logo-mark {
  width: 64px; height: 64px; border-radius: 20px; margin: 0 auto 14px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  display: flex; align-items: center; justify-content: center;
  font-size: 34px; font-weight: 800; color: #fff;
  box-shadow: 0 8px 30px rgba(255,77,126,.35);
}
.logo-mark.big { width: 84px; height: 84px; font-size: 46px; border-radius: 26px; }

.tagline { color: var(--muted); margin: 8px 0 22px; font-size: 15px; }
.muted { color: var(--muted); font-size: 14px; }
.fineprint { color: #6d5d85; font-size: 11px; margin-top: 18px; line-height: 1.5; }

/* ---- gombok ---- */
.btn {
  display: block; width: 100%; padding: 15px; border: none; cursor: pointer;
  border-radius: var(--radius); font-size: 16px; font-weight: 700;
  margin-top: 12px; font-family: inherit; transition: transform .12s, opacity .12s;
}
.btn:active { transform: scale(.97); }
.btn-primary {
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  color: #fff; box-shadow: 0 6px 24px rgba(255,77,126,.3);
}
.btn-outline { background: transparent; color: var(--text); border: 1.5px solid #4b3a66; }
.btn-ghost { background: transparent; color: var(--muted); }
.btn-ghost.danger { color: #ff7a7a; }

.icon-btn {
  background: rgba(255,255,255,.07); border: none; color: var(--text);
  width: 40px; height: 40px; border-radius: 13px; font-size: 18px; cursor: pointer;
  flex-shrink: 0;
}
.icon-btn.send { background: linear-gradient(90deg, var(--accent), var(--accent2)); }

/* ---- 18+ kapu / üdvözlő ---- */
.age-box, .welcome-box {
  margin: auto; text-align: center; padding: 32px 28px; width: 100%;
}
.age-warn {
  background: var(--card); border-radius: var(--radius);
  padding: 16px; margin-bottom: 22px; display: flex; gap: 14px; align-items: center;
  text-align: left;
}
.age-warn p { font-size: 13px; color: var(--muted); line-height: 1.5; }
.badge18 {
  background: var(--accent); color: #fff; font-weight: 800; flex-shrink: 0;
  width: 46px; height: 46px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-size: 15px;
}
.lang-row { display: flex; gap: 8px; justify-content: center; margin-top: 22px; }
.lang-row.inline { margin: 0; }
.lang-btn {
  background: transparent; border: 1.5px solid #4b3a66; color: var(--muted);
  padding: 6px 14px; border-radius: 10px; cursor: pointer; font-weight: 700; font-size: 13px;
}
.lang-btn.active { border-color: var(--accent); color: var(--accent); }

.welcome-points { list-style: none; text-align: left; margin: 0 0 26px; }
.welcome-points li {
  padding: 10px 0 10px 30px; position: relative; color: var(--muted); font-size: 14px;
  border-bottom: 1px solid rgba(255,255,255,.05);
}
.welcome-points li::before { content: "✦"; position: absolute; left: 4px; color: var(--accent); }

/* ---- belépés ---- */
.auth-box { padding: 24px; margin: auto 0; width: 100%; }
.auth-box h2 { font-size: 26px; margin-bottom: 6px; }
.auth-box .muted { margin-bottom: 22px; }
.auth-box .field input { width: 100%; }
.auth-error {
  background: rgba(255,77,126,.14); border: 1px solid rgba(255,77,126,.4); color: #ffb3c8;
  border-radius: 12px; padding: 10px 13px; font-size: 13px; margin: 6px 0 12px;
}
.auth-switch { text-align: center; color: var(--muted); font-size: 14px; margin-top: 18px; }
.auth-switch a { color: var(--accent); font-weight: 700; cursor: pointer; margin-left: 6px; }
.reg-header .brand.small { margin-left: 4px; }

/* ---- regisztráció ---- */
.reg-header { display: flex; align-items: center; gap: 14px; padding: 18px 20px 8px; }
.reg-progress { flex: 1; height: 6px; background: var(--card); border-radius: 3px; }
.reg-progress-bar {
  height: 100%; width: 25%; border-radius: 3px; transition: width .3s;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
}
.reg-step { display: none; padding: 22px 24px; overflow-y: auto; flex: 1; }
.reg-step.active { display: block; }
.reg-step h2 { font-size: 23px; margin-bottom: 6px; }
.reg-step h3 { font-size: 15px; margin: 20px 0 10px; }
.reg-step .muted { margin-bottom: 18px; }

.type-cards { display: flex; flex-direction: column; gap: 14px; margin-top: 20px; }
.type-card {
  background: var(--card); border: 2px solid transparent; border-radius: var(--radius);
  padding: 20px; cursor: pointer; text-align: left; color: var(--text);
  display: flex; flex-direction: column; gap: 6px; font-family: inherit;
  transition: border-color .15s, transform .12s;
}
.type-card:active { transform: scale(.98); }
.type-card:hover { border-color: var(--accent2); }
.type-emoji { font-size: 32px; }
.type-name { font-size: 18px; font-weight: 800; }
.type-desc { font-size: 13px; color: var(--muted); line-height: 1.45; }

.field { margin-bottom: 14px; flex: 1; }
.field label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; font-weight: 600; }
.field input, .field textarea, .field select {
  width: 100%; background: var(--card); border: 1.5px solid transparent; color: var(--text);
  padding: 13px 14px; border-radius: 14px; font-size: 15px; font-family: inherit; resize: none;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--accent2); }
.field select {
  appearance: none; -webkit-appearance: none; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%),
                    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%;
  background-size: 6px 6px; background-repeat: no-repeat;
}
.field select option { background: var(--card); color: var(--text); }
.field-row { display: flex; gap: 12px; }

/* ---- személyenkénti adatlap (Nő/Férfi fülek + adatrács) ---- */
.pwrap .ptabs { margin: 16px 0 12px; }
.attr-grid {
  background: var(--card); border-radius: 14px; overflow: hidden; margin-top: 10px;
  text-align: left;
}
.attr-row {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 10px 14px; border-bottom: 1px solid rgba(255,255,255,.05); font-size: 13.5px;
}
.attr-row:last-child { border-bottom: none; }
.attr-row span { color: var(--muted); }
.attr-row b { font-weight: 700; text-align: right; }
.sheet-body .attr-grid, .me-card .attr-grid { background: var(--card2); }

.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  background: var(--card); color: var(--muted); border: 1.5px solid transparent;
  padding: 8px 14px; border-radius: 20px; font-size: 13px; cursor: pointer;
  font-family: inherit; font-weight: 600; transition: all .15s;
}
.tag.on { background: rgba(255,77,126,.16); border-color: var(--accent); color: var(--accent); }
.tag.static { cursor: default; }

.done-box { margin: auto; text-align: center; padding: 0 10px; }
.done-emoji { font-size: 56px; margin-bottom: 16px; }
.done-box h2 { margin-bottom: 8px; }

/* ---- fő app ---- */
.app-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 18px 10px; gap: 10px;
}
.header-title { font-weight: 700; font-size: 15px; color: var(--muted); }
#app-main { flex: 1; overflow: hidden; position: relative; display: flex; flex-direction: column; }
.view { display: none; flex: 1; flex-direction: column; overflow-y: auto; padding: 6px 16px 12px; }
.view.active { display: flex; }

.bottom-nav {
  display: flex; background: rgba(15,10,22,.92); backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255,255,255,.06); padding: 8px 6px calc(10px + env(safe-area-inset-bottom));
}
.nav-btn {
  flex: 1; background: none; border: none; color: var(--muted); cursor: pointer;
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  font-size: 10.5px; font-family: inherit; font-weight: 700; position: relative;
}
.nav-btn .nav-ico { font-size: 21px; filter: grayscale(1) opacity(.55); transition: filter .15s; }
.nav-btn.active { color: var(--accent); }
.nav-btn.active .nav-ico { filter: none; }
.nav-badge {
  position: absolute; top: -4px; right: 22%; background: var(--accent); color: #fff;
  font-size: 10px; min-width: 17px; height: 17px; border-radius: 9px;
  display: flex; align-items: center; justify-content: center; padding: 0 4px;
}

/* ---- felfedezés kártyák ---- */
#view-discover { padding: 6px 16px 10px; }
#card-area { flex: 1; position: relative; min-height: 0; }
.swipe-card {
  position: absolute; inset: 0; border-radius: 24px; overflow: hidden;
  display: flex; flex-direction: column; justify-content: flex-end;
  cursor: pointer; box-shadow: 0 10px 40px rgba(0,0,0,.45);
  transition: transform .35s, opacity .35s;
}
.swipe-card.under { transform: scale(.95) translateY(10px); opacity: .6; pointer-events: none; }
.swipe-card.fly-left  { transform: translateX(-120%) rotate(-12deg); opacity: 0; }
.swipe-card.fly-right { transform: translateX(120%) rotate(12deg); opacity: 0; }
.card-photo {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-size: 92px;
}
.card-photo::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(8,4,14,.92) 0%, rgba(8,4,14,.25) 45%, transparent 70%);
}
.card-info { position: relative; padding: 18px 18px 16px; z-index: 1; }
.card-name { font-size: 24px; font-weight: 800; }
.card-meta { color: #d9cce9; font-size: 13.5px; margin: 3px 0 8px; }
.card-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.card-tags .tag { background: rgba(255,255,255,.14); color: #fff; padding: 5px 11px; font-size: 11.5px; }
.type-pill {
  display: inline-block; padding: 4px 10px; border-radius: 12px; font-size: 11px;
  font-weight: 800; letter-spacing: .5px; margin-bottom: 8px;
}
.type-pill.solo { background: rgba(255,77,126,.85); color: #fff; }
.type-pill.couple { background: rgba(176,108,247,.85); color: #fff; }
.likes-you {
  display: inline-block; margin-left: 6px; padding: 4px 10px; border-radius: 12px;
  background: rgba(61,220,151,.85); color: #06281a; font-size: 11px; font-weight: 800;
}

.empty-deck {
  margin: auto; text-align: center; color: var(--muted); padding: 30px;
}
.empty-deck .nav-ico { font-size: 50px; display: block; margin-bottom: 14px; }

.action-row { display: flex; justify-content: center; gap: 26px; padding: 14px 0 6px; }
.act-btn {
  width: 64px; height: 64px; border-radius: 50%; border: none; cursor: pointer;
  font-size: 26px; font-weight: 800; transition: transform .12s;
}
.act-btn:active { transform: scale(.9); }
.act-btn.pass { background: var(--card2); color: #b9a8d4; }
.act-btn.like { background: linear-gradient(135deg, var(--accent), var(--accent2)); color: #fff; box-shadow: 0 8px 26px rgba(255,77,126,.4); }

/* ---- párosítások: kártyás rács ---- */
.match-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; padding-bottom: 8px;
}
.match-tile {
  position: relative; border-radius: 18px; overflow: hidden; cursor: pointer;
  aspect-ratio: 3 / 4; box-shadow: 0 6px 20px rgba(0,0,0,.35);
}
.match-tile-photo {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  display: flex; align-items: center; justify-content: center; font-size: 64px;
}
.match-tile-info {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 12px 11px;
  background: linear-gradient(to top, rgba(8,4,14,.92), transparent);
}
.match-tile-name { color: #fff; font-weight: 800; font-size: 14px; }
@media (min-width: 480px) { .match-grid { grid-template-columns: repeat(3, 1fr); } }

/* ---- párosítások (régi sor-elrendezés, máshol még használt) ---- */
.match-row {
  display: flex; align-items: center; gap: 14px; padding: 12px;
  background: var(--card); border-radius: var(--radius); margin-bottom: 10px; cursor: pointer;
}
.match-row:hover { background: var(--card2); }
.chat-avatar {
  width: 52px; height: 52px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: 26px;
}
.chat-avatar.big { width: 84px; height: 84px; font-size: 42px; border: 3px solid #fff; }
.match-row-name { font-weight: 800; font-size: 15px; }
.match-row-sub { color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.empty-list { text-align: center; color: var(--muted); margin: auto; padding: 30px; font-size: 14px; line-height: 1.6; }
.empty-list .nav-ico { font-size: 46px; display: block; margin-bottom: 12px; }

/* ---- chat ---- */
#view-chat { padding: 6px 16px 12px; }
#chat-room { position: absolute; inset: 0; background: linear-gradient(160deg, var(--bg2), var(--bg)); display: flex; flex-direction: column; z-index: 5; }
#chat-room.hidden { display: none; }
.chat-room-header {
  display: flex; align-items: center; gap: 12px; padding: 14px 16px;
  border-bottom: 1px solid rgba(255,255,255,.07); font-weight: 800;
}
.chat-room-header .chat-avatar { width: 40px; height: 40px; font-size: 20px; }
#chat-messages { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.msg { max-width: 78%; padding: 10px 14px; border-radius: 16px; font-size: 14.5px; line-height: 1.45; }
.msg.me { align-self: flex-end; background: linear-gradient(90deg, var(--accent), var(--accent2)); color: #fff; border-bottom-right-radius: 4px; }
.msg.them { align-self: flex-start; background: var(--card2); border-bottom-left-radius: 4px; }
.chat-input-row {
  display: flex; gap: 10px; padding: 12px 14px calc(14px + env(safe-area-inset-bottom));
  border-top: 1px solid rgba(255,255,255,.07);
}
.chat-input-row input {
  flex: 1; background: var(--card); border: 1.5px solid transparent; color: var(--text);
  border-radius: 14px; padding: 11px 14px; font-size: 14.5px; font-family: inherit;
}
.chat-input-row input:focus { outline: none; border-color: var(--accent2); }

/* ---- saját profil ---- */
.me-card { background: var(--card); border-radius: var(--radius); padding: 22px; text-align: center; margin-bottom: 16px; }
.me-avatar {
  width: 92px; height: 92px; border-radius: 50%; margin: 0 auto 12px;
  display: flex; align-items: center; justify-content: center; font-size: 46px;
}
.me-card h2 { font-size: 21px; }
.me-card .muted { margin: 4px 0 10px; }
.me-card p { font-size: 14px; line-height: 1.5; }
.me-card .tag-cloud { justify-content: center; margin-top: 12px; }

.settings-group { background: var(--card); border-radius: var(--radius); overflow: hidden; }
.settings-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 15px 18px; border-bottom: 1px solid rgba(255,255,255,.05); font-size: 14.5px; font-weight: 600;
}
.settings-row:last-child { border-bottom: none; }
.toggle {
  width: 48px; height: 28px; border-radius: 14px; background: #3a2c52; border: none;
  cursor: pointer; position: relative; transition: background .2s;
}
.toggle span {
  position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%;
  background: #fff; transition: left .2s;
}
.toggle.on { background: var(--accent); }
.toggle.on span { left: 23px; }

/* ---- lapok (sheet) ---- */
.sheet {
  position: absolute; inset: 0; background: rgba(5,2,10,.6); z-index: 20;
  display: flex; align-items: flex-end;
}
.sheet.hidden { display: none; }
.sheet-body {
  background: var(--bg2); width: 100%; max-height: 86%; overflow-y: auto;
  border-radius: 26px 26px 0 0; padding: 14px 22px calc(26px + env(safe-area-inset-bottom));
  animation: slideUp .25s ease;
}
@keyframes slideUp { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
.sheet-handle { width: 44px; height: 5px; border-radius: 3px; background: #4b3a66; margin: 0 auto 16px; }
.sheet-body h2 { font-size: 20px; margin-bottom: 4px; }
.sheet-body h3 { font-size: 14px; color: var(--muted); margin: 18px 0 10px; }
.seg { display: flex; background: var(--card); border-radius: 14px; padding: 4px; gap: 4px; }
.seg-btn {
  flex: 1; background: none; border: none; color: var(--muted); padding: 9px 4px;
  border-radius: 11px; cursor: pointer; font-family: inherit; font-weight: 700; font-size: 13px;
}
.seg-btn.active { background: linear-gradient(90deg, var(--accent), var(--accent2)); color: #fff; }
input[type=range] { width: 100%; accent-color: var(--accent); margin: 6px 0; }

.sheet-photo {
  height: 220px; border-radius: 20px; display: flex; align-items: center; justify-content: center;
  font-size: 84px; margin-bottom: 16px;
}
.sheet-name { font-size: 24px; font-weight: 800; }
.sheet-meta { color: var(--muted); font-size: 14px; margin: 4px 0 12px; }
.sheet-bio { font-size: 14.5px; line-height: 1.6; margin-bottom: 14px; }

/* ---- match felugró ---- */
.overlay {
  position: absolute; inset: 0; background: rgba(8,3,14,.88); backdrop-filter: blur(6px);
  z-index: 30; display: flex; align-items: center; justify-content: center;
}
.overlay.hidden { display: none; }
.match-box { text-align: center; padding: 30px; width: 100%; }
.match-spark { font-size: 54px; }
.match-box h1 {
  font-size: 36px; font-weight: 900; margin: 8px 0 6px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.match-box p { color: var(--muted); margin-bottom: 22px; }
.match-avatars { display: flex; justify-content: center; gap: -10px; margin-bottom: 26px; }
.match-avatars .chat-avatar { margin: 0 -8px; }

/* ---- Szikra játék ---- */
.icon-btn.game { background: linear-gradient(135deg, #ffb84d, var(--accent)); }

.sysmsg {
  align-self: center; color: var(--muted); font-size: 12px;
  background: rgba(255,255,255,.06); padding: 5px 12px; border-radius: 12px;
}
.msg.invite { border: 1.5px solid var(--accent2); background: linear-gradient(135deg, #2e2143, #3a2454); }
.msg.invite.me { background: linear-gradient(135deg, #73264d, #5b2a8c); }
.inv-title { font-weight: 800; font-size: 15px; }
.inv-sub { font-size: 12.5px; color: #d9cce9; margin-top: 2px; }
.inv-status { font-size: 12px; color: #cdbde0; margin-top: 8px; }
.inv-status.ok { color: var(--good); }
.inv-btns { display: flex; gap: 8px; margin-top: 10px; }
.inv-btn {
  border: none; border-radius: 10px; padding: 8px 12px; cursor: pointer;
  font-family: inherit; font-weight: 700; font-size: 12.5px;
  background: rgba(255,255,255,.14); color: var(--text);
}
.inv-btn.yes { background: linear-gradient(90deg, var(--accent), var(--accent2)); color: #fff; }

#overlay-game { align-items: stretch; padding: 0; }
.game-box {
  display: flex; flex-direction: column; width: 100%;
  padding: 18px 22px calc(20px + env(safe-area-inset-bottom));
  transition: background .5s;
}
.game-box[data-lvl="0"] { background: radial-gradient(120% 90% at 50% 0%, #2b2a55 0%, #14102a 70%); }
.game-box[data-lvl="1"] { background: radial-gradient(120% 90% at 50% 0%, #4a2253 0%, #190f25 70%); }
.game-box[data-lvl="2"] { background: radial-gradient(120% 90% at 50% 0%, #5c1f33 0%, #1c0a12 70%); }
.game-top { display: flex; align-items: center; gap: 12px; }
.lvl-pills { display: flex; gap: 10px; flex: 1; justify-content: center; }
.lvl-pill {
  width: 40px; height: 40px; border-radius: 50%; font-size: 18px;
  background: rgba(255,255,255,.08); display: flex; align-items: center; justify-content: center;
  transition: all .3s;
}
.lvl-pill.current {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  box-shadow: 0 0 18px rgba(255,77,126,.55); transform: scale(1.12);
}
.lvl-pill.locked { opacity: .35; filter: grayscale(.8); }
.game-partner { font-size: 12px; color: var(--muted); max-width: 84px; text-align: right; }
.game-lvl-name {
  text-align: center; font-weight: 900; font-size: 22px; margin-top: 14px;
  letter-spacing: 3px; text-transform: uppercase;
  background: linear-gradient(90deg, var(--accent), #ffb84d);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.turn-pill {
  align-self: center; margin-top: 8px; background: rgba(255,255,255,.1);
  padding: 5px 14px; border-radius: 14px; font-size: 12.5px; font-weight: 700;
}
.gcard-area {
  flex: 1; display: flex; align-items: center; justify-content: center;
  perspective: 1100px; padding: 14px 0; min-height: 0;
}
.gcard { width: min(285px, 82%); height: min(100%, 385px); cursor: pointer; }
.gcard-inner {
  position: relative; width: 100%; height: 100%;
  transform-style: preserve-3d; transition: transform .65s cubic-bezier(.4, 1.3, .4, 1);
}
.gcard.flipped .gcard-inner { transform: rotateY(180deg); }
.gcard-face {
  position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden;
  border-radius: 22px; padding: 24px; text-align: center;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  box-shadow: 0 14px 40px rgba(0,0,0,.5);
}
.gcard-back {
  background: repeating-linear-gradient(45deg, rgba(255,255,255,.06) 0 12px, transparent 12px 24px),
              linear-gradient(135deg, var(--accent), var(--accent2));
}
.game-box[data-lvl="2"] .gcard-back {
  background: repeating-linear-gradient(45deg, rgba(255,255,255,.06) 0 12px, transparent 12px 24px),
              linear-gradient(135deg, #ff4d4d, #ff9e4d);
}
.gcard-back .spark { font-size: 52px; animation: sparkle 1.8s ease-in-out infinite; }
@keyframes sparkle {
  0%, 100% { transform: scale(1) rotate(0); opacity: 1; }
  50% { transform: scale(1.18) rotate(8deg); opacity: .85; }
}
.gcard-back b { letter-spacing: 6px; font-size: 16px; margin-top: 10px; text-transform: uppercase; color: #fff; }
.gcard-back small { color: rgba(255,255,255,.85); margin-top: 16px; font-size: 12px; }
.gcard-front {
  background: var(--card2); transform: rotateY(180deg);
  border: 1.5px solid rgba(255,255,255,.1); justify-content: space-between;
}
.gcard-front p { font-size: 17.5px; line-height: 1.55; font-weight: 700; margin: auto 0; }
.gcard-ans {
  background: rgba(255,255,255,.08); border-radius: 12px; padding: 10px 12px;
  font-size: 13px; color: #e7dcf5; animation: fadeUp .4s ease;
}
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.gdots { display: flex; gap: 7px; justify-content: center; margin-bottom: 4px; }
.gdot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.18); transition: all .2s; }
.gdot.cur { background: var(--accent); transform: scale(1.3); }
.gdot.done { background: rgba(255,255,255,.5); }
#ginvite-status { text-align: center; color: #ffd9a8; font-size: 13px; margin-top: 10px; min-height: 18px; }
#ginvite-status.pulse { animation: invpulse 1s ease-in-out infinite; }
@keyframes invpulse { 0%, 100% { opacity: .5; } 50% { opacity: 1; } }
.game-box.lvlup { animation: lvlflash .9s ease; }
@keyframes lvlflash {
  0% { filter: brightness(1); }
  30% { filter: brightness(1.9) saturate(1.6); }
  100% { filter: brightness(1); }
}

/* ---- bizalom: jelvény, bizalmi szint, referenciák ---- */
.vpill {
  display: inline-block; padding: 4px 10px; border-radius: 12px; margin-left: 6px;
  background: rgba(61,220,151,.88); color: #06281a; font-size: 11px; font-weight: 800;
}
.trust-box { background: var(--card2); border-radius: 14px; padding: 14px; margin-top: 16px; }
.trust-head { display: flex; justify-content: space-between; font-size: 14px; font-weight: 700; margin-bottom: 9px; }
.trust-bar { height: 8px; background: rgba(255,255,255,.1); border-radius: 4px; overflow: hidden; }
.trust-bar div {
  height: 100%; border-radius: 4px; transition: width .6s ease;
  background: linear-gradient(90deg, var(--good), #4dc9ff);
}
.trust-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.tchip {
  font-size: 11px; font-weight: 700; padding: 4px 9px; border-radius: 10px;
  background: rgba(255,255,255,.07); color: var(--muted);
}
.tchip.on { background: rgba(61,220,151,.16); color: var(--good); }
.ref-h { font-size: 14px; margin: 18px 0 10px; }
.ref-card { background: var(--card2); border-radius: 12px; padding: 11px 13px; margin-bottom: 8px; }
.ref-card b { font-size: 12.5px; color: var(--good); }
.ref-card p { font-size: 13px; color: #ded2ec; margin-top: 4px; line-height: 1.5; }
.ref-card.ours { border: 1px solid rgba(61,220,151,.35); }
.ref-empty { font-size: 13px; }

.verify-cta {
  background: linear-gradient(135deg, rgba(61,220,151,.14), rgba(77,201,255,.1));
  border: 1.5px solid rgba(61,220,151,.4); border-radius: var(--radius);
  padding: 18px; margin-bottom: 16px; text-align: center;
}
.verify-cta h3 { font-size: 16px; margin-bottom: 6px; }
.verify-cta p { font-size: 12.5px; color: var(--muted); line-height: 1.5; }
.ss-active { color: var(--good); font-weight: 700; font-size: 13px; }
.settings-row.slim { padding: 13px 4px; margin-top: 12px; border-bottom: none; }

/* ---- élő ellenőrzés overlay ---- */
.verify-box {
  width: 100%; padding: 26px 28px; text-align: center; position: relative;
  display: flex; flex-direction: column; justify-content: center; min-height: 100%;
}
.verify-box .vclose { position: absolute; top: 16px; left: 18px; }
.verify-box h2 { font-size: 22px; margin-bottom: 10px; }
.verify-box .muted { line-height: 1.6; }
.v-person { font-size: 14px; color: var(--muted); }
.v-person b { color: var(--text); font-size: 16px; }
.v-ring {
  width: 168px; height: 168px; border-radius: 50%; margin: 22px auto;
  border: 4px solid rgba(255,255,255,.15);
  display: flex; align-items: center; justify-content: center;
  transition: border-color .3s, box-shadow .3s;
}
.v-ring.rec {
  border-color: transparent;
  background:
    linear-gradient(var(--bg2), var(--bg2)) padding-box,
    conic-gradient(var(--accent), var(--accent2), var(--accent)) border-box;
  animation: ringspin 1.2s linear infinite;
  box-shadow: 0 0 34px rgba(255,77,126,.45);
}
@keyframes ringspin { to { filter: hue-rotate(360deg); } }
.v-ring.ok {
  border-color: var(--good);
  box-shadow: 0 0 34px rgba(61,220,151,.5);
}
.v-ring { overflow: hidden; position: relative; }
#v-video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transform: scaleX(-1); border-radius: 50%;
}
.v-cam-inner { font-size: 64px; }
.v-ring.ok .v-cam-inner { color: var(--good); font-weight: 900; animation: okpop .45s cubic-bezier(.3,1.6,.5,1); }
@keyframes okpop { from { transform: scale(.3); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.v-gesture { font-size: 13px; color: var(--muted); }
.v-gesture b { font-size: 18px; color: var(--text); }
.v-status { min-height: 22px; margin-top: 12px; font-size: 13.5px; color: #ffd9a8; font-weight: 600; }

/* ---- chat: ellenőrzés sáv + referencia gomb ---- */
#verify-banner {
  display: flex; align-items: center; gap: 10px; margin: 0 14px 8px;
  background: rgba(61,220,151,.1); border: 1px solid rgba(61,220,151,.35);
  border-radius: 13px; padding: 9px 12px; font-size: 12px; color: #c8eedd;
}
#verify-banner button {
  margin-left: auto; flex-shrink: 0; border: none; border-radius: 9px; padding: 7px 10px;
  background: var(--good); color: #06281a; font-weight: 800; font-size: 11.5px;
  cursor: pointer; font-family: inherit;
}
.icon-btn.ref { margin-left: auto; }
.icon-btn.ref.done { background: rgba(61,220,151,.25); }

/* ---- egyszeri hangüzenetek ---- */
.icon-btn.mic { background: rgba(255,255,255,.07); }
.chat-input-row.recording > .icon-btn.game,
.chat-input-row.recording > .icon-btn.mic,
.chat-input-row.recording > #chat-input,
.chat-input-row.recording > #btn-send { display: none; }
#rec-ui {
  flex: 1; display: flex; align-items: center; gap: 10px;
  font-size: 13.5px; color: #ffb0b0; font-weight: 700;
}
#rec-ui b { font-variant-numeric: tabular-nums; color: var(--text); margin-left: auto; }
.rec-dot {
  width: 12px; height: 12px; border-radius: 50%; background: #ff4d4d;
  animation: recblink 1s ease-in-out infinite;
}
@keyframes recblink { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .4; transform: scale(.8); } }

.msg.voice { cursor: default; min-width: 168px; }
.msg.voice[data-action] { cursor: pointer; }
.vwave { display: flex; align-items: center; gap: 2.5px; height: 22px; }
.vwave span {
  width: 3px; border-radius: 2px; background: rgba(255,255,255,.45);
  transition: background .15s;
}
.msg.them .vwave span { background: rgba(255,255,255,.3); }
.vwave span.past { background: #fff; }
.msg.them .vwave span.past { background: var(--accent); }
.vwave.anim span { animation: eq .7s ease-in-out infinite alternate; }
@keyframes eq { from { transform: scaleY(.5); } to { transform: scaleY(1.25); } }
.vsub { font-size: 11px; opacity: .85; margin-top: 6px; font-weight: 700; }
.msg.voice.playing { box-shadow: 0 0 16px rgba(255,77,126,.35); }
.msg.voice.expired {
  background: rgba(255,255,255,.05); color: #8d7ba6;
  font-style: italic; font-size: 13px; border: 1px dashed rgba(255,255,255,.14);
  box-shadow: none;
}
.vm-warn-box { text-align: center; padding: 30px; width: 100%; }
.vm-warn-box h2 { margin-bottom: 10px; }
.vm-warn-box .muted { line-height: 1.6; margin-bottom: 18px; }

/* ---- játék: válaszadás a kártyán ---- */
.ganswer-row {
  display: flex; gap: 8px; margin-top: 12px; width: 100%;
}
.ganswer-row input {
  flex: 1; background: rgba(0,0,0,.25); border: 1.5px solid rgba(255,255,255,.18);
  color: var(--text); border-radius: 12px; padding: 10px 12px; font-size: 14px; font-family: inherit;
}
.ganswer-row input:focus { outline: none; border-color: var(--accent); }

/* játékbeli válasz a chatben */
.msg.ganswer { border-left: 3px solid var(--accent2); }
.msg.ganswer .gq {
  font-size: 11px; opacity: .8; margin-bottom: 5px; font-weight: 700; line-height: 1.4;
}

/* ---- tali szervezése ---- */
.icon-btn.meet.done { background: rgba(77,201,255,.25); }
.msg.meet { min-width: 200px; border: 1.5px solid rgba(77,201,255,.4); }
.meet-head { font-weight: 800; font-size: 15px; }
.meet-when { font-size: 16px; font-weight: 700; margin-top: 6px; }
.meet-place { font-size: 12.5px; color: #d9cce9; margin-top: 3px; }
.meet-cd {
  margin-top: 9px; font-size: 12px; font-weight: 800; padding: 5px 10px; border-radius: 10px;
  background: rgba(255,255,255,.12); display: inline-block;
}
.meet-cd.ok { background: rgba(77,201,255,.22); color: #bfe9ff; }
#meet-existing {
  background: rgba(77,201,255,.12); border: 1px solid rgba(77,201,255,.35);
  border-radius: 12px; padding: 12px 14px; font-size: 13px; line-height: 1.6; margin-top: 12px;
}
.meet-cd-big { font-weight: 800; color: #bfe9ff; font-size: 15px; }
.field input[type=date] {
  width: 100%; background: var(--card); border: 1.5px solid transparent; color: var(--text);
  padding: 12px 14px; border-radius: 14px; font-size: 15px; font-family: inherit;
  color-scheme: dark;
}
.field input[type=date]:focus { outline: none; border-color: var(--accent2); }

/* ---- napi push-értesítési sáv ---- */
#notif-banner {
  position: absolute; top: 0; left: 0; right: 0; z-index: 70; cursor: pointer;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  color: #fff; font-weight: 700; font-size: 13.5px; text-align: center;
  padding: calc(12px + env(safe-area-inset-top)) 16px 12px;
  box-shadow: 0 6px 24px rgba(0,0,0,.4);
  animation: notifDrop .4s cubic-bezier(.3,1.4,.5,1);
}
@keyframes notifDrop { from { transform: translateY(-100%); } to { transform: none; } }

/* ---- fotógaléria + privát album ---- */
.gallery { margin-bottom: 14px; }
.gallery-strip {
  display: flex; gap: 0; overflow-x: auto; scroll-snap-type: x mandatory;
  border-radius: 20px; scrollbar-width: none;
}
.gallery-strip::-webkit-scrollbar { display: none; }
.gphoto {
  flex: 0 0 100%; height: 230px; scroll-snap-align: start;
  display: flex; align-items: center; justify-content: center; font-size: 80px;
}
.gphoto.priv { flex: 0 0 48%; height: 150px; border-radius: 14px; margin-right: 2%; font-size: 56px; }
.gphoto.sm { flex: 0 0 72px; width: 72px; height: 72px; border-radius: 14px; font-size: 34px; margin-right: 8px; }
.gphoto.sm.add {
  background: var(--card2) !important; color: var(--muted); cursor: pointer;
  border: 1.5px dashed #4b3a66; font-size: 28px;
}
.photo-img { background-size: cover !important; background-position: center !important; }
.card-photo.photo-img, .card-photo[style*="background-image"] { background-size: cover; background-position: center; }
.me-photo-wrap { position: relative; flex: 0 0 auto; width: 72px; margin-right: 8px; }
.me-photo-wrap .gphoto.sm { margin-right: 0; }
.photo-del {
  position: absolute; top: -6px; right: 2px; width: 22px; height: 22px; border-radius: 50%;
  background: rgba(8,4,14,.8); color: #fff; border: 1px solid rgba(255,255,255,.25);
  cursor: pointer; font-size: 11px; line-height: 1; display: flex; align-items: center; justify-content: center;
}
.gallery-dots { display: flex; gap: 6px; justify-content: center; margin-top: 8px; }
.gdotp { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,.25); }
.gdotp.on { background: var(--accent); }

.priv-album { margin-top: 8px; }
.priv-locked { position: relative; border-radius: 16px; overflow: hidden; }
.priv-blur { display: flex; gap: 8px; }
.gphoto.blur { flex: 1; height: 150px; border-radius: 14px; filter: blur(14px) brightness(.6); }
.priv-overlay {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 8px; text-align: center; padding: 14px;
}
.priv-lock-ico { font-size: 30px; }
.priv-count { font-size: 13px; font-weight: 700; }
.priv-req { width: auto; padding: 9px 16px; margin-top: 4px; font-size: 13px; }
.priv-hint { font-size: 11px; color: var(--muted); }

.me-photos-row { display: flex; align-items: center; margin: 14px 0 8px; overflow-x: auto; scrollbar-width: none; }
.me-photos-row::-webkit-scrollbar { display: none; }
.me-priv-row {
  display: flex; flex-direction: column; gap: 2px; background: var(--card2);
  border-radius: 12px; padding: 10px 14px; font-size: 13px; font-weight: 600; text-align: left;
}

/* ---- előfizetés (paywall) ---- */
.plan-card { border-radius: var(--radius); padding: 16px 18px; margin-bottom: 16px; text-align: center; }
.plan-card.free { background: var(--card); }
.plan-card.plus { background: linear-gradient(135deg, rgba(176,108,247,.18), rgba(77,201,255,.12)); border: 1.5px solid rgba(176,108,247,.5); }
.plan-card.vip { background: linear-gradient(135deg, rgba(255,184,77,.18), rgba(255,77,126,.12)); border: 1.5px solid rgba(255,184,77,.55); }
.plan-card p { font-size: 14px; margin: 8px 0; }
.plan-card small { color: var(--muted); font-size: 12px; }
.plan-free-label { color: var(--muted); }
.plan-badge { display: inline-block; padding: 5px 14px; border-radius: 14px; font-weight: 800; font-size: 13px; }
.plan-badge.plus { background: linear-gradient(90deg, var(--accent2), #4dc9ff); color: #fff; }
.plan-badge.vip { background: linear-gradient(90deg, #ffb84d, var(--accent)); color: #3a1500; }
.pw-emoji { font-size: 46px; text-align: center; }
#paywall-content h2 { text-align: center; font-size: 23px; margin: 6px 0; }
#paywall-content .muted { text-align: center; margin-bottom: 16px; }
.pw-reason {
  background: rgba(255,77,126,.12); border: 1px solid rgba(255,77,126,.35);
  border-radius: 12px; padding: 10px 14px; font-size: 13px; margin-bottom: 14px; text-align: center;
}
.pw-feats { list-style: none; padding: 0; margin: 0 0 16px; }
.pw-feats li {
  display: flex; align-items: center; gap: 10px; padding: 10px 4px;
  border-bottom: 1px solid rgba(255,255,255,.06); font-size: 14px;
}
.pw-feats li:last-child { border-bottom: none; }
.pw-check { color: var(--good); font-weight: 900; }
.pw-solo {
  background: rgba(61,220,151,.14); border: 1px solid rgba(61,220,151,.4); color: #c8eedd;
  border-radius: 12px; padding: 11px 14px; font-size: 13px; text-align: center; margin-bottom: 14px;
}

/* badge a kártyán/lapon */
.plan-pill {
  display: inline-block; padding: 4px 10px; border-radius: 12px; margin-left: 6px;
  font-size: 11px; font-weight: 800;
}
.plan-pill.plus { background: linear-gradient(90deg, var(--accent2), #4dc9ff); color: #fff; }
.plan-pill.vip { background: linear-gradient(90deg, #ffb84d, var(--accent)); color: #3a1500; }

/* ---- ki kedvelt téged ---- */
.who-card { background: var(--card); border-radius: var(--radius); padding: 16px; margin-bottom: 14px; }
.who-card.locked { background: linear-gradient(135deg, rgba(176,108,247,.16), var(--card)); border: 1.5px solid rgba(176,108,247,.4); text-align: center; }
.who-head { font-weight: 800; font-size: 15px; margin-bottom: 12px; }
.who-row { display: flex; gap: 12px; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; }
.who-row::-webkit-scrollbar { display: none; }
.who-av { display: flex; flex-direction: column; align-items: center; gap: 4px; cursor: pointer; flex-shrink: 0; }
.who-av span { font-size: 11px; color: var(--muted); }
.who-av.blur .chat-avatar { filter: blur(8px); }
.who-card.locked .who-row { justify-content: center; }
.who-sub { font-size: 13px; color: var(--muted); margin: 12px 0; }
.who-card .btn { width: auto; display: inline-block; padding: 10px 22px; }

/* ---- biztonság / SOS / check-in ---- */
.icon-btn.safety.done { background: rgba(61,220,151,.25); }
.safety-meet-box {
  background: rgba(77,201,255,.12); border: 1px solid rgba(77,201,255,.35);
  border-radius: 12px; padding: 11px 14px; font-size: 13px; margin: 12px 0;
}
#sos-shared-status {
  background: rgba(61,220,151,.14); border: 1px solid rgba(61,220,151,.4); color: #c8eedd;
  border-radius: 12px; padding: 10px 14px; font-size: 13px; margin-top: 10px;
}
.btn.sos-big {
  background: linear-gradient(135deg, #ff4d4d, #b0264d); color: #fff; margin-top: 18px;
  font-size: 18px; letter-spacing: 3px; box-shadow: 0 6px 24px rgba(255,77,77,.4);
}
#checkin-banner {
  position: absolute; top: 0; left: 0; right: 0; z-index: 70;
  background: linear-gradient(90deg, #1d9e75, #4dc9ff); color: #042c1f;
  padding: calc(12px + env(safe-area-inset-top)) 16px 12px; text-align: center;
  font-weight: 700; font-size: 13.5px; animation: notifDrop .4s cubic-bezier(.3,1.4,.5,1);
}
.checkin-btns { display: flex; gap: 8px; margin-top: 10px; }
.checkin-btns button {
  flex: 1; border: none; border-radius: 10px; padding: 9px; cursor: pointer;
  font-family: inherit; font-weight: 800; font-size: 12.5px;
}
#btn-checkin-safe { background: #042c1f; color: #6dffc0; }
#btn-checkin-help { background: #fff; color: #b0264d; }

/* ---- beépített böngésző figyelmeztetés ---- */
#inapp-banner {
  position: absolute; top: 0; left: 0; right: 0; z-index: 88;
  background: linear-gradient(90deg, #ffb84d, var(--accent));
  color: #2a1500; font-size: 12.5px; font-weight: 600; line-height: 1.4;
  padding: calc(10px + env(safe-area-inset-top)) 38px 10px 14px;
  display: flex; align-items: center;
}
#inapp-banner button {
  position: absolute; top: calc(8px + env(safe-area-inset-top)); right: 10px;
  background: rgba(0,0,0,.18); color: #2a1500; border: none; width: 24px; height: 24px;
  border-radius: 50%; cursor: pointer; font-size: 12px;
}

/* ---- fotó nagyban (lightbox) ---- */
#lightbox {
  position: absolute; inset: 0; z-index: 85; background: rgba(5,2,10,.96);
  display: flex; align-items: center; justify-content: center; padding: 12px;
}
#lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 10px; }
.lb-close { position: absolute; top: calc(14px + env(safe-area-inset-top)); right: 16px; z-index: 1; }
.gphoto.photo-img, .card-photo[style*="background-image"] { cursor: pointer; }

/* ---- képernyővédelem ---- */
body { user-select: none; -webkit-user-select: none; }
input, textarea { user-select: text; -webkit-user-select: text; }
#watermark {
  position: absolute; inset: -25%; z-index: 60; pointer-events: none;
  display: flex; flex-wrap: wrap; gap: 56px 40px; align-items: center; justify-content: center;
  transform: rotate(-24deg); overflow: hidden;
}
#watermark span {
  opacity: .05; font-size: 12px; letter-spacing: 2px; white-space: nowrap;
  color: #fff; font-weight: 800;
}
#curtain {
  position: absolute; inset: 0; z-index: 80; cursor: pointer;
  background: rgba(8,4,14,.55); backdrop-filter: blur(26px); -webkit-backdrop-filter: blur(26px);
  display: flex; align-items: center; justify-content: center;
}
.curtain-box { text-align: center; padding: 30px; }
.curtain-box h2 { font-size: 24px; margin-bottom: 10px; }
.curtain-box p { color: var(--muted); font-size: 13.5px; line-height: 1.6; max-width: 260px; }
#ss-flash {
  position: absolute; inset: 0; z-index: 90; background: #000;
  display: flex; align-items: center; justify-content: center;
  animation: ssfade .3s ease;
}
#ss-flash p { color: #ff7a7a; font-weight: 800; font-size: 16px; text-align: center; padding: 0 30px; }
@keyframes ssfade { from { opacity: 0; } to { opacity: 1; } }

.hidden { display: none !important; }
