@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700;800&display=swap');
@import url('/css/card-radius.css?v=446f200e3d');   /* CARD-RADIUS-01: egységes 16px kártya-lekerekítés */

/* ===================================================
   melopont-style.css – MelóPont LinkedIn-stílusú UI
   =================================================== */

:root {
  --mp-blue: #0A66C2;
  --mp-blue-hover: #004182;
  --mp-blue-light: #E8F0FE;
  --mp-green: #057642;
  --mp-green-light: #E8F5E9;
  --mp-green-dark: #045E35;     /* zöld szöveg világos zöld háttéren (PROF-ONE-01) */
  --mp-input-border: #CBD2DC;   /* űrlapmező kerete (a regisztráció is ezt használja) */
  --mp-input-border-hover: #9AA4B2;
  --mp-red: #CC1016;
  --mp-red-light: #FDE8E8;
  --mp-red-dark: #A61B1B;       /* piros szöveg világos piros háttéren (FEED-MODERN-01) */
  --mp-orange-dark: #8F3A06;    /* narancs szöveg világos narancs háttéren (FEED-MODERN-01) */
  --mp-orange: #E7A33E;
  --mp-orange-light: #FFF3E0;
  --mp-orange-text: #8A5300;   /* narancs szöveg/ikon világos háttéren (kontraszt fehéren ~6.5:1) */

  /* AI-segédek egységes jele (AI-VIS-01, 2026.10.02): kék → zöld átmenet, halvány háttér */
  --mp-ai-from: #0A66C2;
  --mp-ai-to: #057642;
  --mp-ai-soft: #EEF5FC;
  --mp-ai-soft-2: #EEF8F2;
  --mp-ai-border: #BFD6EE;

  /* Felületek: a rétegek EGYETLEN forrása a /css/mp-surfaces.css (SURFACE-01, 10.12) — minden lap
     utolsó stíluslapja, ott kapják a végső értéket. Itt csak tartalék, ha az nem töltődne be. */
  --mp-bg: var(--mp-surface-0, #ECEFF3);
  --mp-white: #FFFFFF;
  --mp-card-border: var(--mp-line-1, #D8DEE6);
  --mp-card-shadow: var(--mp-elev-1, 0 1px 2px rgba(15,23,42,0.05), 0 2px 10px rgba(15,23,42,0.05));
  /* --mp-card-radius: a /css/card-radius.css adja (16px) — CARD-RADIUS-01 */
  --mp-radius-pill: 999px;
  --mp-text-muted: #5B6676;   /* másodlagos szöveg (kontraszt fehéren ~5.9:1) */

  --mp-text-primary: #191919;
  --mp-text-secondary: #1a1a1a;
  --mp-text-tertiary: #1a1a1a;
  --mp-text-link: #0A66C2;

  --mp-border: #E0E0E0;
  --mp-divider: #EBEBEB;

  /* Letiltott (még nem kattintható) gombok — EGY helyen definiálva.
     Szürke háttér + sötétszürke szöveg: a felirat mindig olvasható marad
     (kontraszt ~4.6:1). Soha ne legyen fehér szöveg világos háttéren. */
  --mp-disabled-bg: #E8E7E4;
  --mp-disabled-text: #5E5E5E;
  --mp-disabled-border: #D6D5D2;

  --mp-max-width: 1128px;
  --mp-sidebar-width: 225px;
  --mp-main-width: 600px;
  --mp-aside-width: 300px;
  --mp-nav-height: 52px;
  /* Távolság a fejléc alja és az oldal első kártyája között. A fejléc „sticky”,
     saját helyet foglal, ezért NEM kell hozzáadni a magasságát (régi hiba: +52px). */
  --mp-page-top: 24px;
}

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

body {
  font-family: -apple-system, system-ui, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
  background-color: var(--mp-bg);
  color: var(--mp-text-primary);
  font-size: calc(14px * var(--mp-fs, 1));
  line-height: 1.42857;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--mp-text-link); text-decoration: none; }
/* HOVER-CONTRAST-01 (10.09, László): nulla erősségű (:where) — a régi `a:hover` erősebb volt a gombok saját
   osztály-szabályánál, így minden LINKKÉNT megírt színes gomb felirata egérrel fölötte sötétkék lett (pl. a kapcsolati
   háló „Álláshirdetés megnyitása”). Így a szöveges linkek kékek maradnak, a gombok a saját színüket tartják.
   Mérő: scripts/ui-check/hover_check.py */
:where(a:hover) { text-decoration: underline; color: var(--mp-blue-hover); }


/* ── Oldal layout ── */
.mp-page {
  max-width: var(--mp-max-width);
  margin: var(--mp-page-top) auto 24px;
  padding: 0 16px;
  display: grid;
  grid-template-columns: var(--mp-sidebar-width) var(--mp-main-width) var(--mp-aside-width);
  gap: 24px;
}
.mp-page--two-col {
  grid-template-columns: 1fr var(--mp-aside-width);
  max-width: 950px;
}
.mp-page--single {
  grid-template-columns: 1fr;
  max-width: 560px;
}
.mp-page--full {
  grid-template-columns: 320px 1fr;
  max-width: 1000px;
  margin-top: 0;
  padding: 0;
  height: calc(100vh - var(--mp-nav-height));
  margin-top: var(--mp-nav-height);
}

/* ── Kártyák ── */
.mp-card {
  background: var(--mp-white);
  border: 1px solid var(--mp-card-border);
  border-radius: var(--mp-card-radius);
  box-shadow: var(--mp-card-shadow);
  overflow: hidden;
  overflow-wrap: break-word;
  word-wrap: break-word;
}
.mp-card-header { padding: 16px 16px 0; }
.mp-card-body { padding: 16px; }
.mp-card-footer {
  padding: 8px 16px;
  border-top: 1px solid var(--mp-divider);
  display: flex;
  align-items: center;
  gap: 4px;
}
.mp-card-title {
  font-size: calc(16px * var(--mp-fs, 1));
  font-weight: 600;
  color: var(--mp-text-primary);
  margin-bottom: 4px;
}
.mp-card-subtitle {
  font-size: calc(14px * var(--mp-fs, 1));
  color: var(--mp-text-secondary);
}
.mp-card-divider {
  border: none;
  border-top: 1px solid var(--mp-divider);
  margin: 0;
}

/* ── Gombok ── */
.mp-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 6px 16px;
  background: var(--mp-blue);
  color: white;
  border: none;
  border-radius: 16px;
  font-size: calc(14px * var(--mp-fs, 1));
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
  line-height: 1.33;
  text-decoration: none;
}
.mp-btn-primary:hover { background: var(--mp-blue-hover); text-decoration: none; color: white; }
.mp-btn-primary:disabled { background-color: var(--mp-disabled-bg); color: var(--mp-disabled-text); cursor: not-allowed; }

/* ── Űrlapelemek betűje (FONT-INHERIT-01, 2026.10.05) ──
   A böngésző a gombokat és mezőket saját, 13,3 px-es rendszerbetűvel rajzolja, ha a modul
   stílusa nem ad meg betűt — ez 14 px alatti és más betűtípusú szöveget adott (a mérő a
   „Jelentem” gombon egyszer el is kapta). Nulla erősségű (:where), így minden saját szabály felülírja. */
:where(button, input, select, textarea) { font: inherit; }

/* ── Globális letiltott-gomb szabály ──
   Minden letiltott gomb ugyanúgy néz ki az egész alkalmazásban, bármilyen
   színű is volt eredetileg. Az !important szándékos: felülírja az oldalankénti
   régi szabályokat (pl. szürke háttér + fehér szöveg), amelyek miatt a felirat
   eltűnt. A gombon belüli ikonok a currentColor miatt szintén szürkék lesznek. */
button:disabled,
input[type="submit"]:disabled,
input[type="button"]:disabled {
  /* longhand (background-color), NEM shorthand: a var() + shorthand kombináció
     a Chrome-ban érvénytelenné teszi a szabályt, és a gomb kék maradna */
  background-color: var(--mp-disabled-bg) !important;
  background-image: none !important;
  color: var(--mp-disabled-text) !important;
  border-color: var(--mp-disabled-border) !important;
  box-shadow: none !important;
  opacity: 1 !important;
  filter: none !important;
  transform: none !important;
  cursor: not-allowed !important;
}
button:disabled * { color: inherit !important; }

.mp-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 6px 16px;
  background: transparent;
  color: var(--mp-blue);
  border: 1px solid var(--mp-blue);
  border-radius: 16px;
  font-size: calc(14px * var(--mp-fs, 1));
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  line-height: 1.33;
  text-decoration: none;
}
.mp-btn-secondary:hover { background: var(--mp-blue-light); border-color: var(--mp-blue-hover); text-decoration: none; }

.mp-btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px 8px;
  background: transparent;
  color: var(--mp-text-secondary);
  border: none;
  border-radius: 4px;
  font-size: calc(14px * var(--mp-fs, 1));
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
  text-decoration: none;
}
.mp-btn-ghost:hover { background: rgba(0,0,0,0.08); color: var(--mp-text-primary); text-decoration: none; }

.mp-btn-danger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 6px 16px;
  background: transparent;
  color: var(--mp-red);
  border: 1px solid var(--mp-red);
  border-radius: 16px;
  font-size: calc(14px * var(--mp-fs, 1));
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  line-height: 1.33;
}
.mp-btn-danger:hover { background: var(--mp-red-light); text-decoration: none; }

.mp-btn-full { width: 100%; }
.mp-btn-lg { padding: 10px 24px; font-size: calc(16px * var(--mp-fs, 1)); border-radius: 28px; }

/* ── Form elemek ── */
.mp-form-group { margin-bottom: 16px; }
.mp-form-label {
  display: block;
  font-size: calc(14px * var(--mp-fs, 1));
  font-weight: 600;
  color: var(--mp-text-primary);
  margin-bottom: 4px;
}
.mp-form-label .required { color: var(--mp-red); }

.mp-form-input,
.mp-form-select,
.mp-form-textarea {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid var(--mp-border);
  border-radius: 4px;
  font-size: calc(14px * var(--mp-fs, 1));
  color: var(--mp-text-primary);
  background: var(--mp-white);
  outline: none;
  transition: border-color 0.15s;
  font-family: inherit;
}
.mp-form-input:focus,
.mp-form-select:focus,
.mp-form-textarea:focus {
  border-color: var(--mp-blue);
  box-shadow: 0 0 0 1px var(--mp-blue);
}
.mp-form-input::placeholder { color: #9ca3af; }
.mp-form-textarea {
  min-height: 80px;
  resize: vertical;
}
.mp-form-hint {
  font-size: calc(14px * var(--mp-fs, 1));
  color: var(--mp-text-secondary);
  margin-top: 4px;
}
.mp-form-error {
  font-size: calc(14px * var(--mp-fs, 1));
  color: var(--mp-red);
  margin-top: 4px;
  display: none;
}
.mp-form-error.visible { display: block; }

.mp-checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: calc(14px * var(--mp-fs, 1));
  color: var(--mp-text-primary);
  cursor: pointer;
  padding: 4px 0;
}
.mp-checkbox-label input[type="checkbox"] { margin-top: 2px; flex-shrink: 0; }

/* ── Profil kártya ── */
.mp-profile-card {
  background: var(--mp-white);
  border-radius: var(--mp-card-radius);
  box-shadow: var(--mp-card-shadow);
  overflow: hidden;
}
.mp-profile-banner {
  height: 72px;
  background: linear-gradient(135deg, var(--mp-blue) 0%, var(--mp-blue-hover) 100%);
}
.mp-profile-info {
  padding: 0 16px 16px;
  margin-top: -36px;
}
.mp-profile-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 3px solid var(--mp-white);
  object-fit: cover;
  background: var(--mp-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: calc(28px * var(--mp-fs, 1));
  font-weight: 600;
  overflow: hidden;
}
.mp-profile-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}
.mp-profile-name {
  font-size: calc(16px * var(--mp-fs, 1));
  font-weight: 600;
  color: var(--mp-text-primary);
  margin-top: 8px;
}
.mp-profile-headline {
  font-size: calc(14px * var(--mp-fs, 1));
  color: var(--mp-text-secondary);
  margin-top: 2px;
}
.mp-profile-location {
  font-size: calc(14px * var(--mp-fs, 1));
  color: var(--mp-text-secondary);
  margin-top: 2px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.mp-profile-stats {
  display: flex;
  gap: 16px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--mp-divider);
}
.mp-profile-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: calc(14px * var(--mp-fs, 1));
}
.mp-profile-stat-value {
  font-weight: 600;
  color: var(--mp-text-link);
}
.mp-profile-stat-label { color: var(--mp-text-secondary); }

/* ── Lista elemek ── */
.mp-list-item {
  display: flex;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--mp-divider);
  transition: background 0.15s;
  cursor: pointer;
}
.mp-list-item:hover { background: rgba(0,0,0,0.03); }
.mp-list-item:last-child { border-bottom: none; }

.mp-list-item-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--mp-blue-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--mp-blue);
  font-weight: 600;
  font-size: calc(14px * var(--mp-fs, 1));
  overflow: hidden;
}
.mp-list-item-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}
.mp-list-item-content { flex: 1; min-width: 0; }
.mp-list-item-title {
  font-size: calc(14px * var(--mp-fs, 1));
  font-weight: 600;
  color: var(--mp-text-primary);
}
.mp-list-item-subtitle {
  font-size: calc(14px * var(--mp-fs, 1));
  color: var(--mp-text-secondary);
  margin-top: 2px;
}
.mp-list-item-meta {
  font-size: calc(14px * var(--mp-fs, 1));
  color: var(--mp-text-tertiary);
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.mp-list-item-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

/* ── Üzenet (chat) layout ── */
.mp-chat-sidebar {
  background: var(--mp-white);
  border-right: 1px solid var(--mp-divider);
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
}
.mp-chat-sidebar-header {
  padding: 16px;
  border-bottom: 1px solid var(--mp-divider);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.mp-chat-sidebar-header h2 { font-size: calc(16px * var(--mp-fs, 1)); font-weight: 600; }

.mp-chat-search { padding: 8px 16px; border-bottom: 1px solid var(--mp-divider); }
.mp-chat-search input {
  width: 100%;
  padding: 6px 12px 6px 36px;
  background: var(--mp-blue-light);
  border: none;
  border-radius: 4px;
  font-size: calc(14px * var(--mp-fs, 1));
  outline: none;
  font-family: inherit;
}

.mp-chat-list { flex: 1; overflow-y: auto; }

.mp-chat-item {
  display: flex;
  gap: 12px;
  padding: 12px 16px;
  cursor: pointer;
  border-bottom: 1px solid var(--mp-divider);
  transition: background 0.15s;
}
.mp-chat-item:hover { background: rgba(0,0,0,0.03); }
.mp-chat-item.active { background: var(--mp-blue-light); }
.mp-chat-item-unread .mp-chat-item-name { font-weight: 700; }
.mp-chat-item-unread .mp-chat-item-preview { font-weight: 600; color: var(--mp-text-primary); }

.mp-chat-main {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--mp-white);
}
.mp-chat-header {
  padding: 12px 16px;
  border-bottom: 1px solid var(--mp-divider);
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--mp-white);
  flex-shrink: 0;
}
.mp-chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: #F8F9FA;
}
.mp-chat-bubble {
  max-width: 65%;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: calc(14px * var(--mp-fs, 1));
  line-height: 1.4;
  word-break: break-word;
}
.mp-chat-bubble--sent {
  align-self: flex-end;
  background: var(--mp-blue-light);
  color: var(--mp-text-primary);
  border-bottom-right-radius: 2px;
}
.mp-chat-bubble--received {
  align-self: flex-start;
  background: #F2F2F2;
  color: var(--mp-text-primary);
  border-bottom-left-radius: 2px;
}
.mp-chat-bubble-time {
  font-size: calc(14px * var(--mp-fs, 1));
  color: var(--mp-text-tertiary);
  margin-top: 4px;
}
.mp-chat-input-area {
  padding: 12px 16px;
  border-top: 1px solid var(--mp-divider);
  display: flex;
  gap: 8px;
  align-items: flex-end;
  background: var(--mp-white);
  flex-shrink: 0;
}
.mp-chat-input-area textarea {
  flex: 1;
  padding: 8px 12px;
  border: 1px solid var(--mp-border);
  border-radius: 8px;
  font-size: calc(14px * var(--mp-fs, 1));
  resize: none;
  max-height: 120px;
  min-height: 40px;
  font-family: inherit;
  outline: none;
}
.mp-chat-input-area textarea:focus { border-color: var(--mp-blue); }

/* ── Badge-ek ── */
.mp-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: calc(14px * var(--mp-fs, 1));
  font-weight: 600;
}
.mp-status-badge--active { background: var(--mp-green-light); color: var(--mp-green); }
.mp-status-badge--pending { background: var(--mp-orange-light); color: #B36D00; }
.mp-status-badge--rejected { background: var(--mp-red-light); color: var(--mp-red); }
.mp-status-badge--expired { background: #F0F0F0; color: var(--mp-text-secondary); }
.mp-status-badge--open { background: var(--mp-blue-light); color: var(--mp-blue); }

.mp-skill-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  background: var(--mp-blue-light);
  color: var(--mp-blue);
  border-radius: 12px;
  font-size: calc(14px * var(--mp-fs, 1));
  font-weight: 600;
  gap: 4px;
}
.mp-skill-badge--removable { cursor: pointer; }
.mp-skill-badge--removable:hover { background: #D0E2F7; }
.mp-skill-badge .remove { cursor: pointer; font-size: calc(14px * var(--mp-fs, 1)); line-height: 1; margin-left: 2px; }

/* ── Üres állapot ── */
.mp-empty-state {
  text-align: center;
  padding: 40px 24px;
  color: var(--mp-text-secondary);
}
.mp-empty-state svg {
  width: 64px;
  height: 64px;
  fill: var(--mp-text-tertiary);
  margin-bottom: 16px;
}
.mp-empty-state h3 {
  font-size: calc(16px * var(--mp-fs, 1));
  font-weight: 600;
  color: var(--mp-text-primary);
  margin-bottom: 8px;
}

/* ── Táblázatok ── */
.mp-table { width: 100%; border-collapse: collapse; }
.mp-table th {
  text-align: left;
  font-size: calc(14px * var(--mp-fs, 1));
  font-weight: 600;
  color: var(--mp-text-secondary);
  padding: 8px 12px;
  border-bottom: 2px solid var(--mp-divider);
}
.mp-table td {
  padding: 12px;
  border-bottom: 1px solid var(--mp-divider);
  font-size: calc(14px * var(--mp-fs, 1));
}
.mp-table tr:hover { background: rgba(0,0,0,0.02); }

/* ── Modal ── */
.mp-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.65);
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: mp-fade-in 0.2s;
}
.mp-modal-overlay .mp-modal {
  margin-top: 24px;
}
.mp-modal {
  background: var(--mp-white);
  border-radius: var(--mp-card-radius);
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
  width: 90%;
  max-width: 560px;
  max-height: 85vh;
  overflow-y: auto;
  overflow-wrap: break-word;
  word-wrap: break-word;
}
.mp-modal-header {
  padding: 16px 24px;
  border-bottom: 1px solid var(--mp-divider);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.mp-modal-header h2 { font-size: calc(18px * var(--mp-fs, 1)); font-weight: 600; }
.mp-modal-close {
  width: 28px;
  height: 28px;
  border: none;
  background: transparent;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--mp-text-secondary);
  font-size: calc(18px * var(--mp-fs, 1));
}
.mp-modal-close:hover { background: rgba(0,0,0,0.08); }
.mp-modal-body { padding: 24px; overflow-wrap: break-word; word-wrap: break-word; }
.mp-modal-footer {
  padding: 12px 24px;
  border-top: 1px solid var(--mp-divider);
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

@keyframes mp-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ── Dropdown ── */
.mp-dropdown { position: relative; display: inline-block; }
.mp-dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  min-width: 200px;
  background: var(--mp-white);
  border-radius: var(--mp-card-radius);
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
  z-index: 150;
  padding: 4px 0;
  display: none;
}
.mp-dropdown-menu.show { display: block; }
.mp-dropdown-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  font-size: calc(14px * var(--mp-fs, 1));
  color: var(--mp-text-primary);
  cursor: pointer;
  transition: background 0.1s;
  text-decoration: none;
}
.mp-dropdown-item:hover { background: rgba(0,0,0,0.05); text-decoration: none; color: var(--mp-text-primary); }
.mp-dropdown-divider { border-top: 1px solid var(--mp-divider); margin: 4px 0; }

/* ── Tab sor ── */
.mp-tabs {
  display: flex;
  border-bottom: 2px solid var(--mp-divider);
}
.mp-tab {
  padding: 10px 20px;
  font-size: calc(14px * var(--mp-fs, 1));
  font-weight: 600;
  color: var(--mp-text-secondary);
  cursor: pointer;
  border: none;
  background: transparent;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: color 0.15s;
}
.mp-tab:hover { color: var(--mp-text-primary); }
.mp-tab.active { color: var(--mp-blue); border-bottom-color: var(--mp-blue); }

/* ── Animációk ── */
.mp-fade-in { animation: mp-fade-in 0.3s ease; }

.mp-skeleton {
  background: linear-gradient(90deg, #F0F0F0 25%, #E0E0E0 50%, #F0F0F0 75%);
  background-size: 200% 100%;
  animation: mp-skeleton-pulse 1.5s ease-in-out infinite;
  border-radius: 4px;
}
@keyframes mp-skeleton-pulse {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ── Alert ── */
.mp-alert {
  padding: 12px 16px;
  border-radius: 8px;
  font-size: calc(14px * var(--mp-fs, 1));
  line-height: 1.5;
  margin-bottom: 16px;
  word-wrap: break-word;
  overflow-wrap: break-word;
  word-break: break-word;
  max-width: 100%;
  box-sizing: border-box;
}
.mp-alert--success { background: var(--mp-green-light); color: var(--mp-green); border: 1px solid #A5D6A7; }
.mp-alert--error { background: var(--mp-red-light); color: var(--mp-red); border: 1px solid #FFCDD2; }
.mp-alert--info { background: var(--mp-blue-light); color: var(--mp-blue); border: 1px solid #90CAF9; }
.mp-alert a { color: inherit; font-weight: 600; text-decoration: underline; }

/* ── Profession grid ── */
.mp-profession-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 8px;
  margin-top: 8px;
}
.mp-profession-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid var(--mp-border);
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s;
  font-size: calc(14px * var(--mp-fs, 1));
}
.mp-profession-item:hover { border-color: var(--mp-blue); background: var(--mp-blue-light); }
.mp-profession-item input[type="checkbox"] { accent-color: var(--mp-blue); }

/* ── Szekció fejléc ── */
.mp-section-title {
  font-size: calc(16px * var(--mp-fs, 1));
  font-weight: 400;
  color: #191919;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--mp-divider);
}

/* ── Reszponzív ── */
@media (max-width: 1024px) {
  .mp-page {
    grid-template-columns: 1fr;
    max-width: 640px;
  }
  .mp-page--two-col {
    grid-template-columns: 1fr;
    max-width: 640px;
  }
  .mp-page--full {
    grid-template-columns: 1fr;
    height: auto;
    min-height: calc(100vh - var(--mp-nav-height));
  }
  :root {
    --mp-sidebar-width: 100%;
    --mp-main-width: 100%;
    --mp-aside-width: 100%;
  }
}

@media (max-width: 640px) {
  .mp-page { padding: 0 8px; margin-top: var(--mp-page-top); gap: 8px; }
  .mp-card-body { padding: 12px; }
  .mp-profile-banner { height: 56px; }
  .mp-profile-info { margin-top: -28px; }
  .mp-profile-avatar { width: 56px; height: 56px; font-size: calc(22px * var(--mp-fs, 1)); }
}

/* ── Auth oldalak ── */
.mp-auth-card {
  background: var(--mp-white);
  border-radius: var(--mp-card-radius);
  box-shadow: var(--mp-card-shadow);
  padding: 24px;
  width: 100%;
}

.mp-auth-header {
  text-align: center;
  margin-bottom: 24px;
}
.mp-auth-header h1 {
  font-size: calc(24px * var(--mp-fs, 1));
  font-weight: 600;
  color: var(--mp-text-primary);
  margin-bottom: 8px;
}
.mp-auth-header p {
  font-size: calc(14px * var(--mp-fs, 1));
  color: var(--mp-text-secondary);
}

.mp-form-section {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--mp-divider);
}

.mp-form-section-title {
  font-size: calc(16px * var(--mp-fs, 1));
  font-weight: 600;
  color: var(--mp-text-primary);
  margin-bottom: 16px;
}

.mp-badge-container {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 8px;
  min-height: 42px;
  border: 1px solid var(--mp-border);
  border-radius: 4px;
  background: var(--mp-white);
}

.mp-skill-badge-remove {
  cursor: pointer;
  font-size: calc(14px * var(--mp-fs, 1));
  line-height: 1;
  margin-left: 4px;
  opacity: 0.7;
}
.mp-skill-badge-remove:hover { opacity: 1; }

.mp-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--mp-border);
  border-top: 3px solid var(--mp-blue);
  border-radius: 50%;
  animation: mp-spin 0.8s linear infinite;
  margin: 0 auto;
}
@keyframes mp-spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.mp-info-box {
  background: var(--mp-blue-light);
  --mp-edge: var(--mp-blue);
  border-radius: 12px;
  padding: 12px 16px;
  font-size: calc(14px * var(--mp-fs, 1));
  color: var(--mp-text-primary);
  line-height: 1.6;
}

.mp-required { color: var(--mp-red); }

.mp-link { color: var(--mp-blue); text-decoration: none; }
.mp-link:hover { text-decoration: underline; color: var(--mp-blue-hover); }

.mp-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
  color: var(--mp-text-secondary);
  font-size: calc(14px * var(--mp-fs, 1));
}
.mp-divider::before,
.mp-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--mp-divider);
}

.mp-checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  cursor: pointer;
  font-size: calc(14px * var(--mp-fs, 1));
  color: var(--mp-text-primary);
}
.mp-checkbox-label input[type="checkbox"] {
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: var(--mp-blue);
}


.mp-nav-badge {
  background: var(--mp-red);
  color: white;
  font-size: calc(14px * var(--mp-fs, 1));
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 999px;
  min-width: 18px;
  text-align: center;
}

.mp-avatar {
  border-radius: 50%;
  background: var(--mp-blue);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  flex-shrink: 0;
}
.mp-avatar--sm { width: 32px; height: 32px; font-size: calc(14px * var(--mp-fs, 1)); }
.mp-avatar--md { width: 40px; height: 40px; font-size: calc(16px * var(--mp-fs, 1)); }
.mp-avatar--lg { width: 80px; height: 80px; font-size: calc(28px * var(--mp-fs, 1)); }

.mp-field-error { display: none; }

/* ── Jelentkezők mini-panel ── */
.mp-applicant-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  background: var(--mp-blue);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: calc(14px * var(--mp-fs, 1));
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}
.mp-applicant-toggle-btn:hover { background: var(--mp-blue-hover); }
.mp-applicant-toggle-btn--empty { background: #A8A8A8; cursor: default; }
.mp-applicant-toggle-btn--empty:hover { background: #A8A8A8; }

.mp-applicant-panel {
  background: #f8f9fa;
  border: 1px solid var(--mp-border);
  border-radius: 8px;
  padding: 12px;
  margin-top: 12px;
  animation: mp-fade-in 0.3s ease;
}

.mp-applicant-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--mp-divider);
  flex-wrap: wrap;
}
.mp-applicant-row:last-child { border-bottom: none; }

.mp-applicant-info {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
}

.mp-applicant-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.mp-applicant-avatar-placeholder {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #ccc;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.mp-applicant-avatar-placeholder svg {
  width: 24px;
  height: 24px;
  fill: #fff;
}

.mp-applicant-details { min-width: 0; }
.mp-applicant-name {
  font-weight: 600;
  font-size: calc(14px * var(--mp-fs, 1));
  color: var(--mp-text-primary);
}
.mp-applicant-meta {
  font-size: calc(14px * var(--mp-fs, 1));
  color: var(--mp-text-secondary);
  margin-top: 2px;
}

.mp-applicant-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

/* ── Badge rendszer ── */
.mp-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: calc(14px * var(--mp-fs, 1));
  font-weight: 500;
  white-space: nowrap;
  border: none;
  text-decoration: none;
  line-height: 1.4;
  transition: all 0.2s ease;
  cursor: default;
}
/* SIGNS-01 (10.13): az állapotot jelző régi címkék a közös palettából (css/mp-surfaces.css --mp-st-*) */
.mp-badge-new { background: var(--mp-st-info-bg); color: var(--mp-st-info-ink); }
.mp-badge-accepted { background: var(--mp-st-ok-bg); color: var(--mp-st-ok-ink); }
.mp-badge-rejected { background: var(--mp-st-closed-bg); color: var(--mp-st-closed-ink); }
.mp-badge-delete { background: #dc3545; color: #fff; }
.mp-badge-message { background: #0a66c2; color: #fff; }
.mp-badge-edit { background: #057642; color: #fff; }
.mp-badge-filter { background: #0a66c2; color: #fff; }
.mp-badge-add { background: #e87c1e; color: #fff; }
.mp-badge-neutral { background: var(--mp-st-off-bg); color: var(--mp-st-off-ink); }
.mp-badge-warning { background: var(--mp-st-urgent-bg); color: var(--mp-st-urgent-ink); }
.mp-badge-info { background: var(--mp-st-info-bg); color: var(--mp-st-info-ink); }
.mp-badge-action { cursor: pointer; transition: all 0.2s ease; }
.mp-badge-action:hover { filter: brightness(0.92); }
.mp-badge-action:active { filter: brightness(0.85); }
.mp-badge-delete:hover { background: #b82d3a; }
.mp-badge-edit:hover { background: #045e35; }
.mp-badge-filter:hover { background: #004182; }
.mp-badge-add:hover { background: #d06b10; }
.mp-badge-new:hover { background: #004182; }
.mp-badge-accepted:hover { background: #045e35; }
.mp-badge-rejected:hover { background: #b82d3a; }
.mp-badge-message:hover { background: #004182; }
.mp-badge-neutral:hover { background: var(--mp-st-off-line); }
.mp-badge-warning:hover { background: #bf4400; }
.mp-badge-info:hover { background: #004182; }

.mp-mini-accept-btn {
  padding: 4px 10px; background: #e6f4ea; color: #057642;
  border: none; border-radius: 12px; font-size: calc(14px * var(--mp-fs, 1)); font-weight: 500;
  cursor: pointer; transition: filter 0.2s;
}
.mp-mini-accept-btn:hover { filter: brightness(0.92); }

.mp-mini-reject-btn {
  padding: 4px 10px; background: #fce8e8; color: #dc3545;
  border: none; border-radius: 12px; font-size: calc(14px * var(--mp-fs, 1)); font-weight: 500;
  cursor: pointer; transition: filter 0.2s;
}
.mp-mini-reject-btn:hover { filter: brightness(0.92); }

.mp-mini-msg-btn {
  padding: 4px 10px; background: #e8f4fd; color: #0a66c2;
  border: none; border-radius: 12px; font-size: calc(14px * var(--mp-fs, 1)); font-weight: 500;
  cursor: pointer; text-decoration: none; transition: filter 0.2s;
}
.mp-mini-msg-btn:hover { filter: brightness(0.92); color: #0a66c2; text-decoration: none; }

.mp-delete-btn {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 10px; background: #fce8e8; color: #dc3545;
  border: none; border-radius: 12px; font-size: calc(14px * var(--mp-fs, 1)); font-weight: 500;
  cursor: pointer; transition: filter 0.2s;
}
.mp-delete-btn:hover { filter: brightness(0.92); }

/* ── Megerősítő modal ── */
.mp-confirm-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.65); z-index: 300;
  display: flex; align-items: center; justify-content: center; animation: mp-fade-in 0.2s;
}
.mp-confirm-box {
  background: var(--mp-white); border-radius: 8px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
  padding: 24px; max-width: 400px; width: 90%; text-align: center;
}
.mp-confirm-box p { font-size: calc(15px * var(--mp-fs, 1)); color: var(--mp-text-primary); margin-bottom: 20px; line-height: 1.5; }
.mp-confirm-actions { display: flex; gap: 8px; justify-content: center; }
.mp-confirm-yes {
  padding: 8px 20px; background: #dc3545; color: white;
  border: none; border-radius: 8px; font-size: calc(14px * var(--mp-fs, 1)); font-weight: 600; cursor: pointer;
}
.mp-confirm-yes:hover { background: #c82333; }
.mp-confirm-no {
  padding: 8px 20px; background: #6c757d; color: white;
  border: none; border-radius: 8px; font-size: calc(14px * var(--mp-fs, 1)); font-weight: 600; cursor: pointer;
}
.mp-confirm-no:hover { background: #5a6268; }

/* ── Szűrősor ── */
.mp-filter-bar {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
  background: var(--mp-white); border: 1px solid var(--mp-border);
  border-radius: 8px; padding: 12px 16px; margin-bottom: 16px;
}

.mp-filter-btn {
  padding: 6px 14px; font-size: calc(14px * var(--mp-fs, 1)); font-weight: 500;
  border-radius: 12px; border: 1px solid #ccc;
  background: var(--mp-white); color: var(--mp-text-secondary);
  cursor: pointer; transition: all 0.15s;
}
.mp-filter-btn:hover { border-color: var(--mp-blue); color: var(--mp-blue); }
.mp-filter-btn--active { background: var(--mp-blue); color: white; border-color: var(--mp-blue); }
.mp-filter-btn--active:hover { background: var(--mp-blue-hover); color: white; }

.mp-filter-count { font-size: calc(14px * var(--mp-fs, 1)); color: var(--mp-text-secondary); font-weight: 600; margin-left: auto; }

.mp-sort-select {
  padding: 6px 10px; font-size: calc(14px * var(--mp-fs, 1)); border: 1px solid var(--mp-border);
  border-radius: 8px; background: var(--mp-white); color: var(--mp-text-primary);
  cursor: pointer; outline: none;
}
.mp-sort-select:focus { border-color: var(--mp-blue); }

.mp-group-toggle {
  padding: 6px 14px; font-size: calc(14px * var(--mp-fs, 1)); font-weight: 600;
  border-radius: 8px; border: 1px solid var(--mp-border);
  background: var(--mp-white); color: var(--mp-text-secondary);
  cursor: pointer; transition: all 0.15s;
}
.mp-group-toggle--active { background: var(--mp-blue-light); color: var(--mp-blue); border-color: var(--mp-blue); }

.mp-group-header {
  background: #e9ecef; padding: 8px 12px; border-radius: 8px;
  font-size: calc(14px * var(--mp-fs, 1)); font-weight: 600; color: var(--mp-text-primary); margin: 16px 0 8px;
}
.mp-group-header:first-child { margin-top: 0; }

@keyframes mp-fade-out {
  from { opacity: 1; transform: translateY(0); }
  to { opacity: 0; transform: translateY(-10px); }
}
.mp-fade-out { animation: mp-fade-out 0.3s ease forwards; }

.mp-notification-badge {
  display: inline-flex; align-items: center; justify-content: center;
  background: #dc3545; color: white; font-size: calc(14px * var(--mp-fs, 1)); font-weight: 600;
  border-radius: 10px; padding: 2px 8px; line-height: 1; white-space: nowrap;
}
.mp-notification-badge--pulse { animation: mp-pulse 2s ease-in-out 3; }   /* SIGNS-01: háromszor jelez, utána megáll (nem lüktet a végtelenségig) */
@keyframes mp-pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.15); } }

.mp-worker-name-link { color: var(--mp-blue); cursor: pointer; transition: color 0.15s; }
.mp-worker-name-link:hover { color: var(--mp-blue-hover); text-decoration: underline; }

/* ── Sidebar profil ── */
.dashboard-sidebar .mp-card { padding: 20px 16px; }

.sidebar-profile-header {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding-bottom: 16px; border-bottom: 1px solid #e8e8e8; margin-bottom: 16px;
}
.sidebar-profile-header img { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; margin-bottom: 10px; border: 2px solid #e0e0e0; }
.sidebar-profile-header h2, .sidebar-profile-header h3 { margin: 0 0 4px 0; font-size: 1.1rem; word-break: break-word; }
.sidebar-profile-header .profile-role-badge { font-size: 0.875rem; padding: 2px 10px; border-radius: 12px; background: #e3f2fd; color: #1565c0; margin-top: 4px; }

.sidebar-info-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.sidebar-info-item { display: flex; flex-direction: column; gap: 2px; padding-bottom: 8px; border-bottom: 1px solid #f0f0f0; }
.sidebar-info-item:last-child { border-bottom: none; padding-bottom: 0; }
.sidebar-info-label { font-size: 0.875rem; text-transform: uppercase; letter-spacing: 0.5px; color: #1a1a1a; font-weight: 600; }
.sidebar-info-value { font-size: 0.9rem; color: #1a1a1a; word-break: break-word; line-height: 1.4; }
.sidebar-section-title { font-size: 0.875rem; font-weight: 700; color: #1a1a1a; text-transform: uppercase; letter-spacing: 0.5px; margin: 14px 0 8px 0; padding-top: 10px; border-top: 1px solid #e0e0e0; }
.sidebar-skill-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.sidebar-skill-tag { font-size: 0.875rem; padding: 3px 10px; background: #e8f5e9; color: #2e7d32; border-radius: 12px; white-space: nowrap; }
.sidebar-social-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.sidebar-social-links a { font-size: 0.875rem; color: #1976d2; text-decoration: none; display: inline-flex; align-items: center; gap: 4px; }
.sidebar-social-links a:hover { text-decoration: underline; }
.sidebar-edit-btn { margin-top: 16px; width: 100%; text-align: center; }

/* === HELPER SZÖVEGEK === */
.helper-text { font-size: calc(14px * var(--mp-fs, 1)); color: #1a1a1a; line-height: 1.5; margin-top: 4px; margin-bottom: 12px; }
.field-hint { font-size: calc(14px * var(--mp-fs, 1)); color: #1a1a1a; margin-top: 3px; margin-bottom: 0; line-height: 1.4; overflow-wrap: break-word; word-wrap: break-word; }
.section-intro { font-size: calc(14px * var(--mp-fs, 1)); color: #1a1a1a; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid #f3f4f6; line-height: 1.5; }

.info-box { padding: 10px 14px; border-radius: 8px; font-size: calc(14px * var(--mp-fs, 1)); display: flex; align-items: flex-start; gap: 8px; margin-bottom: 12px; line-height: 1.5; }
.info-box.info-blue { background: #eff6ff; border: 1px solid #bfdbfe; color: #1e40af; }
.info-box.info-yellow { background: #fef3c7; border: 1px solid #fcd34d; color: #92400e; }

/* ── Reszponzív kiegészítések ── */
@media (max-width: 640px) {
  .mp-applicant-row { flex-direction: column; align-items: flex-start; }
  .mp-applicant-actions { width: 100%; justify-content: flex-start; }
  .mp-filter-bar { flex-direction: column; align-items: stretch; }
  .mp-filter-count { margin-left: 0; text-align: center; }
  .mp-modal { width: 95% !important; max-height: 90vh; }
  .mp-modal-overlay .mp-modal { margin-top: 16px; }
}

/* ── Admin Push Panel ── */
.admin-push-panel { background: white; border-radius: 14px; padding: 24px; margin-top: 20px; box-shadow: 0 2px 10px rgba(0,0,0,0.06); border: 1px solid #e8edf2; }
.admin-push-form { display: flex; flex-direction: column; gap: 16px; }
.admin-push-form input, .admin-push-form textarea, .admin-push-form select { padding: 12px; border: 1px solid #ddd; border-radius: 8px; font-size: calc(14px * var(--mp-fs, 1)); width: 100%; box-sizing: border-box; }
.admin-push-form textarea { min-height: 80px; resize: vertical; }
.admin-push-targets { display: flex; gap: 12px; flex-wrap: wrap; }
.admin-push-targets label { display: flex; align-items: center; gap: 6px; font-size: calc(14px * var(--mp-fs, 1)); cursor: pointer; }
.admin-push-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin-bottom: 20px; }
.push-stat-card { background: #f8f9fa; border-radius: 10px; padding: 16px; text-align: center; }
.push-stat-number { font-size: calc(28px * var(--mp-fs, 1)); font-weight: 700; color: #1a73e8; }
.push-stat-label { font-size: calc(14px * var(--mp-fs, 1)); color: #1a1a1a; margin-top: 4px; }
.admin-push-send-btn { background: linear-gradient(135deg, #1a73e8, #0d47a1); color: white; border: none; padding: 14px 28px; border-radius: 10px; font-size: calc(16px * var(--mp-fs, 1)); font-weight: 600; cursor: pointer; transition: transform 0.15s, box-shadow 0.15s; }
.admin-push-send-btn:hover { transform: translateY(-2px); box-shadow: 0 4px 16px rgba(26,115,232,0.35); }
.admin-push-send-btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

/* Lábléc: /css/footer.css (a footer.js tölti be) */

/* ── 768px mobil ── */
@media (max-width: 768px) {
  :root { --mp-page-top: 12px; }
  /* Mobil betűméret növelés az olvashatóság javításáért */
  body { overflow-x: hidden !important; overflow-x: clip !important; font-size: calc(17px * var(--mp-fs, 1)) !important; }   /* ZOOM-GUARD-01: clip = nem görgető doboz */
  .mp-card, .mp-section, main, aside { font-size: 1.05rem; }
  .mp-page {
    display: flex !important;
    flex-direction: column !important;
    grid-template-columns: 1fr !important;
    width: 100% !important;
    max-width: 100vw !important;
    overflow-x: hidden !important;
    gap: 12px !important;
  }
  .dashboard-sidebar { order: 2 !important; width: 100% !important; max-width: 100% !important; }
  .mp-page > main { order: 1 !important; width: 100% !important; max-width: 100% !important; }

  /* Kártyák kompaktálás */
  .mp-card { margin-bottom: 8px !important; }   /* lekerekítés: /css/card-radius.css (16px), mobilon is */
  .mp-card-header { padding: 12px !important; font-size: calc(15px * var(--mp-fs, 1)) !important; }
  .dashboard-sidebar .mp-card { padding: 14px 12px !important; }
  .mp-profile-avatar { width: 56px !important; height: 56px !important; }


  /* ========================================================
     CHAT OLDAL MOBIL LAYOUT — NINCS ITT SEMMI!
     A messages.html JS kódja kezeli teljes egészében.
     NE adj hozzá .chat-layout, .conversations-panel,
     .chat-panel szabályokat ide!
     ======================================================== */
}

/* ── Toggle Switch (értesítés kártyákhoz) ── */
.toggle-switch {
  position: relative; display: inline-block; width: 44px; height: 24px; cursor: pointer; flex-shrink: 0;
}
.toggle-switch input { opacity: 0; width: 0; height: 0; position: absolute; }
.toggle-slider {
  position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background: #ccc; border-radius: 12px; transition: background 0.2s;
}
.toggle-slider::before {
  content: ""; position: absolute; top: 2px; left: 2px;
  width: 20px; height: 20px; background: #fff; border-radius: 50%;
  transition: transform 0.2s; box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.toggle-switch input:checked + .toggle-slider { background: #0a66c2; }
.toggle-switch input:checked + .toggle-slider::before { transform: translateX(20px); }
.toggle-switch.toggle-sm { width: 38px; height: 20px; }
.toggle-switch.toggle-sm .toggle-slider::before { width: 16px; height: 16px; }
.toggle-switch.toggle-sm input:checked + .toggle-slider::before { transform: translateX(18px); }

/* === PWA Install kártya === */
#mp-pwa-install-card {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    z-index: 10000;
    width: calc(100% - 32px);
    max-width: 420px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.18);
    border: 1px solid #e0dfdc;
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    pointer-events: none;
}

#mp-pwa-install-card.mp-pwa-visible {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
    pointer-events: auto;
}

#mp-pwa-install-card.mp-pwa-hiding {
    transform: translateX(-50%) translateY(100px);
    opacity: 0;
    pointer-events: none;
}

.mp-pwa-inner {
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.mp-pwa-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
}

.mp-pwa-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mp-pwa-text {
    flex: 1;
    min-width: 0;
}

.mp-pwa-text strong {
    display: block;
    font-size: calc(15px * var(--mp-fs, 1));
    font-weight: 700;
    color: #191919;
    margin-bottom: 2px;
}

.mp-pwa-text span {
    display: block;
    font-size: calc(14px * var(--mp-fs, 1));
    color: #191919;
    font-weight: 500;
}

.mp-pwa-buttons {
    display: flex;
    gap: 8px;
    width: 100%;
}

.mp-pwa-btn-install {
    flex: 1;
    padding: 10px 16px;
    background: #0a66c2;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: calc(14px * var(--mp-fs, 1));
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.mp-pwa-btn-install:hover {
    background: #004182;
}

.mp-pwa-btn-dismiss {
    padding: 10px 16px;
    background: transparent;
    color: #191919;
    border: 1px solid #e0dfdc;
    border-radius: 8px;
    font-size: calc(14px * var(--mp-fs, 1));
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
}

.mp-pwa-btn-dismiss:hover {
    background: var(--mp-bg, #ECEFF3);
}

/* PWA-INSTALL-03: böngészőre szabott telepítési lépések (gömbös, összekötött lista) */
.mp-pwa-steps {
    list-style: none;
    counter-reset: mp-pwa-step;
    margin: 0;
    padding: 0;
    width: 100%;
    display: grid;
    gap: 10px;
}
.mp-pwa-steps[hidden] { display: none; }
.mp-pwa-steps li {
    counter-increment: mp-pwa-step;
    position: relative;
    padding-left: 40px;
    min-height: 28px;
    font-size: calc(14px * var(--mp-fs, 1));
    line-height: 1.45;
    color: #191919;
}
.mp-pwa-steps li::before {
    content: counter(mp-pwa-step);
    position: absolute;
    left: 0;
    top: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--mp-role, #0a66c2);
    color: #fff;
    font-weight: 700;
    font-size: calc(14px * var(--mp-fs, 1));
    display: flex;
    align-items: center;
    justify-content: center;
}
.mp-pwa-steps li:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 13px;
    top: 30px;
    bottom: -10px;
    width: 2px;
    background: var(--mp-line-1, #D8DEE6);
}
.mp-pwa-btn-install[hidden] { display: none; }

@media (max-width: 768px) {
    #mp-pwa-install-card {
        bottom: 12px;
        width: calc(100% - 24px);
    }
    .mp-pwa-inner {
        padding: 12px;
    }
}

/* ===== Welcome card stat-kártya badge ===== */
.mp-stat-card { position: relative; }

.mp-stat-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 11px;
    background: #dc2626;
    color: #ffffff;
    font-size: calc(14px * var(--mp-fs, 1));
    font-weight: 700;
    line-height: 22px;
    text-align: center;
    border: 2px solid #ffffff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
    box-sizing: content-box;
    z-index: 2;
    cursor: pointer;
    transition: transform 0.15s ease;
    user-select: none;
}
.mp-stat-badge:hover { transform: scale(1.1); }
.mp-stat-badge[hidden] { display: none; }

@keyframes mp-badge-pulse-in {
    0%   { transform: scale(0);   opacity: 0; }
    60%  { transform: scale(1.2); opacity: 1; }
    100% { transform: scale(1);   opacity: 1; }
}
.mp-stat-badge.mp-badge-appear { animation: mp-badge-pulse-in 0.4s ease-out; }
/* Csak a felolvasónak (SIGNS-01, 10.13) — pl. az Üzenetek oldal fő címe, ahol a látható fejléc a beszélgetésé */
.mp-sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
