/* Vixtention (vixtention.vixtab.com): vzhled aplikace. Tmavý Vix styl, fialová a azurová. */
:root {
  --bg: #07051a; --bg2: #0e0a2a; --panel: #130e33; --panel2: #1a1442; --line: rgba(196, 181, 253, .14); --line2: rgba(196, 181, 253, .26);
  --ink: #f3f0ff; --mute: #a49cc8; --dim: #6f6895; --acc: #a78bfa; --acc2: #22d3ee; --good: #34d399; --bad: #fb7185; --warn: #fbbf24;
  --grad: linear-gradient(110deg, #8b5cf6, #22d3ee); --r: 16px; --ease: cubic-bezier(.2, .8, .2, 1);
  --fh: 'Sora', 'Inter', system-ui, sans-serif; --fb: 'Inter', system-ui, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.5 var(--fb); -webkit-font-smoothing: antialiased; }
body { min-height: 100vh; background: radial-gradient(ellipse 80% 50% at 80% -10%, rgba(139, 92, 246, .22), transparent 60%), radial-gradient(ellipse 60% 50% at -10% 100%, rgba(34, 211, 238, .10), transparent 60%), var(--bg); background-attachment: fixed; }
a { color: var(--acc); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { font-family: var(--fh); letter-spacing: -.02em; line-height: 1.15; margin: 0 0 .5em; }
h1 { font-size: clamp(30px, 4.2vw, 54px); font-weight: 800; }
h2 { font-size: 26px; font-weight: 700; }
h3 { font-size: 18px; font-weight: 700; }
p { margin: 0 0 1em; }
.hidden { display: none !important; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.muted { color: var(--mute); } .dim { color: var(--dim); } .small { font-size: 13px; } .center { text-align: center; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.grow { flex: 1; }

/* ---------- horní lišta */
.top { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; gap: 18px; padding: 12px 22px; background: rgba(7, 5, 26, .78); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; font: 800 19px/1 var(--fh); color: var(--ink); letter-spacing: -.02em; }
.brand:hover { text-decoration: none; }
.brand svg { width: 30px; height: 30px; }
.brand b { font-weight: 800; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nav { display: flex; gap: 4px; margin-left: 12px; }
.nav a { color: var(--mute); padding: 8px 12px; border-radius: 10px; font-weight: 600; font-size: 14px; }
.nav a:hover { color: var(--ink); background: rgba(255, 255, 255, .05); text-decoration: none; }
.nav a.on { color: var(--ink); background: rgba(167, 139, 250, .14); }
.top .sp { flex: 1; }
.credits-pill { display: flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 99px; background: rgba(167, 139, 250, .12); border: 1px solid var(--line2); color: var(--ink); font-weight: 700; font-size: 14px; cursor: pointer; }
.credits-pill:hover { text-decoration: none; border-color: var(--acc); }
.credits-pill i { width: 9px; height: 9px; border-radius: 50%; background: var(--grad); }
.avatar { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; color: #120c2c; background: var(--grad); cursor: pointer; border: 0; font-size: 15px; }
.menu { position: absolute; right: 18px; top: 58px; min-width: 220px; background: var(--panel); border: 1px solid var(--line2); border-radius: 14px; padding: 8px; box-shadow: 0 20px 60px rgba(0, 0, 0, .5); z-index: 60; }
.menu a, .menu button { display: block; width: 100%; text-align: left; padding: 10px 12px; border-radius: 9px; color: var(--ink); background: none; border: 0; font: 500 14px var(--fb); cursor: pointer; }
.menu a:hover, .menu button:hover { background: rgba(255, 255, 255, .06); text-decoration: none; }
.menu .who { padding: 8px 12px 10px; border-bottom: 1px solid var(--line); margin-bottom: 6px; font-size: 13px; color: var(--mute); }
.burger { display: none; background: none; border: 0; color: var(--ink); font-size: 22px; cursor: pointer; }

main.page { max-width: 1240px; margin: 0 auto; padding: 34px 22px 80px; }
main.page.wide { max-width: none; padding: 0; }
footer.foot { border-top: 1px solid var(--line); padding: 26px 22px 40px; color: var(--dim); font-size: 13px; display: flex; gap: 18px; flex-wrap: wrap; justify-content: center; }
footer.foot a { color: var(--mute); }

/* ---------- tlačítka a formuláře */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 18px; border-radius: 12px; border: 1px solid transparent; font: 700 14px/1.1 var(--fb); cursor: pointer; color: #120c2c; background: var(--grad); transition: transform .15s var(--ease), filter .15s, box-shadow .2s; white-space: nowrap; }
.btn:hover { text-decoration: none; filter: brightness(1.08); box-shadow: 0 8px 30px rgba(139, 92, 246, .35); }
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .5; cursor: not-allowed; filter: none; box-shadow: none; }
.btn.ghost { background: rgba(255, 255, 255, .04); color: var(--ink); border-color: var(--line2); }
.btn.ghost:hover { background: rgba(255, 255, 255, .08); box-shadow: none; }
.btn.danger { background: rgba(251, 113, 133, .12); color: var(--bad); border-color: rgba(251, 113, 133, .35); }
.btn.big { padding: 15px 26px; font-size: 16px; border-radius: 14px; }
.btn.sm { padding: 7px 12px; font-size: 13px; border-radius: 10px; }
.btn.icon { padding: 8px 10px; }
label.f { display: flex; flex-direction: column; gap: 7px; font-weight: 600; font-size: 13px; color: var(--mute); }
label.f > span small { font-weight: 400; color: var(--dim); }
input, textarea, select { width: 100%; background: rgba(255, 255, 255, .04); border: 1px solid var(--line2); border-radius: 12px; padding: 11px 13px; color: var(--ink); font: 15px/1.4 var(--fb); outline: none; transition: border-color .15s, box-shadow .15s; }
input:focus, textarea:focus, select:focus { border-color: var(--acc); box-shadow: 0 0 0 3px rgba(167, 139, 250, .18); }
textarea { resize: vertical; min-height: 90px; }
select option { background: var(--panel); }
input[type=checkbox], input[type=radio] { width: 18px; height: 18px; accent-color: var(--acc); flex: none; }
input[type=range] { padding: 0; accent-color: var(--acc); border: 0; background: none; box-shadow: none; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--ink); cursor: pointer; }
.check small { color: var(--mute); display: block; }
.seg { display: inline-flex; background: rgba(255, 255, 255, .04); border: 1px solid var(--line2); border-radius: 12px; padding: 3px; flex-wrap: wrap; }
.seg button { border: 0; background: none; color: var(--mute); padding: 8px 13px; border-radius: 9px; font: 600 13px var(--fb); cursor: pointer; }
.seg button.on { background: rgba(167, 139, 250, .2); color: var(--ink); }

.card { background: linear-gradient(180deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .02)); border: 1px solid var(--line); border-radius: 20px; padding: 24px; }
.card.pad-s { padding: 16px; }
.note { padding: 12px 14px; border-radius: 12px; background: rgba(167, 139, 250, .1); border: 1px solid var(--line2); font-size: 14px; }
.note.warn { background: rgba(251, 191, 36, .1); border-color: rgba(251, 191, 36, .35); }
.note.bad { background: rgba(251, 113, 133, .1); border-color: rgba(251, 113, 133, .35); }
.note.good { background: rgba(52, 211, 153, .1); border-color: rgba(52, 211, 153, .35); }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 99px; font-size: 12px; font-weight: 700; background: rgba(255, 255, 255, .06); border: 1px solid var(--line); color: var(--mute); }
.chip.acc { color: var(--acc); border-color: rgba(167, 139, 250, .4); }
.chip.good { color: var(--good); border-color: rgba(52, 211, 153, .4); }
.chip.bad { color: var(--bad); border-color: rgba(251, 113, 133, .4); }
.chip.warn { color: var(--warn); border-color: rgba(251, 191, 36, .4); }

/* ---------- toast, modal */
.toast { position: fixed; left: 50%; bottom: 26px; transform: translate(-50%, 30px); opacity: 0; pointer-events: none; z-index: 400; padding: 13px 20px; border-radius: 14px; background: #1d1650; border: 1px solid var(--line2); color: var(--ink); font-weight: 600; box-shadow: 0 20px 50px rgba(0, 0, 0, .5); transition: .3s var(--ease); max-width: min(560px, 92vw); text-align: center; }
.toast.on { opacity: 1; transform: translate(-50%, 0); }
.toast.bad { border-color: rgba(251, 113, 133, .5); } .toast.good { border-color: rgba(52, 211, 153, .5); }
.modal { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; background: rgba(3, 2, 12, .72); backdrop-filter: blur(6px); padding: 18px; }
.modal-card { width: min(560px, 100%); max-height: 92vh; overflow: auto; background: var(--panel); border: 1px solid var(--line2); border-radius: 22px; padding: 26px; box-shadow: 0 30px 90px rgba(0, 0, 0, .6); animation: pop-in .25s var(--ease); }
.modal-card.wide { width: min(900px, 100%); }
@keyframes pop-in { from { opacity: 0; transform: translateY(14px) scale(.98); } }
.modal-card h3 { font-size: 21px; }
.modal-foot { display: flex; gap: 10px; justify-content: flex-end; margin-top: 20px; flex-wrap: wrap; }

/* ---------- náhled slidu (16:9) */
.thumb16 { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 12px; background: #000; }
.thumb16 > .slide { pointer-events: none; }

/* ---------- landing */
.hero { display: grid; grid-template-columns: 1.05fr 1fr; gap: 50px; align-items: center; padding: 30px 0 40px; }
.hero h1 { font-size: clamp(36px, 5vw, 66px); }
.hero .lead { font-size: 19px; color: var(--mute); max-width: 560px; }
.hero-stage { position: relative; }
.hero-stage .thumb16 { box-shadow: 0 40px 120px rgba(139, 92, 246, .35); border: 1px solid var(--line2); }
.hero-stage .thumb16.b { position: absolute; width: 56%; right: -6%; bottom: -14%; transform: rotate(3deg); box-shadow: 0 30px 80px rgba(0, 0, 0, .6); }
.feat { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 50px 0; }
.feat .card b { display: block; font: 700 18px var(--fh); margin: 10px 0 6px; }
.feat .ic { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; background: rgba(167, 139, 250, .14); color: var(--acc); }
.feat .ic svg { width: 24px; height: 24px; }
.skins-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.skins-row figure { margin: 0; }
.skins-row figcaption { margin-top: 8px; font-weight: 700; font-size: 14px; color: var(--mute); }
.steps3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: s; }
.steps3 .card::before { counter-increment: s; content: counter(s); display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--grad); color: #120c2c; font: 800 17px var(--fh); margin-bottom: 12px; }

/* ---------- ceník */
.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.plan { position: relative; text-align: center; }
.plan.best { border-color: var(--acc); box-shadow: 0 0 0 1px var(--acc), 0 20px 60px rgba(139, 92, 246, .25); }
.plan .badge { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); }
.plan .cr { font: 800 42px/1 var(--fh); margin: 8px 0 2px; }
.plan .price { font: 700 22px var(--fh); margin: 10px 0 2px; }
.plan .per { color: var(--mute); font-size: 13px; margin-bottom: 14px; }
.ptable { width: 100%; border-collapse: collapse; }
.ptable td, .ptable th { padding: 12px 10px; border-bottom: 1px solid var(--line); text-align: left; font-size: 14px; }
.ptable th { color: var(--mute); font-weight: 600; font-size: 13px; }
.ptable td:last-child, .ptable th:last-child { text-align: right; white-space: nowrap; }

/* ---------- moje prezentace */
.decks { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 20px; }
.deck { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; display: flex; flex-direction: column; transition: transform .2s var(--ease), border-color .2s; }
.deck:hover { transform: translateY(-3px); border-color: var(--line2); }
.deck .thumb16 { border-radius: 0; cursor: pointer; }
.deck .body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.deck .body b { font: 700 16px/1.25 var(--fh); cursor: pointer; }
.deck .acts { display: flex; gap: 6px; margin-top: auto; flex-wrap: wrap; }
.deck .gen { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(7, 5, 26, .75); text-align: center; padding: 16px; font-weight: 700; }
.empty-big { text-align: center; padding: 70px 20px; border: 1.5px dashed var(--line2); border-radius: 24px; }
.new-tile { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 10px; min-height: 250px; border: 1.5px dashed var(--line2); border-radius: 18px; color: var(--mute); cursor: pointer; background: none; font: 700 15px var(--fb); transition: .2s; }
.new-tile:hover { border-color: var(--acc); color: var(--ink); background: rgba(167, 139, 250, .06); }
.new-tile .plus { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; background: var(--grad); color: #120c2c; font-size: 30px; font-weight: 800; }

/* ---------- tvorba */
.create { display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; align-items: start; }
.create .sticky { position: sticky; top: 80px; }
.skins-pick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.skin-opt { border: 2px solid transparent; border-radius: 14px; padding: 4px; background: none; cursor: pointer; color: var(--mute); font: 600 12px var(--fb); text-align: center; }
.skin-opt .thumb16 { border-radius: 10px; margin-bottom: 6px; }
.skin-opt.on { border-color: var(--acc); color: var(--ink); }
.drop { border: 1.5px dashed var(--line2); border-radius: 14px; padding: 18px; text-align: center; color: var(--mute); cursor: pointer; transition: .2s; }
.drop.over, .drop:hover { border-color: var(--acc); background: rgba(167, 139, 250, .06); color: var(--ink); }
.files { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }
.files div { display: flex; justify-content: space-between; gap: 10px; padding: 8px 12px; border-radius: 10px; background: rgba(255, 255, 255, .04); font-size: 13px; }
.quote-box { font-size: 14px; }
.quote-box .total { font: 800 34px var(--fh); }
.progress { height: 10px; border-radius: 99px; background: rgba(255, 255, 255, .07); overflow: hidden; }
.progress i { display: block; height: 100%; width: 0; background: var(--grad); transition: width .6s var(--ease); }
.gen-screen { max-width: 720px; margin: 40px auto; text-align: center; }
.gen-orb { width: 140px; height: 140px; margin: 0 auto 26px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #c4b5fd, #7c3aed 55%, #0e7490); box-shadow: 0 0 80px rgba(139, 92, 246, .55); animation: orb 3s ease-in-out infinite; }
@keyframes orb { 50% { transform: scale(1.08); box-shadow: 0 0 120px rgba(34, 211, 238, .45); } }

/* ---------- editor */
.ed { display: grid; grid-template-columns: 230px 1fr 380px; height: calc(100vh - 61px); }
.ed-list { border-right: 1px solid var(--line); overflow-y: auto; padding: 14px 12px 40px; display: flex; flex-direction: column; gap: 10px; background: rgba(0, 0, 0, .15); }
.ed-item { position: relative; cursor: pointer; border-radius: 12px; border: 2px solid transparent; padding: 2px; }
.ed-item.on { border-color: var(--acc); }
.ed-item .no { position: absolute; left: -2px; top: -2px; z-index: 2; background: var(--panel2); color: var(--mute); font: 700 11px var(--fb); padding: 2px 7px; border-radius: 10px 0 10px 0; }
.ed-item .thumb16 { border-radius: 9px; }
.ed-add { border: 1.5px dashed var(--line2); border-radius: 12px; padding: 14px; background: none; color: var(--mute); cursor: pointer; font: 700 13px var(--fb); }
.ed-add:hover { border-color: var(--acc); color: var(--ink); }
.ed-main { display: flex; flex-direction: column; min-width: 0; overflow: hidden; }
.ed-bar { display: flex; gap: 8px; align-items: center; padding: 10px 16px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.ed-bar .title-in { flex: 1; min-width: 180px; font: 700 17px var(--fh); background: transparent; border-color: transparent; padding: 8px 10px; }
.ed-bar .title-in:hover { border-color: var(--line2); }
.ed-stage { flex: 1; position: relative; margin: 18px; min-height: 0; }
.ed-stage .frame { position: absolute; inset: 0; border-radius: 14px; overflow: hidden; background: #000; box-shadow: 0 20px 70px rgba(0, 0, 0, .5); }
.ed-tools { display: flex; gap: 8px; justify-content: center; padding: 0 16px 14px; flex-wrap: wrap; }
.ed-side { border-left: 1px solid var(--line); overflow-y: auto; padding: 16px 18px 60px; display: flex; flex-direction: column; gap: 14px; background: rgba(0, 0, 0, .15); }
.ed-side h4 { margin: 6px 0 0; font: 700 12px var(--fb); text-transform: uppercase; letter-spacing: .12em; color: var(--dim); }
.ed-side .grp { border: 1px solid var(--line); border-radius: 12px; padding: 12px; display: flex; flex-direction: column; gap: 10px; background: rgba(255, 255, 255, .02); }
.ed-side .grp .grp-h { display: flex; justify-content: space-between; align-items: center; font-weight: 700; font-size: 12px; color: var(--mute); }
.ed-side .li { display: flex; gap: 6px; align-items: flex-start; }
.ed-side .li > :first-child { flex: 1; }
.ed-side .li .x { background: none; border: 0; color: var(--dim); cursor: pointer; padding: 10px 4px; font-size: 15px; }
.ed-side .li .x:hover { color: var(--bad); }
.ed-side .addrow { background: none; border: 1px dashed var(--line2); border-radius: 10px; color: var(--mute); padding: 8px; cursor: pointer; font: 600 13px var(--fb); }
.ed-side input, .ed-side textarea, .ed-side select { font-size: 14px; padding: 9px 11px; border-radius: 10px; }
.ed-side textarea { min-height: 44px; }
.icons-pick { display: grid; grid-template-columns: repeat(8, 1fr); gap: 4px; }
.icons-pick button { aspect-ratio: 1; border: 1px solid var(--line); border-radius: 8px; background: rgba(255, 255, 255, .03); color: var(--mute); cursor: pointer; display: grid; place-items: center; padding: 0; }
.icons-pick button.on { border-color: var(--acc); color: var(--acc); background: rgba(167, 139, 250, .14); }
.icons-pick svg { width: 18px; height: 18px; }
.save-st { font-size: 12px; color: var(--dim); min-width: 90px; text-align: right; }
.layout-pick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.layout-pick button { background: none; border: 1px solid var(--line); border-radius: 12px; padding: 6px; cursor: pointer; color: var(--mute); font: 600 12px var(--fb); text-align: center; }
.layout-pick button:hover { border-color: var(--acc); color: var(--ink); }
.layout-pick .thumb16 { border-radius: 8px; margin-bottom: 6px; }

/* ---------- kredity, tabulky */
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th, .tbl td { padding: 10px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.tbl th { color: var(--dim); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; }
.tbl td.num, .tbl th.num { text-align: right; white-space: nowrap; }
.tbl-wrap { overflow-x: auto; }
.bal { font: 800 56px/1 var(--fh); }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 20px; overflow-x: auto; }
.tabs button { background: none; border: 0; border-bottom: 2px solid transparent; color: var(--mute); padding: 10px 14px; font: 700 14px var(--fb); cursor: pointer; white-space: nowrap; }
.tabs button.on { color: var(--ink); border-color: var(--acc); }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.stat-grid .card b { display: block; font: 800 26px var(--fh); }
.legal { max-width: 820px; }
.legal p { color: #d9d4f2; }

/* ---------- login */
.login { max-width: 430px; margin: 40px auto; }

@media (max-width: 1100px) {
  .ed { grid-template-columns: 170px 1fr; }
  .ed-side { grid-column: 1 / -1; border-left: 0; border-top: 1px solid var(--line); }
  .ed { height: auto; }
  .ed-stage { height: 52vw; flex: none; }
  .plans { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .hero, .create { grid-template-columns: 1fr; }
  .hero-stage .thumb16.b { display: none; }
  .feat, .steps3, .skins-row { grid-template-columns: 1fr; }
  .nav { display: none; position: absolute; top: 60px; left: 0; right: 0; flex-direction: column; background: var(--panel); border-bottom: 1px solid var(--line); padding: 10px; margin: 0; }
  .nav.open { display: flex; }
  .burger { display: block; }
  .ed { grid-template-columns: 1fr; }
  .ed-list { flex-direction: row; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--line); padding: 10px; }
  .ed-item { width: 140px; flex: none; }
  .ed-add { flex: none; }
  .ed-stage { height: 56vw; margin: 10px; }
  .create .sticky { position: static; }
}
@media (max-width: 520px) {
  .plans { grid-template-columns: 1fr; }
  .top { padding: 10px 14px; gap: 10px; }
  .credits-pill { padding: 6px 10px; }
  main.page { padding: 22px 14px 60px; }
  .skins-pick { grid-template-columns: repeat(2, 1fr); }
}
.top .seg { flex-wrap: nowrap; }
.credits-pill { white-space: nowrap; }
@media (max-width: 520px) {
  .top .seg button { padding: 6px 8px; font-size: 12px; }
  .top .brand span { display: none; }
  .new-tile { min-height: 120px; }
}
