/* LiveTok vezérlő — új admin UI. Sötét, színes, ikonos brand-megjelenés az app.livetok.hu-hoz. */
:root {
  /* brand színek + RGB-triók a tintelt háttér/glow-okhoz (rgba(var(--x-rgb), …)) */
  --cyan: #00e5c7;   --cyan-rgb: 0, 229, 199;
  --blue: #5b7cff;   --blue-rgb: 91, 124, 255;
  --violet: #b14cff; --violet-rgb: 177, 76, 255;
  --green: #16c784;  --green-rgb: 22, 199, 132;
  --red: #ff5470;    --red-rgb: 255, 84, 112;
  --yellow: #ffd23f; --yellow-rgb: 255, 210, 63;
  --pink: #ff5db1;   --pink-rgb: 255, 93, 177;
  --orange: #ff9e3d; --orange-rgb: 255, 158, 61;
  --teal: #2dd4bf;   --teal-rgb: 45, 212, 191;
  --gold: #ffcf4d;   --silver: #cdd6e6;  --bronze: #e0915a;

  --grad: linear-gradient(120deg, #00e5c7 0%, #5b7cff 50%, #b14cff 100%);
  --grad-soft: linear-gradient(120deg, rgba(0,229,199,.16), rgba(91,124,255,.12) 55%, rgba(177,76,255,.16));

  --bg: #08080e;
  --bg-2: #0c0c15;
  --panel: rgba(255, 255, 255, 0.045);
  --surface: rgba(255, 255, 255, 0.06);
  --surface-2: rgba(255, 255, 255, 0.12);
  --line: rgba(255, 255, 255, 0.09);
  --line-2: rgba(255, 255, 255, 0.16);
  --text: #f4f5fa;
  --muted: #9aa0b6;
  --muted-2: #868dad;

  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.3);

  --font: "Plus Jakarta Sans", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
/* a `hidden` attribútum mindig rejtsen — különben a .shell/.login-screen display:grid felülírná */
[hidden] { display: none !important; }
html { scrollbar-color: rgba(255, 255, 255, 0.18) transparent; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  background:
    radial-gradient(1000px 560px at 84% -10%, rgba(var(--violet-rgb), 0.18), transparent 60%),
    radial-gradient(900px 580px at -4% 2%, rgba(var(--cyan-rgb), 0.14), transparent 55%),
    radial-gradient(820px 820px at 50% 122%, rgba(var(--blue-rgb), 0.12), transparent 60%),
    var(--bg);
  background-attachment: fixed;
}
/* finom, lassan sodródó aurora a háttéren (mozgáscsökkentésnél kikapcsol) */
body::before {
  content: "";
  position: fixed;
  inset: -20% -10% auto -10%;
  height: 70vh;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(600px 300px at 20% 30%, rgba(var(--cyan-rgb), 0.10), transparent 60%),
    radial-gradient(560px 300px at 80% 10%, rgba(var(--violet-rgb), 0.10), transparent 60%);
  filter: blur(20px);
  opacity: 0.7;
  animation: auroraDrift 22s ease-in-out infinite alternate;
}
@keyframes auroraDrift { from { transform: translateX(-3%) translateY(-1%); } to { transform: translateX(4%) translateY(2%); } }

button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--font); margin: 0; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
::selection { background: rgba(var(--blue-rgb), 0.35); color: #fff; }

/* scrollbars */
*::-webkit-scrollbar { width: 10px; height: 10px; }
*::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.14); border-radius: 999px; border: 2px solid transparent; background-clip: padding-box; }
*::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.24); background-clip: padding-box; }

/* brand */
.brand { font-family: var(--font); font-weight: 800; font-size: 21px; display: flex; align-items: center; gap: 10px; letter-spacing: -0.01em; }
.brand .logo, .brand .dot { width: 30px; height: 30px; border-radius: 9px; background: var(--grad); display: grid; place-items: center; box-shadow: 0 6px 18px rgba(var(--blue-rgb), 0.45), inset 0 0 0 1px rgba(255, 255, 255, 0.2); position: relative; }
.brand .dot { width: 13px; height: 13px; border-radius: 50%; }
.brand .logo i { font-size: 18px; color: #07121f; }
.brand .logo::after { content: ""; position: absolute; inset: -3px; border-radius: 12px; background: var(--grad); filter: blur(9px); opacity: 0.5; z-index: -1; animation: brandPulse 3.4s ease-in-out infinite; }
@keyframes brandPulse { 0%, 100% { opacity: 0.35; } 50% { opacity: 0.7; } }
.brand .brand-word { background: linear-gradient(90deg, #fff, #c8d2ff); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

/* ===== reusable colored icon badge ===== */
.ic {
  --accent: var(--cyan-rgb); --accent-solid: var(--cyan);
  width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center;
  font-size: 19px; flex-shrink: 0; color: var(--accent-solid);
  background: linear-gradient(140deg, rgba(var(--accent), 0.22), rgba(var(--accent), 0.05));
  box-shadow: inset 0 0 0 1px rgba(var(--accent), 0.30), 0 6px 16px rgba(var(--accent), 0.12);
}
.ic.sm { width: 30px; height: 30px; border-radius: 9px; font-size: 16px; }
.ic.lg { width: 46px; height: 46px; border-radius: 13px; font-size: 24px; }
.ic.cyan   { --accent: var(--cyan-rgb);   --accent-solid: var(--cyan); }
.ic.blue   { --accent: var(--blue-rgb);   --accent-solid: var(--blue); }
.ic.violet { --accent: var(--violet-rgb); --accent-solid: var(--violet); }
.ic.green  { --accent: var(--green-rgb);  --accent-solid: var(--green); }
.ic.yellow { --accent: var(--yellow-rgb); --accent-solid: var(--yellow); }
.ic.red    { --accent: var(--red-rgb);    --accent-solid: var(--red); }
.ic.pink   { --accent: var(--pink-rgb);   --accent-solid: var(--pink); }
.ic.orange { --accent: var(--orange-rgb); --accent-solid: var(--orange); }
.ic.teal   { --accent: var(--teal-rgb);   --accent-solid: var(--teal); }

/* buttons */
.btn { position: relative; border: 1px solid var(--line-2); background: var(--surface); color: var(--text); border-radius: 11px; padding: 11px 18px; font-weight: 600; cursor: pointer; transition: 0.16s ease; display: inline-flex; align-items: center; justify-content: center; gap: 7px; }
.btn:hover { border-color: var(--blue); background: rgba(var(--blue-rgb), 0.10); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.btn.primary { background: var(--grad); border: none; color: #07121f; box-shadow: 0 8px 22px rgba(var(--blue-rgb), 0.32); }
.btn.primary:hover { filter: brightness(1.08); box-shadow: 0 12px 30px rgba(var(--blue-rgb), 0.42); }
.btn.ghost { background: transparent; }
.btn.ghost:hover { background: var(--surface); }
.btn.success { background: linear-gradient(120deg, #16c784, #2dd4bf); border: none; color: #042018; box-shadow: 0 8px 22px rgba(var(--green-rgb), 0.30); }
.btn.small { padding: 7px 13px; border-radius: 9px; font-size: 13px; gap: 5px; }
.btn.danger { border-color: rgba(var(--red-rgb), 0.5); color: var(--red); background: rgba(var(--red-rgb), 0.04); }
.btn.danger:hover { background: rgba(var(--red-rgb), 0.14); border-color: var(--red); }
.btn i { font-size: 16px; }
.btn.small i { font-size: 14px; }
.btn:disabled { opacity: 0.6; cursor: default; transform: none; }

/* login / register / paywall */
.login-screen { min-height: 100vh; display: grid; place-items: center; padding: 20px; position: relative; z-index: 1; }
.login-card { width: 380px; max-width: 100%; background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02)); border: 1px solid var(--line); border-radius: 22px; padding: 32px; backdrop-filter: blur(16px); display: flex; flex-direction: column; gap: 13px; box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.06); position: relative; }
.login-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--grad); opacity: 0.9; border-radius: 22px 22px 0 0; }
.login-card .brand { font-size: 22px; }
.login-card h1 { font-size: 25px; letter-spacing: -0.02em; }
.login-card label, .upload-form label, .channel-pick label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--muted); }
.login-card input, .upload-form input, .upload-form select, .channel-pick select { background: rgba(0, 0, 0, 0.28); border: 1px solid var(--line-2); border-radius: 10px; padding: 12px 13px; color: var(--text); transition: 0.15s; }
.login-card input:focus, .upload-form input:focus, .upload-form select:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(var(--blue-rgb), 0.18); }
.form-error { color: var(--red); font-size: 13px; }
.form-msg { font-size: 13px; min-height: 18px; }
.form-msg.ok { color: var(--green); }
.form-msg.err { color: var(--red); }
.auth-switch { margin: 2px 0 0; text-align: center; }
.auth-switch a { color: var(--blue); text-decoration: none; cursor: pointer; font-weight: 600; }
.auth-switch a:hover { text-decoration: underline; }
#paywall .login-card { gap: 16px; text-align: center; align-items: center; }
#paywall .login-card::before { background: linear-gradient(90deg, var(--yellow), var(--orange)); }
#paywall .sub-row { justify-content: center; }

/* shell */
.shell { display: grid; grid-template-columns: 256px 1fr; min-height: 100vh; position: relative; z-index: 1; }
.sidebar { border-right: 1px solid var(--line); padding: 22px 16px; display: flex; flex-direction: column; gap: 20px; background: linear-gradient(180deg, rgba(0,0,0,.34), rgba(0,0,0,.18)); backdrop-filter: blur(8px); position: sticky; top: 0; height: 100vh; }
.sidebar nav { display: flex; flex-direction: column; gap: 4px; }
.nav-item { display: flex; align-items: center; gap: 11px; text-align: left; background: transparent; border: 1px solid transparent; color: var(--muted); padding: 9px 11px; border-radius: 12px; font-weight: 600; cursor: pointer; transition: 0.15s; }
.nav-ic { --accent: var(--cyan-rgb); --accent-solid: var(--cyan); width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; font-size: 17px; flex-shrink: 0; color: var(--accent-solid); background: rgba(var(--accent), 0.10); box-shadow: inset 0 0 0 1px rgba(var(--accent), 0.18); transition: 0.15s; }
.nav-ic.cyan{--accent:var(--cyan-rgb);--accent-solid:var(--cyan)} .nav-ic.blue{--accent:var(--blue-rgb);--accent-solid:var(--blue)} .nav-ic.violet{--accent:var(--violet-rgb);--accent-solid:var(--violet)} .nav-ic.pink{--accent:var(--pink-rgb);--accent-solid:var(--pink)} .nav-ic.green{--accent:var(--green-rgb);--accent-solid:var(--green)} .nav-ic.orange{--accent:var(--orange-rgb);--accent-solid:var(--orange)}
.nav-item:hover { color: var(--text); background: var(--surface); }
.nav-item:hover .nav-ic { background: rgba(var(--accent), 0.20); box-shadow: inset 0 0 0 1px rgba(var(--accent), 0.40), 0 4px 12px rgba(var(--accent), 0.18); }
.nav-item.active { color: var(--text); background: linear-gradient(90deg, rgba(var(--accent), 0.16), rgba(255, 255, 255, 0.03)); border-color: rgba(var(--accent), 0.22); }
.nav-item.active .nav-ic { background: linear-gradient(140deg, rgba(var(--accent), 0.9), rgba(var(--accent), 0.55)); color: #0a0a12; box-shadow: 0 6px 16px rgba(var(--accent), 0.4); }
.sidebar-foot { margin-top: auto; display: flex; flex-direction: column; gap: 12px; }
.who { display: flex; align-items: center; gap: 10px; padding: 10px 11px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.who-av { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--grad); color: #07121f; flex-shrink: 0; font-size: 17px; box-shadow: 0 4px 12px rgba(var(--blue-rgb), 0.3); }
.who-text { display: flex; flex-direction: column; min-width: 0; }
.who-name { font-weight: 700; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.who .muted { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.content { padding: 24px 32px 64px; max-width: 1140px; position: relative; z-index: 1; }
.topbar { position: relative; z-index: 30; display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; gap: 16px; padding: 14px 18px; border: 1px solid var(--line); border-radius: 16px; background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02)); backdrop-filter: blur(10px); box-shadow: var(--shadow-soft); }
.channel-pick { display: flex; flex-direction: column; gap: 5px; }
.channel-pick label { display: flex; align-items: center; gap: 6px; }
.channel-pick select { background: rgba(0, 0, 0, 0.3); border: 1px solid var(--line-2); border-radius: 10px; padding: 9px 12px; color: var(--text); font-weight: 600; min-width: 200px; }
.channel-pick select:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(var(--blue-rgb), 0.18); }

/* Nyelvválasztó — zászlós legördülő (belépő/paywall kártyák jobb felső sarka + topbar jobb széle) */
.app-lang { position: absolute; top: 12px; right: 14px; z-index: 5; width: auto; }
.topbar-lang { position: relative; top: auto; right: auto; margin-left: auto; }
.lang-picker { display: inline-block; }
.lang-btn { display: flex; align-items: center; gap: 7px; background: rgba(0, 0, 0, 0.3); border: 1px solid var(--line-2); border-radius: 9px; padding: 5px 9px; color: var(--text); font-size: 12.5px; font-weight: 600; cursor: pointer; transition: 0.15s; }
.lang-btn:hover { border-color: var(--blue); }
.lang-btn .fi { width: 19px; height: 13px; border-radius: 2px; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.14); }
.lang-caret { font-size: 14px; color: var(--muted); }
.lang-menu { position: absolute; z-index: 60; top: calc(100% + 6px); right: 0; min-width: 156px; background: #14141c; border: 1px solid var(--line-2); border-radius: 11px; padding: 6px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 2px; }
.lang-opt { display: flex; align-items: center; gap: 10px; background: transparent; border: none; border-radius: 8px; padding: 8px 9px; color: var(--text); font-size: 13.5px; cursor: pointer; text-align: left; }
.lang-opt:hover { background: var(--surface); }
.lang-opt.active { background: rgba(var(--blue-rgb), 0.18); box-shadow: inset 2px 0 0 var(--blue); }
.lang-opt .fi { width: 22px; height: 15px; border-radius: 2px; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.14); flex-shrink: 0; }

.badge { display: inline-flex; align-items: center; gap: 7px; padding: 8px 15px; border-radius: 999px; font-size: 13px; font-weight: 700; border: 1px solid var(--line-2); }
.badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.badge.off { color: var(--muted); }
.badge.on { color: var(--green); border-color: rgba(var(--green-rgb), 0.5); background: rgba(var(--green-rgb), 0.12); }
.badge.on::before { background: var(--green); box-shadow: 0 0 0 0 rgba(var(--green-rgb), 0.6); animation: livePulse 1.6s ease-out infinite; }
@keyframes livePulse { 0% { box-shadow: 0 0 0 0 rgba(var(--green-rgb), 0.55); } 70% { box-shadow: 0 0 0 7px rgba(var(--green-rgb), 0); } 100% { box-shadow: 0 0 0 0 rgba(var(--green-rgb), 0); } }
.badge { line-height: 1; }

/* panels */
.grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 18px; }
.panel { position: relative; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; margin-bottom: 18px; backdrop-filter: blur(10px); transition: border-color 0.2s, transform 0.2s; overflow: visible; }
.panel::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.14), transparent); }
.panel:hover { border-color: var(--line-2); }
/* Egy panel/topbar, amiben NYITOTT egyedi legördülő van, a többi panel FÖLÉ kerüljön — különben a
   panelek backdrop-filter stacking-contextje a DOM-ban később jövő panel mögé tenné a kilógó menüt. */
.panel:has(.voice-picker-menu:not([hidden])),
.panel:has(.lang-menu:not([hidden])),
.panel:focus-within { z-index: 40; }
.panel-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; gap: 12px; }
.panel-head h2 { font-size: 17px; display: flex; align-items: center; gap: 11px; }
.chip { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--muted); font-weight: 600; }
.chip.on { color: var(--green); border-color: rgba(var(--green-rgb), 0.5); background: rgba(var(--green-rgb), 0.12); }

/* overview hero */
.hero { background: linear-gradient(135deg, rgba(var(--blue-rgb), 0.12), rgba(var(--violet-rgb), 0.07)), var(--panel); border-color: rgba(var(--blue-rgb), 0.22); }
.hero-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.hero-id { display: flex; align-items: center; gap: 15px; min-width: 0; }
.avatar-ring { position: relative; flex-shrink: 0; padding: 3px; border-radius: 50%; background: var(--grad); box-shadow: 0 8px 22px rgba(var(--violet-rgb), 0.3); }
.avatar { width: 60px; height: 60px; border-radius: 50%; object-fit: cover; border: 3px solid var(--bg-2); background: var(--surface); display: block; }
.avatar:not([src]), .avatar[src=''] { visibility: hidden; }
.hero-title { font-family: var(--font); font-weight: 800; font-size: 25px; letter-spacing: -0.02em; overflow: hidden; text-overflow: ellipsis; }
.sub-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 12px 15px; margin: 4px 0 18px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface); font-size: 14px; }
.sub-row .sub-plan { font-weight: 700; }
.sub-pill { font-size: 12px; padding: 5px 11px; border-radius: 999px; border: 1px solid var(--line-2); font-weight: 600; }
.sub-pill.ok { color: var(--green); border-color: rgba(var(--green-rgb), 0.5); background: rgba(var(--green-rgb), 0.12); }
.sub-pill.bad { color: var(--red); border-color: rgba(var(--red-rgb), 0.5); background: rgba(var(--red-rgb), 0.12); }
.hero-stats { display: flex; gap: 12px; margin: 22px 0; }
.stat { flex: 1; display: flex; flex-direction: column; gap: 2px; padding: 14px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface); }
.stat .stat-ic { font-size: 18px; margin-bottom: 4px; }
.stat-n { font-family: var(--font); font-weight: 800; font-size: 28px; line-height: 1; background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.steps { margin: 0; padding-left: 6px; line-height: 1.5; color: var(--muted); list-style: none; counter-reset: step; display: flex; flex-direction: column; gap: 12px; }
.steps li { display: flex; gap: 12px; align-items: flex-start; counter-increment: step; }
.steps li::before { content: counter(step); flex-shrink: 0; width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; font-family: var(--font); font-weight: 800; font-size: 13px; color: var(--cyan); background: rgba(var(--cyan-rgb), 0.12); box-shadow: inset 0 0 0 1px rgba(var(--cyan-rgb), 0.3); }
.steps b { color: var(--text); }

/* upload form */
.upload-form { display: flex; flex-direction: column; gap: 14px; }
.upload-form .row { display: flex; gap: 14px; flex-wrap: wrap; }
.upload-form .row > label { flex: 1; min-width: 160px; }
.upload-form .check { flex-direction: row; align-items: center; gap: 8px; color: var(--text); }
.upload-form .file { color: var(--text); }
.upload-form input[type="file"]::file-selector-button { background: var(--surface-2); color: var(--text); border: 1px solid var(--line-2); border-radius: 8px; padding: 6px 12px; margin-right: 10px; cursor: pointer; font-weight: 600; transition: 0.15s; }
.upload-form input[type="file"]::file-selector-button:hover { border-color: var(--blue); background: rgba(var(--blue-rgb), 0.12); }

/* video lists */
.vlist { display: flex; flex-direction: column; gap: 8px; }
.vrow { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface); transition: 0.15s; flex-wrap: wrap; }
.vrow:hover { border-color: var(--line-2); background: rgba(255, 255, 255, 0.07); }
.vrow.disabled { opacity: 0.5; }
.vrow .v-title { font-weight: 600; }
.vrow .v-meta { color: var(--muted); font-size: 12px; }
.vrow .v-spacer { flex: 1; }
.vrow .tag { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; padding: 4px 9px; border-radius: 7px; background: rgba(var(--blue-rgb), 0.16); color: var(--blue); font-weight: 700; letter-spacing: 0.02em; }
/* Sárga cooldown-visszaszámláló a videó sora alatt (lejátszáskor jelenik meg). */
.v-cooldown {
  display: inline-block;
  margin-top: 6px;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 8px;
  color: var(--yellow);
  background: rgba(var(--yellow-rgb), 0.12);
  border: 1px solid rgba(var(--yellow-rgb), 0.4);
  animation: cooldownPulse 1s ease-in-out infinite;
}
@keyframes cooldownPulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.6; } }
.empty { display: flex; align-items: center; justify-content: center; gap: 8px; color: var(--muted); font-size: 13px; padding: 16px 12px; text-align: center; border: 1px dashed var(--line); border-radius: 12px; background: rgba(255, 255, 255, 0.015); }
.empty i { font-size: 18px; color: var(--muted-2); }

/* sidebar live card */
.side-live { display: flex; flex-direction: column; gap: 10px; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: linear-gradient(180deg, rgba(var(--green-rgb), 0.06), var(--surface)); }
.side-live-status { display: flex; align-items: center; gap: 8px; color: var(--muted); font-weight: 600; }
.side-live .btn { width: 100%; }
.side-countdown { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 12px; font-weight: 700; color: var(--warning, #f5b301); letter-spacing: 0.02em; font-variant-numeric: tabular-nums; }
.side-countdown i { font-size: 14px; opacity: 0.9; }
.dot-live { width: 10px; height: 10px; border-radius: 50%; background: var(--muted); flex-shrink: 0; }
.dot-live.on { background: var(--green); box-shadow: 0 0 0 0 rgba(var(--green-rgb), 0.6); animation: livePulse 1.6s ease-out infinite; }
.dot-live.off { background: var(--muted-2); }

/* metric cards */
.stat-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 12px; }
.metric { --accent: var(--blue-rgb); --accent-solid: var(--blue); position: relative; background: linear-gradient(160deg, rgba(var(--accent), 0.10), rgba(255, 255, 255, 0.02)); border: 1px solid rgba(var(--accent), 0.22); border-radius: 14px; padding: 16px 16px 18px; transition: 0.2s; overflow: hidden; }
.metric:hover { transform: translateY(-3px); border-color: rgba(var(--accent), 0.45); box-shadow: 0 12px 28px rgba(var(--accent), 0.16); }
.metric-ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; font-size: 18px; margin-bottom: 10px; color: var(--accent-solid); background: rgba(var(--accent), 0.16); box-shadow: inset 0 0 0 1px rgba(var(--accent), 0.3); }
.metric-n { font-family: var(--font); font-weight: 800; font-size: 26px; line-height: 1.05; color: var(--accent-solid); }
.metric-l { color: var(--muted); font-size: 12.5px; margin-top: 3px; }
.metric.metric-members { --accent: var(--blue-rgb); --accent-solid: var(--blue); }
.metric.metric-gifts { --accent: var(--pink-rgb); --accent-solid: var(--pink); }
.metric.metric-coins { --accent: var(--yellow-rgb); --accent-solid: var(--yellow); }
.metric.metric-likes { --accent: var(--red-rgb); --accent-solid: var(--red); }
.metric.metric-follows { --accent: var(--green-rgb); --accent-solid: var(--green); }
/* a régi gradiens-szám a coin-ft dobozban */
.coin-ft .metric-n { background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: var(--cyan); }

/* event feed */
.event-feed { display: flex; flex-direction: column; gap: 2px; max-height: 460px; overflow: auto; }
.event-row { display: flex; align-items: center; gap: 10px; padding: 10px 8px; border-radius: 9px; font-size: 13px; transition: 0.12s; }
.event-row:hover { background: var(--surface); }
.event-row .ev-ic { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; font-size: 14px; flex-shrink: 0; color: var(--accent-solid, var(--blue)); background: rgba(var(--accent, var(--blue-rgb)), 0.14); }
.event-row .ev-tag { font-size: 11px; padding: 3px 9px; border-radius: 7px; background: rgba(var(--accent, var(--blue-rgb)), 0.14); color: var(--accent-solid, var(--blue)); flex-shrink: 0; min-width: 60px; text-align: center; font-weight: 700; text-transform: lowercase; }
.event-row .ev-msg { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.event-row .ev-time { color: var(--muted-2); font-size: 11px; margin-left: auto; flex-shrink: 0; }
/* esemény-szín változatok (ev-ic + ev-tag a saját accent-jét örökli) */
.ev-member  { --accent: var(--blue-rgb);   --accent-solid: var(--blue); }
.ev-gift    { --accent: var(--pink-rgb);   --accent-solid: var(--pink); }
.ev-follow  { --accent: var(--green-rgb);  --accent-solid: var(--green); }
.ev-booster { --accent: var(--violet-rgb); --accent-solid: var(--violet); }
.ev-system  { --accent: var(--cyan-rgb);   --accent-solid: var(--cyan); }
.ev-other   { --accent: var(--orange-rgb); --accent-solid: var(--orange); }

/* toggle rows + switches */
.toggle-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 0; border-top: 1px solid var(--line); }
.toggle-row:first-of-type { border-top: none; }
.toggle-label { display: flex; align-items: center; gap: 11px; }
.switch { position: relative; display: inline-block; width: 48px; height: 27px; flex-shrink: 0; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch span { position: absolute; inset: 0; background: rgba(255, 255, 255, 0.12); border: 1px solid var(--line-2); border-radius: 999px; cursor: pointer; transition: 0.2s; }
.switch span::before { content: ''; position: absolute; width: 19px; height: 19px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: 0.2s; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4); }
.switch input:checked + span { background: var(--grad); border-color: transparent; box-shadow: 0 0 14px rgba(var(--blue-rgb), 0.4); }
.switch input:checked + span::before { transform: translateX(21px); }
.switch input:disabled + span { opacity: 0.45; cursor: default; }
/* látható billentyűzet-fókusz minden interaktív vezérlőn (a .btn-nek már van) */
.switch input:focus-visible + span { outline: 2px solid var(--blue); outline-offset: 2px; }
.nav-item:focus-visible, .voice-picker-btn:focus-visible, .vp-item:focus-visible,
select:focus-visible, input[type="file"]:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

/* video edit form */
.vedit { display: flex; flex-direction: column; gap: 10px; padding: 14px; border: 1px solid rgba(var(--blue-rgb), 0.4); border-radius: 13px; background: rgba(var(--blue-rgb), 0.06); margin-top: 6px; }
.vedit .row { display: flex; gap: 10px; flex-wrap: wrap; }
.vedit label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--muted); flex: 1; min-width: 120px; }
.vedit input { background: rgba(0, 0, 0, 0.25); border: 1px solid var(--line-2); border-radius: 9px; padding: 9px 11px; color: var(--text); }
.vedit input:focus { outline: none; border-color: var(--blue); }
.vedit .check { flex-direction: row; align-items: center; gap: 8px; color: var(--text); }

/* OBS link rows */
.link-row { display: flex; align-items: center; gap: 12px; padding: 14px 0; border-top: 1px solid var(--line); flex-wrap: wrap; }
.link-row:first-of-type { border-top: none; }
.link-row:hover { background: rgba(255, 255, 255, 0.025); border-radius: 12px; }
.link-row .lr-text { display: flex; flex-direction: column; gap: 2px; min-width: 180px; }
.link-row input { flex: 1; min-width: 220px; background: rgba(0, 0, 0, 0.32); border: 1px solid var(--line); border-radius: 9px; padding: 10px 12px; color: var(--silver); font-size: 13px; font-family: ui-monospace, "SF Mono", Menlo, monospace; transition: 0.15s; }
.link-row input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(var(--blue-rgb), 0.16); color: var(--text); }

/* widget OBS links + daily-goal setter */
.goal-set { display: flex; align-items: center; gap: 12px; padding: 4px 0 16px; margin-bottom: 4px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.goal-set .lr-text { display: flex; flex-direction: column; gap: 2px; min-width: 180px; flex: 1; }
.goal-set input { width: 130px; background: rgba(0, 0, 0, 0.32); border: 1px solid var(--line); border-radius: 9px; padding: 10px 12px; color: var(--text); font-size: 14px; }
.goal-set input:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(var(--cyan-rgb), 0.16); }
.widget-links { margin-top: 2px; }

/* stats tools + coin Ft */
.stats-tools { display: flex; gap: 8px; align-items: center; }
.stats-tools select { background: rgba(0, 0, 0, 0.28); border: 1px solid var(--line-2); border-radius: 9px; padding: 8px 11px; color: var(--text); }
.coin-ft { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 16px; padding: 18px; border: 1px solid rgba(var(--yellow-rgb), 0.25); border-radius: 14px; background: linear-gradient(160deg, rgba(var(--yellow-rgb), 0.07), var(--surface)); }
.coin-ft > div { display: flex; flex-direction: column; gap: 4px; }
.coin-ft .ft-rate input { width: 110px; background: rgba(0, 0, 0, 0.25); border: 1px solid var(--line-2); border-radius: 9px; padding: 9px 11px; color: var(--text); }

/* top gifters podium */
.gifter-list { display: flex; flex-direction: column; gap: 4px; }
.gifter-row { display: flex; align-items: center; gap: 12px; padding: 11px 8px; border-radius: 11px; transition: 0.12s; }
.gifter-row:hover { background: var(--surface); }
.gifter-rank { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; font-weight: 800; color: var(--muted); font-family: var(--font); font-size: 13px; background: var(--surface); flex-shrink: 0; }
.gifter-row.rank-1 .gifter-rank { color: #2a1d00; background: linear-gradient(140deg, #ffe07a, var(--gold)); box-shadow: 0 4px 12px rgba(255, 207, 77, 0.4); }
.gifter-row.rank-2 .gifter-rank { color: #1a1f29; background: linear-gradient(140deg, #eef2fb, var(--silver)); }
.gifter-row.rank-3 .gifter-rank { color: #2a1402; background: linear-gradient(140deg, #f0b07c, var(--bronze)); }
.gifter-av { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; background: var(--surface-2); border: 1px solid var(--line-2); flex-shrink: 0; }
.gifter-row.rank-1 .gifter-av { border-color: var(--gold); box-shadow: 0 0 0 2px rgba(255, 207, 77, 0.35); }
.gifter-name { font-weight: 600; }
.gifter-row .v-spacer, .gifter-spacer { flex: 1; }
.gifter-coins { font-weight: 800; color: var(--yellow); display: inline-flex; align-items: center; gap: 5px; }
.gifter-ft { color: var(--muted); font-size: 12px; min-width: 80px; text-align: right; }

/* gift type grid */
.gift-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(135px, 1fr)); gap: 10px; }
.gift-card { display: flex; align-items: center; gap: 10px; padding: 12px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface); transition: 0.15s; }
.gift-card:hover { transform: translateY(-2px); border-color: rgba(var(--pink-rgb), 0.4); box-shadow: 0 10px 24px rgba(var(--pink-rgb), 0.12); }
.gift-card img { width: 38px; height: 38px; object-fit: contain; flex-shrink: 0; }
.gift-card .gift-ic { color: var(--pink); }
.gift-card .gift-name { font-size: 13px; font-weight: 600; }
.gift-card .gift-sub { font-size: 11px; color: var(--muted); }

/* ===== polish: panel-head accent icon already handled by .ic ===== */
.nav-item i, .btn i { vertical-align: -1px; }

@media (max-width: 920px) {
  .shell { grid-template-columns: 1fr; }
  .sidebar { position: static; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 14px; }
  .sidebar nav { flex-direction: row; flex-wrap: wrap; flex: 1; }
  /* a LIVE-kártya és a fiók-blokk kapja a saját teljes szélességű sorát */
  .sidebar .side-live, .sidebar .sidebar-foot { flex: 1 0 100%; }
  .sidebar-foot { margin-top: 0; }
  .grid { grid-template-columns: 1fr; }
  .content { padding: 20px; }
}
@media (max-width: 560px) {
  .hero-stats { flex-direction: column; }
  .topbar { flex-direction: column; align-items: stretch; }
  .sidebar nav { flex-direction: column; }
  .sidebar nav .nav-item { width: 100%; }
  .link-row input { min-width: 0; width: 100%; }
}

/* Editable overlay texts (boosters view) */
.text-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; margin-top: 12px; }
.text-row { display: flex; align-items: flex-end; gap: 10px; }
.text-row .text-field { flex: 1; min-width: 0; }
.text-row .switch { margin-bottom: 4px; }
.text-field { display: grid; gap: 5px; }
.text-field span { font-size: 12px; font-weight: 700; color: var(--muted); }
.text-field input, .text-field select { background: rgba(0, 0, 0, 0.25); border: 1px solid var(--line-2); border-radius: 9px; padding: 9px 11px; color: var(--text); }
.text-field input:focus, .text-field select:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(var(--blue-rgb), 0.16); }
.text-field input::placeholder { color: rgba(255, 255, 255, 0.45); }
.text-field input[type="range"] { padding: 0; accent-color: var(--blue); align-self: center; }
.warn-box { display: flex; align-items: center; gap: 8px; background: rgba(var(--yellow-rgb), 0.12); border: 1px solid rgba(var(--yellow-rgb), 0.4); color: #f0c040; border-radius: 11px; padding: 11px 13px; margin: 10px 0; font-size: 13px; }
.warn-box code { background: rgba(0, 0, 0, 0.3); padding: 1px 5px; border-radius: 5px; }

/* Egyedi, zászlós hangválasztó (a native <select> nem tud képet/zászlót megjeleníteni) */
.voice-picker { position: relative; }
.voice-picker-btn { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 8px; background: rgba(0, 0, 0, 0.25); border: 1px solid var(--line-2); border-radius: 9px; padding: 10px 11px; color: var(--text); cursor: pointer; text-align: left; transition: 0.15s; }
.voice-picker-btn:hover { border-color: var(--blue); }
.voice-picker-btn .vp-cur { display: flex; align-items: center; gap: 8px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.voice-picker-btn .vp-caret { color: var(--muted); flex-shrink: 0; }
.voice-picker-menu { position: absolute; z-index: 60; top: calc(100% + 4px); left: 0; right: 0; max-height: 340px; overflow-y: auto; background: #14141c; border: 1px solid var(--line-2); border-radius: 12px; padding: 6px; box-shadow: var(--shadow); }
.vp-group { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); padding: 10px 8px 4px; display: flex; align-items: center; gap: 8px; position: sticky; top: -6px; background: #14141c; }
.vp-item { width: 100%; display: flex; align-items: center; gap: 9px; background: transparent; border: none; color: var(--text); padding: 9px; border-radius: 8px; cursor: pointer; font-size: 14px; text-align: left; }
.vp-item:hover { background: var(--surface); }
.vp-item.active { background: rgba(var(--blue-rgb), 0.18); box-shadow: inset 2px 0 0 var(--blue); }
.voice-picker .fi { border-radius: 2px; flex-shrink: 0; }
@media (max-width: 560px) { .text-grid { grid-template-columns: 1fr; } }

/* ===== default (built-in) videos section ===== */
.panel-defaults {
  border-color: rgba(var(--violet-rgb), 0.45);
  background: linear-gradient(180deg, rgba(var(--violet-rgb), 0.08), rgba(var(--blue-rgb), 0.03)), var(--panel);
  box-shadow: 0 0 0 1px rgba(var(--violet-rgb), 0.06) inset;
}
.badge-default {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 6px 12px; border-radius: 999px; font-size: 12px; font-weight: 700;
  color: var(--violet); border: 1px solid rgba(var(--violet-rgb), 0.5);
  background: rgba(var(--violet-rgb), 0.12); text-transform: uppercase; letter-spacing: 0.4px;
}
.panel-note { color: var(--muted); font-size: 12.5px; line-height: 1.55; margin: 0 0 14px; }
.panel-note b { color: var(--text); }
.vrow-default {
  border-color: rgba(var(--violet-rgb), 0.35);
  background: linear-gradient(180deg, rgba(var(--violet-rgb), 0.06), transparent), var(--surface);
}
.tag-default {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11px; padding: 4px 9px; border-radius: 7px; font-weight: 700;
  background: rgba(var(--violet-rgb), 0.16) !important; color: var(--violet) !important;
}
.file-replace { cursor: pointer; }
.file-var { cursor: pointer; }
/* edit-form "Videófájlok" section: main video + green + transparent, each a tidy row */
.vfiles { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 12px; display: flex; flex-direction: column; gap: 8px; }
.vfiles-head { font-size: 12.5px; font-weight: 700; color: var(--text); margin-bottom: 2px; display: flex; align-items: center; gap: 6px; }
.vfiles-head .muted { font-weight: 400; }
.vfile { display: flex; align-items: center; gap: 10px; padding: 9px 11px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface); }
.vfile-info { display: flex; flex-direction: column; gap: 1px; min-width: 210px; }
.vfile-label { font-size: 13px; font-weight: 600; }
.vfile-hint { font-size: 11px; color: var(--muted); }
.vfile-status { font-size: 12px; color: var(--muted); white-space: nowrap; }
.vfile-status .ok { color: var(--green); }
.vfile-restore { display: flex; justify-content: flex-end; margin-top: 2px; }
/* colorful action icons */
.file-replace i, .file-var i { color: var(--cyan); }
.main-restore i { color: var(--yellow); }
.var-clear i { color: var(--red); }

/* ===== green-screen / transparent variant markers ===== */
.vrow-green {
  border-color: rgba(0, 230, 80, 0.6);
  box-shadow: 0 0 0 1px rgba(0, 230, 80, 0.22) inset, 0 0 16px rgba(0, 230, 80, 0.12);
}
.tag-green {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11px; padding: 4px 9px; border-radius: 7px; font-weight: 700;
  background: rgba(0, 230, 80, 0.18) !important; color: #2bd66f !important;
}
.tag-trans {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11px; padding: 4px 9px; border-radius: 7px;
  background: rgba(255, 255, 255, 0.08) !important; color: var(--muted) !important;
}

@media (prefers-reduced-motion: reduce) {
  body::before, .brand .logo::after, .badge.on::before, .dot-live.on, .v-cooldown { animation: none !important; }
  * { transition: none !important; }
  .btn:hover, .metric:hover, .gift-card:hover, .vrow:hover { transform: none !important; }
}

/* ===== Statisztika dashboard ===== */
.eyebrow { font-size: 11px; letter-spacing: 0.09em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 4px; }

/* 2-column responsive panel grid */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 18px; align-items: stretch; }
.grid-2 > .panel { margin-bottom: 0; height: 100%; }
@media (max-width: 920px) { .grid-2 { grid-template-columns: 1fr; } }

/* tools row: árfolyam + mentés */
.ft-inline { display: inline-flex; align-items: center; gap: 8px; padding: 5px 6px 5px 12px; border: 1px solid rgba(var(--yellow-rgb), 0.28); border-radius: 11px; background: linear-gradient(160deg, rgba(var(--yellow-rgb), 0.08), var(--surface)); }
.ft-inline input { width: 64px; background: rgba(0, 0, 0, 0.28); border: 1px solid var(--line-2); border-radius: 8px; padding: 7px 9px; color: var(--text); text-align: right; }

/* nézet-kapcsoló (Egy adás / Összkép) + adás-választó */
.stats-modebar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.seg { display: inline-flex; background: rgba(0, 0, 0, 0.28); border: 1px solid var(--line-2); border-radius: 11px; padding: 3px; gap: 3px; }
.seg-btn { border: none; background: transparent; color: var(--muted); padding: 8px 14px; border-radius: 8px; font-weight: 700; font-size: 13px; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; transition: 0.15s; }
.seg-btn i { font-size: 15px; }
.seg-btn:hover { color: var(--text); }
.seg-btn.active { background: var(--grad); color: #07121f; box-shadow: 0 6px 16px rgba(var(--blue-rgb), 0.32); }
.seg-btn:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.session-select { background: rgba(0, 0, 0, 0.28); border: 1px solid var(--line-2); border-radius: 9px; padding: 8px 11px; color: var(--text); max-width: 260px; }
.stats-modebar .btn { margin-left: auto; }

/* összegző csík */
.stats-summary { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--grad-soft); font-size: 14px; }
.stats-summary b { font-family: var(--font); color: var(--text); }
.stats-summary .sum-when { font-weight: 800; color: var(--text); }
.stats-summary .sum-chan { color: var(--cyan); font-weight: 700; }
.stats-summary .sum-dot { color: var(--muted-2); }
.stats-summary .empty { width: 100%; border: none; background: none; }

/* adás-bizonyítvány kártyák */
.cert-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.metric-sub { color: var(--muted-2); font-size: 11.5px; margin-top: 5px; }

/* "hamarosan" jelzések */
.soon-row { display: flex; align-items: center; gap: 12px; margin-top: 14px; padding: 12px 14px; border: 1px dashed var(--line-2); border-radius: 13px; background: rgba(255, 255, 255, 0.015); }
.soon-row .lr-text { flex: 1; min-width: 0; }
.soon-badge { font-size: 11px; font-weight: 800; letter-spacing: 0.03em; padding: 5px 10px; border-radius: 999px; color: var(--violet); background: rgba(var(--violet-rgb), 0.14); box-shadow: inset 0 0 0 1px rgba(var(--violet-rgb), 0.3); flex-shrink: 0; }
.soon-badge.sm { padding: 3px 8px; font-size: 10px; }
.soon-block { display: flex; align-items: center; justify-content: center; gap: 9px; padding: 26px 16px; border: 1px dashed var(--line); border-radius: 13px; color: var(--muted); background: rgba(255, 255, 255, 0.015); text-align: center; }
.soon-block i { font-size: 20px; color: var(--violet); }

/* diagramok */
.chart-wrap { min-height: 170px; display: flex; }
.chart-wrap .empty { width: 100%; }
.spark { width: 100%; height: 170px; display: block; }
.bars { display: flex; align-items: flex-end; gap: 6px; width: 100%; height: 170px; padding-top: 6px; }
.bar { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; }
.bar-track { flex: 1; width: 100%; display: flex; align-items: flex-end; }
.bar-fill { width: 100%; border-radius: 6px 6px 3px 3px; background: linear-gradient(180deg, var(--teal), rgba(var(--blue-rgb), 0.65)); box-shadow: 0 0 12px rgba(var(--teal-rgb), 0.25); transition: height 0.3s ease; min-height: 2px; }
.bar:hover .bar-fill { filter: brightness(1.15); }
.bar-x { font-size: 9.5px; color: var(--muted-2); white-space: nowrap; }

/* aktivitás csempék */
.act-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.act { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 18px 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.act-ic { font-size: 24px; margin-bottom: 4px; }
.act-n { font-family: var(--font); font-weight: 800; font-size: 24px; }
.act-soon { opacity: 0.7; }
.act-soon .act-ic { color: var(--muted-2); }
.act-soon .soon-badge { position: absolute; top: 8px; right: 8px; }

/* új vs visszatérő */
.nvr-bar { display: flex; height: 26px; border-radius: 999px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); }
.nvr-seg { height: 100%; transition: width 0.3s ease; }
.nvr-seg.ret { background: linear-gradient(90deg, #16c784, #2dd4bf); }
.nvr-seg.new { background: linear-gradient(90deg, rgba(var(--blue-rgb), 0.85), rgba(var(--violet-rgb), 0.8)); }
.nvr-legend { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 14px; font-size: 13px; color: var(--muted); }
.nvr-key b { color: var(--text); }
.nvr-key i { font-size: 13px; vertical-align: middle; }

/* PK csaták */
.pk-balance-row { display: flex; align-items: center; gap: 12px; margin-top: 14px; padding: 12px 14px; border: 1px solid var(--line-2); border-radius: 13px; background: rgba(var(--violet-rgb), 0.05); }
.pk-balance-row .lr-text { flex: 1; min-width: 0; }
.pk-balance { display: flex; gap: 6px; flex-shrink: 0; }
.pk-pill { font-size: 12px; font-weight: 800; padding: 4px 10px; border-radius: 999px; }
.pk-pill.win { color: var(--green); background: rgba(var(--green-rgb), 0.16); }
.pk-pill.lose { color: var(--red); background: rgba(var(--red-rgb), 0.16); }
.pk-pill.draw { color: var(--muted); background: var(--surface-2); }

.pk-summary { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 16px; }
.pk-summary .empty { grid-column: 1 / -1; }
.pk-stat { --c: var(--muted); text-align: center; padding: 16px 10px; border: 1px solid rgba(var(--accent, 255,255,255), 0.18); border-radius: 14px; background: var(--surface); }
.pk-stat-n { font-family: var(--font); font-weight: 800; font-size: 26px; color: var(--c); }
.pk-stat-l { color: var(--muted); font-size: 12px; margin-top: 3px; }
.pk-stat.win { --c: var(--green); border-color: rgba(var(--green-rgb), 0.28); background: linear-gradient(160deg, rgba(var(--green-rgb), 0.10), var(--surface)); }
.pk-stat.lose { --c: var(--red); border-color: rgba(var(--red-rgb), 0.28); background: linear-gradient(160deg, rgba(var(--red-rgb), 0.10), var(--surface)); }
.pk-stat.draw { --c: var(--muted); }
.pk-stat.rate { --c: var(--violet); border-color: rgba(var(--violet-rgb), 0.28); background: linear-gradient(160deg, rgba(var(--violet-rgb), 0.10), var(--surface)); }

.pk-recent { display: flex; flex-direction: column; gap: 4px; max-height: 360px; overflow: auto; }
.pk-row { display: flex; align-items: center; gap: 12px; padding: 10px 10px; border-radius: 11px; transition: 0.12s; border-left: 3px solid transparent; }
.pk-row:hover { background: var(--surface); }
.pk-row.win { border-left-color: var(--green); }
.pk-row.lose { border-left-color: var(--red); }
.pk-row.draw { border-left-color: var(--muted-2); }
.pk-badge { font-size: 10.5px; font-weight: 800; letter-spacing: 0.03em; padding: 4px 9px; border-radius: 7px; flex-shrink: 0; min-width: 78px; text-align: center; }
.pk-badge.win { color: #042018; background: linear-gradient(120deg, #16c784, #2dd4bf); }
.pk-badge.lose { color: #fff; background: linear-gradient(120deg, var(--red), #ff7a8c); }
.pk-badge.draw { color: var(--text); background: var(--surface-2); }
.pk-badge.unknown { color: var(--muted); background: var(--surface); }
.pk-row-main { flex: 1; min-width: 0; }
.pk-opp { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pk-score { font-family: var(--font); font-weight: 800; color: var(--text); flex-shrink: 0; }
.pk-time { flex-shrink: 0; min-width: 76px; text-align: right; }
@media (max-width: 560px) { .pk-summary { grid-template-columns: repeat(2, 1fr); } .pk-time { display: none; } }

/* időzítés-hőtérkép */
.heatmap { overflow-x: auto; }
.hm-grid { display: grid; grid-template-columns: 44px repeat(6, 1fr); gap: 6px; min-width: 420px; }
.hm-head { font-size: 11px; color: var(--muted-2); text-align: center; padding-bottom: 2px; }
.hm-day { font-size: 11.5px; color: var(--muted); display: flex; align-items: center; font-weight: 600; }
.hm-corner { } /* üres sarok */
.hm-cell { height: 34px; border-radius: 8px; border: 1px solid var(--line); background: rgba(var(--green-rgb), var(--o, 0)); transition: transform 0.12s; }
.hm-cell:hover { transform: scale(1.06); border-color: rgba(var(--green-rgb), 0.6); }

/* Hang hangerő-csúszka (Hangok fül: feltöltő + szerkesztő) */
.vol-label { display: flex; align-items: center; gap: 8px; }
.vol-label input[type="range"] { flex: 1; min-width: 90px; accent-color: var(--accent, #6aa9ff); }
.e-vol-val { min-width: 42px; text-align: right; font-variant-numeric: tabular-nums; color: var(--muted); }
