/* Prvky panelu inspirované XeroShield: tlačítka (panel primary / outline), hover animace karet a sidebaru. Jen uvnitř panelu (.shell). */

/* ===== tlačítka ===== */
html body .shell .btn { border-radius: 10px !important; font-weight: 500; transition: background-color .2s ease, border-color .2s ease, color .2s ease, opacity .2s ease !important; }
/* Primární: náš odstín #4599FF, bez záře */
html body .shell .btn.primary { background: #4599FF !important; color: #fff !important; border: 1px solid transparent !important; box-shadow: none !important; }
html body .shell .btn.primary:hover:not(:disabled) { background: #5aa6ff !important; filter: none !important; transform: none !important; }
html body .shell .btn.primary svg { color: inherit; }
/* Sekundární (styl "Živé ovládání"): tmavá výplň, jemný okraj, při najetí modrý text i ikona */
html body .shell .btn:not(.primary):not(.danger):not(.brand):not(.clean):not(.danger-outline) { background: rgb(255 255 255 / .03) !important; border: 1px solid rgb(255 255 255 / .08) !important; color: var(--text) !important; box-shadow: none !important; }
html body .shell .btn:not(.primary):not(.danger):not(.brand):not(.clean):not(.danger-outline) svg { transition: color .2s ease; }
html body .shell .btn:not(.primary):not(.danger):not(.brand):not(.clean):not(.danger-outline):hover:not(:disabled) { background: rgb(255 255 255 / .06) !important; border-color: rgb(79 176 255 / .28) !important; color: #4fb0ff !important; transform: none !important; }
html body .shell .btn:not(.primary):not(.danger):not(.brand):not(.clean):not(.danger-outline):hover:not(:disabled) svg { color: #4fb0ff !important; }
/* Tlačítka v kartách s akcemi: přes celou šířku, text zleva */
html body .shell .card .actions-list .btn, html body .shell .live-actions .btn { width: 100%; justify-content: flex-start; padding-inline: 14px; height: 40px; }
html body .shell .btn:disabled { opacity: .5; cursor: not-allowed; }
/* Ikonová tlačítka: ghost, na hover jemná výplň */
html body .shell .icon-btn { background: transparent; border-radius: 6px; transition: background-color .15s ease, color .15s ease; }
html body .shell .icon-btn:hover { background: rgb(255 255 255 / .08); }

/* ===== karty: při najetí světlejší okraj ===== */
html body .shell .card { transition: border-color .2s ease; }
html body .shell .card:hover { border-color: rgb(255 255 255 / .2); }

/* ===== sidebar: svislá čárka vlevo roste a text se posune (jako u karet funkcí) ===== */
.shell .nav > a:not(.active)::before { content: ""; position: absolute; left: -.75rem; top: 50%; width: 3px; height: 0; border-radius: 0 99px 99px 0; background: rgb(255 255 255 / .85); transform: translateY(-50%); transition: height .2s ease; }
.shell .nav > a:not(.active):hover::before { height: 1.3rem; }
.shell .nav > a > span { display: inline-block; transition: transform .2s ease; }
.shell .nav > a:hover > span { transform: translateX(4px); }
.shell .nav > a.active::before { transition: height .2s ease; }

/* ===== dlaždice statistik: zespodu jemný přechod při najetí ===== */
.shell .stat-row .stat { position: relative; overflow: hidden; }
.shell .stat-row .stat::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; background: linear-gradient(to top, rgb(255 255 255 / .05), transparent); transition: opacity .2s ease; }
.shell .stat-row .stat:hover::after { opacity: 1; }

/* ===== skrytá IP: plynulé odkrytí ===== */
.shell .srv-ip .blur { transition: filter .2s ease, opacity .2s ease; }
.shell .srv-ip .blur.on, .shell .srv-ip .blur:not(.blurred) { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .shell .nav > a > span, .shell .nav > a::before { transition: none; } }

/* .brand v panelu = stejné primární tlačítko v našem odstínu, bez záře */
html body .shell .btn.brand { background: #4599FF !important; color: #fff !important; border: 1px solid transparent !important; box-shadow: none !important; filter: none !important; }
html body .shell .btn.brand:hover:not(:disabled) { background: #5aa6ff !important; transform: none !important; filter: none !important; }
html body .shell .btn.brand svg { color: inherit; }

/* ===== font: Outfit všude (panel, web, dokumentace, tlačítka, formuláře) ===== */
.shell, .shell button, .shell input, .shell select, .shell textarea, .shell .btn, .shell .nav a { font-family: Outfit, ui-sans-serif, system-ui, sans-serif !important; }
.shell .mono, .shell code, .shell pre, .shell .kbd { font-family: var(--mono, ui-monospace, Consolas, monospace) !important; }

/* ===== plovoucí sidebar ve stylu AstroShield: zaoblená karta, hledání nahoře, odkazy a účet dole ===== */
@media (min-width: 861px) {
  html body .workspace-shell { background: var(--bg); }
  html body .workspace-shell .sidebar {
    margin: 8px 0 8px 8px; height: calc(100dvh - 16px); border: 1px solid var(--border) !important; border-radius: 14px;
    background: rgb(255 255 255 / .02) !important; padding: 12px 10px !important; gap: 2px;
  }
  html body .workspace-shell .sidebar .brand { justify-content: center; padding: 6px 0 10px; }
}
html body .workspace-shell .sidebar .nav-filter { margin: 2px 0 10px; }
html body .workspace-shell .sidebar .nav-filter .input { height: 36px; border-radius: 10px; background: rgb(255 255 255 / .04); font-size: 13px; }
html body .workspace-shell .sidebar .nav-label { font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; opacity: .55; }
html body .workspace-shell .sidebar .server-toggle .server-label { text-transform: uppercase; font-size: 13px; letter-spacing: .02em; }
html body .workspace-shell .sidebar .nav a, html body .workspace-shell .sidebar .nav button.link { border-radius: 10px; }
html body .workspace-shell .sidebar .sb-links { display: flex; gap: 8px; padding: 10px 0 8px; border-top: 1px solid var(--border); margin-top: 6px; }
html body .workspace-shell .sidebar .sb-links .btn { flex: 1; height: 34px; justify-content: center; gap: 6px; font-size: 12.5px; }
html body .workspace-shell .sidebar .sb-links svg { width: 15px; height: 15px; }
html body .workspace-shell .sidebar .userbox { border-radius: 10px; }
html body .workspace-shell .topbar { border-bottom: 1px solid var(--border); }

/* .btn.clean (čištění entit) – stejný styl jako ostatní sekundární tlačítka, pod sebou přes celou šířku */
html body .shell .btn.clean:not(.danger) { background: rgb(255 255 255 / .03) !important; border: 1px solid rgb(255 255 255 / .08) !important; color: var(--text) !important; box-shadow: none !important; }
html body .shell .btn.clean:not(.danger):hover:not(:disabled) { background: rgb(255 255 255 / .06) !important; border-color: rgb(79 176 255 / .28) !important; color: #4fb0ff !important; }
html body .shell .btn.clean:not(.danger):hover:not(:disabled) svg { color: #4fb0ff !important; }
/* přehled serveru: čištění entit zůstává v mřížce 2×2 jako dřív */

/* ===== všude stejný styl tlačítek (mimo landing) + při najetí se mění JEN barva ===== */
html body .btn:not(.primary):not(.danger):not(.brand):not(.clean):not(.danger-outline):not([class*="lp-"]):not(.link) { background: rgb(255 255 255 / .03) !important; border: 1px solid rgb(255 255 255 / .08) !important; color: var(--text) !important; border-radius: 10px !important; box-shadow: none !important; }
html body .btn:not(.primary):not(.danger):not(.brand):not(.clean):not(.danger-outline):not([class*="lp-"]):not(.link):hover:not(:disabled) { background: rgb(255 255 255 / .06) !important; border-color: rgb(79 176 255 / .28) !important; color: #4fb0ff !important; }
html body .btn:not(.primary):not(.danger):not(.brand):not(.clean):not(.danger-outline):not([class*="lp-"]):not(.link):hover:not(:disabled) svg { color: #4fb0ff !important; }
html body .modal .btn, html body .modal-actions .btn { border-radius: 10px !important; }
/* hover = jen barva: žádný posun, stín, filtr ani zvětšení u žádného tlačítka */
html body :is(.btn, .icon-btn, .tab, .bt-filter button, button.link, .lp-comm-btn, .lp-cta-secondary):hover,
html body :is(.btn, .icon-btn, .tab, .bt-filter button, button.link, .lp-comm-btn, .lp-cta-secondary):active,
html body :is(.btn, .icon-btn, .tab, .bt-filter button, button.link, .lp-comm-btn, .lp-cta-secondary):focus-visible { transform: none !important; box-shadow: none !important; filter: none !important; }
html body :is(.btn, .icon-btn, .tab, .bt-filter button, .lp-comm-btn):hover::before,
html body :is(.btn, .icon-btn, .tab, .bt-filter button, .lp-comm-btn):hover::after { transform: none !important; box-shadow: none !important; }
html body :is(.btn, .icon-btn, .tab, .bt-filter button, .lp-comm-btn) { transition: background-color .2s ease, border-color .2s ease, color .2s ease !important; }
html body .btn.primary:hover:not(:disabled), html body .btn.brand:hover:not(:disabled) { background: #5aa6ff !important; }

/* ===== úplně všude: i landing, přihlášení, dokumentace, okna ===== */
html body :is(.lp-cta-secondary, .lp-comm-btn, .lp-foot-btn, .auth-discord, .auth-btn-t, .ft-btns .btn, .btns .btn:not(.primary):not(.danger), .modal .btn:not(.primary):not(.danger), .docs .btn:not(.primary)) {
  background: rgb(255 255 255 / .03) !important; border: 1px solid rgb(255 255 255 / .08) !important; color: var(--text, #fafafa) !important; border-radius: 10px !important; box-shadow: none !important; }
html body :is(.lp-cta-secondary, .lp-comm-btn, .lp-foot-btn, .auth-discord, .auth-btn-t, .ft-btns .btn, .btns .btn:not(.primary):not(.danger), .modal .btn:not(.primary):not(.danger), .docs .btn:not(.primary)):hover:not(:disabled) {
  background: rgb(255 255 255 / .06) !important; border-color: rgb(79 176 255 / .28) !important; color: #4fb0ff !important; }
html body :is(.lp-cta-secondary, .lp-comm-btn, .lp-foot-btn, .auth-discord, .auth-btn-t, .ft-btns .btn):hover svg { color: #4fb0ff !important; }
html body :is(.lp-cta-primary, .lp-nav-cta, .btn.primary, .btn.brand, .auth-submit) { border-radius: 10px !important; }
html body :is(.lp-cta-primary, .lp-nav-cta):hover { transform: none !important; box-shadow: none !important; filter: none !important; }

/* ===== bez glow všude: žádné záře, světélkování ani modré stíny ===== */
html body *, html body *::before, html body *::after { text-shadow: none !important; }
html body :is(.auth-glow, .lp-final-glow, .dc-glow, .lp-comm-orb, .lp-comm-bg) { display: none !important; }
html body :is(.lp-win, a.lp-win, button.lp-win, .lp-tilt, .lp-tilt img, .lp-dc, .lp-plan, .lp-plan.hot, .lp-plan .btn, .lp-card, .lp-feature, .lp-stat, .lp-links a, .lp-nav, .lp-nav-cta, .lp-cta-primary, .lp-cta-secondary, .shell .card, .shell .stat, .shell .demo-card, .shell .demo-metric, .btn):not(:focus-visible),
html body :is(.lp-win, a.lp-win, button.lp-win, .lp-dc, .lp-plan, .lp-card, .lp-feature):hover { box-shadow: none !important; }
html body :is(.lp-logo, .brand img, .nav svg, .lp-stat b) { filter: none !important; animation-name: none !important; }

/* ===== bez záře na žádném tlačítku (ani v klidu) ===== */
html body :is(.btn, .icon-btn, .tab, .bt-filter button, .lp-cta-primary, .lp-cta-secondary, .lp-nav-cta, .lp-comm-btn, .lp-foot-btn, .auth-discord, .auth-submit, .srv-all) { box-shadow: none !important; text-shadow: none !important; filter: none !important; }
html body :is(.btn, .lp-cta-primary, .lp-nav-cta)::before, html body :is(.btn, .lp-cta-primary, .lp-nav-cta)::after { box-shadow: none !important; filter: none !important; }

/* ===== lepší animace panelu ===== */
@keyframes fs-rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes fs-pop { from { opacity: 0; transform: scale(.97) translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes fs-slide { from { opacity: 0; transform: translateX(-8px); } to { opacity: 1; transform: none; } }
/* karty a dlaždice naskakují postupně */
html body .shell .view-enter .content-inner > *, html body .shell .view-enter > * { animation: fs-fade .22s ease-out both !important; }
html body .shell .view-enter .demo-columns > *, html body .shell .view-enter .grid4 > *, html body .shell .view-enter .stats > * { animation: fs-pop .5s cubic-bezier(.22,1,.36,1) both; }
html body .shell .view-enter :is(.demo-columns, .grid4, .stats) > :nth-child(2) { animation-delay: 70ms; }
html body .shell .view-enter :is(.demo-columns, .grid4, .stats) > :nth-child(3) { animation-delay: 140ms; }
html body .shell .view-enter :is(.demo-columns, .grid4, .stats) > :nth-child(4) { animation-delay: 210ms; }
html body .shell .view-enter :is(.demo-columns, .grid4, .stats) > :nth-child(5) { animation-delay: 280ms; }
/* tlačítka: jemné stlačení při kliknutí (hover zůstává jen barva) */
html body .shell .btn:active:not(:disabled), html body .shell .icon-btn:active { transform: scale(.97) !important; transition: transform .08s ease !important; }
html body .shell .btn, html body .shell .icon-btn { transition: background-color .2s ease, border-color .2s ease, color .2s ease, transform .15s cubic-bezier(.22,1,.36,1) !important; }
/* okna */
html body .modal { animation: fs-pop .28s cubic-bezier(.22,1,.36,1) both; }
@media (prefers-reduced-motion: reduce) { html body .shell * { animation: none !important; } }

/* karta „Uplatnit licenci" */
.shell .lic-card .lic-note { margin: 12px 0 10px; font-size: 13px; color: var(--text); }
.shell .lic-card .lic-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.shell .lic-card .lic-btns .btn { width: 100%; height: 40px; justify-content: center; gap: 8px; text-decoration: none; }
.shell .lic-card .redeem-form fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
html body .shell .lic-card .lic-btns { display: grid !important; grid-template-columns: 1fr 1fr !important; gap: 10px; width: 100%; }
html body .shell .lic-card .lic-btns .btn { width: 100% !important; min-width: 0; }

/* ===== glow rámu náhledu zpět (jen tlačítka jsou bez glow) ===== */
html body :is(a.lp-win, button.lp-win) { box-shadow: 0 0 0 1px rgb(255 255 255 / .08), 0 0 5rem 0 rgb(69 153 255 / .45), 0 2rem 4rem -1rem rgb(0 0 0 / .6) !important; border-color: var(--accent-border, rgb(69 153 255 / .45)) !important; }
html body :is(a.lp-win, button.lp-win):hover { box-shadow: 0 0 0 1px rgb(255 255 255 / .14), 0 0 6.5rem 0 rgb(69 153 255 / .6), 0 2rem 4rem -1rem rgb(0 0 0 / .6) !important; }
html body .lp-plan.hot .btn.primary, html body .lp-plan .btn { box-shadow: none !important; }
html body .lp *::after, html body .lp *::before { text-shadow: none; }

/* ===== přehled serveru ve stylu AstroShield: dlaždice s ikonou vpravo, popisek, hodnota a poznámka ===== */
.shell .ov-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.shell .ov-tile { position: relative; padding: 14px 16px; display: grid; gap: 4px; min-height: 96px; align-content: start; }
.shell .ov-tile small { font-size: 12px; color: var(--muted, #a1a1aa); }
.shell .ov-tile strong { font-size: 20px; font-weight: 700; letter-spacing: -.01em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.shell .ov-tile strong.ok { color: #22c55e; } .shell .ov-tile strong.bad { color: #f87171; }
.shell .ov-tile em { font-style: normal; font-size: 12px; color: var(--faint, #71717a); }
.shell .ov-tile > i, .shell .ov-tile > .ov-eye { position: absolute; top: 14px; right: 14px; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 8px; color: var(--muted, #a1a1aa); background: rgb(255 255 255 / .04); border: 0; font-style: normal; }
.shell .ov-tile > .ov-eye { cursor: pointer; transition: color .2s ease, background-color .2s ease; }
.shell .ov-tile > .ov-eye:hover { color: #4fb0ff; background: rgb(79 176 255 / .1); }
.shell .ov-tile svg { width: 15px; height: 15px; }
.shell .ov-tile { transition: border-color .2s ease; }
@media (max-width: 1000px) { .shell .ov-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.shell .server-overview.collapsed .ov-tiles { display: none; }

/* Live indikátor v horní liště + BETA štítek v menu */
.live-pill { display: inline-flex; align-items: center; gap: 7px; height: 28px; padding: 0 11px; border-radius: 999px; font-size: 12px; font-weight: 600; border: 1px solid rgb(255 255 255 / .08); background: rgb(255 255 255 / .03); color: var(--muted, #a1a1aa); }
.live-pill i { width: 7px; height: 7px; border-radius: 50%; background: #71717a; }
.live-pill.on { color: #4ade80; border-color: rgb(74 222 128 / .25); }
.live-pill.on i { background: #4ade80; animation: fs-live 1.8s ease-in-out infinite; }
@keyframes fs-live { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
.nav-beta { margin-left: auto; font-style: normal; font-size: 10px; font-weight: 700; letter-spacing: .04em; padding: 2px 7px; border-radius: 999px; background: rgb(69 153 255 / .18); color: #4fb0ff; }
.shell .nav a:has(.nav-beta) { display: flex; align-items: center; }
html body .shell .topbar-end { display: flex; flex-wrap: nowrap; align-items: center; gap: 8px; }

/* glow animace slova „výkonný" zpět */
html body .lp .lp-hero h1 .grad.grad { animation: grad-glow 2.4s ease-out 1.5s both !important; }
/* písmena „výkonný" naskakují stejně jako zbytek nadpisu (jen při načtení / F5, při scrollu zůstávají) */
html body .lp-hero h1 .w > .ch { animation: ch-in .9s cubic-bezier(.2,.9,.25,1.15) forwards !important; animation-delay: calc(var(--c) * 32ms + 120ms) !important; }
/* tlačítka: žádný glow v žádném stavu, ani při najetí */
html body :is(button, a.btn, [class*="btn"], [class*="-cta"], [role="button"], .switch, .tab, .chip-btn):not(input):not(:focus-visible),
html body :is(button, a.btn, [class*="btn"], [class*="-cta"], [role="button"], .tab):not(input):hover { box-shadow: none !important; text-shadow: none !important; filter: none !important; }
html body :is(button, a.btn, [class*="btn"], [class*="-cta"]):hover::before, html body :is(button, a.btn, [class*="btn"], [class*="-cta"]):hover::after { box-shadow: none !important; filter: none !important; opacity: inherit; }
/* ikonka klíče u přepínače detekce */
.cf-key { display: inline-grid; place-items: center; width: 28px; height: 28px; margin-left: auto; margin-right: 10px; border-radius: 8px; border: 1px solid rgb(255 255 255 / .08); background: rgb(255 255 255 / .03); color: var(--muted, #a1a1aa); cursor: pointer; transition: color .2s ease, border-color .2s ease, background-color .2s ease; }
.cf-key:hover { color: #4fb0ff; border-color: rgb(79 176 255 / .3); background: rgb(255 255 255 / .06); }
.cf-key svg { width: 15px; height: 15px; }
.cf-row .cf-key + .switch { margin-left: 0; }
.gz-flash { animation: gz-flash 1.4s ease-out; border-radius: 14px; }
@keyframes gz-flash { 0%, 60% { outline: 2px solid rgb(79 176 255 / .7); outline-offset: 4px; } 100% { outline: 2px solid transparent; outline-offset: 4px; } }
/* video v detailu banu: nikdy nepřesáhne okno */
.bd-body .clip, .modal .clip, .clip { width: 100% !important; max-width: 100% !important; box-sizing: border-box; }
.clip-stage { max-width: 100%; }
.modal, .modal * { min-width: 0; }
.modal .bd-body, .modal [data-bd-body], .bd { overflow-x: hidden; }

/* náhledové okno panelu na úvodní stránce: glow musí být až poslední slovo */
html body .lp .lp-stage a.lp-win, html body .lp .lp-stage .lp-win, html body a.lp-win.lp-win { box-shadow: 0 0 0 1px rgb(255 255 255 / .08), 0 0 5rem 0 rgb(69 153 255 / .45), 0 2rem 4rem -1rem rgb(0 0 0 / .6) !important; border-color: rgb(69 153 255 / .45) !important; }
html body .lp .lp-stage a.lp-win:hover, html body a.lp-win.lp-win:hover { box-shadow: 0 0 0 1px rgb(255 255 255 / .14), 0 0 6.5rem 0 rgb(69 153 255 / .6), 0 2rem 4rem -1rem rgb(0 0 0 / .6) !important; }

/* hover u tlačítek v panelu/demu: jen změna barvy (jako „Smazat pedy"), bez stínu a bez glow */
html body .btn.primary:not(.lp-cta-primary):not(:disabled):hover, html body .btn.brand:not(.lp-cta-primary):not(:disabled):hover { background: #5aa6ff !important; box-shadow: none !important; filter: none !important; }
html body .btn.primary:not(.lp-cta-primary), html body .btn.brand:not(.lp-cta-primary) { box-shadow: none !important; }
.gz-more { margin-top: .6rem; border: 1px solid var(--border); border-radius: 10px; padding: 8px 12px; }
.gz-more summary { cursor: pointer; font-size: 13px; color: var(--muted, #a1a1aa); }
.gz-more[open] summary { margin-bottom: .6rem; }

/* hráč v tabulce: jednoduché kolečko s avatarem + jméno a pod ním Discord jméno */
html body .bt-players .bt-who { display: flex; align-items: center; gap: 12px; }
html body .bt-players .pt-av { flex: none; width: 38px; height: 38px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; font-weight: 700; background: rgb(69 153 255 / .16); color: #4fb0ff; }
html body .bt-players .pt-av img { width: 100%; height: 100%; object-fit: cover; display: block; }
html body .bt-players .bt-who small { display: block; margin-top: 2px; color: var(--muted, #a1a1aa); }
html body .bt .bt-who { display: flex; align-items: center; gap: 12px; }
html body .bt .pt-av { flex: none; width: 38px; height: 38px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; font-weight: 700; background: rgb(69 153 255 / .16); color: #4fb0ff; }
html body .bt .pt-av img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ===== proti problikávání: žádné animace, které se spouští znovu při každém překreslení (obnovení seznamů, menu) ===== */
@keyframes fs-fade { from { opacity: .0; } to { opacity: 1; } }
html body .shell .bt tbody tr, html body .shell .demo-player, html body .shell table.t tbody tr, html body .shell .srv, html body .shell .ev { animation: none !important; }
html body .shell .server-menu .sub a, html body .shell .sidebar :not(svg):not(svg *) { animation: none !important; }
html body .shell .view-enter .demo-columns > *, html body .shell .view-enter .grid4 > *, html body .shell .view-enter .stats > * { animation: none !important; }

/* menu zdroje */
.rs-row[data-name] { cursor: pointer; }
.rs-m { width: min(460px, 92vw); }
.rs-m header { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.rs-m header h3 { margin: 0; font-size: 17px; word-break: break-all; }
.rs-m header p { margin: 2px 0 0; font-size: 12.5px; }
.rs-m header .badge { margin-left: auto; flex: none; }
.rs-m-note { font-size: 12.5px; margin: 0 0 10px; }
.rs-m-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.rs-m-item { display: flex; align-items: center; gap: 12px; text-align: left; padding: 12px 14px; border-radius: 12px; border: 1px solid rgb(255 255 255 / .08); background: rgb(255 255 255 / .03); color: var(--text); cursor: pointer; transition: color .2s ease, border-color .2s ease, background-color .2s ease; }
.rs-m-item svg { width: 18px; height: 18px; flex: none; }
.rs-m-item b { display: block; font-size: 14px; } .rs-m-item small { display: block; font-size: 11.5px; color: var(--muted, #a1a1aa); margin-top: 2px; }
.rs-m-item:hover:not(:disabled) { color: #4fb0ff; border-color: rgb(79 176 255 / .28); background: rgb(255 255 255 / .06); }
.rs-m-item.danger:hover:not(:disabled) { color: #fa8087; border-color: rgb(250 128 135 / .35); }
.rs-m-item:disabled { opacity: .4; cursor: not-allowed; }
.rs-m .btns { margin-top: 14px; display: flex; justify-content: flex-end; }

/* ---- Nastavení jako okno ---- */
.modal.sw-modal { max-width: 46rem; width: calc(100vw - 2rem); padding: 0; overflow: hidden; position: relative; }
.sw { display: grid; grid-template-columns: 13.5rem 1fr; min-height: 25rem; }
.sw-nav { display: grid; align-content: start; gap: .2rem; padding: 1rem .7rem; border-right: 1px solid rgb(255 255 255 / .07); background: rgb(255 255 255 / .02); }
.sw-me { display: flex; gap: .6rem; align-items: center; padding: .3rem .5rem 1rem; } .sw-me small { display: block; color: var(--muted); font-size: .74rem; }
.sw-nav > button { display: flex; align-items: center; gap: .6rem; padding: .55rem .7rem; border-radius: .7rem; background: none; border: 0; color: var(--muted); font: inherit; font-size: .88rem; cursor: pointer; text-align: left; transition: background .2s, color .2s; }
.sw-nav > button:hover { background: rgb(255 255 255 / .05); color: var(--text); }
.sw-nav > button.on { background: rgb(69 153 255 / .14); color: #4599ff; }
.sw-nav > button.danger { margin-top: .8rem; color: #ff6b6b; }
.sw-nav .ico, .sw-nav svg { width: 1rem; height: 1rem; flex: none; }
.sw-body { padding: 1.4rem 1.6rem; } .sw-body h2 { margin: 0 0 1rem; font-size: 1.15rem; }
.sw-body.in { animation: fs-fade .3s both; }
.sw-x { position: absolute; top: .6rem; right: .8rem; background: none; border: 0; color: var(--muted); font-size: 1.5rem; cursor: pointer; line-height: 1; }
@media (max-width: 640px) { .sw { grid-template-columns: 1fr; } .sw-nav { grid-auto-flow: column; overflow-x: auto; border-right: 0; border-bottom: 1px solid rgb(255 255 255 / .07); } .sw-me { display: none; } }
/* ---- AI pomocník ---- */
.ha { position: fixed; right: 1.2rem; bottom: 1.2rem; z-index: 90; font-size: .88rem; }
.ha-fab { width: 3.2rem; height: 3.2rem; border-radius: 50%; border: 0; background: #4599FF; color: #fff; cursor: pointer; display: grid; place-items: center; box-shadow: none; transition: background .2s, transform .2s; }
.ha-fab:hover { background: #5aa6ff; transform: scale(1.06); }
.ha-win { position: absolute; right: 0; bottom: 4rem; width: min(22rem, calc(100vw - 2.4rem)); height: 30rem; max-height: calc(100vh - 7rem); display: flex; flex-direction: column; background: #151515; border: 1px solid rgb(255 255 255 / .1); border-radius: 1rem; overflow: hidden; animation: fs-fade .25s both; box-shadow: 0 20px 50px rgb(0 0 0 / .5); }
.ha-win[hidden] { display: none; }
.ha-head { display: flex; justify-content: space-between; align-items: center; padding: .8rem 1rem; border-bottom: 1px solid rgb(255 255 255 / .08); }
.ha-close { background: none; border: 0; color: var(--muted); font-size: 1.3rem; cursor: pointer; }
.ha-log { flex: 1; overflow-y: auto; padding: .8rem; display: grid; gap: .5rem; align-content: start; }
.ha-m { max-width: 88%; padding: .55rem .75rem; border-radius: .9rem; line-height: 1.45; animation: fs-fade .25s both; }
.ha-m.bot { background: rgb(255 255 255 / .07); } .ha-m.me { background: #4599FF; color: #fff; justify-self: end; }
.ha-m code { background: rgb(0 0 0 / .3); padding: 0 .3rem; border-radius: .3rem; }
.ha-chips { display: flex; gap: .4rem; flex-wrap: wrap; padding: .4rem .8rem; max-height: 6.5rem; overflow-y: auto; }
.ha-chips button { background: rgb(255 255 255 / .06); border: 0; color: var(--muted); padding: .3rem .6rem; border-radius: 999px; font: inherit; font-size: .76rem; cursor: pointer; transition: background .2s, color .2s; }
.ha-chips button:hover { background: rgb(69 153 255 / .18); color: #4599ff; }
.ha-form { display: flex; gap: .4rem; padding: .6rem .8rem; border-top: 1px solid rgb(255 255 255 / .08); } .ha-form .input { flex: 1; min-width: 0; }

/* ---- Lookup: GLOBAL BAN ---- */
.lk-gban { display: grid; gap: .15rem; margin: 1rem 0 0; padding: .8rem 1rem; border-radius: .8rem; background: rgb(255 77 77 / .12); border: 1px solid rgb(255 77 77 / .4); color: #ff8a8a; }
.lk-gban b { font-size: 1.05rem; letter-spacing: .08em; color: #ff5c5c; } .lk-gban span { font-size: .84rem; color: var(--muted); }
.lk-gban.warn { background: rgb(255 184 0 / .1); border-color: rgb(255 184 0 / .35); } .lk-gban.warn b { color: #ffb800; font-size: .95rem; letter-spacing: 0; }

.ha-new { background: none; border: 0; color: var(--muted); font: inherit; font-size: .76rem; cursor: pointer; margin-right: .4rem; } .ha-new:hover { color: #4599ff; }

/* ---- výkon: bez blur filtrů na velkých plochách, bez zbytečných překreslení ---- */
.shell, .shell *, .modal-bg, .toast, .ha, .ha * { backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
.shell .sidebar, .shell .topbar { contain: layout style; }
.shell .content-inner { contain: layout style; }
.lp section, .dc-main { contain: style; }
img { content-visibility: auto; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; } }

/* ---- Globální bany (karty) ---- */
.gb-info { border-color: rgb(255 77 77 / .25); } .gb-info p { margin: .3rem 0 0; }
.gb-card { display: flex; justify-content: space-between; gap: 1rem; padding: 1.2rem 1.4rem; margin-bottom: .8rem; border-radius: 1rem; background: #0b0c10; border: 1px solid rgb(255 77 77 / .35); transition: border-color .2s, background-color .2s; }
.gb-card:hover { border-color: rgb(255 77 77 / .6); background: #0e0f14; } .gb-card.off { opacity: .6; border-color: rgb(255 255 255 / .1); }
.gb-main h3 { margin: 0 0 .35rem; font-size: 1.05rem; } .gb-main p { margin: .55rem 0 .9rem; color: var(--muted); font-size: .9rem; } .gb-main small { display: inline-flex; gap: .35rem; align-items: center; color: var(--muted); font-size: .74rem; }
.gb-tag { display: inline-flex; gap: .4rem; align-items: center; color: #ff5c5c; font-size: .86rem; } .gb-tag svg { width: 1rem; height: 1rem; }
.gb-side { display: grid; justify-items: end; align-content: space-between; gap: .8rem; } .gb-badges { display: flex; gap: .4rem; }
.gb-b { padding: .2rem .7rem; border-radius: 999px; font-size: .74rem; font-weight: 600; background: rgb(255 255 255 / .09); color: var(--text); } .gb-b.act { background: rgb(255 77 77 / .12); border: 1px solid rgb(255 77 77 / .5); color: #ff6b6b; }
.gb-det h2 { margin: 0 0 .3rem; } .gb-det h4 { margin: 1rem 0 .5rem; } .gb-bans { display: grid; gap: .4rem; }
.gb-ban { display: grid; grid-template-columns: 5rem 1fr; gap: 0 .8rem; padding: .6rem .8rem; border-radius: .7rem; background: rgb(255 255 255 / .04); } .gb-ban small { grid-column: 2; color: var(--muted); }
.gb-ban.key { border: 1px solid rgb(255 77 77 / .5); background: rgb(255 77 77 / .08); } .gb-ban.key b { color: #ff6b6b; } .gb-act { margin-top: 1rem; }
@media (max-width: 640px) { .gb-card { flex-direction: column; } .gb-side { justify-items: start; } }

/* ---- Global ban jako normální ban řádek (nahoře) ---- */
html body .bt tbody tr.bt-gban { background: color-mix(in srgb, #ff4d4d 8%, transparent); box-shadow: inset 3px 0 0 #ff5c5c; }
html body .bt tbody tr.bt-gban:hover { background: color-mix(in srgb, #ff4d4d 13%, transparent); }
.lk-gsec h3 { color: #ff6b6b; } .lk-gnote { margin: .5rem .2rem 0; font-size: .78rem; }
.gb-clip{margin:.4rem 0 1rem;border-radius:12px;overflow:hidden}
.cp-form{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:.8rem;align-items:end}
.cp-form label{display:flex;flex-direction:column;gap:.35rem;font-size:.82rem;color:var(--muted,#9aa4b5)}
.cp-act{white-space:nowrap;text-align:right}
.tbl-wrap{overflow-x:auto;margin-top:.6rem}
.tbl{width:100%;border-collapse:collapse}
.tbl th{text-align:left;font-size:.75rem;text-transform:uppercase;letter-spacing:.04em;color:var(--muted,#9aa4b5);font-weight:600}
.tbl th,.tbl td{padding:.7rem .9rem;border-bottom:1px solid rgba(255,255,255,.07)}
.tbl tr:last-child td{border-bottom:0}
