:root {
  --bg: #0b0c10;
  --bg-2: #111318;
  --surface: #16181f;
  --surface-2: #1c1f28;
  --surface-3: #252936;
  --line: rgba(255, 255, 255, 0.07);
  --line-2: rgba(255, 255, 255, 0.12);
  --text: #eceef4;
  --text-2: #a4a9b8;
  --text-3: #6d7384;
  --accent: #7c5cff;
  --accent-2: #9d85ff;
  --accent-soft: rgba(124, 92, 255, 0.14);
  --green: #2fd39b;
  --red: #ff4d5e;
  --red-soft: rgba(255, 77, 94, 0.14);
  --amber: #f5b73b;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 20px 60px -20px rgba(0, 0, 0, 0.6);
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --display: 'Space Grotesk', var(--font);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.5 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
[hidden] { display: none !important; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3 { font-family: var(--display); letter-spacing: -0.02em; margin: 0; }
a { color: var(--accent-2); }
kbd {
  font: 600 11px var(--font);
  padding: 2px 6px;
  border-radius: 5px;
  background: var(--surface-3);
  border: 1px solid var(--line-2);
}
.muted { color: var(--text-2); }

.i {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}

/* ---------- Háttér ---------- */
.bg-aura {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}
.bg-aura span {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.35;
  animation: drift 24s ease-in-out infinite alternate;
}
.bg-aura span:nth-child(1) { width: 520px; height: 520px; background: #5a3dff; top: -160px; left: -120px; }
.bg-aura span:nth-child(2) { width: 460px; height: 460px; background: #0fb39a; bottom: -180px; right: -100px; animation-delay: -8s; opacity: 0.22; }
.bg-aura span:nth-child(3) { width: 360px; height: 360px; background: #ff6a88; top: 40%; left: 55%; animation-delay: -16s; opacity: 0.12; }
@keyframes drift {
  to { transform: translate(80px, 60px) scale(1.15); }
}
body.in-room .bg-aura { display: none; }

/* ---------- Gombok, mezők ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 18px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-weight: 600;
  background: var(--surface-2);
  transition: background 0.15s, transform 0.1s, border-color 0.15s, opacity 0.15s;
  white-space: nowrap;
}
.btn:active { transform: scale(0.98); }
.btn:disabled { opacity: 0.5; cursor: default; }
.btn .i { width: 18px; height: 18px; }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 8px 24px -8px rgba(124, 92, 255, 0.7); }
.btn-primary:hover { background: #8a6dff; }
.btn-ghost { background: transparent; border-color: var(--line-2); color: var(--text-2); }
.btn-ghost:hover { background: var(--surface-2); color: var(--text); }
.btn-danger { background: var(--red); color: #fff; }
.btn-block { width: 100%; }
.btn-lg { height: 54px; font-size: 16px; padding: 0 28px; border-radius: 14px; }
.btn-sm { height: 34px; padding: 0 12px; font-size: 13px; border-radius: 9px; }

.icon-btn {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 0;
  background: transparent;
  color: var(--text-2);
  flex: none;
  transition: background 0.15s, color 0.15s;
}
.icon-btn:hover { background: var(--surface-3); color: var(--text); }
.icon-btn-primary { background: var(--accent); color: #fff; }
.icon-btn-primary:hover { background: #8a6dff; color: #fff; }
.icon-btn .i { width: 18px; height: 18px; }

.stack { display: flex; flex-direction: column; gap: 16px; }
.row { display: flex; gap: 12px; }
.row > * { flex: 1; min-width: 0; }

.field { display: flex; flex-direction: column; gap: 7px; }
.field > span { font-size: 13px; font-weight: 500; color: var(--text-2); }
.field input, .field select, .field textarea, #reg-role-custom {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid var(--line-2);
  background: var(--bg-2);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.field textarea { height: auto; padding: 12px 14px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus, #reg-role-custom:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}
.field-sm select { height: 38px; font-size: 13px; border-radius: 10px; }
#reg-role-custom { margin-top: 8px; }

.form-error { color: var(--red); font-size: 13px; min-height: 20px; margin: 0; text-align: center; }

.segmented {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  padding: 4px;
  background: var(--bg-2);
  border: 1px solid var(--line-2);
  border-radius: 12px;
}
.segmented button {
  height: 38px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--text-2);
  font-weight: 500;
  font-size: 13px;
  transition: background 0.15s, color 0.15s;
}
.segmented button.on { background: var(--surface-3); color: var(--text); box-shadow: 0 1px 0 var(--line-2) inset; }

/* ---------- Márka ---------- */
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--accent), #4f7bff);
  color: #fff;
  box-shadow: 0 8px 20px -6px rgba(124, 92, 255, 0.8);
}
.brand-mark .i { width: 19px; height: 19px; }
.brand-name { font: 700 18px var(--display); letter-spacing: -0.02em; }
.brand-sub { font-size: 13px; color: var(--text-3); }
.brand-lg .brand-mark { width: 46px; height: 46px; border-radius: 14px; }
.brand-lg .brand-mark .i { width: 24px; height: 24px; }
.brand-lg .brand-name { font-size: 22px; }

/* ---------- Avatar ---------- */
.avatar {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--c, var(--accent));
  color: #fff;
  font: 600 14px var(--display);
  flex: none;
  position: relative;
}
.avatar-lg { width: 56px; height: 56px; font-size: 22px; }
.avatar.online::after {
  content: '';
  position: absolute;
  right: -1px;
  bottom: -1px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--green);
  border: 2px solid var(--surface);
}

.role-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  background: var(--accent-soft);
  color: var(--accent-2);
}

/* ---------- Belépés ---------- */
.auth {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 16px;
  gap: 20px;
}
.auth-card {
  width: 100%;
  max-width: 420px;
  padding: 32px;
  border-radius: 24px;
  background: rgba(22, 24, 31, 0.78);
  border: 1px solid var(--line-2);
  backdrop-filter: blur(24px);
  box-shadow: var(--shadow);
}
.auth-card .brand { margin-bottom: 28px; }
.auth-step { display: none; flex-direction: column; gap: 14px; animation: rise 0.35s ease; }
.auth-step.active { display: flex; }
.auth-step h1 { font-size: 26px; }
.auth-step p.muted { margin: -6px 0 6px; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }

.setup-list { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 10px; color: var(--text-2); font-size: 14px; }
.setup-list b { color: var(--text); }

.auth-foot { display: flex; align-items: center; gap: 6px; color: var(--text-3); font-size: 12px; margin: 0; }
.auth-foot .i { width: 14px; height: 14px; }

.link-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
  padding: 0;
  border: 0;
  background: none;
  color: var(--text-3);
  font-size: 13px;
}
.link-back:hover { color: var(--text); }
.link-back .i { width: 16px; height: 16px; }

.steps { display: flex; gap: 6px; }
.steps i { height: 4px; flex: 1; border-radius: 4px; background: var(--surface-3); }
.steps i.on { background: var(--accent); }

.pin.six { gap: 8px; }
.pin.six input { width: 46px; height: 58px; font-size: 24px; border-radius: 13px; -webkit-text-security: none; }
.recovery summary { cursor: pointer; font-size: 13px; color: var(--text-2); margin: 4px 0 10px; }
.recovery summary:hover { color: var(--text); }
.qr-box { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.qr-box img { width: 200px; height: 200px; padding: 10px; border-radius: 16px; background: #fff; }
.qr-box .recovery { align-self: stretch; text-align: center; }
.secret { display: block; padding: 10px; border-radius: 10px; background: var(--bg-2); border: 1px solid var(--line-2); font: 600 14px ui-monospace, monospace; letter-spacing: 0.08em; word-break: break-all; user-select: all; }
.codes { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.codes code { padding: 9px; border-radius: 10px; background: var(--bg-2); border: 1px solid var(--line-2); text-align: center; font: 600 15px ui-monospace, monospace; letter-spacing: 0.06em; user-select: all; }
.check { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--text-2); cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--accent); }
.sec-line { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; font-size: 13px; color: var(--text-2); }
.sec-line .i { color: var(--green); width: 18px; height: 18px; }

.user-picker { display: flex; flex-direction: column; gap: 8px; margin-bottom: 4px; }
.user-option {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--line-2);
  background: var(--bg-2);
  text-align: left;
  transition: border-color 0.15s, background 0.15s, transform 0.1s;
}
.user-option:hover { border-color: var(--accent); background: var(--surface-2); }
.user-option:active { transform: scale(0.99); }
.user-option .name { font-weight: 600; }
.user-option .go { margin-left: auto; color: var(--text-3); transform: rotate(180deg); }
.empty-note {
  padding: 18px;
  border-radius: 14px;
  border: 1px dashed var(--line-2);
  color: var(--text-2);
  text-align: center;
  font-size: 14px;
}

.auth-who { display: flex; align-items: center; gap: 12px; }
.auth-who .name { font-weight: 600; font-size: 16px; }

.pin { display: flex; gap: 12px; justify-content: center; margin: 8px 0; }
.pin input {
  width: 60px;
  height: 70px;
  text-align: center;
  font: 700 28px var(--display);
  border-radius: 16px;
  border: 1px solid var(--line-2);
  background: var(--bg-2);
  outline: none;
  caret-color: var(--accent);
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
  -webkit-text-security: disc;
}
.pin input:focus { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.pin input.filled { background: var(--surface-2); }
.pin.error input { border-color: var(--red); animation: shake 0.4s; }
.pin.ok input { border-color: var(--green); }
@keyframes shake {
  20%, 60% { transform: translateX(-6px); }
  40%, 80% { transform: translateX(6px); }
}

/* ---------- Főoldal ---------- */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 32px;
}
.topbar-right { display: flex; align-items: center; gap: 12px; }
.clock { font: 500 14px var(--display); color: var(--text-2); font-variant-numeric: tabular-nums; }
.me-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 5px 14px 5px 5px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
}
.me-pill .avatar { width: 30px; height: 30px; font-size: 12px; }
.me-pill .name { font-weight: 600; font-size: 14px; }

.sec-alert {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: var(--radius);
  border: 1px solid rgba(245, 183, 59, 0.45);
  background: rgba(245, 183, 59, 0.1);
  color: var(--amber);
}
.sec-alert p { flex: 1; margin: 0; font-size: 14px; color: var(--text); }
.sec-alert .i { width: 24px; height: 24px; }

.home-main { max-width: 1120px; margin: 0 auto; padding: 16px 32px 64px; }
.home-hero { margin: 24px 0 28px; }
.eyebrow { margin: 0 0 6px; font-size: 13px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--accent-2); }
.home-hero h1 { font-size: clamp(30px, 4vw, 42px); }

.actions { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-bottom: 40px; }
.action-card {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 22px;
  border-radius: 20px;
  border: 1px solid var(--line-2);
  background: var(--surface);
  text-align: left;
  transition: transform 0.15s, border-color 0.15s, background 0.15s;
}
.action-card:hover { transform: translateY(-2px); border-color: var(--line-2); background: var(--surface-2); }
.action-primary {
  background: linear-gradient(135deg, #6a4cff 0%, #4a6bff 100%);
  border-color: transparent;
  box-shadow: 0 20px 40px -20px rgba(106, 76, 255, 0.8);
}
.action-primary:hover { background: linear-gradient(135deg, #7659ff 0%, #5677ff 100%); }
.action-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 15px;
  background: var(--surface-3);
  flex: none;
}
.action-primary .action-icon { background: rgba(255, 255, 255, 0.18); }
.action-icon .i { width: 24px; height: 24px; }
.action-title { font: 600 18px var(--display); }
.action-sub { font-size: 14px; color: var(--text-2); }
.action-primary .action-sub { color: rgba(255, 255, 255, 0.78); }

.home-grid { display: grid; grid-template-columns: 1fr 300px; gap: 32px; align-items: start; }
.section { margin-bottom: 32px; }
.section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font: 600 13px var(--font);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-3);
  margin-bottom: 14px;
}
details.past summary { cursor: pointer; list-style: none; }
details.past summary::-webkit-details-marker { display: none; }
details.past summary::before { content: '▸'; transition: transform 0.2s; }
details.past[open] summary::before { transform: rotate(90deg); }
.count { color: var(--text-3); font-weight: 500; }

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 0 rgba(255, 77, 94, 0.6);
  animation: pulse 1.6s infinite;
}
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(255, 77, 94, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 77, 94, 0); } }

.meeting-list { display: flex; flex-direction: column; gap: 10px; }
.meeting {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 16px 18px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  transition: border-color 0.15s;
}
.meeting:hover { border-color: var(--line-2); }
.meeting.is-live { border-color: rgba(255, 77, 94, 0.4); background: linear-gradient(90deg, rgba(255, 77, 94, 0.08), var(--surface) 60%); }
.meeting.is-past { opacity: 0.6; }
.m-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 60px;
  border-radius: 12px;
  background: var(--surface-2);
  flex: none;
}
.m-date .mon { font-size: 11px; font-weight: 600; text-transform: uppercase; color: var(--accent-2); }
.m-date .day { font: 700 22px/1.1 var(--display); }
.m-body { flex: 1; min-width: 0; }
.m-title { font-weight: 600; font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.m-desc { font-size: 13px; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.m-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin-top: 6px; font-size: 13px; color: var(--text-3); }
.m-meta span { display: inline-flex; align-items: center; gap: 5px; }
.m-meta .i { width: 14px; height: 14px; }
.m-when-soon { color: var(--amber) !important; font-weight: 600; }
.m-live { color: var(--red) !important; font-weight: 600; }
.m-actions { display: flex; align-items: center; gap: 4px; flex: none; }
.stack-avatars { display: flex; }
.stack-avatars .avatar { width: 24px; height: 24px; font-size: 10px; border: 2px solid var(--surface); margin-left: -6px; }
.stack-avatars .avatar:first-child { margin-left: 0; }

.empty {
  padding: 32px;
  border-radius: var(--radius);
  border: 1px dashed var(--line-2);
  color: var(--text-3);
  text-align: center;
}

.panel {
  padding: 20px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  margin-bottom: 16px;
}
.panel .section-title { margin-bottom: 12px; }
.panel.tip h3 { font-size: 15px; margin-bottom: 6px; }
.panel.tip p { margin: 0; font-size: 13px; color: var(--text-2); line-height: 1.8; }

.team-list { display: flex; flex-direction: column; gap: 4px; }
.team-member { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 12px; }
.team-member .who { flex: 1; min-width: 0; }
.team-member .name { font-weight: 600; font-size: 14px; }
.team-member .status { font-size: 12px; color: var(--text-3); }
.team-member .status.on { color: var(--green); }
.team-member .role-select {
  height: 28px;
  max-width: 130px;
  padding: 0 6px;
  border-radius: 8px;
  border: 1px solid var(--line-2);
  background: var(--bg-2);
  font-size: 12px;
}
.team-member .role-btn { height: 28px; padding: 0 10px; font-size: 12px; border-radius: 8px; }
.team-member .lock { display: inline-flex; align-items: center; gap: 4px; }
.team-member .lock .i { width: 12px; height: 12px; opacity: 0.7; }
.roles-admin { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.roles-admin h3 { font: 600 12px var(--font); text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-3); margin-bottom: 10px; }
.roles-list { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.role-chip { display: inline-flex; align-items: center; gap: 4px; padding: 3px 4px 3px 10px; border-radius: 999px; background: var(--surface-3); font-size: 12px; }
.role-chip.builtin { padding-right: 10px; color: var(--text-2); }
.role-chip button { display: grid; place-items: center; width: 20px; height: 20px; border: 0; border-radius: 50%; background: transparent; color: var(--text-3); }
.role-chip button:hover { background: var(--red-soft); color: var(--red); }
.role-chip .i { width: 12px; height: 12px; }
.role-form { display: flex; gap: 6px; }
.role-form input { flex: 1; min-width: 0; height: 34px; padding: 0 10px; border-radius: 9px; border: 1px solid var(--line-2); background: var(--bg-2); outline: none; font-size: 13px; }
.role-form input:focus { border-color: var(--accent); }

.team-member .icons { display: flex; gap: 6px; color: var(--text-3); }
.team-member .icons .i { width: 16px; height: 16px; }
.team-member .icons .off { color: var(--red); }

/* ---------- Előcsarnok ---------- */
.lobby { min-height: 100%; display: flex; flex-direction: column; }
.lobby-main {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
  max-width: 1160px;
  width: 100%;
  margin: 0 auto;
  padding: 16px 32px 48px;
}
.lobby-preview { display: flex; flex-direction: column; gap: 16px; }
.lobby-controls { display: flex; justify-content: center; gap: 12px; margin-top: -48px; position: relative; z-index: 2; }
.device-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 8px; }
.lobby-info { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.lobby-info h1 { font-size: clamp(28px, 3.5vw, 38px); }
.lobby-info p { margin: 0; }
.lobby-live { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--text-2); min-height: 28px; }
.lobby-info .btn-lg { margin-top: 8px; min-width: 220px; }

.meter { position: absolute; left: 16px; top: 16px; display: flex; gap: 3px; align-items: flex-end; height: 18px; z-index: 2; }
.meter i { width: 4px; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, 0.7); transition: height 0.08s; }

/* ---------- Csempe (videó) ---------- */
.tile {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  background: var(--surface);
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  isolation: isolate;
}
.tile video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #000;
}
.tile.mirror video { transform: scaleX(-1); }
.tile.is-screen video { object-fit: contain; background: #050507; }
.tile::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 3px solid var(--green);
  opacity: 0;
  transition: opacity 0.15s;
  pointer-events: none;
  z-index: 3;
}
.tile.speaking::after { opacity: 1; }
.tile-avatar {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 50% 40%, var(--surface-3), var(--surface) 70%);
  z-index: 1;
}
.tile-avatar .avatar { width: 88px; height: 88px; font-size: 34px; box-shadow: 0 0 0 8px rgba(255, 255, 255, 0.04); }
.tile.has-video .tile-avatar { display: none; }
.tile-label {
  position: absolute;
  left: 12px;
  bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: calc(100% - 24px);
  padding: 6px 12px 6px 10px;
  border-radius: 10px;
  background: rgba(10, 11, 15, 0.62);
  backdrop-filter: blur(12px);
  font-size: 13px;
  font-weight: 600;
  z-index: 2;
}
.tile-label .i { width: 15px; height: 15px; }
.tile-label .mic-off { color: var(--red); }
.tile-label .role { font-weight: 500; color: var(--text-2); }
.tile-label .nm { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile-badge {
  position: absolute;
  right: 12px;
  top: 12px;
  padding: 4px 10px;
  border-radius: 8px;
  background: rgba(10, 11, 15, 0.62);
  backdrop-filter: blur(12px);
  font-size: 12px;
  font-weight: 600;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 6px;
}
.tile-badge .i { width: 14px; height: 14px; }
.tile-badge.warn { color: var(--amber); }
.tile-pin {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 2;
  opacity: 0;
  background: rgba(10, 11, 15, 0.62);
  backdrop-filter: blur(12px);
  transition: opacity 0.15s;
}
.tile:hover .tile-pin { opacity: 1; }
.tile-lobby { border-radius: 24px; box-shadow: var(--shadow); }
.tile-lobby .tile-avatar .avatar { width: 110px; height: 110px; font-size: 42px; }

.float-emoji {
  position: absolute;
  bottom: 20%;
  font-size: 48px;
  z-index: 5;
  pointer-events: none;
  animation: floatUp 2.4s ease-out forwards;
}
@keyframes floatUp {
  0% { transform: translateY(0) scale(0.5); opacity: 0; }
  15% { transform: translateY(-20px) scale(1.15); opacity: 1; }
  100% { transform: translateY(-220px) scale(1); opacity: 0; }
}

/* ---------- Hívás ---------- */
body.in-room { overflow: hidden; }
.room {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  background: #08090c;
}
.room-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 20px;
}
.room-title { display: flex; align-items: center; gap: 12px; min-width: 0; }
.room-title strong { font: 600 16px var(--display); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rec-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 12px var(--green); flex: none; }
.room-timer {
  font: 500 13px var(--display);
  font-variant-numeric: tabular-nums;
  color: var(--text-2);
  padding: 3px 10px;
  border-radius: 8px;
  background: var(--surface);
}

.room-body { flex: 1; display: flex; min-height: 0; gap: 12px; padding: 0 16px; }
.stage {
  flex: 1;
  min-width: 0;
  display: grid;
  gap: 12px;
  align-content: center;
  justify-content: center;
}
.stage .tile { width: 100%; max-height: 100%; }

/* Kiemelt nézet (képernyőmegosztás vagy kitűzés) */
.stage.spotlight { align-content: stretch; justify-content: stretch; }
.stage.spotlight .tile.featured { grid-column: 1; aspect-ratio: auto; height: 100%; min-height: 0; }
.stage.spotlight .tile:not(.featured) { grid-column: 2; }
.stage.spotlight .tile:not(.featured) .tile-avatar .avatar { width: 52px; height: 52px; font-size: 20px; }
.stage.spotlight .tile:not(.featured) .tile-label { font-size: 12px; padding: 4px 8px; left: 8px; bottom: 8px; }

.side {
  width: 360px;
  flex: none;
  display: flex;
  flex-direction: column;
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  overflow: hidden;
  animation: slideIn 0.2s ease;
}
@keyframes slideIn { from { opacity: 0; transform: translateX(16px); } }
.side-head { display: flex; align-items: center; justify-content: space-between; padding: 10px 10px 10px 12px; border-bottom: 1px solid var(--line); }
.tabs { display: flex; gap: 2px; }
.tabs button {
  border: 0;
  background: transparent;
  padding: 7px 12px;
  border-radius: 9px;
  color: var(--text-3);
  font-weight: 600;
  font-size: 13px;
}
.tabs button.on { background: var(--surface-3); color: var(--text); }
.tabs span { color: var(--text-3); font-weight: 500; }
.tab-pane { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.tab-pane[data-pane='people'], .tab-pane[data-pane='files'] { padding: 10px; overflow-y: auto; }

.messages { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 2px; }
.msg-group { display: flex; gap: 10px; margin-top: 12px; }
.msg-group .avatar { width: 30px; height: 30px; font-size: 12px; }
.msg-group.mine { flex-direction: row-reverse; }
.msg-stack { display: flex; flex-direction: column; gap: 4px; min-width: 0; max-width: 80%; }
.mine .msg-stack { align-items: flex-end; }
.msg-head { font-size: 12px; color: var(--text-3); }
.msg-head b { color: var(--text-2); font-weight: 600; margin-right: 6px; }
.bubble {
  padding: 9px 13px;
  border-radius: 14px;
  border-top-left-radius: 5px;
  background: var(--surface-3);
  white-space: pre-wrap;
  word-wrap: break-word;
  overflow-wrap: anywhere;
  font-size: 14px;
}
.mine .bubble { background: var(--accent); color: #fff; border-top-left-radius: 14px; border-top-right-radius: 5px; }
.bubble a { color: inherit; }
.msg-empty { margin: auto; text-align: center; color: var(--text-3); font-size: 14px; padding: 24px; }
.msg-empty .i { width: 32px; height: 32px; margin-bottom: 8px; opacity: 0.5; }

.file-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 10px 10px 12px;
  border-radius: 14px;
  background: var(--surface-3);
  border: 1px solid var(--line-2);
  min-width: 220px;
  max-width: 100%;
}
.file-card .fi {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent-2);
  flex: none;
  font: 700 10px var(--display);
  text-transform: uppercase;
}
.file-card .fmeta { flex: 1; min-width: 0; }
.file-card .fname { font-weight: 600; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-card .fsize { font-size: 12px; color: var(--text-3); }
.file-thumb {
  display: block;
  max-width: 240px;
  max-height: 200px;
  border-radius: 12px;
  border: 1px solid var(--line-2);
  cursor: zoom-in;
  background: var(--surface-3);
}

.uploads { display: flex; flex-direction: column; gap: 6px; padding: 0 12px; }
.upload-row { padding: 8px 12px; border-radius: 10px; background: var(--surface-2); font-size: 12px; }
.upload-row .bar { height: 4px; border-radius: 4px; background: var(--surface-3); margin-top: 6px; overflow: hidden; }
.upload-row .bar i { display: block; height: 100%; background: var(--accent); width: 0; transition: width 0.2s; }

.composer {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  margin: 12px;
  padding: 6px;
  border-radius: 14px;
  background: var(--bg-2);
  border: 1px solid var(--line-2);
}
.composer:focus-within { border-color: var(--accent); }
.composer textarea {
  flex: 1;
  border: 0;
  outline: none;
  background: transparent;
  resize: none;
  padding: 9px 4px;
  max-height: 140px;
  font-size: 14px;
  line-height: 1.45;
}

.files-list { display: flex; flex-direction: column; gap: 8px; }
.files-list .file-card { min-width: 0; }
.files-list .who { font-size: 11px; color: var(--text-3); }

.controls {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 14px 20px 18px;
  gap: 12px;
}
.controls-left { font: 500 14px var(--display); color: var(--text-2); font-variant-numeric: tabular-nums; }
.controls-center { display: flex; gap: 10px; align-items: center; }
.controls-right { display: flex; gap: 8px; justify-content: flex-end; }

.ctrl {
  position: relative;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  border: 0;
  background: var(--surface-2);
  color: var(--text);
  transition: background 0.15s, transform 0.1s, color 0.15s;
}
.ctrl:hover { background: var(--surface-3); }
.ctrl:active { transform: scale(0.95); }
.ctrl .i { width: 22px; height: 22px; }
.ctrl.off { background: var(--red-soft); color: var(--red); }
.ctrl.off:hover { background: rgba(255, 77, 94, 0.22); }
.ctrl.active { background: var(--accent); color: #fff; }
.ctrl-danger { width: 68px; background: var(--red); color: #fff; }
.ctrl-danger:hover { background: #ff6573; }
.ctrl-sm { width: 44px; height: 44px; border-radius: 13px; background: transparent; color: var(--text-2); }
.ctrl-sm .i { width: 20px; height: 20px; }
.ctrl-sm.active { background: var(--surface-3); color: var(--text); }
.lobby-controls .ctrl { width: 56px; height: 56px; border-radius: 50%; background: rgba(28, 31, 40, 0.85); backdrop-filter: blur(12px); }
.lobby-controls .ctrl.off { background: var(--red); color: #fff; }

.badge {
  position: absolute;
  top: 4px;
  right: 4px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  background: var(--red);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 18px;
}

.react-wrap { position: relative; }
.react-pop {
  z-index: 60;
  position: absolute;
  bottom: 64px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 2px;
  padding: 6px;
  border-radius: 16px;
  background: var(--surface-2);
  border: 1px solid var(--line-2);
  box-shadow: var(--shadow);
  animation: rise 0.15s ease;
}
.react-pop button {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 11px;
  background: transparent;
  font-size: 22px;
  transition: transform 0.1s, background 0.1s;
}
.react-pop button:hover { background: var(--surface-3); transform: scale(1.15); }

.drop-overlay {
  position: absolute;
  inset: 12px;
  z-index: 50;
  display: grid;
  place-items: center;
  border-radius: 24px;
  border: 2px dashed var(--accent);
  background: rgba(124, 92, 255, 0.12);
  backdrop-filter: blur(6px);
  pointer-events: none;
  font: 600 18px var(--display);
  text-align: center;
}
.drop-overlay .i { width: 40px; height: 40px; }

/* ---------- Zene ---------- */
.music {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 60;
  width: 360px;
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  padding: 12px;
  border-radius: 20px;
  background: rgba(22, 24, 31, 0.92);
  border: 1px solid var(--line-2);
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow);
  animation: rise 0.2s ease;
}
body.in-room .music { bottom: 92px; }
.music-head { display: flex; align-items: center; gap: 4px; margin-bottom: 10px; }
.music-title { display: flex; align-items: center; gap: 8px; flex: 1; font: 600 15px var(--display); }
.music-title .i { color: #1ed760; }
.music-share { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-2); cursor: pointer; margin-right: 4px; }
.music-share input { accent-color: #1ed760; }
.music-form { display: flex; gap: 6px; margin-bottom: 4px; }
.music-form input {
  flex: 1;
  min-width: 0;
  height: 38px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid var(--line-2);
  background: var(--bg-2);
  outline: none;
  font-size: 13px;
}
.music-form input:focus { border-color: #1ed760; }
.music-form .icon-btn-primary { background: #1ed760; color: #0b0c10; }
.music-error { min-height: 0; margin: 0 0 6px; text-align: left; }
.music-embed iframe { display: block; border-radius: 12px; }
.music-list { display: flex; flex-direction: column; gap: 4px; margin-top: 10px; }
.music-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  text-align: left;
  transition: background 0.15s;
}
.music-item:hover, .music-item.on { background: var(--surface-3); }
.music-item img, .music-item .ph { width: 36px; height: 36px; border-radius: 6px; object-fit: cover; flex: none; background: var(--surface-3); }
.music-item .t { flex: 1; min-width: 0; font-size: 13px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.music-item .k { font-size: 11px; color: var(--text-3); }
.music-note { margin: 10px 2px 0; font-size: 11px; line-height: 1.5; color: var(--text-3); }
.music.mini .music-form, .music.mini .music-list, .music.mini .music-note, .music.mini .music-error { display: none; }
#btn-music.on, #ctl-music.active { color: #1ed760; }

/* ---------- Dialógus ---------- */
.dialog {
  width: min(520px, calc(100% - 32px));
  padding: 24px;
  border-radius: 22px;
  border: 1px solid var(--line-2);
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow);
}
.dialog::backdrop { background: rgba(5, 6, 9, 0.7); backdrop-filter: blur(6px); }
.dialog[open] { animation: rise 0.2s ease; }
.dialog-head { display: flex; align-items: center; justify-content: space-between; }
.dialog-head h2 { font-size: 22px; }
.dialog-foot { display: flex; justify-content: flex-end; gap: 10px; }
input[type='date']::-webkit-calendar-picker-indicator,
input[type='time']::-webkit-calendar-picker-indicator { filter: invert(0.8); cursor: pointer; }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  background: rgba(5, 6, 9, 0.9);
  cursor: zoom-out;
  padding: 24px;
}
.lightbox img { max-width: 100%; max-height: 100%; border-radius: 12px; }

/* ---------- Értesítések ---------- */
.toasts {
  position: fixed;
  top: 16px;
  left: 16px;
  right: 16px;
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  pointer-events: none;
}
.toast {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: 12px;
  background: var(--surface-3);
  border: 1px solid var(--line-2);
  box-shadow: var(--shadow);
  font-size: 14px;
  font-weight: 500;
  pointer-events: auto;
  animation: toastIn 0.25s ease;
  max-width: min(460px, calc(100vw - 32px));
}
.toast .avatar { width: 24px; height: 24px; font-size: 10px; }
.toast.error { border-color: rgba(255, 77, 94, 0.5); }
.toast.hide { opacity: 0; transform: translateY(-8px); transition: 0.25s; }
@keyframes toastIn { from { opacity: 0; transform: translateY(-10px); } }

/* ---------- Mobil ---------- */
@media (max-width: 900px) {
  .home-grid { grid-template-columns: 1fr; }
  .lobby-main { grid-template-columns: 1fr; gap: 28px; }
  .side {
    position: fixed;
    inset: 0 0 86px 0;
    width: auto;
    border-radius: 0;
    z-index: 20;
  }
  .stage.spotlight .tile:not(.featured) { display: none; }
}
@media (max-width: 640px) {
  .topbar { padding: 14px 16px; }
  .clock, .me-pill .name { display: none; }
  .home-main { padding: 8px 16px 48px; }
  .actions { grid-template-columns: 1fr; }
  .meeting { flex-wrap: wrap; gap: 12px 14px; }
  .m-actions { width: 100%; }
  .m-actions .btn { flex: 1; }
  .lobby-main { padding: 8px 16px 32px; }
  .device-row { grid-template-columns: 1fr; }
  .auth-card { padding: 24px 20px; }
  .pin input { width: 54px; height: 64px; }
  .pin.six input { width: 42px; height: 54px; }
  .row { flex-wrap: wrap; }
  .room-body { padding: 0 8px; }
  .controls { grid-template-columns: 1fr; padding: 10px 8px 14px; }
  .controls-left { display: none; }
  .controls-center { justify-content: center; gap: 6px; }
  .controls-right { justify-content: center; }
  .ctrl { width: 46px; height: 46px; border-radius: 14px; }
  .ctrl-danger { width: 56px; }
  .side { inset: 0 0 128px 0; }
  .music { left: 8px; right: 8px; width: auto; }
  body.in-room .music { bottom: 136px; }
  .room-top .btn span { display: none; }
}

/* ======================================================================
   Cégek, célok, jegyzetek, napirend
   ====================================================================== */
.topbar-left { display: flex; align-items: center; gap: 14px; min-width: 0; }
.company-switch { position: relative; }
.company-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 10px 0 12px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: var(--surface);
  color: var(--text-2);
  font-size: 13px;
  font-weight: 600;
}
.company-btn:hover { color: var(--text); border-color: var(--accent); }
.company-btn .i { width: 16px; height: 16px; }
.company-menu {
  position: absolute;
  top: 44px;
  left: 0;
  z-index: 70;
  min-width: 240px;
  padding: 6px;
  border-radius: 16px;
  background: var(--surface-2);
  border: 1px solid var(--line-2);
  box-shadow: var(--shadow);
  animation: rise 0.15s ease;
}
.company-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 10px;
  border: 0;
  border-radius: 11px;
  background: transparent;
  text-align: left;
  font-weight: 600;
  font-size: 14px;
}
.company-item:hover, .company-item.on { background: var(--surface-3); }
.company-item .dot { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; flex: none; color: #fff; font-size: 12px; }
.company-item .dot svg { width: 20px; height: 18px; }
.company-item small { display: block; font-weight: 500; color: var(--text-3); font-size: 11px; }
.company-item.add { color: var(--text-2); border-top: 1px solid var(--line); border-radius: 0 0 11px 11px; margin-top: 4px; }
.hero-sub { margin: 8px 0 0; color: var(--text-2); font-size: 15px; }
.grad { background: none; }

.panel-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.panel-head .section-title { margin: 0; }
.section-title .i { width: 15px; height: 15px; }
.progress { height: 6px; border-radius: 6px; background: var(--surface-3); overflow: hidden; margin-bottom: 12px; }
.progress i { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--accent); transition: width 0.3s ease; }

.checklist { display: flex; flex-direction: column; gap: 2px; margin-bottom: 10px; }
.check-item { display: flex; align-items: flex-start; gap: 10px; padding: 7px 6px; border-radius: 10px; }
.check-item:hover { background: var(--surface-2); }
.check-item input { width: 18px; height: 18px; margin-top: 1px; flex: none; accent-color: var(--accent); cursor: pointer; }
.check-item .txt { flex: 1; min-width: 0; font-size: 14px; line-height: 1.4; overflow-wrap: anywhere; }
.check-item .by { display: block; font-size: 11px; color: var(--text-3); margin-top: 2px; }
.check-item.done .txt { color: var(--text-3); text-decoration: line-through; }
.check-item .del { opacity: 0; width: 26px; height: 26px; }
.check-item:hover .del { opacity: 1; }
.checklist.big .check-item { padding: 10px 8px; }
.checklist.big .check-item .txt { font-size: 15px; }
.checklist .empty-line { font-size: 13px; color: var(--text-3); padding: 4px 6px; }

.inline-form { display: flex; gap: 6px; }
.inline-form input {
  flex: 1;
  min-width: 0;
  height: 36px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid var(--line-2);
  background: var(--bg-2);
  outline: none;
  font-size: 13px;
}
.inline-form input:focus { border-color: var(--accent); }

.notes-list { display: flex; flex-direction: column; gap: 4px; }
.note-row {
  display: flex;
  flex-direction: column;
  gap: 2px;
  width: 100%;
  padding: 9px 10px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  text-align: left;
}
.note-row:hover { background: var(--surface-2); }
.note-row b { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.note-row span { font-size: 11px; color: var(--text-3); }
.notes-list .empty-line { font-size: 13px; color: var(--text-3); padding: 4px 6px; }

.lobby-agenda { align-self: stretch; padding: 14px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.lobby-agenda h3 { display: flex; align-items: center; gap: 8px; font-size: 14px; margin-bottom: 8px; }
.lobby-agenda h3 .i { width: 16px; height: 16px; color: var(--accent-2); }

.room-actions { display: flex; gap: 8px; }
.pane-pad { padding: 14px; display: flex; flex-direction: column; gap: 10px; overflow-y: auto; }
.agenda-head { font-size: 13px; color: var(--text-2); }
.tabs { overflow-x: auto; scrollbar-width: none; }
.tabs button { padding: 7px 8px; white-space: nowrap; font-size: 12.5px; }
.side { width: 390px; }

.goals-pin { padding: 10px 12px 4px; border-bottom: 1px solid var(--line); max-height: 40%; overflow-y: auto; }
.goals-pin .pin-head { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--accent-2); margin-bottom: 4px; }
.goals-pin .pin-head .i { width: 14px; height: 14px; }
.goals-pin .pin-head .progress { flex: 1; margin: 0; height: 4px; }
.goals-pin .check-item { padding: 4px 4px; }
.goals-pin .check-item .txt { font-size: 13px; }
.goals-pin:empty { display: none; }
#btn-goal.on { background: var(--accent-soft); color: var(--accent-2); }

.msg-system { align-self: center; margin: 10px 0 2px; padding: 5px 12px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); font-size: 12px; color: var(--text-2); text-align: center; max-width: 95%; }
.msg-system b { color: var(--text); }

.dialog-wide { width: min(760px, calc(100% - 32px)); }
.note-title { flex: 1; min-width: 0; border: 0; outline: none; background: transparent; font: 700 22px var(--display); }
.note-body {
  width: 100%;
  min-height: 320px;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid var(--line-2);
  background: var(--bg-2);
  outline: none;
  resize: vertical;
  font: 15px/1.6 var(--font);
}
.note-body:focus { border-color: var(--accent); }
.note-meta { margin: 0; font-size: 12px; color: var(--text-3); }
.dialog-foot .spacer { flex: 1; }
.dialog-foot { align-items: center; }

@media (max-width: 640px) {
  .company-btn span { max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .topbar .brand-name { display: none; }
  .room-actions .btn span { display: none; }
}

/* ======================================================================
   Velyric téma – a velyric.com arculata (sötét mód)
   ====================================================================== */
body[data-theme='velyric'] {
  --bg: #08090d;
  --bg-2: #0c0d13;
  --surface: #11131a;
  --surface-2: #17131b;
  --surface-3: #211a25;
  --line: #262833;
  --line-2: #2f3140;
  --text: #f8fafc;
  --text-2: #aab2c2;
  --text-3: #7d8597;
  --accent: #ff2b91;
  --accent-2: #ff6fb1;
  --accent-soft: #ff2b911f;
  --green: #34d399;
  --red: #fb7185;
  --red-soft: #fb718524;
  --amber: #fbbf24;
  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 2px 6px #00000080, 0 34px 70px -26px #c11a8b73;
  --font: 'Geist', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --display: 'Geist', ui-sans-serif, system-ui, sans-serif;
  --cta: linear-gradient(110deg, #d4006c 0%, #db0a3e 65%, #e8583a 100%);
  --banner: linear-gradient(120deg, #4a0038 0%, #8e0069 30%, #b8006f 62%, #e8583a 100%);
  background: #08090d;
}
body[data-theme='velyric'] h1,
body[data-theme='velyric'] h2,
body[data-theme='velyric'] h3 { letter-spacing: -0.03em; }
body[data-theme='velyric'] .home-hero h1 { font-weight: 700; font-size: clamp(34px, 4.4vw, 52px); line-height: 1.05; }
body[data-theme='velyric'] .grad {
  background: linear-gradient(90deg, #f000ff 0%, #ff2b91 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
body[data-theme='velyric'] .eyebrow { color: #ff2b91; font-size: 11px; letter-spacing: 0.18em; font-weight: 600; }
body[data-theme='velyric'] .bg-aura span:nth-child(1) { background: #ff2b91; opacity: 0.22; }
body[data-theme='velyric'] .bg-aura span:nth-child(2) { background: #f000ff; opacity: 0.14; }
body[data-theme='velyric'] .bg-aura span:nth-child(3) { background: #ff8f73; opacity: 0.12; }
body[data-theme='velyric'] .topbar { border-bottom: 1px solid #ffffff0d; background: #08090dcc; backdrop-filter: blur(16px); position: sticky; top: 0; z-index: 40; }
body[data-theme='velyric'] .brand-mark { background: none; box-shadow: none; width: 34px; }
body[data-theme='velyric'] .brand-mark svg { width: 34px; height: 30px; }
body[data-theme='velyric'] .brand-name { font: 700 20px var(--display); letter-spacing: -0.03em; }
body[data-theme='velyric'] .btn { border-radius: 999px; font-size: 14px; }
body[data-theme='velyric'] .btn-primary,
body[data-theme='velyric'] .icon-btn-primary { background: var(--cta); color: #fff; box-shadow: 0 10px 28px -10px #ff315f80; }
body[data-theme='velyric'] .btn-primary:hover,
body[data-theme='velyric'] .icon-btn-primary:hover { filter: brightness(1.08); background: var(--cta); }
body[data-theme='velyric'] .btn-ghost { border-color: var(--line); background: #11131a99; color: var(--text); }
body[data-theme='velyric'] .action-card { border-radius: 20px; border-color: var(--line); background: #11131a; }
body[data-theme='velyric'] .action-card:hover { border-color: #ff2b9166; box-shadow: 0 1px 2px #0006, 0 18px 40px -22px #ff2b9138; }
body[data-theme='velyric'] .action-primary { background: var(--banner); border-color: transparent; box-shadow: 0 2px 6px #00000080, 0 34px 70px -26px #c11a8b73; }
body[data-theme='velyric'] .action-primary:hover { background: var(--banner); filter: brightness(1.06); }
body[data-theme='velyric'] .action-icon { background: #ff2b911f; color: #ff6fb1; border-radius: 999px; }
body[data-theme='velyric'] .action-primary .action-icon { background: #ffffff26; color: #fff; }
body[data-theme='velyric'] .panel,
body[data-theme='velyric'] .meeting,
body[data-theme='velyric'] .lobby-agenda { border-radius: 20px; background: #11131a; border-color: var(--line); }
body[data-theme='velyric'] .m-date { background: #ff2b911f; }
body[data-theme='velyric'] .m-date .mon { color: #ff6fb1; }
body[data-theme='velyric'] .role-badge { background: #ff2b9129; color: #ff8cc4; }
body[data-theme='velyric'] .progress i { background: linear-gradient(90deg, #f000ff, #ff2b91 60%, #ff8f73); }
body[data-theme='velyric'] .company-btn { background: #11131a; }
body[data-theme='velyric'] .room { background: #08090d; }
body[data-theme='velyric'] .tile { border-radius: 20px; border-color: var(--line); background: #11131a; }
body[data-theme='velyric'] .tile::after { border-color: #ff2b91; }
body[data-theme='velyric'] .ctrl { border-radius: 999px; background: #17131b; }
body[data-theme='velyric'] .ctrl.active { background: var(--cta); }
body[data-theme='velyric'] .ctrl-danger { background: linear-gradient(110deg, #db0a3e, #e8583a); }
body[data-theme='velyric'] .ctrl-sm { background: transparent; }
body[data-theme='velyric'] .ctrl-sm.active { background: #ff2b911f; color: #ff6fb1; }
body[data-theme='velyric'] .side { border-radius: 20px; background: #11131a; }
body[data-theme='velyric'] .mine .bubble { background: var(--cta); }
body[data-theme='velyric'] .rec-dot { background: #ff2b91; box-shadow: 0 0 12px #ff2b91; }
body[data-theme='velyric'] .dialog { border-radius: 24px; background: #11131a; }
body[data-theme='velyric'] .toast { border-radius: 999px; background: #17131b; }


/* ======================================================================
   A Konferencia szoba (főoldal), hozzáférés, várakozás
   ====================================================================== */
.room-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 28px 30px;
  margin-bottom: 40px;
  border-radius: 24px;
  background: var(--surface);
  border: 1px solid var(--line-2);
  box-shadow: var(--shadow);
}
.room-hero-glow {
  position: absolute;
  inset: -40% -10% auto auto;
  width: 520px;
  height: 520px;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-soft), transparent 65%);
  transition: opacity 0.4s;
  opacity: 0.7;
}
.room-hero.is-live { border-color: color-mix(in srgb, var(--green) 45%, var(--line-2)); }
.room-hero.is-live .room-hero-glow { opacity: 1; }
.room-hero-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.room-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
}
.room-status .pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--text-3); }
.room-hero.is-live .room-status { color: var(--green); }
.room-hero.is-live .pulse { background: var(--green); box-shadow: 0 0 0 0 color-mix(in srgb, var(--green) 60%, transparent); animation: livePulse 1.8s infinite; }
@keyframes livePulse { 70% { box-shadow: 0 0 0 9px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.room-hero-title { font-size: clamp(32px, 4.2vw, 48px); line-height: 1.05; letter-spacing: -0.03em; }
.room-hero-people { display: flex; align-items: center; gap: 12px; min-height: 36px; color: var(--text-2); font-size: 15px; }
.room-hero-people .stack-avatars .avatar { width: 34px; height: 34px; font-size: 13px; border-color: var(--surface); margin-left: -8px; }
.room-hero-people .stack-avatars .avatar:first-child { margin-left: 0; }
.room-hero-people b { color: var(--text); }
.room-hero-meta { display: flex; flex-wrap: wrap; gap: 8px; }
.meta-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  font-size: 13px;
  color: var(--text-2);
}
.meta-chip b { color: var(--text); font-weight: 600; }
.meta-chip .i { width: 15px; height: 15px; }
.meta-chip.now { border-color: color-mix(in srgb, var(--accent) 50%, var(--line)); color: var(--accent-2); }
.room-hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.room-hero-actions .btn-lg { min-width: 260px; }
.room-hero-actions .btn-lg .i { width: 20px; height: 20px; }
.room-hero-actions .btn-lg { transition: transform 0.15s, box-shadow 0.2s, filter 0.15s; }
.room-hero-actions .btn-lg:hover { transform: translateY(-1px); }

.access-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: var(--surface-2);
  color: var(--text-2);
  font-size: 13px;
  font-weight: 600;
  transition: border-color 0.15s, color 0.15s;
}
.access-btn:hover { color: var(--text); border-color: var(--accent); }
.access-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.access-btn .i { width: 15px; height: 15px; }
.badge-inline { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--amber); color: #111; font-size: 11px; font-weight: 800; line-height: 20px; text-align: center; }

.section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.section-head .section-title { margin: 0; }

.segmented.two { grid-template-columns: 1fr 1fr; }
.segmented button[aria-checked='true'] { background: var(--surface-3); color: var(--text); box-shadow: 0 1px 0 var(--line-2) inset; }
.access-hint { margin: 0; font-size: 13px; }
.access-list { display: flex; flex-direction: column; gap: 2px; max-height: 340px; overflow-y: auto; }
.access-row { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 12px; cursor: pointer; }
.access-row:hover { background: var(--surface-2); }
.access-row input { width: 18px; height: 18px; accent-color: var(--accent); flex: none; }
.access-row .who { flex: 1; min-width: 0; }
.access-row .name { font-weight: 600; font-size: 14px; }
.access-row .sub { font-size: 12px; color: var(--text-3); }
.access-row.fixed { cursor: default; opacity: 0.75; }
.access-row .new { color: var(--amber); font-weight: 600; }
.access-list.disabled .access-row:not(.fixed) { opacity: 0.45; pointer-events: none; }

.wait-mark { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 18px; background: var(--accent-soft); color: var(--accent-2); }
.wait-mark .i { width: 26px; height: 26px; }
.wait-dots { display: flex; gap: 6px; margin: 4px 0 8px; }
.wait-dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); opacity: 0.3; animation: waitDot 1.4s infinite ease-in-out; }
.wait-dots i:nth-child(2) { animation-delay: 0.2s; }
.wait-dots i:nth-child(3) { animation-delay: 0.4s; }
@keyframes waitDot { 40% { opacity: 1; transform: translateY(-3px); } }

@media (prefers-reduced-motion: reduce) {
  .room-hero.is-live .pulse, .wait-dots i { animation: none; }
  .room-hero-actions .btn-lg:hover { transform: none; }
}
@media (max-width: 640px) {
  .room-hero { padding: 22px 18px; border-radius: 20px; }
  .room-hero-actions .btn-lg { min-width: 0; flex: 1 1 100%; }
  .room-hero-actions .btn-ghost { flex: 1 1 100%; }
}


/* ---------- Mikrofon-állapot és hang-feloldás ---------- */
.mic-status { min-height: 20px; font-size: 13px; color: var(--text-2); text-align: center; }
.mic-status.ok { color: var(--green); }
.mic-status.bad { color: var(--red); }
.mic-status button { margin-left: 6px; }
.room-alerts { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 0 16px; }
.room-alerts:has(> :not([hidden])) { padding-bottom: 10px; }
.mic-alert {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 820px;
  width: 100%;
  padding: 10px 12px 10px 16px;
  border-radius: 14px;
  background: var(--red-soft);
  border: 1px solid color-mix(in srgb, var(--red) 45%, transparent);
  color: var(--text);
  font-size: 14px;
}
.mic-alert .i { color: var(--red); flex: none; }
.mic-alert span { flex: 1; }
.sound-unlock {
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--accent);
  background: var(--accent-soft);
  color: var(--text);
  font-weight: 600;
  font-size: 14px;
  animation: rise 0.2s ease;
}
.sound-unlock:hover { background: var(--accent); color: #fff; }


/* ======================================================================
   Telefon: fejléc, beviteli mezők, biztonságos sávok (notch, home indicator)
   ====================================================================== */
@media (max-width: 640px) {
  .topbar { padding: max(10px, env(safe-area-inset-top)) 12px 10px; gap: 8px; }
  .topbar-left { gap: 8px; min-width: 0; flex: 1; }
  .company-switch { min-width: 0; }
  .company-btn { max-width: 100%; }
  .company-menu { position: fixed; left: 12px; right: 12px; top: 64px; min-width: 0; }
  .topbar-right { gap: 0; flex: none; }
  .me-pill { padding: 3px; border: 0; background: transparent; }
  .me-pill .name, .me-pill .role-badge { display: none; }
  /* iOS 16px alatt ráközelít gépeléskor */
  input:not([type='checkbox']):not([type='color']), select, textarea { font-size: 16px !important; }
  .pin input { font-size: 24px !important; }
}


/* ======================================================================
   Érintőképernyő és telefon – hívás, előcsarnok, chat
   ====================================================================== */
button, a, label, select { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }

/* érintésnél nincs „rámutatás”: ami csak hoverre jelent meg, legyen mindig látható */
@media (hover: none) {
  .check-item .del { opacity: 0.7; }
  .tile-pin { opacity: 0.85; }
}

.room { height: 100dvh; }
.controls { padding-bottom: max(18px, env(safe-area-inset-bottom)); }

/* kéttagú hívás telefonon: a másik fél teljes képen, te kis ablakban a sarokban */
.stage.pip { display: block; position: relative; }
.stage.pip .tile { position: absolute; }
.stage.pip .tile:not([data-key='local']) { inset: 0; width: 100%; height: 100%; aspect-ratio: auto; max-height: none; }
.stage.pip .tile[data-key='local'] {
  right: 12px;
  bottom: 12px;
  width: 30%;
  max-width: 150px;
  height: auto;
  aspect-ratio: 3 / 4;
  z-index: 5;
  border-radius: 16px;
  box-shadow: 0 10px 30px -8px #000c;
  border: 2px solid #ffffff2e;
}
.stage.pip .tile[data-key='local'] .tile-label { left: 6px; bottom: 6px; padding: 3px 7px; font-size: 11px; }
.stage.pip .tile[data-key='local'] .tile-label .role,
.stage.pip .tile[data-key='local'] .tile-pin,
.stage.pip .tile[data-key='local'] .tile-badge { display: none; }
.stage.pip .tile[data-key='local'] .tile-avatar .avatar { width: 44px; height: 44px; font-size: 17px; }

@media (max-width: 900px) {
  /* a chat/terv/jegyzet panel telefonon teljes képernyős lap, a billentyűzethez igazodik */
  .side {
    position: fixed;
    inset: var(--vvt, 0px) 0 auto 0;
    width: auto;
    height: var(--vvh, 100dvh);
    border-radius: 0;
    border: 0;
    z-index: 45;
    padding-top: env(safe-area-inset-top);
  }
  .side .composer { margin-bottom: max(12px, env(safe-area-inset-bottom)); }
  .side-head .icon-btn { width: 44px; height: 44px; }
}

@media (max-width: 640px) {
  .room-top { padding: max(10px, env(safe-area-inset-top)) 12px 8px; }
  .room-body { padding: 0 8px; }
  .controls { padding: 8px 8px max(12px, env(safe-area-inset-bottom)); gap: 8px; }
  .controls-center { gap: 8px; }
  .controls-right { gap: 4px; }
  .ctrl { width: 52px; height: 52px; border-radius: 16px; }
  .ctrl-sm { width: 46px; height: 46px; }
  .ctrl-danger { width: 60px; }

  /* reakciók: középen, a vezérlők felett, nem lóg ki */
  .react-pop {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: calc(150px + env(safe-area-inset-bottom));
    transform: none;
    justify-content: space-around;
    z-index: 60;
  }

  /* előcsarnok: a Csatlakozás gomb mindig kéznél van alul */
  .lobby-main { padding-bottom: 110px; }
  #btn-join {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: max(16px, env(safe-area-inset-bottom));
    z-index: 30;
    min-width: 0;
    margin: 0;
    box-shadow: 0 14px 34px -10px #000c, 0 8px 24px -8px var(--accent);
  }
  .lobby-controls .ctrl { width: 58px; height: 58px; }

  /* nagyobb, kényelmesen eltalálható érintési felületek */
  .btn-sm { height: 40px; }
  .icon-btn { width: 40px; height: 40px; }
  .check-item .del { width: 36px; height: 36px; }
  .check-item { padding: 9px 6px; }
  .check-item input { width: 22px; height: 22px; }
  .inline-form input, .music-form input, .role-form input { height: 44px; }
  .team-member .role-select { height: 38px; }
  .access-btn { height: 40px; }
  .tabs button { padding: 10px 10px; }
  .note-row { padding: 12px 10px; }
  .dialog { padding: 20px 18px; max-height: calc(100dvh - 24px); overflow-y: auto; }
  .dialog-foot { flex-wrap: wrap; }
  .music { bottom: calc(12px + env(safe-area-inset-bottom)); }
  body.in-room .music { bottom: calc(140px + env(safe-area-inset-bottom)); }
}
