/* NightVibes.cz - dark neon podle plakátů */
@font-face { font-family: 'Bebas Neue'; font-style: normal; font-weight: 400; font-display: swap; src: url('/assets/fonts/bebas-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Bebas Neue'; font-style: normal; font-weight: 400; font-display: swap; src: url('/assets/fonts/bebas-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 100 900; font-display: swap; src: url('/assets/fonts/inter-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 100 900; font-display: swap; src: url('/assets/fonts/inter-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Pacifico'; font-style: normal; font-weight: 400; font-display: swap; src: url('/assets/fonts/pacifico-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Pacifico'; font-style: normal; font-weight: 400; font-display: swap; src: url('/assets/fonts/pacifico-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --bg: #0b0617;
  --bg-2: #140a2a;
  --panel: rgba(22, 12, 44, 0.78);
  --panel-solid: #160c2c;
  --line: rgba(255, 255, 255, 0.09);
  --text: #f4f0ff;
  --muted: #a99fc6;
  --pink: #ff2bd6;
  --violet: #7c3aed;
  --blue: #2bd2ff;
  --green: #3ddc97;
  --red: #ff4d6d;
  --orange: #ffb347;
  --radius: 16px;
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --display: 'Bebas Neue', 'Oswald', Impact, 'Arial Narrow', sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text); font-family: var(--font);
  font-size: 16px; line-height: 1.55; min-height: 100vh; display: flex; flex-direction: column;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
.wrap { width: min(1100px, 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--pink); color: #fff; padding: 8px 12px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

.bg-glow { position: fixed; inset: 0; pointer-events: none; z-index: -1;
  background:
    radial-gradient(600px 400px at 10% -10%, rgba(124, 58, 237, 0.35), transparent 60%),
    radial-gradient(700px 500px at 100% 0%, rgba(255, 43, 214, 0.22), transparent 60%),
    radial-gradient(600px 600px at 50% 110%, rgba(43, 210, 255, 0.12), transparent 60%);
}

/* Header */
.is-sub .site-main:not(.main-home) { padding-top: 36px; }
.is-sub .site-main > .page-hero:first-child { margin-top: -36px; }
.site-header { position: sticky; top: 0; z-index: 50; backdrop-filter: blur(14px); background: rgba(11, 6, 23, 0.78); border-bottom: 1px solid var(--line); transition: background .3s, border-color .3s, box-shadow .3s; }
.site-header.header-home { position: fixed; left: 0; right: 0; background: transparent; border-bottom-color: transparent; backdrop-filter: none; }
.site-header.header-home.scrolled { background: rgba(11, 6, 23, 0.82); border-bottom-color: var(--line); backdrop-filter: blur(14px); box-shadow: 0 10px 40px rgba(0,0,0,.35); }
.header-inner { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px; min-height: 66px; transition: min-height .3s; }
.header-home .header-inner { min-height: 78px; }
.header-home.scrolled .header-inner { min-height: 62px; }
.brand { display: inline-flex; align-items: center; color: #fff; }
.brand:hover { text-decoration: none; }
.nv-logo { display: block; overflow: visible; }
.logo-small { height: 46px; width: auto; transition: height .3s; }
.header-home .logo-small { height: 58px; }
.header-home.scrolled .logo-small { height: 44px; }
.logo-footer { height: 64px; width: auto; }
.nav { display: flex; align-items: center; gap: 4px; font-weight: 600; font-size: 14px; }
.nav-center { justify-content: center; }
.nav a { color: var(--text); padding: 8px 12px; border-radius: 10px; position: relative; transition: color .2s, background .2s; }
.nav a:hover { color: #fff; background: rgba(255,255,255,.06); text-decoration: none; }
.nav a span { position: relative; }
.nav a.active { color: var(--pink); }
.nav a.active span::after { content: ""; position: absolute; left: 0; right: 0; bottom: -7px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--pink), var(--blue)); box-shadow: 0 0 10px var(--pink); }
.nav-muted { color: var(--muted) !important; }
.nav-right { display: flex; align-items: center; gap: 10px; justify-self: end; }
.nav-account { display: inline-flex; align-items: center; gap: 8px; color: var(--text); font-weight: 600; font-size: 14px; padding: 4px 10px 4px 4px; border-radius: 999px; border: 1px solid var(--line); transition: border-color .2s; }
.nav-account:hover { text-decoration: none; border-color: var(--pink); }
.nav-avatar { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, rgba(255,43,214,.35), rgba(43,210,255,.35)); font-family: var(--display); font-size: 18px; }
.nav-avatar svg { width: 18px; height: 18px; }
.nav-admin-link { color: var(--blue); font-weight: 700; font-size: 14px; }
@media (max-width: 1100px) { .nav a { padding: 8px 8px; font-size: 13px; } }
@media (max-width: 960px) { .nav-center { display: none; } .header-inner { grid-template-columns: auto 1fr; } .nav-account-label { display: none; } .nav-account { padding: 3px; border: 0; } }
@media (max-width: 640px) { .nav-buy { padding: 8px 12px; font-size: 13px; } .nav-admin-link { display: none; } }

/* Spodní lišta (mobil) */
.tabbar { display: none; }
@media (max-width: 900px) {
  .has-tabbar .tabbar { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    background: rgba(11, 6, 23, 0.92); backdrop-filter: blur(16px); border-top: 1px solid var(--line); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); }
  .has-tabbar { padding-bottom: calc(70px + env(safe-area-inset-bottom)); }
  .tabbar a { display: flex; flex-direction: column; align-items: center; gap: 3px; color: var(--muted); font-size: 11px; font-weight: 600; text-decoration: none !important; padding: 4px 0; transition: color .2s; }
  .tabbar a svg { width: 24px; height: 24px; }
  .tabbar a.active { color: var(--pink); }
  .tabbar .tab-buy { color: #fff; margin-top: -22px; }
  .tab-buy-circle { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: linear-gradient(135deg, var(--pink), var(--violet)); box-shadow: 0 0 24px rgba(255,43,214,.7), 0 6px 20px rgba(0,0,0,.5); border: 3px solid var(--bg); }
  .tab-buy-circle svg { width: 26px; height: 26px; }
  .tab-avatar { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, var(--pink), var(--blue)); color: #fff; font-family: var(--display); font-size: 15px; }
}

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 50px 0 26px; color: var(--muted); font-size: 14px; background: linear-gradient(to bottom, transparent, rgba(124,58,237,.08)); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 32px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-col { display: grid; gap: 8px; align-content: start; }
.footer-col h4 { margin: 0 0 6px; font-family: var(--display); letter-spacing: 3px; font-size: 18px; color: #fff; }
.footer-col a { color: var(--muted); }
.footer-col a:hover { color: var(--pink); text-decoration: none; }
.footer-brand p { margin: 6px 0 0; }
.footer-social { display: flex; gap: 10px; margin-top: 6px; }
.footer-social a { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line); color: #fff; transition: border-color .2s, box-shadow .2s; }
.footer-social a:hover { border-color: var(--pink); box-shadow: 0 0 14px rgba(255,43,214,.5); }
.footer-social svg { width: 18px; height: 18px; }
.footer-seller-line { font-size: 12px; }
.footer-sub { margin-top: 8px; display: grid; gap: 6px; }
.footer-sub label { font-size: 12px; letter-spacing: 2px; text-transform: uppercase; }
.footer-sub .row { flex-wrap: nowrap; }
.footer-sub .input { min-height: 40px; padding: 8px 12px; font-size: 14px; flex: 1; }
.footer-bottom { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-top: 36px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 13px; }
.footer-bottom a { color: var(--muted); }
.footer-bottom a:hover { color: var(--pink); }
.footer-legal { display: flex; gap: 14px; flex-wrap: wrap; }
.linklike { background: none; border: 0; padding: 0; color: var(--muted); cursor: pointer; font: inherit; }
.linklike:hover { color: var(--pink); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* Header: okraje a mobil */
.header-inner { padding: 0 8px; }
.nav-center { gap: 2px; }
@media (max-width: 900px) {
  .has-tabbar .site-header { display: none; }           /* mobil: navigaci řeší spodní lišta */
  .is-home .hero-wow { padding-top: 40px; }
  .is-sub.has-tabbar .site-main { padding-top: 18px; }
}

/* Cookie karta se sušenkou */
.cookie-card { position: fixed; right: 16px; bottom: 16px; z-index: 70; width: min(420px, calc(100vw - 32px)); border-radius: 22px; padding: 2px; background: linear-gradient(135deg, var(--pink), var(--violet), var(--blue)); box-shadow: 0 24px 70px rgba(0,0,0,.65), 0 0 40px rgba(255,43,214,.25); animation: cookieIn .6s cubic-bezier(.2,.8,.2,1); transform-origin: bottom right; }
.cookie-card.eaten { animation: cookieEat .55s cubic-bezier(.6,-.2,.8,.4) forwards; }
@keyframes cookieIn { from { transform: translateY(30px) scale(.9); opacity: 0; } }
@keyframes cookieEat { to { transform: scale(.2) rotate(25deg); opacity: 0; } }
.cookie-card-inner { border-radius: 20px; background: #120a26; padding: 18px 18px 16px; display: grid; grid-template-columns: 64px 1fr; gap: 12px 14px; align-items: center; }
.cookie-icon { position: relative; width: 64px; height: 64px; }
.cookie-icon svg { width: 64px; height: 64px; filter: drop-shadow(0 8px 16px rgba(0,0,0,.5)); animation: cookieWobble 3.6s ease-in-out infinite; }
@keyframes cookieWobble { 0%, 100% { transform: rotate(-6deg); } 50% { transform: rotate(8deg) translateY(-3px); } }
.crumb { position: absolute; width: 6px; height: 6px; border-radius: 50%; background: #d4883a; opacity: 0; left: 30px; top: 30px; }
.cookie-card.eaten .crumb { animation: crumb .6s ease-out forwards; }
.cookie-card.eaten .crumb:nth-child(3) { animation-delay: .05s; --dx: 26px; --dy: 40px; }
.cookie-card.eaten .crumb:nth-child(4) { animation-delay: .1s; --dx: -22px; --dy: 36px; }
.cookie-card.eaten .crumb:nth-child(2) { --dx: 6px; --dy: 48px; }
@keyframes crumb { 0% { opacity: 1; transform: translate(0, 0); } 100% { opacity: 0; transform: translate(var(--dx, 10px), var(--dy, 40px)); } }
.cookie-text { display: grid; gap: 3px; font-size: 13px; color: #ddd6f3; }
.cookie-text strong { color: #fff; font-family: var(--display); font-size: 20px; letter-spacing: 1px; font-weight: 400; }
.cookie-actions { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr 1.3fr; gap: 8px; }
.cookie-actions .btn { padding: 9px 8px; font-size: 13px; }
@media (max-width: 900px) { .has-tabbar .cookie-card { right: 12px; left: 12px; width: auto; bottom: calc(78px + env(safe-area-inset-bottom)); } }
.cookie-modal { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 16px; background: rgba(5,2,12,.8); }
.cookie-modal[hidden] { display: none; }
.cookie-modal-card { width: min(520px, 100%); display: grid; gap: 12px; padding: 24px; border-radius: 20px; background: var(--panel-solid); border: 1px solid rgba(255,43,214,.4); box-shadow: 0 30px 80px rgba(0,0,0,.6), 0 0 40px rgba(255,43,214,.2); }
.cookie-modal-card h3 { margin: 0; font-size: 28px; }
.cookie-opt { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 12px; background: rgba(255,255,255,.04); border: 1px solid var(--line); cursor: pointer; }
.cookie-opt span { display: grid; gap: 2px; }
.cookie-opt small { color: var(--muted); }
.cookie-opt input { width: 22px; height: 22px; accent-color: var(--pink); flex: none; }
/* Admin: tým */
.team-admin-list { display: grid; gap: 10px; }
.team-admin-row { display: grid; grid-template-columns: 56px 1fr auto; gap: 14px; align-items: center; padding: 12px 16px; }
.team-admin-row img { width: 56px; height: 70px; object-fit: cover; border-radius: 10px; }
.team-admin-row.is-hidden { opacity: .55; }
/* Typo */
h1, h2, h3 { margin: 0 0 12px; line-height: 1.1; }
.display { font-family: var(--display); font-weight: 400; letter-spacing: 1px; }
h1.display { font-size: clamp(40px, 8vw, 76px); }
h2.display { font-size: clamp(28px, 5vw, 44px); }
.neon-pink { color: var(--pink); text-shadow: 0 0 18px rgba(255, 43, 214, 0.75); }
.neon-blue { color: var(--blue); text-shadow: 0 0 18px rgba(43, 210, 255, 0.7); }
.neon-white { color: #fff; text-shadow: 0 0 16px rgba(170, 140, 255, 0.7); }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.eyebrow { font-family: var(--display); letter-spacing: 4px; font-size: 15px; color: var(--blue); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 24px; border-radius: 12px; border: 1px solid transparent;
  font-weight: 700; cursor: pointer; transition: transform .12s ease, box-shadow .2s ease, background .2s; text-decoration: none !important; min-height: 48px; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: linear-gradient(135deg, var(--pink), var(--violet)); color: #fff; box-shadow: 0 0 24px rgba(255, 43, 214, 0.35); }
.btn-primary:hover { box-shadow: 0 0 34px rgba(255, 43, 214, 0.6); }
.btn-ghost { background: transparent; border-color: rgba(255,255,255,0.25); color: #fff; }
.btn-ghost:hover { border-color: var(--pink); }
.btn-blue { background: var(--blue); color: #06121a; }
.btn-sm { padding: 8px 14px; min-height: 36px; font-size: 14px; border-radius: 10px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: not-allowed; box-shadow: none; }
.btn-wallet { background: #000; color: #fff; border-color: #333; font-size: 17px; }
.btn-wallet svg { height: 22px; width: auto; }
.btn-danger { background: var(--red); color: #fff; }
.btn-green { background: var(--green); color: #062a1a; }

/* Cards */
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; backdrop-filter: blur(8px); }
.panel + .panel { margin-top: 18px; }
.neon-frame { position: relative; border-radius: var(--radius); padding: 2px; background: linear-gradient(135deg, var(--pink), var(--violet), var(--blue)); }
.neon-frame > * { background: var(--panel-solid); border-radius: calc(var(--radius) - 2px); }

/* Event list */
.hero { padding: 30px 0 10px; text-align: center; }
.hero p { max-width: 620px; margin: 6px auto 0; color: var(--muted); font-size: 17px; }
.event-grid { display: grid; gap: 22px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); margin-top: 26px; }
.event-card { display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; color: inherit; transition: transform .15s ease, box-shadow .2s ease, border-color .2s; }
.event-card:hover { transform: translateY(-3px); text-decoration: none; border-color: rgba(255, 43, 214, 0.55); box-shadow: 0 10px 40px rgba(124, 58, 237, 0.3); }
.event-card-img { aspect-ratio: 4 / 3; background: linear-gradient(135deg, #1d0f3f, #0b0617); position: relative; overflow: hidden; }
.event-card-img img { width: 100%; height: 100%; object-fit: cover; }
.event-card-body { padding: 16px 18px 18px; display: grid; gap: 6px; }
.event-card h3 { font-family: var(--display); font-size: 30px; letter-spacing: 1px; margin: 0; }
.event-card .meta { color: var(--muted); font-size: 14px; }
.event-card .price-tag { margin-top: 8px; }
.tag { display: inline-block; padding: 6px 12px; border-radius: 8px; font-family: var(--display); letter-spacing: 1.5px; font-size: 18px; line-height: 1; }
.tag-date { background: rgba(43, 210, 255, 0.14); color: var(--blue); border: 1px solid rgba(43, 210, 255, 0.5); }
.tag-price { background: rgba(255, 43, 214, 0.14); color: var(--pink); border: 1px solid rgba(255, 43, 214, 0.6); transform: rotate(-2deg); }
.tag-soldout { background: rgba(255, 77, 109, 0.15); color: var(--red); border: 1px solid rgba(255, 77, 109, 0.6); }
.tag-past { background: rgba(255,255,255,0.08); color: var(--muted); }
.past-list { opacity: .75; }

/* Event detail */
.event-hero { display: grid; gap: 26px; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 860px) { .event-hero { grid-template-columns: minmax(280px, 420px) 1fr; } }
.event-banner { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: 0 20px 60px rgba(124, 58, 237, 0.35); }
.event-banner img { width: 100%; height: auto; }
.event-info { display: grid; gap: 16px; }
.event-title { font-size: clamp(42px, 8vw, 74px); margin: 0; }
.event-sub { font-size: 19px; color: var(--muted); margin-top: -6px; }
.facts { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.fact { background: rgba(255,255,255,0.04); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.fact-label { font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); }
.fact-value { font-family: var(--display); font-size: 26px; letter-spacing: 1px; margin-top: 2px; }
.lineup { display: grid; gap: 8px; }
.lineup-item { display: flex; align-items: baseline; gap: 12px; padding: 10px 14px; border-radius: 12px; background: rgba(255,255,255,0.04); border: 1px solid var(--line); }
.lineup-name { font-family: var(--display); font-size: 30px; letter-spacing: 1px; }
.lineup-item.headliner .lineup-name { font-size: 40px; color: var(--pink); text-shadow: 0 0 16px rgba(255, 43, 214, 0.6); }
.lineup-genre { color: var(--blue); font-size: 13px; letter-spacing: 2px; text-transform: uppercase; }
.lineup-role { margin-left: auto; color: var(--muted); font-size: 12px; }
.ticket-list { display: grid; gap: 10px; }
.ticket-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 12px; background: rgba(255,255,255,0.04); border: 1px solid var(--line); }
.ticket-row .name { font-weight: 700; }
.ticket-row .desc { color: var(--muted); font-size: 13px; }
.ticket-row .price { font-family: var(--display); font-size: 28px; color: var(--pink); white-space: nowrap; }
.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 11px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: #fff; }
.desc-text { white-space: pre-line; color: #ddd6f3; }
.highlights { display: flex; flex-wrap: wrap; gap: 8px; }
.highlight { padding: 6px 12px; border-radius: 10px; border: 1px solid rgba(255, 43, 214, 0.5); color: #fff; font-size: 13px; font-weight: 600; transform: rotate(-1.5deg); background: rgba(255, 43, 214, 0.1); }
.highlight:nth-child(even) { transform: rotate(1.5deg); border-color: rgba(43, 210, 255, 0.5); background: rgba(43, 210, 255, 0.1); }
.sticky-cta { position: sticky; bottom: 12px; z-index: 20; margin-top: 20px; }
@media (min-width: 860px) { .sticky-cta { position: static; } }

/* Forms */
.form-grid { display: grid; gap: 14px; }
.field label { display: block; font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 6px; }
.input { width: 100%; padding: 13px 14px; border-radius: 12px; border: 1px solid rgba(255,255,255,0.14); background: rgba(255,255,255,0.05); color: #fff; outline: none; min-height: 48px; }
.input:focus { border-color: var(--pink); box-shadow: 0 0 0 3px rgba(255, 43, 214, 0.2); }
.input.invalid { border-color: var(--red); }
select.input option { color: #000; }
textarea.input { min-height: 120px; resize: vertical; }
.two { display: grid; gap: 10px; grid-template-columns: 1fr 1fr; }
@media (max-width: 480px) { .two { grid-template-columns: 1fr; } }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--pink); flex: none; }
.qty { display: inline-flex; align-items: center; border: 1px solid rgba(255,255,255,0.16); border-radius: 12px; overflow: hidden; }
.qty button { width: 44px; height: 44px; background: rgba(255,255,255,0.06); border: 0; color: #fff; font-size: 22px; cursor: pointer; }
.qty button:disabled { opacity: .35; cursor: not-allowed; }
.qty output { width: 44px; text-align: center; font-weight: 800; font-size: 18px; }
.holder-block { padding: 12px 14px; border-radius: 12px; background: rgba(124, 58, 237, 0.1); border: 1px dashed rgba(124, 58, 237, 0.5); display: grid; gap: 8px; }
.holder-block .holder-title { font-size: 13px; color: var(--muted); }
.msg { padding: 12px 14px; border-radius: 12px; font-size: 14px; border: 1px solid; }
.msg-error { background: rgba(255, 77, 109, 0.12); border-color: rgba(255, 77, 109, 0.5); color: #ffd0d9; }
.msg-ok { background: rgba(61, 220, 151, 0.12); border-color: rgba(61, 220, 151, 0.5); color: #c9ffe8; }
.msg-info { background: rgba(43, 210, 255, 0.12); border-color: rgba(43, 210, 255, 0.5); color: #d6f5ff; }
.summary { display: grid; gap: 6px; }
.summary-row { display: flex; justify-content: space-between; gap: 12px; }
.summary-total { font-size: 22px; font-weight: 800; border-top: 1px solid var(--line); padding-top: 10px; margin-top: 6px; }
.pay-buttons { display: grid; gap: 10px; }
.code-input { font-size: 34px; letter-spacing: 12px; text-align: center; font-weight: 800; padding: 12px; }

/* Ticket view */
.ticket-card { max-width: 440px; margin: 0 auto; }
.ticket-card .inner { padding: 24px; display: grid; gap: 14px; text-align: center; }
.qr-box { background: #fff; border-radius: 14px; padding: 14px; margin: 0 auto; width: min(280px, 80vw); }
.qr-box svg { width: 100%; height: auto; display: block; }
.ticket-holder { font-size: 26px; font-weight: 800; }
.ticket-code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: 2px; color: var(--muted); }
.status-pill { display: inline-block; padding: 6px 14px; border-radius: 999px; font-weight: 800; letter-spacing: 1px; }
.status-valid { background: rgba(61, 220, 151, 0.18); color: var(--green); }
.status-used { background: rgba(255, 77, 109, 0.18); color: var(--red); }
.status-cancelled { background: rgba(255,255,255,0.1); color: var(--muted); }
.ticket-mini { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border-radius: 12px; background: rgba(255,255,255,0.04); border: 1px solid var(--line); }
.ticket-mini .who { font-weight: 700; }
.ticket-mini .actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.order-list { display: grid; gap: 14px; }

/* Admin */
.admin-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.table-wrap { overflow-x: auto; }
table.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(--muted); font-weight: 600; font-size: 12px; letter-spacing: 1px; text-transform: uppercase; }
.tbl tr:hover td { background: rgba(255,255,255,0.03); }
.stat-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
.stat { background: rgba(255,255,255,0.04); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.stat .v { font-family: var(--display); font-size: 34px; line-height: 1; }
.stat .l { color: var(--muted); font-size: 12px; letter-spacing: 1px; text-transform: uppercase; }
.pill { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.pill-paid { background: rgba(61,220,151,0.18); color: var(--green); }
.pill-pending { background: rgba(255,179,71,0.18); color: var(--orange); }
.pill-cancelled, .pill-expired { background: rgba(255,255,255,0.08); color: var(--muted); }
.pill-refunded { background: rgba(255,77,109,0.18); color: var(--red); }
.pill-published { background: rgba(61,220,151,0.18); color: var(--green); }
.pill-draft { background: rgba(255,255,255,0.1); color: var(--muted); }
.pill-ended { background: rgba(43,210,255,0.15); color: var(--blue); }
.tt-rows { display: grid; gap: 10px; }
.tt-row { display: grid; gap: 8px; grid-template-columns: 2fr 1fr 1fr 1fr 70px 40px; align-items: end; padding: 10px; border-radius: 12px; background: rgba(255,255,255,0.03); border: 1px solid var(--line); }
@media (max-width: 760px) { .tt-row { grid-template-columns: 1fr 1fr; } }
.lineup-rows .tt-row { grid-template-columns: 2fr 1fr 1fr 40px; }
.icon-btn { background: transparent; border: 1px solid rgba(255,255,255,0.2); color: #fff; border-radius: 10px; width: 40px; height: 40px; cursor: pointer; }
.banner-preview { max-width: 320px; border-radius: 12px; border: 1px solid var(--line); }

/* Scanner */
.scanner-wrap { max-width: 520px; margin: 0 auto; display: grid; gap: 14px; }
.video-box { position: relative; border-radius: var(--radius); overflow: hidden; background: #000; aspect-ratio: 3 / 4; border: 1px solid var(--line); }
.video-box video { width: 100%; height: 100%; object-fit: cover; }
.video-box canvas { display: none; }
.scan-frame { position: absolute; inset: 12%; border: 3px solid rgba(43, 210, 255, 0.8); border-radius: 16px; box-shadow: 0 0 0 999px rgba(0,0,0,0.35); pointer-events: none; }
.scan-result { position: fixed; inset: 0; z-index: 60; display: none; align-items: center; justify-content: center; padding: 16px; background: rgba(5, 2, 12, 0.85); }
.scan-result.show { display: flex; }
.scan-card { width: min(440px, 100%); border-radius: 20px; padding: 24px; display: grid; gap: 12px; text-align: center; color: #fff; }
.scan-card.ok { background: linear-gradient(160deg, #0f6b45, #063d27); border: 2px solid var(--green); }
.scan-card.already_used { background: linear-gradient(160deg, #8f1d33, #4a0c1a); border: 2px solid var(--red); }
.scan-card.wrong_event { background: linear-gradient(160deg, #9a5a0c, #4e2d05); border: 2px solid var(--orange); }
.scan-card.cancelled, .scan-card.invalid { background: #2a2638; border: 2px solid #6b6680; }
.scan-card.checked_in { background: linear-gradient(160deg, #0f6b45, #063d27); border: 2px solid var(--green); }
.scan-card .big { font-family: var(--display); font-size: 44px; line-height: 1; letter-spacing: 2px; }
.scan-card .holder { font-size: 28px; font-weight: 800; }
.scan-counter { display: flex; justify-content: space-between; color: var(--muted); font-size: 14px; }
.manual-row { display: flex; gap: 8px; }

/* Legal */
.prose { max-width: 760px; }
.prose h2 { font-size: 22px; margin-top: 28px; }
.prose p, .prose li { color: #ddd6f3; }

.center { text-align: center; }
.mt { margin-top: 18px; }
.mb { margin-bottom: 18px; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.hidden { display: none !important; }
.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(255,255,255,0.3); border-top-color: #fff; animation: spin .8s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Neonový bod na mapě (admin i úvodka) */
.nv-pin span { display:block; width:22px; height:22px; border-radius:50%; background: var(--pink); box-shadow: 0 0 0 4px rgba(255,43,214,0.25), 0 0 18px rgba(255,43,214,0.9); position: relative; }
.nv-pin span::after { content:""; position:absolute; inset:-10px; border-radius:50%; border:2px solid rgba(255,43,214,0.7); animation: pinPulse 1.8s ease-out infinite; }
@keyframes pinPulse { 0% { transform: scale(.6); opacity: 1; } 100% { transform: scale(1.8); opacity: 0; } }
.leaflet-container { background:#0b0617; font-family: var(--font); }
/* Dlaždice z OpenStreetMap jsou světlé, filtr je otočí do tmavé. Sedí jen na vrstvu dlaždic,
   značky a překryvy jsou v jiných vrstvách a barvy jim to nerozhodí. */
.leaflet-tile-pane { filter: invert(1) hue-rotate(180deg) brightness(.85) contrast(.8) saturate(.35); }
.leaflet-popup-content-wrapper, .leaflet-popup-tip { background:#160c2c; color:#fff; box-shadow: 0 10px 40px rgba(0,0,0,.5); }
.leaflet-popup-content { margin: 12px 14px; }
.leaflet-control-attribution { background: rgba(11,6,23,.7) !important; color:#a99fc6 !important; font-size: 10px; }
.leaflet-control-attribution a { color: var(--blue) !important; }
.leaflet-bar a { background:#160c2c; color:#fff; border-bottom-color: var(--line); }

/* Admin: přehled, galerie, nastavení */
.dash-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin-bottom: 16px; }
.dash-stat { padding: 16px 18px; border-radius: 16px; background: var(--panel); border: 1px solid var(--line); display: grid; gap: 4px; }
.dash-stat span { font-size: 12px; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); }
.dash-stat b { font-family: var(--display); font-size: 32px; line-height: 1; color: var(--pink); }
.dash-next { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 16px; border-color: rgba(43,210,255,.35); }
.dash-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.dash-tile { display: grid; gap: 4px; padding: 18px; border-radius: 16px; background: var(--panel); border: 1px solid var(--line); color: #fff; transition: border-color .2s, transform .2s, box-shadow .2s; }
.dash-tile:hover { text-decoration: none; border-color: var(--pink); transform: translateY(-3px); box-shadow: 0 14px 30px rgba(255,43,214,.18); }
.dash-tile b { font-family: var(--display); font-size: 24px; letter-spacing: 1px; }
.dash-tile span { font-size: 13px; color: var(--muted); }
.dash-tile em { font-style: normal; color: var(--orange); }
.gal-upload { border-style: dashed; transition: border-color .2s, background .2s; margin-bottom: 14px; }
.gal-upload.drag { border-color: var(--pink); background: rgba(255,43,214,.08); }
.gal-progress { margin-top: 12px; height: 22px; border-radius: 999px; background: rgba(255,255,255,.08); position: relative; overflow: hidden; }
.gal-progress div { height: 100%; background: linear-gradient(90deg, var(--pink), var(--blue)); width: 0; transition: width .3s; }
.gal-progress span { position: absolute; inset: 0; display: grid; place-items: center; font-size: 12px; }
.gal-toolbar { justify-content: space-between; flex-wrap: wrap; margin-bottom: 14px; }
.gal-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.gal-item { position: relative; margin: 0; border-radius: 12px; overflow: hidden; background: var(--panel); border: 2px solid transparent; }
.gal-item.sel { border-color: var(--pink); box-shadow: 0 0 16px rgba(255,43,214,.4); }
.gal-item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; cursor: pointer; }
.gal-check { position: absolute; top: 8px; left: 8px; width: 26px; height: 26px; border-radius: 8px; background: rgba(11,6,23,.8); display: grid; place-items: center; }
.gal-check input { width: 16px; height: 16px; accent-color: var(--pink); }
.gal-item figcaption { padding: 8px; display: grid; gap: 6px; }
.gal-cap { padding: 6px 8px; font-size: 12px; }
.set-h { font-size: 24px; margin: 0; }
.faq-edit { display: grid; gap: 8px; padding: 12px; }
.three { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
@media (max-width: 700px) { .three { grid-template-columns: 1fr; } }

/* Admin: formulář akce */
.ef-tabs { position: sticky; top: 64px; z-index: 20; display: flex; gap: 4px; padding: 6px; margin: 0 0 14px; border-radius: 14px; background: rgba(11,6,23,.9); backdrop-filter: blur(12px); border: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.ef-tabs a { padding: 8px 14px; border-radius: 10px; font-size: 13px; font-weight: 700; color: var(--muted); white-space: nowrap; }
.ef-tabs a:hover { color: #fff; text-decoration: none; background: rgba(255,255,255,.06); }
.ef-tabs a.on { color: #fff; background: linear-gradient(135deg, var(--pink), var(--violet)); }
.ef-sec { scroll-margin-top: 130px; }
.ef-sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; border-bottom: 1px solid var(--line); padding-bottom: 10px; }
.ef-check { border-color: rgba(255,170,60,.45); margin-bottom: 14px; }
.ef-check ul { margin: 6px 0 0; padding-left: 18px; color: #ffd08a; font-size: 14px; display: grid; gap: 4px; }
.ef-check li a { color: var(--blue); }
.ef-save { position: sticky; bottom: 12px; z-index: 20; display: flex; align-items: center; justify-content: flex-end; gap: 14px; padding: 10px 14px; border-radius: 14px; background: rgba(11,6,23,.9); backdrop-filter: blur(12px); border: 1px solid var(--line); }
.ef-danger { margin-top: 18px; border-color: rgba(255,77,109,.45); }
.ef-danger .ef-sec-head { border-bottom-color: rgba(255,77,109,.35); }
.ef-danger-box { padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line); background: rgba(255,77,109,.05); }
.ef-danger-box strong { color: #fff; font-size: 15px; }
.ef-danger-confirm { margin-top: 12px; padding: 12px 14px; border-radius: 12px; border: 1px solid rgba(255,77,109,.5); background: rgba(255,77,109,.12); color: #ffd0d9; }

/* Mobil: všechny texty na střed, patička na střed */
@media (max-width: 700px) {
  body { text-align: center; }
  .row, .chips { justify-content: center; }
  .footer-grid { justify-items: center; text-align: center; }
  .footer-col { justify-items: center; }
  .footer-bottom, .footer-social { justify-content: center; text-align: center; }
  .field label, .ffield label { text-align: left; }
  .input, textarea.input { text-align: left; }
  .ffield label { left: 14px; right: auto; }
  .check { text-align: left; }
  .msg { text-align: center; }
  .tbl th, .tbl td { text-align: center; }
  .cookie-card { text-align: left; }
}
/* Vstupní animace nikdy nevytvoří boční posuv (clip nevytváří scroll kontejner, sticky funguje dál) */
html, body { overflow-x: clip; }
/* Jednotné odsazení obsahu od patičky */
.is-sub .site-main { padding-bottom: 64px; }
@media (max-width: 700px) { .is-sub .site-main { padding-bottom: 40px; } }

/* Přihlášení: karta s přechodem mezi kroky */
.login-wrap { padding-top: 20px; }
.login-card { animation: loginIn .5s cubic-bezier(.2,.8,.2,1) both; }
.login-card.leaving { animation: loginOut .38s ease forwards; }
.login-card.shake { animation: loginShake .4s; }
@keyframes loginIn { from { opacity: 0; transform: translateX(40px) scale(.98); } }
@keyframes loginOut { to { opacity: 0; transform: translateX(-40px) scale(.98); } }
@keyframes loginShake { 20%, 60% { transform: translateX(-8px); } 40%, 80% { transform: translateX(8px); } }
.login-card .ffield { position: relative; }
.login-card .ffield .input { padding-top: 22px; padding-bottom: 8px; }
.login-card .ffield label { position: absolute; left: 14px; top: 15px; color: var(--muted); font-size: 15px; pointer-events: none; transition: top .2s, font-size .2s, color .2s; }
.login-card .ffield .input:focus + label, .login-card .ffield .input:not(:placeholder-shown) + label { top: 6px; font-size: 11px; letter-spacing: 1px; text-transform: uppercase; color: var(--blue); }
/* Kód z e-mailu: vždy na střed (přebíjí mobilní .input { text-align:left }) */
.input.code-input, .login-card .code-input { text-align: center !important; }
@media (max-width: 700px) {
  .footer-bottom { flex-direction: column; align-items: center; justify-content: center; text-align: center; }
  .footer-bottom > div { width: 100%; text-align: center; }
  .footer-legal { justify-content: center; }
}
