/* Kyvo TV — ciemny motyw, akcent fiolet → turkus. Mobile-first. */
:root {
  --k-bg: #07070f;
  --k-bg-2: #0d0d1a;
  --k-card: #12121f;
  --k-card-2: #181829;
  --k-line: rgba(255, 255, 255, .08);
  --k-text: #ecebf7;
  --k-muted: #a09eb8;
  --k-violet: #8b5cf6;
  --k-violet-2: #6d28d9;
  --k-teal: #2dd4bf;
  --k-grad: linear-gradient(135deg, #8b5cf6 0%, #5b7cfa 50%, #2dd4bf 100%);
  --k-radius: 18px;
  --bs-body-bg: var(--k-bg);
  --bs-body-color: var(--k-text);
  --bs-border-color: var(--k-line);
  --bs-link-color: #b9a4ff;
  --bs-link-hover-color: #d6c9ff;
  --bs-secondary-color: var(--k-muted);
}
[data-bs-theme=dark] {
  --bs-body-bg: var(--k-bg);
  --bs-body-color: var(--k-text);
  --bs-border-color: var(--k-line);
  --bs-secondary-color: var(--k-muted);
  --bs-tertiary-bg: var(--k-card);
}
html { scroll-behavior: smooth; }
body {
  background: var(--k-bg);
  color: var(--k-text);
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1 0 auto; }
.text-muted, .text-secondary { color: var(--k-muted) !important; }
a { text-decoration: none; }
::selection { background: rgba(139, 92, 246, .45); }

/* ── marka ─────────────────────────────────────────────── */
.brand { display: inline-flex; align-items: center; gap: .55rem; font-weight: 800; letter-spacing: -.02em;
  color: var(--k-text); font-size: 1.2rem; }
.brand:hover { color: var(--k-text); }
.brand img { width: 30px; height: 30px; }
.brand span b { background: var(--k-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.grad-text { background: var(--k-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ── nawigacja ─────────────────────────────────────────── */
.k-nav { position: sticky; top: 0; z-index: 1030; backdrop-filter: saturate(160%) blur(14px);
  background: rgba(7, 7, 15, .72); border-bottom: 1px solid var(--k-line); }
.k-nav .nav-link { color: var(--k-muted); font-weight: 500; }
.k-nav .nav-link:hover, .k-nav .nav-link.active { color: var(--k-text); }
.navbar-toggler { border-color: var(--k-line); }
/* wybór języka: <details> (działa też bez JS), lista nazw w ich własnym języku */
.lang-menu { position: relative; }
.lang-menu > summary { list-style: none; display: inline-flex; align-items: center; gap: .4rem; cursor: pointer;
  user-select: none; }
.lang-menu > summary::-webkit-details-marker { display: none; }
.lang-menu .lang-caret { font-size: .7rem; transition: transform .15s ease; }
.lang-menu[open] .lang-caret { transform: rotate(180deg); }
.lang-list { position: absolute; right: 0; top: calc(100% + .4rem); z-index: 1040; width: min(26rem, 92vw);
  max-height: min(70vh, 30rem); overflow-y: auto; overscroll-behavior: contain; padding: .5rem;
  background: var(--k-card); border: 1px solid var(--k-line); border-radius: 14px;
  box-shadow: 0 18px 48px -12px rgba(0, 0, 0, .7); }
.lang-list ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .15rem; }
.lang-list a { display: block; padding: .5rem .7rem; border-radius: 10px; color: var(--k-muted); font-size: .92rem;
  font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lang-list a:hover, .lang-list a:focus-visible { color: var(--k-text); background: var(--k-card-2); outline: none; }
.lang-list a.active { color: var(--k-text); background: var(--k-card-2); box-shadow: inset 3px 0 0 var(--k-teal); }
/* telefon / rozwinięte menu nawigacji: lista w treści, pełna szerokość, duże pola dotyku */
@media (max-width: 991.98px) {
  .lang-menu { flex: 1 1 100%; }
  .lang-menu > summary { width: 100%; justify-content: flex-start; }
  .lang-menu > summary .lang-caret { margin-left: auto; }
  .lang-list { position: static; width: 100%; max-height: 55vh; margin-top: .5rem; box-shadow: none; }
  .lang-list a { padding: .7rem .8rem; font-size: 1rem; }
}
@media (max-width: 359.98px) { .lang-list ul { grid-template-columns: 1fr; } }

/* ── przyciski ─────────────────────────────────────────── */
.btn { border-radius: 12px; font-weight: 600; }
.btn-k { background: var(--k-grad); color: #fff; border: 0; box-shadow: 0 8px 28px -10px rgba(139, 92, 246, .7); }
.btn-k:hover, .btn-k:focus { color: #fff; filter: brightness(1.08); }
.btn-ghost { background: transparent; color: var(--k-text); border: 1px solid var(--k-line); }
.btn-ghost:hover { background: var(--k-card-2); color: var(--k-text); border-color: rgba(255,255,255,.18); }
.btn:focus-visible, .form-control:focus, .form-select:focus { box-shadow: 0 0 0 .2rem rgba(45, 212, 191, .35); border-color: var(--k-teal); }

/* ── hero ──────────────────────────────────────────────── */
.hero { position: relative; overflow: hidden; padding: 3.5rem 0 3rem; }
.hero::before { content: ""; position: absolute; inset: -30% -10% auto -10%; height: 90%;
  background: radial-gradient(50% 50% at 25% 40%, rgba(139, 92, 246, .28), transparent 70%),
              radial-gradient(40% 45% at 80% 30%, rgba(45, 212, 191, .18), transparent 70%);
  pointer-events: none; }
.hero h1 { font-size: clamp(2.1rem, 6vw, 3.6rem); font-weight: 800; letter-spacing: -.035em; line-height: 1.05; }
.hero .lead { color: var(--k-muted); font-size: 1.1rem; max-width: 34rem; }
.pill { display: inline-flex; align-items: center; gap: .4rem; padding: .3rem .75rem; border-radius: 999px;
  background: rgba(139, 92, 246, .12); border: 1px solid rgba(139, 92, 246, .35); color: #cbbcff; font-size: .8rem; font-weight: 600; }
.hero-note { color: var(--k-muted); font-size: .85rem; }
@media (min-width: 992px) { .hero { padding: 5.5rem 0 4.5rem; } }

/* ── mockup TV (HTML/CSS, dane przykładowe) ────────────── */
.tv { position: relative; max-width: 720px; margin: 0 auto; }
.tv-frame { container-type: inline-size; aspect-ratio: 16 / 9; border-radius: 14px; padding: 1.1%;
  background: linear-gradient(180deg, #232336, #0c0c16); box-shadow: 0 40px 80px -30px rgba(0,0,0,.9),
  0 0 0 1px rgba(255,255,255,.06), 0 0 90px -20px rgba(139, 92, 246, .45); }
.tv-screen { width: 100%; height: 100%; border-radius: 8px; overflow: hidden; display: grid;
  grid-template-columns: 17% 37% 1fr; background: #090912; font-size: 1.55cqw; color: #e8e7f5; }
.tv-stand { width: 22%; height: 10px; margin: 0 auto; background: linear-gradient(180deg, #1c1c2b, #0c0c14);
  border-radius: 0 0 10px 10px; }
.tv-side { background: #0e0e1b; border-right: 1px solid rgba(255,255,255,.05); padding: 1.6cqw 1cqw; display: flex;
  flex-direction: column; gap: .9cqw; }
.tv-logo { display: flex; align-items: center; gap: .6cqw; font-weight: 800; font-size: 1.7cqw; margin-bottom: 1cqw; }
.tv-logo i { width: 2.6cqw; height: 2.6cqw; border-radius: .7cqw; background: var(--k-grad); display: inline-block; }
.tv-nav { display: flex; align-items: center; gap: .7cqw; padding: .7cqw .8cqw; border-radius: .8cqw; color: #a3a1bd; }
.tv-nav.on { background: rgba(139, 92, 246, .22); color: #fff; box-shadow: inset 0 0 0 1px rgba(139,92,246,.6); }
.tv-nav .bi { font-size: 1.6cqw; }
.tv-list { padding: 1.4cqw 1.1cqw; display: flex; flex-direction: column; gap: .55cqw; background: #0b0b16; }
.tv-group { color: #8e8ca8; font-size: 1.25cqw; margin-bottom: .3cqw; display: flex; justify-content: space-between; }
.tv-ch { display: grid; grid-template-columns: 2.2cqw 3.4cqw 1fr; align-items: center; gap: .8cqw;
  padding: .55cqw .7cqw; border-radius: .8cqw; }
.tv-ch.on { background: linear-gradient(90deg, rgba(139,92,246,.35), rgba(45,212,191,.15)); box-shadow: inset 0 0 0 1px rgba(255,255,255,.18); }
.tv-ch .no { color: #77758f; font-size: 1.2cqw; text-align: right; }
.tv-ch .ic { width: 3.4cqw; height: 2.4cqw; border-radius: .5cqw; display: grid; place-items: center;
  font-weight: 800; font-size: 1.05cqw; color: #fff; }
.tv-ch .nm { font-weight: 600; font-size: 1.35cqw; line-height: 1.15; }
.tv-ch .pg { display: block; color: #8e8ca8; font-weight: 400; font-size: 1.1cqw; }
.ic-a { background: linear-gradient(135deg, #7c3aed, #4f46e5); }
.ic-b { background: linear-gradient(135deg, #0ea5e9, #2dd4bf); }
.ic-c { background: linear-gradient(135deg, #16a34a, #84cc16); }
.ic-d { background: linear-gradient(135deg, #f97316, #ef4444); }
.ic-e { background: linear-gradient(135deg, #ec4899, #a855f7); }
.ic-f { background: linear-gradient(135deg, #64748b, #334155); }
.tv-prev { display: flex; flex-direction: column; padding: 1.4cqw; gap: 1cqw; }
.tv-video { position: relative; flex: 1; border-radius: 1cqw; overflow: hidden;
  background: radial-gradient(60% 80% at 30% 70%, #155e4b 0%, transparent 60%),
              radial-gradient(50% 60% at 75% 30%, #3b2a7a 0%, transparent 65%),
              linear-gradient(160deg, #0c2a33, #0a0f1f 60%, #160c2c); }
.tv-video::before { content: ""; position: absolute; left: -10%; right: -10%; bottom: 0; height: 45%;
  background: linear-gradient(180deg, transparent, rgba(7,30,26,.9)),
              radial-gradient(40% 90% at 20% 100%, #0f3d33, transparent 70%),
              radial-gradient(45% 100% at 70% 100%, #123f36, transparent 70%); }
.tv-video::after { content: ""; position: absolute; width: 16%; aspect-ratio: 1; top: 16%; right: 18%; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,236,190,.95), rgba(255,200,120,.35) 45%, transparent 70%);
  animation: tv-glow 6s ease-in-out infinite alternate; }
@keyframes tv-glow { from { transform: translateY(0); opacity: .85; } to { transform: translateY(12%); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .tv-video::after { animation: none; } }
.tv-live { position: absolute; top: 1cqw; left: 1cqw; z-index: 1; font-size: 1.05cqw; font-weight: 700; padding: .25cqw .7cqw;
  border-radius: .5cqw; background: rgba(0,0,0,.55); }
.tv-live::before { content: "●"; color: #f43f5e; margin-right: .4cqw; }
.tv-epg { background: #11111f; border-radius: 1cqw; padding: 1cqw 1.2cqw; display: grid; gap: .5cqw; }
.tv-epg .row1 { display: flex; justify-content: space-between; font-size: 1.2cqw; color: #a3a1bd; }
.tv-epg .ttl { font-weight: 700; font-size: 1.5cqw; }
.tv-bar { height: .5cqw; border-radius: 1cqw; background: rgba(255,255,255,.1); overflow: hidden; }
.tv-bar i { display: block; height: 100%; width: 62%; background: var(--k-grad); }
.tv-next { font-size: 1.15cqw; color: #8e8ca8; }
.tv-caption { text-align: center; color: var(--k-muted); font-size: .75rem; margin-top: .9rem; }
@media (max-width: 575.98px) {
  .tv-screen { grid-template-columns: 21% 1fr; font-size: 2.2cqw; }
  .tv-prev { display: none; }
  .tv-ch .nm { font-size: 2.2cqw; } .tv-ch .pg { font-size: 1.8cqw; }
  .tv-ch { grid-template-columns: 3cqw 5cqw 1fr; } .tv-ch .ic { width: 5cqw; height: 3.6cqw; font-size: 1.6cqw; }
  .tv-ch .no { font-size: 1.8cqw; } .tv-group { font-size: 1.9cqw; } .tv-nav { font-size: 2cqw; } .tv-nav .bi { font-size: 2.3cqw; }
  .tv-logo { font-size: 2.3cqw; } .tv-logo i { width: 3.4cqw; height: 3.4cqw; }
}

/* ── sekcje ────────────────────────────────────────────── */
.section { padding: 4rem 0; }
.section-alt { background: var(--k-bg-2); border-top: 1px solid var(--k-line); border-bottom: 1px solid var(--k-line); }
.section h2 { font-weight: 800; letter-spacing: -.03em; font-size: clamp(1.7rem, 4vw, 2.4rem); }
.section .sub { color: var(--k-muted); max-width: 40rem; margin: .5rem auto 0; }
.k-card { background: var(--k-card); border: 1px solid var(--k-line); border-radius: var(--k-radius); padding: 1.5rem; height: 100%; }
.k-card h3 { font-size: 1.1rem; font-weight: 700; margin: .9rem 0 .4rem; }
.k-card p { color: var(--k-muted); margin: 0; font-size: .95rem; }
.k-icon { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; font-size: 1.3rem;
  background: linear-gradient(135deg, rgba(139,92,246,.22), rgba(45,212,191,.16)); color: #d5caff;
  border: 1px solid rgba(139,92,246,.3); }
.step-no { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-weight: 800;
  background: var(--k-grad); color: #fff; }

/* ── cennik ────────────────────────────────────────────── */
.price-card { position: relative; }
.price-card.featured { border: 1px solid transparent;
  background: linear-gradient(var(--k-card), var(--k-card)) padding-box, var(--k-grad) border-box; }
.price { font-size: 2.6rem; font-weight: 800; letter-spacing: -.03em; }
.price small { font-size: 1rem; color: var(--k-muted); font-weight: 500; }
.check-list { list-style: none; padding: 0; margin: 1rem 0 0; }
.check-list li { padding: .3rem 0; color: var(--k-text); }
.check-list li .bi { color: var(--k-teal); margin-right: .5rem; }

/* ── FAQ ───────────────────────────────────────────────── */
.accordion { --bs-accordion-bg: var(--k-card); --bs-accordion-border-color: var(--k-line);
  --bs-accordion-btn-color: var(--k-text); --bs-accordion-active-bg: var(--k-card-2);
  --bs-accordion-active-color: var(--k-text); --bs-accordion-btn-focus-box-shadow: 0 0 0 .2rem rgba(45,212,191,.35);
  --bs-accordion-border-radius: 14px; --bs-accordion-inner-border-radius: 14px; }
.accordion-body { color: var(--k-muted); }

/* ── formularze / panele ───────────────────────────────── */
.form-control, .form-select { background-color: #0c0c18; border-color: rgba(255,255,255,.12); color: var(--k-text); border-radius: 11px; }
.form-control::placeholder { color: #6e6c86; }
.form-control:focus, .form-select:focus { background-color: #0c0c18; color: var(--k-text); }
.form-label { font-weight: 600; font-size: .9rem; }
.code-input { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; letter-spacing: .25em; text-transform: uppercase; font-size: 1.25rem; text-align: center; }
.panel { background: var(--k-card); border: 1px solid var(--k-line); border-radius: var(--k-radius); padding: 1.5rem; }
.panel-narrow { max-width: 460px; margin: 0 auto; }
.page-head { padding: 2.5rem 0 1rem; }
.page-head h1 { font-weight: 800; letter-spacing: -.03em; font-size: clamp(1.7rem, 4vw, 2.3rem); }
.plan-badge { font-weight: 700; border-radius: 999px; padding: .35rem .8rem; font-size: .8rem; }
.plan-trial { background: rgba(45,212,191,.14); color: #6ee7d8; border: 1px solid rgba(45,212,191,.35); }
.plan-active { background: rgba(139,92,246,.16); color: #c9b8ff; border: 1px solid rgba(139,92,246,.45); }
.plan-expired { background: rgba(244,63,94,.12); color: #fda4af; border: 1px solid rgba(244,63,94,.35); }
.pl-item { display: flex; gap: 1rem; align-items: center; padding: 1rem 1.1rem; border: 1px solid var(--k-line); border-radius: 14px; background: var(--k-card-2); }
.pl-item + .pl-item { margin-top: .6rem; }
.pl-item .meta { min-width: 0; flex: 1; }
.pl-item .meta .u { color: var(--k-muted); font-size: .85rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pl-type { font-size: .7rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: .2rem .5rem; border-radius: 6px; background: rgba(255,255,255,.07); color: #c9c7df; }
.type-tabs .btn-check:checked + .btn { background: var(--k-grad); color: #fff; border-color: transparent; }
.alert { border-radius: 12px; }
.legal h2 { font-size: 1.2rem; font-weight: 700; margin-top: 2rem; }
.legal p { color: #cfcde2; }
.notice { border-left: 3px solid var(--k-violet); background: rgba(139,92,246,.08); padding: .9rem 1rem; border-radius: 0 12px 12px 0; color: #d8d3f5; }

/* ── stopka ────────────────────────────────────────────── */
.k-footer { border-top: 1px solid var(--k-line); background: #05050b; padding: 2.5rem 0 1.5rem; color: var(--k-muted); font-size: .9rem; }
.k-footer a { color: var(--k-muted); }
.k-footer a:hover { color: var(--k-text); }
.k-footer .fine { font-size: .8rem; color: #6f6d88; }

/* ── admin ─────────────────────────────────────────────── */
.adm-nav { background: #0b0b16; border-bottom: 1px solid var(--k-line); }
.adm-nav .nav-link { color: var(--k-muted); }
.adm-nav .nav-link.active, .adm-nav .nav-link:hover { color: var(--k-text); }
.stat { background: var(--k-card); border: 1px solid var(--k-line); border-radius: 14px; padding: 1rem 1.1rem; height: 100%; }
.stat .v { font-size: 1.8rem; font-weight: 800; letter-spacing: -.02em; }
.stat .l { color: var(--k-muted); font-size: .85rem; }
.bars { display: flex; align-items: flex-end; gap: 3px; height: 140px; padding-top: .5rem; }
.bars .b { flex: 1; background: var(--k-grad); border-radius: 4px 4px 0 0; min-height: 2px; opacity: .9; }
.table { --bs-table-bg: transparent; --bs-table-color: var(--k-text); --bs-table-border-color: var(--k-line);
  --bs-table-hover-bg: rgba(255,255,255,.03); --bs-table-hover-color: var(--k-text); }
.mono { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; }

/* ── pasek informacji prawnej (przewijany) ───────────────────────────── */
.k-ticker {
  display: flex; align-items: center; gap: .75rem;
  background: linear-gradient(90deg, rgba(124, 77, 255, .22), rgba(0, 209, 193, .18));
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  font-size: .82rem; color: #e9e6ff; padding: .35rem .75rem;
}
.k-ticker-viewport { flex: 1; overflow: hidden; position: relative;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent); }
.k-ticker-track { display: inline-flex; white-space: nowrap; animation: k-ticker 70s linear infinite; }
.k-ticker-item { padding-right: 4rem; }
.k-ticker-item .bi { color: #00d1c1; }
.k-ticker:hover .k-ticker-track, .k-ticker:focus-within .k-ticker-track { animation-play-state: paused; }
.k-ticker-static { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); margin: 0; }
.k-ticker-link { flex: none; color: #00d1c1; font-weight: 600; text-decoration: none; white-space: nowrap; }
.k-ticker-link:hover, .k-ticker-link:focus { text-decoration: underline; }
@keyframes k-ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }
/* bez animacji dla osób, które ją wyłączyły w systemie: tekst zawinięty, w całości widoczny */
@media (prefers-reduced-motion: reduce) {
  .k-ticker-track { display: none; }
  .k-ticker-static { position: static; width: auto; height: auto; clip: auto; }
}
@media (max-width: 576px) {
  .k-ticker { font-size: .78rem; flex-wrap: wrap; gap: .25rem .75rem; }
  .k-ticker-link { font-size: .78rem; }
}

