/* Roadmap komponens + modális ablak (ownweb, sötét téma) */
.rm {
  --rm-text: var(--text, #f7f3ff);
  --rm-muted: var(--muted, #c1b9d1);
  --rm-surface: rgba(255, 255, 255, .04);
  --rm-border: rgba(139, 75, 197, .4);
  --rm-accent: var(--tropical-cyan, #42D6D0);
  --rm-done: #4ade80;
  --rm-active: var(--miami-gold, #FFB45C);
  --rm-planned: #9d93b8;
  color: var(--rm-text);
}

.rm-tabs {
  display: flex; gap: .25rem; padding: .25rem; margin-bottom: 1.25rem;
  background: var(--rm-surface); border: 1px solid var(--rm-border); border-radius: 12px;
  overflow-x: auto;
}
.rm-tab {
  flex: 1 0 auto; padding: .55rem 1rem; border: 0; border-radius: 9px;
  background: transparent; color: var(--rm-muted);
  font: 600 .9rem/1.2 system-ui, sans-serif; cursor: pointer;
  transition: background .2s, color .2s;
}
.rm-tab:hover { color: var(--rm-text); }
.rm-tab[aria-selected="true"] { background: linear-gradient(100deg, var(--rm-accent), var(--vice-purple, #8B4BC5)); color: #0d0a1a; }
.rm-tab:focus-visible { outline: 2px solid var(--rm-accent); outline-offset: 2px; }

.rm-summary { margin: 0 0 .9rem; color: var(--rm-muted); font-size: .95rem; }

.rm-progress { display: flex; align-items: center; gap: .75rem; margin-bottom: 1.4rem; }
.rm-progress-bar { flex: 1; height: 6px; border-radius: 99px; background: rgba(255, 255, 255, .1); overflow: hidden; }
.rm-progress-bar span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--rm-accent), var(--rm-done)); transition: width .5s ease; }
.rm-progress-val { font: 600 .8rem/1 ui-monospace, Consolas, monospace; color: var(--rm-muted); }

.rm-timeline { list-style: none; margin: 0; padding: 0 0 0 1.5rem; position: relative; }
.rm-timeline::before { content: ""; position: absolute; left: 6px; top: 8px; bottom: 8px; width: 2px; background: var(--rm-border); }
.rm-item { position: relative; margin-bottom: .9rem; }
.rm-item:last-child { margin-bottom: 0; }
.rm-dot {
  position: absolute; left: -1.5rem; top: 1.05rem; width: 14px; height: 14px; border-radius: 50%;
  background: #171426; border: 2px solid var(--rm-planned); box-sizing: border-box;
}
.rm-done .rm-dot { background: var(--rm-done); border-color: var(--rm-done); }
.rm-active .rm-dot { border-color: var(--rm-active); box-shadow: 0 0 0 4px rgba(255, 180, 92, .18); }
.rm-card { padding: .85rem 1rem; background: var(--rm-surface); border: 1px solid var(--rm-border); border-radius: 10px; }
.rm-head { display: flex; align-items: center; justify-content: space-between; gap: .75rem; }
.rm-card h4 { margin: 0; font-size: 1rem; }
.rm-card p { margin: .3rem 0 0; color: var(--rm-muted); font-size: .9rem; line-height: 1.45; }
.rm-badge { flex: none; padding: .15rem .6rem; border-radius: 99px; font: 600 .7rem/1.4 system-ui, sans-serif; letter-spacing: .03em; border: 1px solid currentColor; }
.rm-done .rm-badge { color: var(--rm-done); }
.rm-active .rm-badge { color: var(--rm-active); }
.rm-planned .rm-badge { color: var(--rm-planned); }

.rm-modname { margin: 0 0 .25rem; font-size: .85rem; font-weight: 700; display: flex; align-items: center; gap: .5rem; }
.rm-modstate { padding: .1rem .55rem; border-radius: 99px; font-size: .7rem; font-weight: 600; border: 1px solid currentColor; }
.rm-modstate.is-on { color: var(--rm-done); }
.rm-modstate.is-off { color: var(--rm-planned); }

.rm-ver { display: inline-block; padding: .05rem .5rem; border-radius: 6px; font: 600 .72rem/1.6 ui-monospace, Consolas, monospace; border: 1px solid currentColor; }
.rm-modname .rm-ver { margin-left: auto; }
.rm-ver-alpha { color: var(--sunset-orange, #FF704D); }
.rm-ver-beta { color: var(--neon-pink, #F52B9C); }
.rm-ver-rc { color: var(--rm-accent); }
.rm-ver-stable { color: var(--rm-done); }
.rm-release { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; margin-bottom: 1.1rem; padding: .75rem .9rem; background: var(--rm-surface); border: 1px solid var(--rm-border); border-radius: 10px; }
.rm-release-item { display: flex; align-items: center; gap: .5rem; }
.rm-release-label, .rm-release-note, .rm-release-arrow { color: var(--rm-muted); font-size: .78rem; }
.rm-channels { display: flex; gap: .25rem; list-style: none; margin: 0 0 0 auto; padding: 0; }
.rm-channels li { padding: .1rem .55rem; border-radius: 99px; font-size: .7rem; font-weight: 600; color: var(--rm-muted); background: rgba(255, 255, 255, .06); }
.rm-channels li.is-current { color: #0d0a1a; background: linear-gradient(100deg, var(--rm-accent), var(--vice-purple, #8B4BC5)); }

/* Másodlagos gomb a Demó indítása mellett */
.demo { gap: .9rem; flex-wrap: wrap; }
.btn.btn-ghost {
  background: transparent; color: var(--text, #f7f3ff);
  border: 1px solid var(--cyan, #42D6D0);
  transition: transform .25s cubic-bezier(.2, .7, .2, 1), box-shadow .25s, background .25s;
}
.btn.btn-ghost:hover, .btn.btn-ghost:focus-visible {
  background: rgba(66, 214, 208, .12);
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 14px 32px rgba(66, 214, 208, .25);
}
.btn.btn-ghost:active { transform: translateY(-1px) scale(1.02); }

/* Modális ablak */
.rm-modal {
  width: min(680px, calc(100vw - 2rem)); max-height: min(86vh, 760px);
  padding: 0; border: 1px solid var(--rm-border, rgba(139, 75, 197, .4)); border-radius: 16px;
  background: #1b1730; color: var(--text, #f7f3ff);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .6);
  overflow: hidden;
}
.rm-modal[open] { display: flex; flex-direction: column; animation: rm-in .28s cubic-bezier(.2, .7, .2, 1); }
.rm-modal::backdrop { background: rgba(10, 7, 20, .72); backdrop-filter: blur(4px); }
.rm-modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; padding: 1.25rem 1.5rem 1rem; border-bottom: 1px solid rgba(139, 75, 197, .3); }
.rm-modal-head h3 { margin: 0; font-size: 1.25rem; }
.rm-modal-head p { margin: .25rem 0 0; color: var(--muted, #c1b9d1); font-size: .9rem; }
.rm-close { flex: none; width: 36px; height: 36px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .08); color: inherit; font-size: 1.4rem; line-height: 1; cursor: pointer; }
.rm-close:hover { background: rgba(255, 255, 255, .16); }
.rm-close:focus-visible { outline: 2px solid var(--tropical-cyan, #42D6D0); outline-offset: 2px; }
.rm-modal-body { padding: 1.25rem 1.5rem 1.5rem; overflow-y: auto; }
body.rm-lock { overflow: hidden; }

@keyframes rm-in { from { opacity: 0; transform: translateY(14px) scale(.97); } to { opacity: 1; transform: none; } }

@media (max-width: 520px) {
  .demo .btn { width: 100%; max-width: none; box-sizing: border-box; text-align: center; }
  .rm-modal-head, .rm-modal-body { padding-left: 1rem; padding-right: 1rem; }
}
@media (prefers-reduced-motion: reduce) {
  .rm-modal[open] { animation: none; }
  .rm-progress-bar span, .btn.btn-ghost { transition: none; }
}

/* Teljes alkalmazás státusz */
.rm-overall { margin-bottom: 1.1rem; padding: .75rem .9rem; background: var(--rm-surface); border: 1px solid var(--rm-border); border-radius: 10px; }
.rm-overall-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; font-size: .85rem; font-weight: 600; }
.rm-overall-head strong { font-size: 1.15rem; }
.rm-overall .rm-progress { margin: .45rem 0 .35rem; }
.rm-overall-note, .rm-atrelease { margin: 0; color: var(--rm-muted); font-size: .76rem; }
.rm-atrelease { margin: -.35rem 0 .9rem; }