/* ============================================================
   Naba – stilark
   Fargene og utseendet til appen. Endre gjerne verdiene under
   :root for å bytte farger på hele appen.
   ============================================================ */

:root {
  --accent: #fbbf24;        /* hovedfarge – sommergul */
  --accent-dark: #f59e0b;   /* mørkere gul (brukes når man trykker) */
  --accent-ink: #a8530a;    /* gyllenbrun – tekst/ikoner på lys bakgrunn (AA-kontrast) */
  --on-accent: #3d2600;     /* mørk tekst oppå gule flater */
  --accent-grad: linear-gradient(100deg, #fcb63f 0%, #f6866b 52%, #f2646e 100%); /* solnedgang: gul→korall */
  --coral: #f2615f;         /* korall – aktiv bunnmeny, posisjon, varsler (fast merkefarge) */
  --coral-soft: #fde7e2;    /* lys korall-flate */
  --accent-soft: #fdeec3;   /* lys gul flate (chips, merker) */
  --accent-soft-2: #fff6e0; /* enda lysere gul flate */
  --accent-ring: rgba(245, 158, 11, 0.26); /* fokus-glød */
  --banner-grad: linear-gradient(150deg, #ffe9ae 0%, #fbd06b 100%);
  --like: #ef5b5e;          /* "si hei"-knappen */
  --pass: #a89f8e;          /* "hopp over"-knappen */
  --ok: #0f6e56;
  --ok-soft: rgba(29, 158, 117, 0.16);
  --danger: #a32d2d;
  --danger-soft: #fdecec;
  --bg: #fdf8ee;            /* varm, lys bakgrunn bak appen */
  --bg-tint: #fbf2df;
  --bg-top: #fff6e0;        /* lys topp-tint i app-bakgrunnen (følger temaet) */
  --card-bg: #ffffff;
  --surface-2: #fbf5e8;
  --text: #2a2622;
  --text-muted: #6f6857;
  --text-soft: #3a403c;
  --border: #efe6d4;
  --border-strong: #e6dcc6;
  --hairline: rgba(124, 93, 30, 0.12);
  --shadow-xs: 0 1px 2px rgba(124, 93, 20, 0.06);
  --shadow-sm: 0 2px 8px rgba(124, 93, 20, 0.08);
  --shadow-md: 0 8px 24px rgba(124, 93, 20, 0.12);
  --shadow-lg: 0 18px 42px rgba(124, 93, 20, 0.16), 0 4px 12px rgba(124, 93, 20, 0.08);
  --shadow-accent: 0 8px 22px rgba(245, 158, 11, 0.32);
  --shadow: var(--shadow-md);
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius: 18px;
  --radius-lg: 22px;
  --radius-xl: 26px;
  --radius-pill: 999px;
  --sp-1: 4px; --sp-2: 8px; --sp-3: 12px; --sp-4: 16px; --sp-5: 20px; --sp-6: 28px;
  --fs-xs: 12px; --fs-sm: 14px; --fs-base: 16px; --fs-lg: 19px; --fs-xl: 23px; --fs-2xl: 28px; --fs-3xl: 34px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.45, 0.5, 1);
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }

html, body {
  height: 100%;
  background: var(--bg);
  color: var(--text);
}

/* Appen vises som en telefon-skjerm, sentrert på store skjermer */
#app {
  position: relative;
  width: 100%;
  max-width: 440px;
  height: 100dvh;
  margin: 0 auto;
  background: var(--bg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.hidden { display: none !important; }
.muted { color: var(--text-muted); font-weight: 400; }

/* ---------- Skjermer ---------- */
.screen {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
#main-app {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

/* ---------- Topptekst ---------- */
.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px 10px;
  font-size: 22px;
  font-weight: 700;
}
.header-title { font-size: 22px; font-weight: 700; }
.header-loc { font-size: 14px; font-weight: 500; color: var(--text-muted); }

/* ---------- Velkomst ---------- */
.welcome {
  justify-content: center;
  padding: 28px 24px;
  overflow-y: auto;
}
.welcome-inner { width: 100%; }
.logo-big { display: block; width: 92px; height: 92px; margin: 0 auto; }
.welcome h1 { text-align: center; font-size: 34px; color: var(--accent-ink); margin-top: 4px; }
.brand .wm-a { color: #ec7a08; }   /* "Match" – oransje */
.brand .wm-b { color: #fbbf24; }   /* "Up" – gul */
.tagline { text-align: center; color: var(--text-muted); margin: 8px 0 28px; font-size: 16px; }

.field { margin-bottom: 18px; }
.field label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 8px; }
.field input, .field textarea {
  width: 100%;
  padding: 13px 14px;
  font-size: 16px;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  background: var(--card-bg);
  color: var(--text);
  font-family: inherit;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); }
.datetime-row { display: flex; gap: 10px; }
.datetime-row input { flex: 1 1 0; width: auto; min-width: 0; }
/* Klokkeslett-hjul (scroll/snap) */
.time-wheel-wrap { margin-top: 12px; }
.time-wheel-label { display: block; font-size: var(--fs-sm); font-weight: 700; margin-bottom: 6px; color: var(--text); }
.time-wheel {
  position: relative; display: flex; align-items: center; justify-content: center; gap: 4px;
  height: 132px; background: var(--surface-2); border: 1.5px solid var(--border);
  border-radius: var(--radius-md); overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 30%, #000 70%, transparent);
          mask-image: linear-gradient(to bottom, transparent, #000 30%, #000 70%, transparent);
}
.wheel-col {
  height: 132px; width: 58px; overflow-y: scroll; text-align: center;
  scroll-snap-type: y mandatory; scrollbar-width: none; padding: 44px 0;
}
.wheel-col::-webkit-scrollbar { display: none; }
.wheel-item {
  height: 44px; line-height: 44px; scroll-snap-align: center;
  font-size: 22px; font-weight: 600; color: var(--text-muted);
  cursor: pointer; transition: color 0.15s ease, transform 0.15s ease;
}
.wheel-item.on { color: var(--accent-ink); font-weight: 800; transform: scale(1.08); }
.wheel-colon { font-size: 22px; font-weight: 800; color: var(--text); }
.wheel-band {
  position: absolute; left: 12px; right: 12px; top: 44px; height: 44px;
  border-top: 1.5px solid var(--accent); border-bottom: 1.5px solid var(--accent);
  background: rgba(251, 191, 36, 0.08); border-radius: 8px; pointer-events: none;
}
/* Fødselsdato-nedtrekk + låst alder */
.bd-selects { display: flex; gap: 8px; }
.bd-selects select {
  min-width: 0; padding: 12px 8px; font-size: 15px; font-family: inherit;
  border: 1.5px solid var(--border); border-radius: var(--radius-md);
  background: var(--card-bg); color: var(--text); cursor: pointer;
}
#w-bd-day { flex: 0 0 72px; }
#w-bd-month { flex: 1 1 auto; }
#w-bd-year { flex: 0 0 94px; }
.bd-selects select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-ring); }
.locked-field {
  display: flex; align-items: center; gap: 8px;
  padding: 13px 14px; border: 1.5px solid var(--border); border-radius: var(--radius-md);
  background: var(--surface-2); color: var(--text); font-size: 16px; font-weight: 700;
}
.locked-field i { color: var(--text-muted); font-size: 18px; }
/* Språkvelger (nedtrekk) */
.lang-select-wrap { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 22px auto 0; }
.lang-select-wrap .ti-language { color: var(--accent-ink); font-size: 20px; flex: 0 0 auto; }
.lang-select {
  font-family: inherit; font-size: 15px; font-weight: 600;
  color: var(--text); background: var(--card-bg);
  border: 1.5px solid var(--border); border-radius: var(--radius-pill);
  padding: 9px 16px; cursor: pointer; max-width: 220px;
}
.lang-select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-ring); }
.privacy-link { display: block; text-align: center; margin: 16px auto 4px; font-size: 13px; color: var(--text-muted); text-decoration: underline; cursor: pointer; }
.privacy-link:hover { color: var(--accent-ink); }
/* Høyre-til-venstre (arabisk) */
[dir="rtl"] .field label, [dir="rtl"] .field-hint, [dir="rtl"] .person-section-label, [dir="rtl"] .auth-h, [dir="rtl"] .tagline { text-align: right; }
[dir="rtl"] .card-name-row, [dir="rtl"] .card-dist, [dir="rtl"] .card-tags, [dir="rtl"] .card-badges { flex-direction: row-reverse; }
[dir="rtl"] .back-link { float: right; }
.field textarea { resize: none; }
.field-hint { font-size: 13px; color: var(--text-muted); margin: -2px 0 10px; line-height: 1.4; }

.error-text { color: var(--like); font-size: 14px; text-align: center; margin-top: 12px; }
.saved-text { color: var(--accent-ink); text-align: center; margin-top: 10px; font-weight: 600; }

/* ---------- Interesse-knapper ---------- */
.chip-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  border: 1.5px solid var(--border);
  background: var(--card-bg);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 14px;
  cursor: pointer;
  user-select: none;
  transition: all 0.15s;
  color: var(--text);
}
.chip.selected {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--on-accent);
}

/* ---------- Knapper ---------- */
.btn-primary {
  background: var(--accent);
  color: var(--on-accent);
  border: none;
  border-radius: 14px;
  padding: 15px;
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: transform 0.1s ease, background 0.15s ease;
}
.btn-primary:active { background: var(--accent-dark); transform: scale(0.985); }
.btn-block { width: 100%; margin-top: 8px; }
.btn-text {
  display: block;
  width: 100%;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 15px;
  padding: 14px;
  cursor: pointer;
  font-family: inherit;
  margin-top: 6px;
}

/* ---------- Filterlinje ---------- */
.filter-bar {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 16px 12px;
  scrollbar-width: none;
}
.filter-bar::-webkit-scrollbar { display: none; }
.filter-chip {
  flex: 0 0 auto;
  border: 1.5px solid var(--border);
  background: var(--card-bg);
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 14px;
  cursor: pointer;
  white-space: nowrap;
  color: var(--text);
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.filter-chip.active { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }

/* ---------- Kortstabel ---------- */
.deck {
  flex: 1;
  position: relative;
  margin: 0 16px;
  min-height: 0;
}
.profile-card {
  position: absolute;
  inset: 0;
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  touch-action: none;
  will-change: transform;
  cursor: grab;
}
.profile-card.dragging { cursor: grabbing; transition: none; }
.profile-card.behind { transform: scale(0.94) translateY(14px); filter: brightness(0.99); }

.card-banner {
  flex: 1 1 0;
  min-height: 130px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 96px;
}
.card-body { padding: 12px 18px 94px; flex: 0 0 auto; overflow: hidden; }
.card-name-row { display: flex; align-items: baseline; gap: 10px; }
.card-name { font-size: 26px; font-weight: 700; }
.card-age { font-size: 20px; color: var(--text-muted); }
.card-dist { font-size: 14px; color: var(--text-muted); margin-top: 4px; }
.card-langs { font-size: 14px; color: var(--text-muted); margin-top: 4px; }
.card-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.card-tag {
  background: rgba(251, 191, 36, 0.22);
  color: var(--accent-ink);
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 13px;
  font-weight: 600;
}
.card-tag.try { background: rgba(180, 83, 9, 0.16); color: #7a3905; }
.card-try-label { font-size: 12px; color: var(--text-muted); font-weight: 600; margin: 10px 0 6px; }
.card-info-hint { position: absolute; top: 12px; right: 14px; color: rgba(50, 35, 5, 0.4); font-size: 22px; z-index: 2; }

/* ---------- Profil-vindu (hele profilen) ---------- */
.person-card { padding: 0; overflow: hidden; max-height: 88%; display: flex; flex-direction: column; position: relative; }
#person-content { display: flex; flex-direction: column; flex: 1 1 auto; min-height: 0; }
.person-banner { flex: 0 0 140px; display: flex; align-items: center; justify-content: center; }
.person-banner i { font-size: 64px; color: rgba(50, 35, 5, 0.5); }
.person-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 14px 22px 24px; text-align: left; }
.person-section-label { font-size: 13px; font-weight: 600; color: var(--text-muted); margin: 16px 0 6px; }
.person-close {
  position: absolute; top: 12px; right: 12px; z-index: 5;
  width: 34px; height: 34px; border-radius: 50%; border: none;
  background: rgba(255, 255, 255, 0.85); color: var(--text); font-size: 18px;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.card-bio.full { display: block; -webkit-line-clamp: none; overflow: visible; margin-top: 8px; }

/* ---------- Klikkbar chat-topp + medlemsliste ---------- */
.chat-head {
  flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px;
  background: none; border: none; cursor: pointer; font-family: inherit;
  padding: 0; text-align: left; color: inherit;
}
.chat-head-chev { color: var(--text-muted); font-size: 20px; flex: 0 0 auto; }
.member-row {
  display: flex; align-items: center; gap: 12px; width: 100%;
  padding: 10px 8px; border: none; background: none; cursor: pointer;
  font-family: inherit; text-align: left; border-radius: 12px; color: var(--text);
}
.member-row:active { background: rgba(0, 0, 0, 0.04); }
.member-info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.member-sub { font-size: 13px; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.member-chev { color: var(--text-muted); font-size: 18px; flex: 0 0 auto; }

/* ---------- Arrangement ---------- */
.event-avatar { background: #fff0cf !important; }
.ev-badge { display: inline-block; font-size: 11px; font-weight: 500; padding: 2px 8px; border-radius: 999px; margin-left: 4px; vertical-align: 1px; }
.ev-badge.open { background: rgba(29, 158, 117, 0.16); color: #0f6e56; }
.ev-badge.private { background: rgba(0, 0, 0, 0.08); color: var(--text-muted); }
.event-head { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.event-head-icon { width: 48px; height: 48px; border-radius: 12px; background: #fff0cf; display: flex; align-items: center; justify-content: center; font-size: 26px; flex: 0 0 auto; color: rgba(50, 35, 5, 0.55); }
.event-detail-title { font-size: 19px; font-weight: 500; margin: 0 0 3px; }
.ev-kick { background: rgba(163, 45, 45, 0.1); color: #a32d2d; border: none; border-radius: 999px; padding: 9px 14px; min-height: 40px; font-size: 13px; font-weight: 500; cursor: pointer; font-family: inherit; flex: 0 0 auto; }
.ev-host-tag { font-size: 12px; color: var(--text-muted); font-weight: 500; flex: 0 0 auto; }
.event-actions { margin-top: 18px; }
.events-controls { padding-top: 6px; margin: 0 -12px 4px; }
.event-search {
  display: block; width: calc(100% - 32px); margin: 0 16px 2px;
  padding: 10px 15px; font-size: 15px;
  border: 1.5px solid var(--border); border-radius: 999px;
  background: var(--card-bg); color: var(--text); font-family: inherit;
}
.event-search:focus { outline: none; border-color: var(--accent); }
.events-controls .filter-bar { padding: 8px 16px 4px; }

/* Innboks-knapp + badge */
.inbox-btn { position: relative; }
.inbox-badge {
  position: absolute; top: -4px; right: -4px;
  min-width: 18px; height: 18px; padding: 0 5px;
  background: var(--like); color: #fff;
  font-size: 11px; font-weight: 700;
  border-radius: 999px; display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--card-bg);
}
/* Invitasjon-rader i innboksen */
.inbox-empty { text-align: center; padding: 16px 0; margin: 0; }
.invite-row { padding: 14px 0; border-bottom: 0.5px solid var(--border); }
.invite-row:last-child { border-bottom: none; }
.invite-top { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.invite-icon { width: 44px; height: 44px; font-size: 22px; }
.invite-info { min-width: 0; }
.invite-event-title { font-size: 15px; font-weight: 600; }
.invite-event-meta { font-size: 13px; color: var(--text-muted); margin-top: 3px; line-height: 1.35; }
.invite-actions { display: flex; gap: 8px; }
.invite-actions .btn-primary, .invite-actions .btn-outline { flex: 1; padding: 10px; font-size: 15px; }

/* ---------- Titler (kjælenavn man tjener opp) ---------- */
.title-badge { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; color: var(--accent-ink); background: rgba(251, 191, 36, 0.2); padding: 2px 10px; border-radius: 999px; line-height: 1.55; }
.title-badge i { font-size: 13px; }
.card-title-line { margin: 5px 0 2px; }
.profile-title-display { text-align: center; margin: 2px 0 10px; }
.profile-title-display .title-badge { font-size: 13px; padding: 4px 12px; }
.member-info .gm-name { flex: 1 1 auto; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.member-title { display: block; margin-top: 3px; }
.member-title .title-badge { font-size: 11px; padding: 1px 8px; }
.label-row { display: flex; align-items: center; justify-content: space-between; }
.info-mini { background: none; border: none; color: var(--accent-ink); cursor: pointer; padding: 2px; font-size: 19px; line-height: 1; display: flex; }
.title-choices { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 2px; }
.title-chip { display: inline-flex; align-items: center; gap: 6px; border: 1.5px solid var(--border); background: var(--card-bg); color: var(--text); border-radius: 999px; padding: 8px 14px; font-size: 14px; font-family: inherit; cursor: pointer; transition: all 0.15s ease; }
.title-chip i { font-size: 16px; }
.title-chip.selected { background: var(--accent); border-color: var(--accent); color: var(--on-accent); font-weight: 600; }
.title-progress-label { font-size: 13px; font-weight: 600; color: var(--text-muted); margin-top: 16px; margin-bottom: 2px; }
.title-progress-row { display: flex; align-items: center; justify-content: space-between; padding: 8px 0; border-bottom: 0.5px solid var(--border); font-size: 14px; color: var(--text-muted); }
.title-progress-row:last-child { border-bottom: none; }
.title-progress-row .tp-name { display: inline-flex; align-items: center; gap: 7px; }
.title-progress-row .tp-count { font-weight: 700; color: var(--accent-dark); }
/* Om titler-vindu */
.title-info-intro { font-size: 14px; color: var(--text-muted); line-height: 1.5; margin: 0 0 8px; }
.title-info-h { font-weight: 700; font-size: 15px; margin: 16px 0 4px; }
.ti-info-row { display: flex; align-items: center; gap: 12px; padding: 9px 0; border-bottom: 0.5px solid var(--border); }
.ti-info-row:last-child { border-bottom: none; }
.ti-info-row .tir-icon { width: 34px; height: 34px; border-radius: 9px; background: rgba(251, 191, 36, 0.18); color: var(--accent-dark); display: flex; align-items: center; justify-content: center; font-size: 18px; flex: 0 0 auto; }
.tir-text { display: flex; flex-direction: column; }
.tir-name { font-weight: 600; font-size: 14px; }
.tir-req { font-size: 13px; color: var(--text-muted); }
.card-bio {
  font-size: 15px; line-height: 1.45; color: #3a403c; margin-top: 4px;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}

/* Stempel som vises når du drar kortet */
.stamp {
  position: absolute;
  top: 26px;
  font-size: 30px;
  font-weight: 800;
  padding: 6px 16px;
  border: 4px solid;
  border-radius: 12px;
  opacity: 0;
  text-transform: uppercase;
}
.stamp.yes { left: 20px; color: var(--like); border-color: var(--like); transform: rotate(-14deg); }
.stamp.no  { right: 20px; color: var(--pass); border-color: var(--pass); transform: rotate(14deg); }

.empty-deck {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 30px;
  color: var(--text-muted);
}
.empty-deck .big { font-size: 56px; margin-bottom: 12px; }
.empty-deck h3 { color: var(--text); margin-bottom: 6px; }

/* ---------- Handlingsknapper ---------- */
/* Hei/nei-knappene flyter oppå kortet i bunnen */
#screen-discover { position: relative; }
.action-buttons {
  position: absolute;
  left: 0; right: 0; bottom: 16px;
  display: flex;
  justify-content: center;
  gap: 28px;
  z-index: 5;
  pointer-events: none;  /* slipper sveip gjennom mellomrommene til kortet */
}
.round-btn {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: none;
  background: var(--card-bg);
  box-shadow: var(--shadow);
  font-size: 26px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.1s;
}
.round-btn { pointer-events: auto; }
.round-btn:active { transform: scale(0.9); }
.round-btn.pass { color: var(--pass); }
.round-btn.like { background: var(--accent); color: #fff; }
.round-btn.like:active { background: var(--accent-dark); }

/* ---------- Treffliste ---------- */
.matches-list { flex: 1; overflow-y: auto; padding: 4px 12px 12px; }
.match-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border-radius: 14px;
  cursor: pointer;
}
.match-row:active { background: rgba(0,0,0,0.04); }
.match-avatar {
  width: 56px; height: 56px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 30px;
  flex: 0 0 auto;
}
.match-info { flex: 1; min-width: 0; }
.match-info .name { font-weight: 700; font-size: 16px; }
.match-info .preview {
  font-size: 14px; color: var(--text-muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.empty-state { text-align: center; color: var(--text-muted); padding: 60px 30px; }
.empty-state .big { font-size: 52px; margin-bottom: 12px; }

/* ---------- Chat ---------- */
.chat-screen { background: var(--bg); }
.chat-header { gap: 6px; }
.icon-btn {
  background: none; border: none; font-size: 30px; line-height: 1;
  cursor: pointer; color: var(--text); padding: 0 4px 0 0; font-family: inherit;
}
.chat-messages {
  flex: 1; overflow-y: auto; padding: 12px 16px;
  display: flex; flex-direction: column; gap: 8px;
}
.bubble {
  max-width: 78%;
  padding: 10px 14px;
  border-radius: 18px;
  font-size: 15px;
  line-height: 1.4;
  word-wrap: break-word;
}
.bubble.them { background: var(--card-bg); align-self: flex-start; border-bottom-left-radius: 5px; box-shadow: 0 1px 3px rgba(0,0,0,0.06); }
.bubble.me   { background: var(--accent); color: var(--on-accent); align-self: flex-end; border-bottom-right-radius: 5px; }
.chat-input {
  display: flex; gap: 8px; padding: 10px 12px 14px;
  border-top: 1px solid var(--border); background: var(--bg);
}
/* Samtalestartere (tappbare forslag) */
.chat-starters { padding: 6px 12px 2px; background: var(--bg); }
.starters-label { font-size: 12px; font-weight: 600; color: var(--text-muted); margin: 0 2px 7px; }
.starters-row { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.starters-row::-webkit-scrollbar { display: none; }
.starter-chip {
  flex: 0 0 auto; white-space: nowrap;
  border: 1.5px solid var(--border); background: var(--card-bg); color: var(--accent-ink);
  border-radius: var(--radius-pill); padding: 8px 14px; font-size: 13px; font-weight: 600;
  font-family: inherit; cursor: pointer; box-shadow: var(--shadow-xs);
  transition: background 0.15s ease, transform 0.12s ease, border-color 0.15s ease;
}
.starter-chip:active { transform: scale(0.97); background: var(--accent-soft-2); border-color: var(--accent); }
.chat-input input {
  flex: 1; padding: 12px 16px; font-size: 16px;
  border: 1.5px solid var(--border); border-radius: 999px;
  background: var(--card-bg); color: var(--text); font-family: inherit;
}
.chat-input input:focus { outline: none; border-color: var(--accent); }
.send-btn {
  width: 46px; height: 46px; border-radius: 50%; border: none;
  background: var(--accent); color: var(--on-accent); font-size: 18px; cursor: pointer;
  flex: 0 0 auto;
}

/* ---------- Profil ---------- */
.profile-edit { flex: 1; overflow-y: auto; padding: 8px 20px 24px; }
.profile-avatar {
  width: 88px; height: 88px; border-radius: 50%;
  background: rgba(251,191,36,0.22);
  display: flex; align-items: center; justify-content: center;
  font-size: 46px; margin: 4px auto 20px; overflow: hidden;
}
/* Profilbilde-velger */
.avatar-wrap { display: flex; flex-direction: column; align-items: center; gap: 6px; margin: 4px 0 14px; }
.avatar-btn { position: relative; border: none; background: none; padding: 0; cursor: pointer; line-height: 0; }
.avatar-btn .profile-avatar { margin: 0; }
.avatar-img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; }
.avatar-cam {
  position: absolute; right: 0; bottom: 0; width: 30px; height: 30px; border-radius: 50%;
  background: var(--accent); color: var(--on-accent);
  display: flex; align-items: center; justify-content: center; font-size: 16px;
  border: 2px solid var(--card-bg); box-shadow: var(--shadow-xs);
}
.avatar-remove {
  background: none; border: none; color: var(--text-muted); font-size: 13px;
  text-decoration: underline; cursor: pointer; font-family: inherit; padding: 2px;
}
.avatar-remove:active { color: var(--accent-ink); }

/* ---------- Bunnmeny ---------- */
.bottom-nav {
  display: flex;
  border-top: 0.5px solid var(--border);
  background: var(--card-bg);
  box-shadow: 0 -4px 22px rgba(120, 90, 20, 0.06);
  padding-bottom: env(safe-area-inset-bottom);
}
.nav-btn {
  flex: 1;
  background: none; border: none;
  padding: 9px 0 11px;
  font-size: 11px; font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  position: relative;
  font-family: inherit;
}
.nav-btn.active { color: var(--accent-ink); }
.nav-icon { font-size: 22px; filter: grayscale(0.2); }
.badge {
  position: absolute; top: 4px; right: 50%; margin-right: -22px;
  background: var(--like); color: #fff;
  font-size: 10px; font-weight: 700;
  min-width: 17px; height: 17px; border-radius: 999px;
  display: flex; align-items: center; justify-content: center;
  padding: 0 4px;
}

/* ---------- Match-vindu ---------- */
.modal {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.55);
  display: flex; align-items: center; justify-content: center;
  padding: 30px; z-index: 50;
}
.modal-card {
  background: var(--card-bg);
  border-radius: 22px;
  padding: 30px 26px;
  text-align: center;
  width: 100%;
}
.match-emojis { font-size: 50px; display: flex; justify-content: center; align-items: center; gap: 6px; }
.match-spark { font-size: 30px; }
.modal-card h2 { color: var(--accent-ink); font-size: 26px; margin: 12px 0 8px; }
.modal-card p { color: var(--text-muted); margin-bottom: 22px; }

/* Midlertidig test-knapp (Reset) – flyter i hjørnet, over alt */
.dev-reset {
  position: absolute; bottom: 74px; left: 10px; z-index: 60;
  background: rgba(40, 38, 34, 0.82); color: #fff;
  border: none; border-radius: 999px; padding: 7px 13px;
  font-size: 12px; font-weight: 500; cursor: pointer; font-family: inherit;
  display: flex; align-items: center; gap: 5px;
}
.dev-reset:active { transform: scale(0.95); }

/* Liten innanimasjon på kort */
@keyframes pop { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Spontan-modus ---------- */
.spontan-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  margin: 0 16px 12px; padding: 10px 14px;
  background: var(--card-bg); border: 1.5px solid var(--border); border-radius: 14px;
}
.spontan-bar.on { background: #fff7e6; border-color: var(--accent); }
.spontan-text { display: flex; flex-direction: column; min-width: 0; }
.spontan-title { font-weight: 700; font-size: 15px; }
.spontan-sub { font-size: 12px; color: var(--text-muted); }
.spontan-btn {
  border: none; background: var(--accent); color: var(--on-accent);
  font-weight: 700; font-size: 14px; padding: 9px 18px; border-radius: 999px;
  cursor: pointer; font-family: inherit; flex: 0 0 auto;
}
.spontan-bar.on .spontan-btn { background: var(--text); color: #fff; }
.card-spont {
  display: inline-block; margin-top: 8px;
  font-size: 12px; font-weight: 600;
  background: #fff3d6; color: var(--accent-ink);
  padding: 4px 10px; border-radius: 999px;
}

/* ---------- Ferdighetsnivå ---------- */
.level-row { margin-bottom: 12px; }
.level-name { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.level-seg { display: flex; gap: 6px; }
.level-btn {
  flex: 1; text-align: center;
  border: 1.5px solid var(--border); background: var(--card-bg);
  color: var(--text-muted); font-size: 13px; padding: 8px 4px;
  border-radius: 999px; cursor: pointer; font-family: inherit;
}
.level-btn.active { background: var(--accent); border-color: var(--accent); color: var(--on-accent); font-weight: 600; }

/* ---------- Treffliste: overskrifter, gruppeknapp, grupper ---------- */
.list-heading {
  font-size: 12px; font-weight: 700; letter-spacing: 0.04em;
  text-transform: uppercase; color: var(--text-muted);
  padding: 14px 12px 4px;
}
.new-group-btn {
  display: flex; align-items: center; gap: 8px; justify-content: center;
  width: calc(100% - 24px); margin: 10px 12px 2px; padding: 12px;
  border: 1.5px dashed var(--accent); background: #fff7e6; color: var(--accent-ink);
  border-radius: 14px; font-size: 15px; font-weight: 700;
  cursor: pointer; font-family: inherit;
}
.ng-plus { font-size: 18px; }
.group-avatar { font-size: 22px; letter-spacing: -5px; padding-right: 5px; background: #f1ece0; }

/* ---------- Chat: undertekst + gruppebobler ---------- */
.chat-head-text { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.chat-sub {
  font-size: 12px; font-weight: 400; color: var(--text-muted);
  max-width: 240px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.bubble-wrap { display: flex; flex-direction: column; align-self: flex-start; max-width: 80%; }
.bubble-name { font-size: 12px; color: var(--text-muted); margin: 0 0 2px 8px; }

/* ---------- Gruppe-vindu ---------- */
.modal-form { text-align: left; max-height: 86%; overflow-y: auto; }
.modal-h { text-align: center; }
.group-member-list { display: flex; flex-direction: column; gap: 6px; max-height: 240px; overflow-y: auto; }
.group-member {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px; border: 1.5px solid var(--border);
  background: var(--card-bg); border-radius: 12px; cursor: pointer;
  font-family: inherit; font-size: 15px; text-align: left;
}
.group-member.selected { border-color: var(--accent); background: #fff7e6; }
.gm-avatar {
  width: 36px; height: 36px; border-radius: 50%; flex: 0 0 auto;
  display: flex; align-items: center; justify-content: center; font-size: 20px;
}
.gm-name { flex: 1; }
.gm-check { font-size: 18px; color: var(--accent-ink); }

/* ---------- Landingsside + innlogging ---------- */
.landing-inner { text-align: center; }
.landing-pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 14px 0 28px; }
.lp {
  background: var(--card-bg); border: 1.5px solid var(--border); border-radius: 999px;
  padding: 7px 14px; font-size: 14px; font-weight: 600; color: var(--accent-ink);
}
.btn-outline {
  background: var(--card-bg); color: var(--accent-ink);
  border: 1.5px solid var(--accent); border-radius: 14px;
  padding: 14px; font-size: 17px; font-weight: 700;
  cursor: pointer; font-family: inherit;
}
.btn-outline:active { background: #fff7e6; }
.back-link {
  display: inline-block; background: none; border: none; color: var(--text-muted);
  font-size: 16px; cursor: pointer; font-family: inherit; padding: 0 0 6px;
}
.logo-mini { display: block; width: 56px; height: 56px; margin: 0 auto; }

/* ============================================================
   MODERNE OPPFRISKNING ("Solskinn") – finpuss på toppen.
   Beholder layout, kort-størrelser og plassering som før;
   oppgraderer skrift, farger, skygger, fokus og bevegelse.
   ============================================================ */
html, body { letter-spacing: -0.01em; }
#app { background: radial-gradient(120% 55% at 50% -6%, var(--bg-top) 0%, var(--bg) 46%, var(--bg-tint) 100%); }
.muted { color: var(--text-muted); font-weight: 500; }

/* Topptekst */
.app-header, .header-title { font-size: var(--fs-xl); font-weight: 800; letter-spacing: -0.025em; color: var(--text); }
.header-loc { display: inline-flex; align-items: center; gap: 4px; font-size: var(--fs-sm); font-weight: 600; color: var(--accent-ink); background: var(--accent-soft); padding: 5px 11px; border-radius: var(--radius-pill); }
.header-loc .ti-map-pin { color: var(--accent-ink); font-size: 15px; }
.header-icon-btn { border: 1px solid var(--border); background: var(--card-bg); color: var(--accent-ink); box-shadow: var(--shadow-xs); transition: transform 0.12s var(--ease-out), background 0.15s ease, box-shadow 0.15s ease, color 0.15s ease; }
.header-icon-btn:active { transform: scale(0.92); }
.header-icon-btn.active { background: var(--accent); border-color: var(--accent); color: var(--on-accent); box-shadow: 0 4px 12px var(--accent-ring); }

/* Velkomst / merke */
.welcome h1, .brand { font-size: var(--fs-3xl); font-weight: 800; letter-spacing: -0.03em; }
.brand { letter-spacing: 0.01em; margin: 4px 0 0; text-transform: uppercase; color: #f2615f; background: var(--accent-grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.brand .wm-a, .brand .wm-b { color: inherit; -webkit-text-fill-color: transparent; }
.tagline { color: var(--text-muted); font-size: var(--fs-base); font-weight: 500; }
.landing-tagline { text-align: center; color: var(--text-muted); font-size: 15px; font-weight: 500; margin: 8px 0 28px; }
.landing-tagline b { color: var(--text); font-weight: 700; }

/* Skjema-felt */
.field label, .place-label, .level-name { font-size: var(--fs-sm); font-weight: 700; margin-bottom: 8px; letter-spacing: -0.005em; color: var(--text); }
.field input, .field textarea, .place-input, .event-search, .chat-input input { border: 1.5px solid var(--border); border-radius: var(--radius-md); background: var(--card-bg); color: var(--text); font-family: inherit; transition: border-color 0.15s ease, box-shadow 0.18s var(--ease-out), background 0.15s ease; }
.field input:focus, .field textarea:focus, .place-input:focus, .event-search:focus, .chat-input input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-ring); background: #fffdf8; }
.field input::placeholder, .field textarea::placeholder { color: #b8b0a0; }
.field-hint { color: var(--text-muted); line-height: 1.45; }
.error-text { color: var(--danger); font-weight: 600; }
.saved-text { color: var(--accent-ink); font-weight: 700; }

/* Chips / piller */
.chip, .filter-chip, .title-chip, .level-btn, .lang-switch button, .lp { border: 1.5px solid var(--border); background: var(--card-bg); color: var(--text); border-radius: var(--radius-pill); font-weight: 600; box-shadow: var(--shadow-xs); transition: background 0.18s var(--ease-out), border-color 0.18s var(--ease-out), color 0.18s var(--ease-out), box-shadow 0.18s var(--ease-out), transform 0.12s var(--ease-out); }
.chip { padding: 9px 15px; font-size: var(--fs-sm); }
.filter-chip { padding: 8px 15px; font-size: var(--fs-sm); white-space: nowrap; }
.chip:active, .filter-chip:active, .title-chip:active { transform: scale(0.96); }
.chip.selected, .filter-chip.active, .title-chip.selected, .level-btn.active, .lang-switch button.active { background: var(--accent); border-color: var(--accent); color: var(--on-accent); font-weight: 700; box-shadow: 0 3px 10px var(--accent-ring); }
.lp { color: var(--accent-ink); padding: 7px 14px; }

/* Knapper */
.btn-primary { background: var(--accent-grad); color: var(--on-accent); border-radius: var(--radius-md); padding: 15px; font-size: 17px; font-weight: 800; letter-spacing: -0.01em; box-shadow: 0 6px 16px var(--accent-ring); transition: transform 0.12s var(--ease-out), box-shadow 0.18s ease, filter 0.15s ease; }
.btn-primary:active { transform: scale(0.98); filter: brightness(0.96); box-shadow: 0 2px 8px var(--accent-ring); }
.btn-outline { background: var(--card-bg); color: var(--accent-ink); border: 2px solid var(--accent); border-radius: var(--radius-md); padding: 14px; font-size: 17px; font-weight: 800; letter-spacing: -0.01em; box-shadow: var(--shadow-xs); transition: background 0.15s ease, transform 0.12s var(--ease-out); }
.btn-outline:active { background: var(--accent-soft-2); transform: scale(0.98); }
.btn-text { color: var(--text-muted); font-weight: 600; }

/* Sveipekort */
.profile-card { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); border: 1px solid rgba(124, 93, 30, 0.06); transition: box-shadow 0.34s var(--ease-out), filter 0.34s ease; }
.profile-card.behind { transform: scale(0.93) translateY(16px); filter: brightness(0.985); box-shadow: var(--shadow-sm); transition: none; }
/* Hele kortet (og alt innhold) skal fange sveip – ikke starte nettleser-scroll/markering på mobil */
.deck, .profile-card, .profile-card * { touch-action: none; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.card-banner { position: relative; }
.card-banner i { color: rgba(61, 38, 0, 0.45); }
.card-banner::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 32px; background: linear-gradient(to top, rgba(255,255,255,0.85), rgba(255,255,255,0)); pointer-events: none; }
.card-name { font-weight: 800; letter-spacing: -0.025em; line-height: 1.08; color: var(--text); }
.card-age { font-size: var(--fs-lg); color: var(--text-muted); font-weight: 500; }
.card-dist, .card-langs, .card-place { font-size: var(--fs-sm); color: var(--text-muted); }
.card-bio { color: var(--text-soft); line-height: 1.5; }
.card-tags { gap: 7px; margin: 11px 0 4px; }
.card-tag { background: var(--accent-soft); color: var(--accent-ink); padding: 6px 13px; font-size: 13px; font-weight: 700; border-radius: var(--radius-pill); }
.card-tag.try { background: var(--surface-2); color: #7a3905; }
.card-info-hint { color: rgba(61, 38, 0, 0.4); top: 14px; right: 16px; }

/* Handlingsknapper */
.round-btn { background: var(--card-bg); box-shadow: var(--shadow-md); border: 1px solid rgba(124, 93, 30, 0.06); transition: transform 0.12s var(--ease-out), box-shadow 0.18s ease, filter 0.15s ease; }
.round-btn.pass { color: var(--pass); }
.round-btn.like { background: var(--accent-grad); color: var(--on-accent); box-shadow: var(--shadow-accent); }
.round-btn:active { transform: scale(0.88); }
.round-btn.like:active { filter: brightness(0.96); }

/* Bunnmeny */
.bottom-nav { border-top: 1px solid var(--hairline); background: rgba(255, 255, 255, 0.92); backdrop-filter: saturate(1.5) blur(14px); -webkit-backdrop-filter: saturate(1.5) blur(14px); box-shadow: 0 -6px 26px rgba(124, 90, 20, 0.06); padding-top: 4px; padding-bottom: env(safe-area-inset-bottom); }
.nav-btn { padding: 8px 0 10px; font-size: 11px; font-weight: 700; color: var(--text-muted); gap: 4px; letter-spacing: -0.01em; transition: color 0.18s var(--ease-out); }
.nav-icon { font-size: 22px; filter: none; display: flex; align-items: center; justify-content: center; height: 28px; width: 44px; border-radius: var(--radius-pill); transition: background 0.2s var(--ease-out), transform 0.24s var(--ease-spring); }
.nav-btn.active { color: var(--accent-ink); }
.nav-btn.active .nav-icon { background: var(--accent-soft); color: var(--accent-ink); transform: translateY(-1px); }
.nav-btn:active .nav-icon { transform: scale(0.9); }

/* Chat */
.bubble.them { background: var(--card-bg); box-shadow: var(--shadow-xs); border: 1px solid var(--hairline); }
.bubble.me { background: var(--accent); color: var(--on-accent); }
.send-btn { background: var(--accent-grad); color: var(--on-accent); box-shadow: var(--shadow-accent); transition: transform 0.14s var(--ease-spring), filter 0.15s ease; }
.send-btn:active { transform: scale(0.9); filter: brightness(0.96); }

/* Lister */
.match-row, .member-row { border-radius: var(--radius-md); transition: background 0.15s ease; }
.match-info .name { font-weight: 700; font-size: var(--fs-base); }
.match-info .preview, .member-sub { color: var(--text-muted); font-size: var(--fs-sm); }

/* Vinduer (modaler) */
.modal { background: rgba(40, 30, 8, 0.45); backdrop-filter: blur(6px) saturate(1.1); -webkit-backdrop-filter: blur(6px) saturate(1.1); animation: mu-fade 0.22s var(--ease-out) both; }
.modal-card { border-radius: var(--radius-xl); padding: 28px 24px; box-shadow: 0 24px 60px rgba(60, 40, 10, 0.28); border: 1px solid rgba(255, 255, 255, 0.5); animation: mu-rise 0.34s var(--ease-spring) both; }
@keyframes mu-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes mu-rise { from { opacity: 0; transform: translateY(16px) scale(0.96); } to { opacity: 1; transform: translateY(0) scale(1); } }
.modal-card h2 { color: var(--accent-ink); font-size: var(--fs-2xl); font-weight: 800; letter-spacing: -0.02em; margin: 14px 0 8px; }
.modal-card p { color: var(--text-muted); }

/* Merker / titler */
.title-badge { color: var(--accent-ink); background: var(--accent-soft); border: 1px solid rgba(168, 83, 10, 0.14); font-weight: 700; padding: 3px 11px; border-radius: var(--radius-pill); }
.ev-badge { font-weight: 700; padding: 3px 9px; border-radius: var(--radius-pill); }
.ev-badge.open { background: var(--ok-soft); color: var(--ok); }
.ev-badge.private { background: var(--surface-2); color: var(--text-muted); }
.event-head-icon, .event-avatar { background: var(--accent-soft) !important; color: var(--accent-ink); border-radius: var(--radius-md); }

/* Spontan + diverse flater */
.spontan-bar { border: 1.5px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-xs); transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease; }
.spontan-bar.on { background: linear-gradient(180deg, #fffbf0, #fff6e2); border-color: #fbe3a8; box-shadow: var(--shadow-sm); }
.spontan-btn { background: var(--accent); color: var(--on-accent); font-weight: 700; border-radius: var(--radius-pill); transition: transform 0.12s var(--ease-out), filter 0.15s ease; }
.spontan-btn:active { transform: scale(0.95); }
.card-spont { background: var(--accent-soft); color: var(--accent-ink); font-weight: 700; border-radius: var(--radius-pill); }
.card-fun { background: var(--danger-soft); color: var(--danger); font-weight: 700; border-radius: var(--radius-pill); }
.new-group-btn { border: 1.5px dashed var(--accent); background: var(--accent-soft-2); color: var(--accent-ink); border-radius: var(--radius); font-weight: 700; }
.pref-toggle, .group-member { border: 1.5px solid var(--border); background: var(--card-bg); border-radius: var(--radius-md); color: var(--text); transition: border-color 0.15s ease, background 0.15s ease; }
.pref-toggle.selected, .group-member.selected { border-color: var(--accent); background: var(--accent-soft-2); }
.pref-toggle.selected i { color: var(--accent-ink); }
.profile-avatar { background: var(--accent-soft); box-shadow: var(--shadow-xs); }
.ti-info-row .tir-icon { background: var(--accent-soft); color: var(--accent-ink); border-radius: var(--radius-sm); }
.invite-row, .title-progress-row, .ti-info-row { border-bottom: 1px solid var(--hairline); }
.title-progress-row .tp-count { color: var(--accent-ink); font-weight: 800; }
.inbox-badge, .badge { background: var(--like); color: #fff; font-weight: 700; }

/* Tomme tilstander */
.empty-deck, .empty-state { color: var(--text-muted); }
.empty-deck .big, .empty-state .big { width: 88px; height: 88px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-ink); display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; font-size: 44px; }
.empty-deck h3, .empty-state h3 { color: var(--text); font-weight: 800; font-size: var(--fs-lg); letter-spacing: -0.01em; margin-bottom: 6px; }

/* Mindre bevegelse for de som ønsker det */
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; } }
.auth-h { text-align: center; color: var(--accent-ink); font-size: 24px; margin: 4px 0 18px; }
.auth-alt { text-align: center; font-size: 14px; color: var(--text-muted); margin-top: 14px; }
.link-btn {
  background: none; border: none; color: var(--accent-ink); font-weight: 700;
  font-size: 14px; cursor: pointer; font-family: inherit; text-decoration: underline; padding: 0;
}

/* ---------- "Dårlig taper"-merke på kort ---------- */
.card-spont { margin-right: 6px; }
.card-fun {
  display: inline-block; margin-top: 8px; margin-right: 6px;
  font-size: 12px; font-weight: 600; background: #fdecec; color: #a32d2d;
  padding: 4px 10px; border-radius: 999px;
}

/* ---------- Ikoner (Tabler) ---------- */
.ti { vertical-align: -0.125em; line-height: 1; }
.card-banner i { font-size: 58px; color: rgba(50, 35, 5, 0.5); }
.match-avatar i, .gm-avatar i, .profile-avatar i { color: rgba(45, 32, 10, 0.62); }
.group-avatar i { color: var(--text-muted); }

/* ---------- Favorittsteder ---------- */
.card-place { font-size: 14px; color: var(--text-muted); margin-top: 8px; }
.place-row { margin-bottom: 12px; }
.place-label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.place-input {
  width: 100%; padding: 11px 13px; font-size: 15px;
  border: 1.5px solid var(--border); border-radius: 12px;
  background: var(--card-bg); color: var(--text); font-family: inherit;
}
.place-input:focus { outline: none; border-color: var(--accent); }

/* ---------- Preferanser ("Hvem vil du møte?") ---------- */
.header-right { display: flex; align-items: center; gap: 10px; }
.header-icon-btn {
  width: 36px; height: 36px; border-radius: 50%;
  border: 1.5px solid var(--border); background: var(--card-bg);
  color: var(--text); font-size: 18px; cursor: pointer; flex: 0 0 auto;
  display: flex; align-items: center; justify-content: center;
}
.header-icon-btn.active { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.age-range { display: flex; align-items: center; gap: 10px; }
.age-range input {
  width: 80px; padding: 11px 12px; font-size: 15px; text-align: center;
  border: 1.5px solid var(--border); border-radius: 12px;
  background: var(--card-bg); color: var(--text); font-family: inherit;
}
.age-range input:focus { outline: none; border-color: var(--accent); }
.age-to, .age-unit { color: var(--text-muted); font-size: 14px; }
.pref-toggle {
  display: flex; align-items: center; gap: 10px; width: 100%; text-align: left;
  padding: 12px 14px; margin-bottom: 8px;
  border: 1.5px solid var(--border); background: var(--card-bg);
  border-radius: 12px; font-size: 15px; cursor: pointer;
  font-family: inherit; color: var(--text);
}
.pref-toggle i { color: transparent; font-size: 18px; flex: 0 0 auto; }
.pref-toggle.selected { border-color: var(--accent); background: #fff7e6; }
.pref-toggle.selected i { color: var(--accent-ink); }

/* ---------- Språkvelger ---------- */
.lang-switch { display: inline-flex; gap: 6px; }
.lang-switch button {
  border: 1.5px solid var(--border); background: var(--card-bg); color: var(--text-muted);
  font-size: 14px; padding: 8px 16px; border-radius: 999px;
  cursor: pointer; font-family: inherit;
}
.lang-switch button.active {
  background: var(--accent); border-color: var(--accent);
  color: var(--on-accent); font-weight: 500;
}
.landing-lang { margin-top: 18px; }

/* Profilbilde på kort + personvisning (vises når en person har lastet opp bilde) */
.card-banner, .person-banner { overflow: hidden; }
.banner-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.person-banner { position: relative; }
.match-them-photo { width: 58px; height: 58px; border-radius: 50%; object-fit: cover; display: inline-block; vertical-align: middle; }

/* ============ FEED (innlegg, likes, kommentarer) ============ */
.nav-label { display: inline-block; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bottom-nav .nav-btn { min-width: 0; }
@media (max-width: 400px) { .nav-label { font-size: 10px; letter-spacing: -0.02em; } }

.feed-list { flex: 1; overflow-y: auto; padding: 12px 12px 20px; -webkit-overflow-scrolling: touch; }
/* Filtrene scroller med innholdet (rett under CTA-en) – full bredde tross lista sin padding */
.feed-list > .feed-filters { margin: 0 -12px 4px; }

/* Del-noe-knapp øverst */
.feed-cta { width: 100%; display: flex; align-items: center; gap: 10px; background: var(--card-bg); border: 1.5px solid var(--border); border-radius: var(--radius-pill); padding: 9px 12px; margin-bottom: 14px; cursor: pointer; box-shadow: var(--shadow-xs); font-family: inherit; transition: box-shadow 0.18s var(--ease-out), transform 0.12s var(--ease-out); }
.feed-cta:active { transform: scale(0.99); box-shadow: var(--shadow-sm); }
.feed-cta-av { width: 36px; height: 36px; border-radius: 50%; flex: 0 0 auto; display: flex; align-items: center; justify-content: center; background: var(--accent-soft); color: var(--accent-ink); font-size: 18px; overflow: hidden; }
.feed-cta-text { flex: 1; text-align: start; color: var(--text-muted); font-size: var(--fs-sm); font-weight: 600; }
.feed-cta-cam { color: var(--accent-ink); font-size: 20px; display: flex; }

/* Innleggskort */
.feed-post { background: var(--card-bg); border: 1.5px solid var(--border); border-radius: var(--radius-lg); margin-bottom: 14px; overflow: hidden; box-shadow: var(--shadow-sm); }
.fp-head { display: flex; align-items: center; gap: 10px; padding: 12px 14px 10px; }
.fp-av { width: 42px; height: 42px; border-radius: 50%; flex: 0 0 auto; display: flex; align-items: center; justify-content: center; font-size: 20px; overflow: hidden; }
.fp-meta { flex: 1; min-width: 0; }
.fp-name-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.fp-name { font-weight: 700; font-size: 15px; color: var(--text); }
.fp-title .title-badge { font-size: 11px; }
.fp-sub { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--text-muted); margin-top: 2px; }
.fp-hobby { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; color: var(--accent-ink); }
.fp-dot { opacity: 0.55; }
.fp-clickable { cursor: pointer; }
.fp-del { margin-left: auto; align-self: flex-start; background: none; border: none; color: var(--text-muted); font-size: 20px; cursor: pointer; padding: 12px; border-radius: 8px; line-height: 0; display: flex; align-items: center; justify-content: center; }
.fp-del:active { background: var(--bg-tint); }

.fp-photo { width: 100%; background: var(--bg-tint); }
.fp-photo img { width: 100%; display: block; aspect-ratio: 1 / 1; object-fit: cover; }
.fp-text { padding: 12px 14px 2px; font-size: var(--fs-base); line-height: 1.5; color: var(--text); word-break: break-word; }

.fp-actions { display: flex; align-items: center; gap: 20px; padding: 8px 14px 4px; }
.fp-act { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; background: none; border: none; font-family: inherit; font-size: 14px; font-weight: 700; color: var(--text-muted); cursor: pointer; padding: 6px 4px; transition: transform 0.12s var(--ease-out), color 0.15s var(--ease-out); }
.fp-act i { font-size: 21px; }
.fp-like:active { transform: scale(0.88); }
.fp-like.liked, .fp-like.liked i { color: var(--like); }
.fp-cn { cursor: default; font-weight: 600; color: var(--text-muted); }
.fp-cn i { font-size: 18px; }

.fp-comments { padding: 2px 14px 12px; }
.fp-comment { display: flex; gap: 8px; align-items: flex-start; margin-bottom: 8px; }
.fp-c-av { width: 28px; height: 28px; border-radius: 50%; flex: 0 0 auto; display: flex; align-items: center; justify-content: center; font-size: 14px; overflow: hidden; }
.fp-c-body { font-size: 13.5px; line-height: 1.45; color: var(--text); padding-top: 3px; }
.fp-c-name { font-weight: 700; margin-right: 4px; }
.fp-comment-form { display: flex; align-items: center; gap: 8px; margin-top: 10px; }
.fp-c-av-me { width: 28px; height: 28px; border-radius: 50%; flex: 0 0 auto; display: flex; align-items: center; justify-content: center; background: var(--accent-soft); color: var(--accent-ink); overflow: hidden; font-size: 14px; }
.fp-comment-input { flex: 1; min-width: 0; border: 1.5px solid var(--border); background: var(--bg-tint); border-radius: var(--radius-pill); padding: 8px 14px; font-family: inherit; font-size: 13.5px; color: var(--text); }
.fp-comment-input:focus { outline: none; border-color: var(--accent); }
.fp-c-send { background: none; border: none; color: var(--accent-ink); font-size: 20px; cursor: pointer; padding: 12px; flex: 0 0 auto; line-height: 0; display: flex; align-items: center; justify-content: center; }

/* Compose-vindu */
.feed-c-photo { position: relative; margin-bottom: 12px; border-radius: var(--radius-md); overflow: hidden; }
.feed-c-photo img { width: 100%; display: block; aspect-ratio: 4 / 3; max-height: 200px; object-fit: cover; }
.feed-photo-rm { position: absolute; top: 8px; right: 8px; width: 32px; height: 32px; border-radius: 50%; border: none; background: rgba(0,0,0,0.55); color: #fff; font-size: 18px; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.feed-photo-btn { margin-bottom: 12px; }
#feed-c-text { width: 100%; border: 1.5px solid var(--border); border-radius: var(--radius-md); padding: 10px 12px; font-family: inherit; font-size: var(--fs-base); color: var(--text); resize: vertical; }
/* Compose-vinduet forankres litt mot toppen så «Publiser» ikke havner bak tastaturet på mobil */
#feed-modal { align-items: flex-start; padding-top: 22px; padding-bottom: 22px; }
#feed-c-text:focus { outline: none; border-color: var(--accent); }
#feed-c-hobby { gap: 8px; }

/* Feed: sorterings- og sted-velgere */
.feed-controls { padding: 10px 12px 2px; display: flex; flex-direction: column; gap: 8px; }
.feed-seg-wrap { display: flex; flex-wrap: wrap; gap: 8px; }
.feed-seg { display: inline-flex; background: var(--bg-tint); border: 1.5px solid var(--border); border-radius: var(--radius-pill); padding: 3px; gap: 2px; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.feed-seg::-webkit-scrollbar { display: none; }
.feed-seg-btn { display: inline-flex; align-items: center; gap: 5px; border: none; background: none; padding: 7px 13px; border-radius: var(--radius-pill); font-family: inherit; font-size: var(--fs-sm); font-weight: 600; color: var(--text-muted); cursor: pointer; white-space: nowrap; transition: background 0.16s var(--ease-out), color 0.16s var(--ease-out); }
/* På smale skjermer: skjul ikonene så alle fire sted-valg får plass uten å bli klippet */
@media (max-width: 400px) { .feed-seg-btn { padding: 7px 10px; } .feed-seg-btn i { display: none; } }
.feed-seg-btn i { font-size: 16px; }
.feed-seg-btn.active { background: var(--accent-grad); color: #fff; text-shadow: 0 1px 2px rgba(176, 60, 44, 0.22); box-shadow: 0 3px 9px rgba(242, 110, 106, 0.26); }
/* km-slider (Nær meg) */
.feed-km { display: flex; flex-direction: column; align-items: stretch; gap: 4px; padding: 2px 4px 0; }
.feed-km-head { font-size: var(--fs-sm); color: var(--text-muted); display: flex; align-items: center; gap: 6px; }
.feed-km-head i { font-size: 16px; color: var(--accent-ink); }
.feed-km-head strong { color: var(--accent-ink); font-weight: 700; }
.feed-km-range { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 999px; background: var(--border); outline: none; margin: 8px 0 2px; cursor: pointer; }
.feed-km-range::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 24px; height: 24px; border-radius: 50%; background: var(--accent); border: 3px solid var(--card-bg); box-shadow: var(--shadow-sm); cursor: pointer; }
.feed-km-range::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: var(--accent); border: 3px solid var(--card-bg); box-shadow: var(--shadow-sm); cursor: pointer; }
.feed-km-range:focus-visible { outline: 3px solid var(--accent-ring); outline-offset: 3px; }
.feed-km-ends { display: flex; justify-content: space-between; font-size: 11px; color: var(--text-muted); }

/* Sted-linje på innlegg */
.fp-loc { display: inline-flex; align-items: center; gap: 3px; }
.fp-loc i { font-size: 14px; }

/* ============ ARRANGEMENT: typer, kapasitet, lag, forespørsler, Mine ============ */
.ev-badge.request { background: var(--accent-soft); color: var(--accent-ink); }
.ev-badge.full { background: var(--danger-soft); color: var(--danger); }
.event-view-toggle { margin: 0 16px 10px; }
.requests-label { color: var(--accent-ink); }
.requests-label i { font-size: 15px; vertical-align: -2px; }

/* mini-segment (antall lag) */
.ev-teams-count { display: flex; align-items: center; gap: 10px; margin-top: 10px; padding-left: 2px; }
.seg-mini { display: inline-flex; background: var(--bg-tint); border: 1.5px solid var(--border); border-radius: var(--radius-pill); padding: 3px; gap: 2px; }
.seg-mini-btn { border: none; background: none; min-width: 38px; padding: 6px 0; border-radius: var(--radius-pill); font-family: inherit; font-size: var(--fs-sm); font-weight: 700; color: var(--text-muted); cursor: pointer; }
.seg-mini-btn.active { background: var(--accent); color: var(--on-accent); box-shadow: var(--shadow-xs); }

/* lag-grupper i arrangementsdetaljer */
.ev-team-group { margin-bottom: 10px; }
.ev-team-name { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--accent-ink); padding: 6px 2px 2px; }
.ev-team-name i { font-size: 15px; }
.ev-team-n { background: var(--accent-soft); color: var(--accent-ink); border-radius: 999px; font-size: 11px; padding: 1px 8px; font-weight: 700; }
.ev-team-sel { border: 1.5px solid var(--border); background: var(--card-bg); color: var(--text); border-radius: var(--radius-pill); padding: 8px 10px; min-height: 40px; font-family: inherit; font-size: 12.5px; font-weight: 600; flex: 0 0 auto; max-width: 104px; }
.ev-kick.mini { padding: 9px; min-height: 40px; line-height: 0; margin-left: 6px; display: inline-flex; align-items: center; justify-content: center; }
.ev-kick.mini i { font-size: 16px; }
@media (max-width: 380px) { .ev-team-sel { max-width: 84px; } }

/* forespørsler */
.req-row .req-actions { display: flex; gap: 6px; flex: 0 0 auto; }
.req-approve { background: var(--accent); color: var(--on-accent); border: none; border-radius: 999px; padding: 9px 13px; min-height: 40px; font-size: 13px; font-weight: 700; cursor: pointer; font-family: inherit; }
.req-approve:disabled { opacity: 0.5; cursor: default; }
.req-decline { background: rgba(0,0,0,0.06); color: var(--text-muted); border: none; border-radius: 999px; padding: 9px 13px; min-height: 40px; font-size: 13px; font-weight: 600; cursor: pointer; font-family: inherit; }

/* inviter et helt lag */
.invite-teams { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--hairline); }
.invite-teams .field-hint { width: 100%; margin: 0 0 2px; }

/* «Mine lag»-seksjon */
.teams-heading { display: flex; align-items: center; justify-content: space-between; }
.teams-heading span i { margin-right: 4px; }
.teams-new-btn { background: var(--accent-soft); color: var(--accent-ink); border: none; border-radius: var(--radius-pill); padding: 6px 12px; font-family: inherit; font-size: 13px; font-weight: 700; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; }
.team-row .team-avs { display: flex; align-items: center; gap: 4px; margin-top: 4px; }
.team-mini-av { width: 24px; height: 24px; border-radius: 50%; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; flex: 0 0 auto; }
.team-count { font-size: 12.5px; color: var(--text-muted); margin-left: 4px; }
.team-del { background: none; border: none; color: var(--text-muted); cursor: pointer; padding: 10px; line-height: 0; flex: 0 0 auto; }
.team-del:active { color: #a32d2d; }

/* ============ Venner: fjern / blokker ============ */
.person-actions { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--hairline); display: flex; flex-direction: column; gap: 4px; }
.person-actions .person-unfriend { display: flex; align-items: center; justify-content: center; gap: 6px; }
.person-block { border-color: var(--danger); color: var(--danger); background: var(--danger-soft); display: flex; align-items: center; justify-content: center; gap: 6px; }
.person-block:active { background: var(--danger); color: #fff; }
.person-unblock { color: var(--accent-ink); display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.blocked-row { display: flex; align-items: center; gap: 10px; padding: 6px 4px; }
.blocked-row .gm-avatar { width: 36px; height: 36px; border-radius: 50%; flex: 0 0 auto; display: flex; align-items: center; justify-content: center; overflow: hidden; filter: grayscale(0.4); }
.blocked-row .member-info { flex: 1; min-width: 0; }
.blocked-unblock { color: var(--accent-ink); font-weight: 700; flex: 0 0 auto; width: auto; display: inline-flex; align-items: center; min-height: 44px; padding: 8px 12px; }

/* ============ Skjul filtre ved scrolling nedover (feed + arrangement) ============ */
.discover-search-wrap, .match-search-wrap { padding-top: 6px; }
.collapsible { overflow: hidden; max-height: 340px; transition: max-height 0.32s var(--ease-out), opacity 0.22s var(--ease-out); }
.collapsible.collapsed { max-height: 0; opacity: 0; pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .collapsible { transition: none; } }

/* ============ Støtte (Vipps) + Naba+ ============ */
.support-card { background: var(--accent-soft-2); border: 1px solid #fbe3a8; border-radius: var(--radius-lg); padding: 20px 18px; text-align: center; margin-top: 14px; }
.support-heart { width: 46px; height: 46px; margin: 0 auto 8px; display: flex; align-items: center; justify-content: center; background: var(--accent-grad); color: var(--on-accent); border-radius: 50%; font-size: 24px; box-shadow: 0 4px 10px var(--accent-ring); }
.support-title { font-size: 18px; font-weight: 800; margin: 0 0 6px; color: var(--text); }
.support-text { font-size: 14px; color: var(--text-muted); margin: 0 0 14px; line-height: 1.5; }
.support-pick { font-size: 13px; font-weight: 600; color: var(--text-soft); margin: 0 0 8px; }
.support-amounts { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-bottom: 14px; }
.support-amt { min-width: 64px; min-height: 44px; padding: 10px 14px; border-radius: var(--radius-pill); border: 1.5px solid var(--border-strong); background: var(--card-bg); color: var(--text); font-family: inherit; font-size: 15px; font-weight: 700; cursor: pointer; transition: background 0.15s ease, border-color 0.15s ease, transform 0.12s var(--ease-out); }
.support-amt:active { transform: scale(0.96); }
.support-amt.active { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.support-btn { margin-top: 0; display: flex; align-items: center; justify-content: center; gap: 7px; }
.support-msg { margin: 12px 2px 0; font-size: 14px; font-weight: 700; color: var(--accent-ink); }

/* belønningstittel (donasjon) */
.support-reward { display: flex; align-items: center; gap: 12px; text-align: left; background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 12px 14px; margin: 0 0 14px; }
.support-reward-medal { flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--accent-grad); color: var(--on-accent); display: flex; align-items: center; justify-content: center; font-size: 21px; box-shadow: 0 4px 10px var(--accent-ring); }
.support-reward-text { flex: 1; min-width: 0; }
.support-reward-lead { font-size: 12.5px; color: var(--text-muted); font-weight: 600; }
.support-reward-name { font-size: 17px; font-weight: 800; color: var(--accent-ink); letter-spacing: -0.01em; }
.support-reward-meta { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.support-have { margin: 12px 2px 0; font-size: 14px; font-weight: 700; color: var(--accent-ink); display: flex; align-items: center; justify-content: center; gap: 6px; }
.support-have i { color: var(--accent-dark); }

/* ============ Finn folk ============ */
#find-search { width: 100%; margin: 4px 0 0; }
.find-results { display: flex; flex-direction: column; gap: 4px; margin-top: 14px; max-height: 58vh; overflow-y: auto; }
.find-row { display: flex; align-items: center; gap: 12px; width: 100%; padding: 9px 8px; border: none; background: none; border-radius: var(--radius-md); cursor: pointer; font-family: inherit; text-align: left; min-height: 56px; transition: background 0.15s ease; }
.find-row:active { background: var(--bg-tint); }
.find-row .gm-avatar { width: 46px; height: 46px; border-radius: 50%; flex: 0 0 auto; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.find-info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.find-name { font-size: 16px; font-weight: 800; color: var(--text); }
.find-age { font-weight: 600; color: var(--text-muted); font-size: 14px; }
.find-subs { font-size: 13px; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.find-chev { color: var(--text-muted); flex: 0 0 auto; font-size: 20px; }
.find-empty { text-align: center; color: var(--text-muted); padding: 28px 10px; display: flex; flex-direction: column; gap: 4px; font-size: 15px; }

/* ============ Titler låst bak Naba+ + demo-medlemskap ============ */
.title-locked { background: var(--accent-soft-2); border: 1px solid #fbe3a8; border-radius: var(--radius-md); padding: 14px; }
.title-locked-row { display: flex; align-items: flex-start; gap: 8px; font-size: 14px; color: var(--text-soft); margin-bottom: 12px; line-height: 1.45; }
.title-locked-row i { color: var(--accent-ink); margin-top: 2px; flex: none; }
.title-getplus { display: flex; align-items: center; justify-content: center; gap: 7px; }
.plus-demo { margin: 14px 4px 0; text-align: center; font-size: 13px; color: var(--text-muted); display: flex; align-items: center; justify-content: center; gap: 6px; flex-wrap: wrap; }
.plus-demo i { color: var(--accent-dark); }
.plus-demo-link { background: none; border: none; font-family: inherit; font-size: 13px; font-weight: 700; color: var(--accent-ink); cursor: pointer; text-decoration: underline; padding: 6px 4px; min-height: 0; }
.plus-notice { display: flex; align-items: flex-start; gap: 8px; background: var(--accent-soft-2); border: 1px solid #fbe3a8; border-radius: var(--radius-md); padding: 11px 13px; font-size: 14px; color: var(--text-soft); line-height: 1.45; margin-bottom: 16px; text-align: left; }
.plus-notice i { color: var(--accent-ink); margin-top: 2px; flex: none; }
.title-badge.donor { background: var(--accent-soft); }

/* Naba+ banner-knapp i profilen */
.plus-entry { width: 100%; margin-top: 14px; display: flex; align-items: center; gap: 13px; background: linear-gradient(135deg, #fff6e0, #fdeec3); border: 1.5px solid #fbe3a8; border-radius: var(--radius-lg); padding: 15px 16px; cursor: pointer; font-family: inherit; text-align: left; box-shadow: var(--shadow-xs); transition: transform 0.12s var(--ease-out), box-shadow 0.18s ease; }
.plus-entry:active { transform: scale(0.99); box-shadow: var(--shadow-sm); }
.plus-entry-crown { flex: none; width: 42px; height: 42px; border-radius: 50%; background: var(--accent-grad); color: var(--on-accent); display: flex; align-items: center; justify-content: center; font-size: 22px; box-shadow: 0 4px 10px var(--accent-ring); }
.plus-entry-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.plus-entry-title { font-size: 17px; font-weight: 800; color: var(--text); }
.plus-entry-sub { font-size: 13px; color: var(--text-muted); }
.plus-entry-chev { color: var(--accent-ink); font-size: 20px; flex: none; }

/* Naba+ modal */
.plus-card { text-align: center; }
.plus-head { text-align: center; margin-bottom: 4px; }
.plus-crown { width: 58px; height: 58px; margin: 0 auto 6px; display: flex; align-items: center; justify-content: center; background: var(--accent-grad); color: var(--on-accent); border-radius: 50%; font-size: 30px; box-shadow: 0 6px 16px var(--accent-ring); }
.plus-card .modal-h { margin: 4px 0 6px; }
.plus-soon { display: inline-block; background: var(--accent-soft); color: var(--accent-ink); font-size: 12px; font-weight: 800; padding: 3px 11px; border-radius: var(--radius-pill); letter-spacing: 0.02em; }
.plus-sub { font-size: 14px; color: var(--text-muted); margin: 10px 4px 16px; line-height: 1.5; text-align: center; }
.plus-seg { display: flex; width: 100%; margin: 0 0 18px; }
.plus-seg .feed-seg-btn { flex: 1; justify-content: center; min-height: 44px; }
.plus-planfor { font-size: 13px; font-weight: 700; color: var(--accent-ink); text-transform: uppercase; letter-spacing: 0.06em; text-align: center; }
.plus-price { text-align: center; margin: 6px 0 16px; color: var(--text); }
.plus-price-n { font-size: 38px; font-weight: 800; letter-spacing: -0.02em; }
.plus-price-u { font-size: 15px; font-weight: 700; color: var(--text-muted); }
.plus-perks { list-style: none; padding: 0; margin: 0 0 20px; display: flex; flex-direction: column; gap: 11px; }
.plus-perks li { display: flex; align-items: center; gap: 10px; font-size: 15px; color: var(--text-soft); text-align: left; }
.plus-perks li i { color: var(--accent-ink); background: var(--accent-soft); border-radius: 50%; width: 24px; height: 24px; display: inline-flex; align-items: center; justify-content: center; font-size: 15px; flex: none; }
.plus-thanks { margin: 12px 4px 0; font-size: 14px; font-weight: 700; color: var(--accent-ink); text-align: center; }
.btn-primary[disabled] { opacity: 0.6; cursor: default; }

/* ============ Rapporter bruker ============ */
.person-report { color: var(--danger); display: inline-flex; align-items: center; justify-content: center; gap: 6px; margin-top: 2px; }
.report-hint { margin: 4px 0 12px; }
.report-reasons { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }
.report-reason { text-align: left; padding: 14px 16px; border: 1.5px solid var(--border); border-radius: var(--radius-md); background: var(--card-bg); color: var(--text); font-family: inherit; font-size: 15px; font-weight: 600; cursor: pointer; min-height: 48px; transition: border-color 0.15s ease, background 0.15s ease; }
.report-reason:active { background: var(--bg-tint); }
.report-reason.selected { border-color: var(--accent); background: var(--accent-soft-2); color: var(--accent-ink); }
.report-note { width: 100%; padding: 13px 16px; font-size: 16px; font-family: inherit; border: 1.5px solid var(--border); border-radius: var(--radius-md); background: var(--card-bg); color: var(--text); resize: none; margin-bottom: 14px; box-sizing: border-box; }
.report-note:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-ring); }
.report-blockrow { display: flex; align-items: center; gap: 10px; font-size: 15px; color: var(--text-soft); margin-bottom: 8px; cursor: pointer; min-height: 44px; padding: 6px 0; }
.report-blockrow input { width: 22px; height: 22px; accent-color: var(--accent); flex: none; }
.report-done { text-align: center; padding: 8px 0; }
.report-done-icon { width: 76px; height: 76px; margin: 0 auto 10px; border-radius: 50%; background: var(--ok-soft); color: var(--ok); display: flex; align-items: center; justify-content: center; font-size: 40px; }
.report-done-text { color: var(--text-muted); margin: 6px 0 22px; line-height: 1.5; }

/* ============ Rapporter innlegg + Tema + Trygghet ============ */
.fp-report { background: none; border: none; color: var(--text-muted); cursor: pointer; min-width: 44px; min-height: 44px; margin: -10px -10px 0 0; border-radius: 50%; line-height: 0; font-size: 19px; display: flex; align-items: center; justify-content: center; align-self: flex-start; flex: none; }
.fp-report:active { background: var(--danger-soft); color: var(--danger); }

.theme-swatches { display: flex; gap: 12px; flex-wrap: wrap; }
.theme-sw { width: 52px; height: 52px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 0 0 1.5px var(--border-strong), var(--shadow-xs); cursor: pointer; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 22px; padding: 0; transition: transform 0.12s var(--ease-out); }
.theme-sw:active { transform: scale(0.94); }
.theme-sw.selected { box-shadow: 0 0 0 4px var(--text); }
.theme-name { margin-top: 10px; font-size: 14px; font-weight: 700; color: var(--accent-ink); }

/* Profil-stil: glød + merker (Naba+) */
.profile-avatar.glow { box-shadow: 0 0 0 3px var(--accent), 0 0 22px 6px var(--accent-ring); }
.avatar-badge {
  position: absolute; top: -3px; right: -3px; min-width: 30px; height: 30px;
  padding: 0 3px; border-radius: 50%; background: var(--card-bg);
  border: 2px solid var(--accent); box-shadow: var(--shadow-xs);
  display: flex; align-items: center; justify-content: center; font-size: 16px; line-height: 1;
}
/* Andre personers Naba+-pynt på avatarene (glød + merke), brukt overalt en avatar vises */
.av-wrap { position: relative; display: inline-flex; flex: 0 0 auto; vertical-align: middle; }
.gm-avatar.glow, .match-avatar.glow, .fp-av.glow, .match-them-photo.glow {
  box-shadow: 0 0 0 2px var(--accent), 0 0 12px 2px var(--accent-ring);
}
.av-wrap .avatar-badge.av-badge-sm {
  min-width: 18px; height: 18px; top: -4px; right: -4px;
  padding: 0 2px; border-width: 1.5px; font-size: 11px;
}
/* Glød + merke på de store kort-bannerne (sveipe-kort + person-modal) */
.card-banner.glow, .person-banner.glow { box-shadow: inset 0 0 0 3px var(--accent); }
.banner-badge {
  position: absolute; top: 12px; left: 12px; z-index: 4;
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--card-bg); border: 2.5px solid var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; line-height: 1; box-shadow: var(--shadow-sm);
}
/* RTL: speil de runde avatar-merkene til motsatt side (matcher leseretningen på
   arabisk/hebraisk/farsi/urdu/pashto). Banner-merket blir bevisst stående øverst til
   venstre i alle retninger, siden lukkeknappen/info-ikonet alltid er øverst til høyre. */
[dir="rtl"] .avatar-badge { right: auto; left: -3px; }
[dir="rtl"] .av-wrap .avatar-badge.av-badge-sm { right: auto; left: -4px; }
.glow-toggle {
  display: inline-flex; align-items: center; gap: 7px; min-height: 44px; padding: 9px 16px;
  border-radius: var(--radius-pill); border: 1.5px solid var(--border-strong);
  background: var(--card-bg); color: var(--text-soft); font-size: 14px; font-weight: 700;
  cursor: pointer; transition: transform 0.12s var(--ease-out);
}
.glow-toggle:active { transform: scale(0.97); }
.glow-toggle.selected { background: var(--accent); border-color: var(--accent); color: var(--on-accent); box-shadow: 0 3px 10px var(--accent-ring); }
.badge-label { margin: 16px 0 8px; font-size: 14px; font-weight: 700; color: var(--text-soft); }
.badge-opts { display: flex; gap: 9px; flex-wrap: wrap; }
.badge-opt {
  width: 46px; height: 46px; border-radius: 50%; border: 1.5px solid var(--border-strong);
  background: var(--card-bg); color: var(--text-muted); font-size: 22px; line-height: 1;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  padding: 0; transition: transform 0.12s var(--ease-out);
}
.badge-opt:active { transform: scale(0.94); }
.badge-opt.selected { border-color: var(--accent); background: var(--accent-soft); box-shadow: 0 0 0 2px var(--accent); }

.safety-icon { width: 76px; height: 76px; margin: 0 auto 8px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-ink); display: flex; align-items: center; justify-content: center; font-size: 40px; }
.safety-intro { color: var(--text-muted); text-align: center; margin: 4px 0 18px; }
.safety-tips { list-style: none; padding: 0; margin: 0 0 20px; display: flex; flex-direction: column; gap: 12px; }
.safety-tips li { display: flex; align-items: flex-start; gap: 11px; font-size: 15px; color: var(--text-soft); line-height: 1.45; text-align: left; }
.safety-tips li i { color: var(--accent-ink); font-size: 22px; flex: none; margin-top: 1px; }

.profile-links { display: flex; justify-content: center; gap: 20px; margin-top: 12px; flex-wrap: wrap; }
.profile-links .privacy-link { margin: 0; display: inline-flex; align-items: center; min-height: 44px; padding: 0 6px; }

/* ============ Mørk modus: flater som ikke styres av variablene alene ============ */
.theme-dark .bottom-nav { background: rgba(28, 24, 19, 0.92); box-shadow: 0 -6px 26px rgba(0, 0, 0, 0.45); }
.theme-dark .card-tag.try { background: rgba(255, 255, 255, 0.08); color: var(--text-soft); }
.theme-dark .card-banner::after { background: linear-gradient(to top, var(--card-bg), rgba(34, 30, 24, 0)); }
.theme-dark .person-close { background: rgba(255, 255, 255, 0.14); color: var(--text); }
.theme-dark .field input:focus, .theme-dark .field textarea:focus, .theme-dark .place-input:focus, .theme-dark .event-search:focus, .theme-dark .chat-input input:focus, .theme-dark .report-note:focus, .theme-dark #find-search:focus { background: var(--bg-tint); }
.theme-dark .spontan-bar.on { background: linear-gradient(180deg, #2a2418, #221d12); border-color: var(--border-strong); }
.theme-dark .plus-entry { background: linear-gradient(135deg, #2a2418, #231d12); border-color: var(--border-strong); }
/* Mørk modus: resterende lyse highlight-/avatar-flater (arrangement, gruppe, prefs, spontan) */
.theme-dark .spontan-bar.on .spontan-btn { background: var(--accent); color: var(--on-accent); }
.theme-dark .card-spont { background: var(--accent-soft); color: var(--accent-ink); }
.theme-dark .new-group-btn { background: var(--accent-soft); color: var(--accent-ink); }
.theme-dark .group-member.selected { background: var(--accent-soft); border-color: var(--accent); }
.theme-dark .pref-toggle.selected { background: var(--accent-soft); border-color: var(--accent); }
.theme-dark .event-avatar { background: var(--accent-soft) !important; color: var(--accent-ink); }
.theme-dark .event-head-icon { background: var(--accent-soft); color: var(--accent-ink); }
.theme-dark .group-avatar { background: var(--surface-2); color: var(--text-soft); }
.theme-dark .card-fun { background: rgba(220, 90, 90, 0.20); color: #ff9d9d; }
/* Mørk modus: --danger-soft (#fdecec) glarer ellers på disse røde flatene */
.theme-dark .person-block { background: rgba(220, 90, 90, 0.16); color: #ff9d9d; border-color: rgba(220, 90, 90, 0.45); }
.theme-dark .ev-badge.full { background: rgba(220, 90, 90, 0.18); color: #ff9d9d; }
.theme-dark .fp-report:active { background: rgba(220, 90, 90, 0.18); color: #ff9d9d; }

/* ============================================================
   SOLNEDGANG-REFRESH (Lovable-stil, juli 2026)
   Solnedgang-gradient (gul→korall) på hovedhandlinger + korall
   som fast aksent i bunnmeny/posisjon + mykere, rundere kort.
   ============================================================ */
/* Hvit tekst på solnedgang-gradienten (som i referansen), med lett skygge for lesbarhet */
.btn-primary { color: #fff; text-shadow: 0 1px 2px rgba(176, 60, 44, 0.28); box-shadow: 0 8px 20px rgba(242, 110, 106, 0.30); }
.btn-primary:active { filter: brightness(0.97); }
.round-btn.like { color: #fff; }

/* Aktiv bunnmeny + posisjons-pin = korall (fast merkefarge på tvers av temaer) */
.nav-btn.active { color: var(--coral); }
.nav-btn.active .nav-icon { background: transparent; color: var(--coral); transform: translateY(-1px); }
.header-loc { background: var(--accent-soft-2); color: var(--text-muted); }
.header-loc .ti-map-pin { color: var(--coral); }

/* Valgte chips/filtre = solnedgang-gradient med hvit tekst */
.chip.selected, .filter-chip.active, .title-chip.selected, .level-btn.active, .lang-switch button.active, .pref-toggle.selected, .group-member.selected {
  background: var(--accent-grad); border-color: transparent; color: #fff; text-shadow: 0 1px 2px rgba(176, 60, 44, 0.22);
  box-shadow: 0 6px 15px rgba(242, 110, 106, 0.26);
}
.chip.selected i, .filter-chip.active i, .pref-toggle.selected i { color: #fff; }

/* Spontan-bar (på) = full solnedgang-gradient, hvit tekst, hvit knapp */
/* Spontan-baren er alltid solnedgang-gradient (som i referansen), hvit tekst, hvit knapp.
   NB: .on-varianten MÅ også overstyres – den hadde en lys bakgrunn med høyere spesifisitet,
   så hvit tekst ble usynlig når man skrudde spontan på. */
.spontan-bar, .spontan-bar.on { background: var(--accent-grad); border-color: transparent; box-shadow: 0 10px 24px rgba(242, 110, 106, 0.24); }
.spontan-title, .spontan-title i, .spontan-sub, .spontan-bar.on .spontan-title, .spontan-bar.on .spontan-sub { color: #fff; }
.spontan-sub { opacity: 0.92; }
.spontan-btn, .spontan-bar.on .spontan-btn { background: #fff; color: var(--coral); font-weight: 800; border: none; }
.spontan-btn:active { filter: brightness(0.95); }

/* Mykere, rundere kort (den «luftige» Lovable-følelsen) */
.feed-post { border-radius: 24px; border-color: transparent; box-shadow: 0 10px 30px rgba(90, 70, 30, 0.09); }
.profile-card { border-radius: 26px; box-shadow: 0 18px 44px rgba(90, 70, 30, 0.13), 0 6px 16px rgba(90, 70, 30, 0.07); }

/* Arrangement-kort (Lovable-stil): rundt kort + gradient-avatar + full-bredde «Bli med» */
.ev-card { background: var(--card-bg); border-radius: 24px; box-shadow: 0 10px 30px rgba(90, 70, 30, 0.09); margin-bottom: 16px; overflow: hidden; }
.ev-card-top { display: flex; gap: 14px; align-items: flex-start; padding: 18px 18px 16px; cursor: pointer; }
.ev-card-av { width: 62px; height: 62px; border-radius: 50%; background: linear-gradient(140deg, #ffd57e 0%, #f9a24d 100%); display: flex; align-items: center; justify-content: center; font-size: 30px; line-height: 1; flex: 0 0 auto; box-shadow: 0 6px 14px rgba(240, 150, 60, 0.28); }
.ev-card-main { flex: 1; min-width: 0; }
.ev-card-title { font-size: 19px; font-weight: 800; color: var(--text); letter-spacing: -0.01em; line-height: 1.2; margin-bottom: 3px; }
.ev-card-sub { font-size: 14px; color: var(--text-muted); margin-bottom: 9px; }
.ev-c-meta { display: flex; align-items: center; gap: 7px; font-size: 14px; color: var(--text-muted); margin-top: 3px; line-height: 1.3; }
.ev-c-meta i { font-size: 16px; flex: none; }
.ev-card-join { display: block; width: 100%; border: none; background: var(--accent-grad); color: #fff; font-size: 16px; font-weight: 800; padding: 15px; cursor: pointer; text-shadow: 0 1px 2px rgba(176, 60, 44, 0.28); transition: filter 0.15s ease; }
.ev-card-join:active { filter: brightness(0.96); }
.ev-card-join.soft { background: var(--accent-soft-2); color: var(--accent-ink); text-shadow: none; }
.ev-card-join.full { background: var(--surface-2); color: var(--text-muted); text-shadow: none; cursor: default; }

/* Oppdag-kort: navn + avstand oppå et høyere, mer levende banner (Lovable-stil) */
.card-banner .banner-photo { filter: saturate(1.32) contrast(1.05); }
.card-banner::after { display: none; }
.card-banner-scrim { position: absolute; left: 0; right: 0; bottom: 0; height: 62%; z-index: 2; pointer-events: none;
  background: linear-gradient(to top, rgba(22, 12, 30, 0.66) 0%, rgba(22, 12, 30, 0.20) 55%, transparent 100%); }
.card-banner-overlay { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; pointer-events: none;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; padding: 16px 18px; }
.card-banner-overlay .card-name-row { align-items: baseline; gap: 8px; }
.card-banner-overlay .card-name { color: #fff; font-size: 28px; font-weight: 800; letter-spacing: -0.01em; text-shadow: 0 2px 10px rgba(0, 0, 0, 0.42); }
.card-banner-overlay .card-age { color: rgba(255, 255, 255, 0.92); font-size: 21px; font-weight: 600; text-shadow: 0 2px 10px rgba(0, 0, 0, 0.42); }
.card-banner-dist { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; color: #fff; font-size: 13px; font-weight: 700;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.6); }
.card-banner-dist i { font-size: 15px; }
.card-langs { display: flex; align-items: center; gap: 6px; }
