:root {
  --bg: #1c1f20;
  --accent: #a7bbc1;
  --surface: #232728;
  --surface-2: #2a2f31;
  --text: #eef2f3;
  --muted: rgba(238, 242, 243, 0.6);
  --line: rgba(167, 187, 193, 0.16);
  --radius: 14px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --max: 1100px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-weight: 300;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1.2rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font: 400 0.8rem var(--font);
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}
.btn:hover { background: rgba(167, 187, 193, 0.14); border-color: var(--accent); }
.btn--small { padding: 0.4rem 0.9rem; font-size: 0.75rem; }
.btn--solid { background: var(--accent); border-color: var(--accent); color: var(--bg); font-weight: 500; }
.btn--solid:hover { background: #bccdd2; }

/* Nav */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem clamp(1rem, 4vw, 2.5rem);
}
.nav__logo { display: inline-flex; color: var(--accent); }
.nav__logo img { height: 30px; width: auto; display: block; }
.nav__links {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.2rem;
  padding: 0.3rem;
  background: rgba(28, 31, 32, 0.7);
  backdrop-filter: blur(14px);
  border: 1px solid var(--line);
  border-radius: 10px;
}
.nav__links a {
  padding: 0.3rem 0.8rem;
  border-radius: 7px;
  font-size: 0.75rem;
  color: var(--muted);
  transition: color 0.2s, background 0.2s;
}
.nav__links a:hover { color: var(--text); background: rgba(167, 187, 193, 0.12); }

/* Hero */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 7rem 1.5rem 4rem;
  overflow: hidden;
}
.hero__glow {
  position: absolute;
  inset: 0;
  z-index: 0;
  filter: blur(70px);
  opacity: 0.85;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 45%, transparent 92%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 45%, transparent 92%);
}
.blob { position: absolute; background: var(--accent); border-radius: 50%; }
.blob--a { width: 46vw; height: 46vw; max-width: 560px; max-height: 560px; top: 4%; left: 14%; animation: drift 18s ease-in-out infinite alternate; }
.blob--b { width: 30vw; height: 30vw; max-width: 380px; max-height: 380px; top: 30%; right: 10%; opacity: 0.7; animation: drift 22s ease-in-out infinite alternate-reverse; }
.blob--c { width: 22vw; height: 22vw; max-width: 280px; max-height: 280px; bottom: 6%; left: 40%; opacity: 0.5; animation: drift 26s ease-in-out infinite alternate; }
@keyframes drift {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(40px, 30px) scale(1.12); }
}
.hero > *:not(.hero__glow) { position: relative; z-index: 1; }
.hero h1 {
  font-size: clamp(3rem, 9vw, 6.5rem);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -0.03em;
}
.hero h1 span { color: var(--accent); }
.hero__actions { margin-top: 1.5rem; display: flex; gap: 0.6rem; }


/* Sections */
.section { max-width: var(--max); margin: 0 auto; padding: 5rem 1.5rem; }
.section--narrow { max-width: 760px; }
.section__title {
  margin-bottom: 2.5rem;
  font-size: clamp(2.2rem, 6vw, 3.6rem);
  font-weight: 300;
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.section__title span { color: var(--accent); }

.grid { display: grid; gap: 1rem; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }

/* Service cards */
.card {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.card h3 { margin-top: 0.8rem; font-size: 1.2rem; font-weight: 400; }
.card p { font-size: 0.85rem; color: var(--muted); max-width: 46ch; }

/* Footer */

/* Responsive */
@media (max-width: 900px) {
  .grid--3 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .nav__links { display: none; }
  .grid--2, .grid--3 { grid-template-columns: 1fr; }
  .section { padding: 3.5rem 1.2rem; }
    }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .blob { animation: none; }
}


/* Karty „Co robimy" */
.card { gap: 0.6rem; }
.card h3 { margin-top: 0; }

/* Login */
.auth {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 6rem 1.5rem 3rem;
  overflow: hidden;
}
.auth__glow {
  position: absolute;
  width: 50vw; height: 50vw; max-width: 520px; max-height: 520px;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  background: var(--accent);
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.25;
}
.auth__card {
  position: relative;
  width: 100%;
  max-width: 400px;
  display: grid;
  gap: 1rem;
  padding: 2rem;
  background: rgba(35, 39, 40, 0.85);
  backdrop-filter: blur(14px);
  border: 1px solid var(--line);
  border-radius: 18px;
}
.auth__card h1 { font-size: 1.8rem; font-weight: 400; letter-spacing: -0.02em; }
.auth__sub { margin-top: -0.6rem; font-size: 0.85rem; color: var(--muted); }
.auth__card label { display: grid; gap: 0.4rem; font-size: 0.8rem; color: var(--muted); }
.auth__card input {
  width: 100%;
  padding: 0.7rem 0.9rem;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--text);
  font: 300 0.9rem var(--font);
}
.auth__card input:focus { outline: none; border-color: var(--accent); }
.auth__card .btn { padding: 0.75rem 1rem; font-size: 0.88rem; }
.auth__back { justify-self: center; font-size: 0.8rem; color: var(--muted); }
.auth__back:hover { color: var(--accent); }

/* 404 */
.notfound {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.2rem;
  padding: 3rem 1.5rem;
  text-align: center;
}
.notfound__code {
  margin: 0;
  font-size: clamp(9rem, 30vw, 17rem);
  font-weight: 500;
  line-height: 0.9;
  letter-spacing: -0.09em;
  display: flex;
}
.notfound__code span {
  background: linear-gradient(180deg, #ffffff 20%, #b9c3c6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.notfound__code .zero {
  background: linear-gradient(180deg, #d4e3e7 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  mix-blend-mode: screen;
}
.notfound__text { max-width: 44ch; font-size: clamp(1rem, 2.4vw, 1.2rem); color: var(--accent); }
.btn--pill {
  padding: 0.95rem 1.8rem;
  border: 0;
  border-radius: 999px;
  background: #d9f2f5;
  color: #1c1f20;
  font-size: 0.9rem;
  font-weight: 600;
}
.btn--pill:hover { background: #ffffff; border-color: transparent; }

/* Czym się zajmujemy – zygzak z kartami */
.flow {
  display: grid;
  grid-template-columns: minmax(0, 340px) minmax(110px, 200px) minmax(0, 340px);
  justify-content: center;
  column-gap: 1rem;
  row-gap: 1rem;
}
.flow__card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.1rem;
  min-height: 405px;
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.flow__card--1 { grid-column: 1; grid-row: 1; }
.flow__card--2 { grid-column: 3; grid-row: 2; margin-top: -240px; }
.flow__card--3 { grid-column: 1; grid-row: 3; margin-top: -100px; }
.flow__arrow { position: relative; grid-column: 2; grid-row: 1 / 4; color: #3b4144; pointer-events: none; }
.flow__arrow svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.js .arrow path { stroke-dasharray: 1; stroke-dashoffset: 1; }
.js .arrow.is-visible path { stroke-dashoffset: 0; transition: stroke-dashoffset 1.4s ease; }
.js .arrow.is-visible .arrow__head { transition-duration: 0.3s; transition-delay: 1.3s; }
.flow__media {
  width: min(100%, 180px);
  margin: 0 auto;
  aspect-ratio: 9 / 16;          /* format telefonu – zmień tu, jeśli grafika ma inne proporcje */
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: var(--surface-2);
}
.flow__media img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.flow__body { display: grid; gap: 0.5rem; }
.flow__body h3 { font-size: 1.05rem; font-weight: 400; }
.flow__body p { font-size: 0.85rem; color: var(--muted); }

/* Stos kart ze zdjęciami (zdjęcie kadrowane od środka) */
.stack {
  position: relative;
  height: 215px;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  border-radius: 12px;
}
.stack__card {
  position: absolute;
  top: 20px;
  left: 50%;
  width: 128px;
  margin-left: -64px;
  aspect-ratio: 5 / 7;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid rgba(167, 187, 193, 0.22);
  background: var(--surface-2);
  transform-origin: 50% 100%;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}
.stack__card img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; pointer-events: none; }
.stack__card[data-pos="0"] { z-index: 3; transform: translate(0, 0) rotate(0deg); }
.stack__card[data-pos="1"] { z-index: 2; transform: translate(46px, 6px) rotate(7deg); }
.stack__card[data-pos="2"] { z-index: 1; transform: translate(-46px, 6px) rotate(-7deg); }
.stack__card:not([data-pos="0"]):not([data-pos="1"]):not([data-pos="2"]) { opacity: 0; pointer-events: none; }
.stack__card[data-pos].is-leaving { transition: none; animation: tuck 0.5s both; }
@keyframes tuck {
  0%   { transform: translate(0, 0) rotate(0deg); z-index: 4; animation-timing-function: cubic-bezier(0.2, 0.7, 0.3, 1); }
  45%  { transform: translate(-54px, -12px) rotate(-9deg); z-index: 4; animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1); }
  46%  { z-index: 1; }
  100% { transform: translate(-46px, 6px) rotate(-7deg); z-index: 1; }
}
.stack__meta {
  position: absolute;
  inset: auto 0 0 0;
  display: grid;
  padding: 1.8rem 0.6rem 0.6rem;
  line-height: 1.25;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
}
.stack__meta strong { font-size: 0.72rem; font-weight: 500; }
.stack__meta small { font-size: 0.62rem; color: rgba(255, 255, 255, 0.7); }
.stack:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }

/* Makiety w kartach */
.mock {
  display: grid;
  gap: 0.7rem;
  padding: 1rem;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 0.75rem;
}
.mock__title { font-size: 0.8rem; font-weight: 500; }
.mock--promo { gap: 0.4rem; padding: 0.75rem; min-height: 215px; align-content: center; }
.promo__row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.3rem 0.4rem;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.promo__thumb {
  flex: none;
  width: 1.8rem;
  height: 1.8rem;
  overflow: hidden;
  border-radius: 6px;
  background: var(--surface-2);
}
.promo__thumb img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.promo__text { display: grid; gap: 0.1rem; min-width: 0; }
.promo__text strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 0.72rem; font-weight: 500; }
.promo__text small { font-size: 0.64rem; color: var(--muted); }
.promo__text small span { color: var(--accent); }

@media (max-width: 960px) {
  .flow { grid-template-columns: 1fr; }
  .flow__card--1, .flow__card--2, .flow__card--3 { grid-column: 1; grid-row: auto; min-height: 0; margin-top: 0; }
  .flow__arrow { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .stack__card { transition-duration: 0.01s; }
  .stack__card[data-pos].is-leaving { animation-duration: 0.01s; }
  .js .arrow path { stroke-dashoffset: 0; transition: none; }
}


/* Sidestage – formularz */
.page { padding-top: 8rem; }
.page__lead { margin: -1.4rem 0 2.2rem; font-size: 0.92rem; color: var(--muted); }
.form { display: grid; gap: 1.1rem; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.form label { display: grid; gap: 0.45rem; font-size: 0.8rem; color: var(--muted); }
.form input {
  width: 100%;
  padding: 0.75rem 0.95rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--text);
  font: 300 0.92rem var(--font);
  transition: border-color 0.2s;
}
.form input::placeholder { color: rgba(238, 242, 243, 0.3); }
.form input:focus { outline: none; border-color: var(--accent); }
.form .btn { justify-self: start; margin-top: 0.4rem; padding: 0.75rem 1.5rem; font-size: 0.88rem; }
@media (max-width: 720px) {
  .form__row { grid-template-columns: 1fr; }
  .page { padding-top: 6.5rem; }
}

/* Formularz – status i pułapka na boty */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__status { min-height: 1.2em; font-size: 0.85rem; color: var(--muted); }
.form__status[data-state="ok"] { color: var(--accent); }
.form__status[data-state="error"] { color: #e8a0a0; }
.form .btn:disabled { opacity: 0.6; cursor: wait; }

/* Hero – samo logo i przyciski */
.hero__actions { margin-top: 2.2rem; }

/* Logowanie – stan zalogowania */
.nav__auth { display: flex; }
.nav__logout { display: none; }
.authed .nav__login { display: none; }
.authed .nav__logout { display: inline-flex; }

/* Sidestage – bramka dla niezalogowanych */
.gate { display: grid; gap: 1.2rem; justify-items: start; }
.gate__text { margin-top: -1.4rem; font-size: 0.92rem; color: var(--muted); }
.gate__actions { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.gate .btn { padding: 0.75rem 1.4rem; font-size: 0.88rem; }
.sidestage { display: none; }
.authed .gate { display: none; }
.authed .sidestage { display: block; }

/* Stopka zawsze na dole strony */
body { display: flex; flex-direction: column; min-height: 100svh; }
body > main { flex: 1 0 auto; }
main.section { width: 100%; }

/* Sidestage – komunikat o logowaniu wyśrodkowany */
:root:not(.authed) .page { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
:root:not(.authed) .page .section__title { margin-bottom: 1rem; }
.gate { justify-items: center; }
.gate__text { margin-top: 0; }
.gate__actions { justify-content: center; }

/* Hero – tekst po lewej, makieta telefonu po prawej */
.hero--split { text-align: left; }
.hero__inner {
  width: 100%;
  max-width: var(--max);
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 2rem;
}
.hero--split h1 {
  font-size: clamp(2.6rem, 5.4vw, 4.4rem);
  font-weight: 300;
  line-height: 1.06;
  letter-spacing: -0.03em;
}
.hero__lead { margin-top: 1.2rem; max-width: 46ch; font-size: 1rem; color: var(--muted); }
.hero--split .hero__actions { margin-top: 1.8rem; flex-wrap: wrap; }
.btn--lg { padding: 0.8rem 1.5rem; font-size: 0.9rem; border-radius: 12px; }
.hero__badges { margin-top: 1.6rem; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.hero__badges li {
  padding: 0.35rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.75rem;
  color: var(--muted);
}
.hero__badges li::before { content: "✓ "; color: var(--accent); }
.hero--split .hero__glow { opacity: 0.5; }
.hero--split .blob--a { left: auto; right: 4%; top: 10%; }
.hero--split .blob--b { right: auto; left: 4%; top: 55%; }
.hero--split .blob--c { left: 45%; bottom: 4%; }

.showcase { position: relative; width: 100%; max-width: 520px; height: 540px; margin: 0 auto; }
.phone {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 232px;
  aspect-ratio: 232 / 486;   /* ekran 218×472 px ≈ 9:19,5 – grafika 1080×2340 */
  transform: translate(-50%, -50%);
  overflow: hidden;
  border: 7px solid #0e1011;
  border-radius: 38px;
  background: #0e1011;
  outline: 1px solid rgba(167, 187, 193, 0.25);
}
.phone img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.phone__notch {
  position: absolute;
  top: 8px;
  left: 50%;
  z-index: 2;
  width: 64px;
  height: 18px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: #0e1011;
}
@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
.float-card {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  width: 214px;
  padding: 0.6rem 0.8rem 0.6rem 0.6rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(35, 39, 40, 0.88);
  backdrop-filter: blur(12px);
  animation: bob 7s ease-in-out infinite;
}
.float-card--1 { left: 0; top: 6%; }
.float-card--2 { right: 0; top: 22%; animation-delay: -2s; }
.float-card--3 { left: 0; top: 42%; animation-delay: -4s; }
.float-card--4 { right: 0; top: 60%; animation-delay: -1s; }
.float-card--5 { left: 2%; bottom: 3%; animation-delay: -3s; }
.float-card__thumb { flex: none; width: 2.6rem; height: 2.6rem; overflow: hidden; border-radius: 10px; }
.float-card__thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.float-card__text { display: grid; line-height: 1.3; }
.float-card__text strong { font-size: 0.78rem; font-weight: 500; }
.float-card__text small { font-size: 0.68rem; color: var(--muted); }
.float-card__play {
  display: grid;
  place-items: center;
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 50%;
  background: var(--accent);
  color: var(--bg);
  font-size: 0.6rem;
}

/* Stopka */
.footer {
  width: 100%;
  max-width: var(--max);
  margin: 4rem auto 0;
  padding: 2.5rem 1.5rem 1.5rem;
  border-top: 1px solid var(--line);
  font-size: 0.85rem;
  color: var(--muted);
}
.footer__top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; }
.footer__brand img { display: block; height: 28px; width: auto; opacity: 0.9; }
.footer__col { display: grid; gap: 0.55rem; align-content: start; }
.footer__title { margin: 0 0 0.3rem; font-size: 0.72rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text); }
.footer__col a { transition: color 0.2s; }
.footer__col a:hover { color: var(--accent); }
.footer__bottom { margin-top: 2.2rem; padding-top: 1.2rem; border-top: 1px solid var(--line); font-size: 0.78rem; }

/* Polityka prywatności */
.prose { display: grid; gap: 0.9rem; font-size: 0.92rem; line-height: 1.75; color: var(--muted); }
.prose h2 { margin-top: 1rem; font-size: 1.05rem; font-weight: 400; color: var(--text); }
.prose ul { display: grid; gap: 0.4rem; padding-left: 1.1rem; list-style: disc; }

@media (max-width: 960px) {
  .hero--split { padding-top: 6.5rem; }
  .hero__inner { grid-template-columns: 1fr; gap: 1rem; text-align: center; }
  .hero__lead { margin-left: auto; margin-right: auto; }
  .hero--split .hero__actions, .hero__badges { justify-content: center; }
}
@media (max-width: 720px) {
  .footer__top { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .showcase { height: 440px; }
  .phone { width: 188px; }
          .float-card { width: 158px; gap: 0.5rem; padding: 0.45rem 0.55rem 0.45rem 0.45rem; }
  .float-card__thumb { width: 2rem; height: 2rem; border-radius: 8px; }
  .float-card__text strong { font-size: 0.7rem; }
  .float-card__text small { font-size: 0.62rem; }
  .float-card__play { display: none; }
  .float-card--3, .float-card--4 { display: none; }
}

/* Sidestage – logo zamiast napisu (wysokość jak litery nagłówka) */
.sidestage-logo { display: block; height: 1.15em; width: auto; }

@media (prefers-reduced-motion: reduce) {
  .float-card { animation: none; }
}

/* ===== Nawigacja: link do panelu ===== */
.nav__auth { gap: 0.5rem; }
.nav__panel { display: none; }
.authed .nav__panel { display: inline-flex; }
[hidden] { display: none !important; }

/* ===== Zdjęcia bez okładki (logo jako zastępstwo) ===== */
img.is-fallback { object-fit: contain !important; padding: 20%; background: var(--surface-2); }
.promo__empty { padding: 1rem 0.4rem; font-size: 0.75rem; color: var(--muted); }

/* ===== Formularze: pola tekstowe i pliki ===== */
.form textarea {
  width: 100%;
  padding: 0.75rem 0.95rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--text);
  font: 300 0.92rem var(--font);
  resize: vertical;
}
.form textarea:focus { outline: none; border-color: var(--accent); }
.form input[type="file"] { padding: 0.55rem 0.7rem; font-size: 0.8rem; }
.form input[type="date"] { color-scheme: dark; }
.btn--danger { background: transparent; border-color: rgba(232, 160, 160, 0.5); color: #e8a0a0; }
.btn--danger:hover { background: rgba(232, 160, 160, 0.12); border-color: #e8a0a0; }

/* ===== PANEL ===== */
.panel {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 1.2rem;
  overflow: hidden;
}
.panel::before, .panel::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: var(--accent);
  filter: blur(140px);
  opacity: 0.18;
  pointer-events: none;
}
.panel::before { width: 40vw; height: 40vw; top: -10vw; right: -8vw; }
.panel::after { width: 30vw; height: 30vw; bottom: -8vw; left: -6vw; opacity: 0.12; }
.panel__shell {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1280px;
  min-height: calc(100svh - 2.4rem);
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(28, 31, 32, 0.75);
  backdrop-filter: blur(20px);
  overflow: hidden;
}
.panel__side {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 1.4rem 1rem;
  background: rgba(167, 187, 193, 0.06);
  border-right: 1px solid var(--line);
}
.panel__brand { display: block; padding: 0 0.8rem 0.6rem; }
.panel__brand img { display: block; height: 28px; width: auto; }
#sidenav { display: flex; flex-direction: column; gap: 0.15rem; }
.panel__label {
  margin: 1.2rem 0.8rem 0.4rem;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(238, 242, 243, 0.4);
}
.panel__side a, .panel__logout {
  display: block;
  padding: 0.55rem 0.8rem;
  border: 0;
  border-radius: 10px;
  background: none;
  color: var(--muted);
  font: 400 0.85rem var(--font);
  text-align: left;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.panel__side a:hover, .panel__logout:hover { background: rgba(167, 187, 193, 0.1); color: var(--text); }
.panel__side a.is-active { background: #111314; color: var(--text); }
.panel__foot { margin-top: auto; display: grid; gap: 0.15rem; padding-top: 1rem; }
.panel__main { min-width: 0; padding: 1.4rem 1.6rem 2rem; }
.panel__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.5rem; font-size: 0.8rem; color: var(--muted); }
.panel__user { display: flex; align-items: center; gap: 1rem; }
.panel__user a:hover { color: var(--accent); }
.panel__avatar {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--bg);
  font-weight: 500;
}

.view-head { margin-bottom: 1.4rem; }
.view-head h2 { font-size: 1.6rem; font-weight: 300; letter-spacing: -0.02em; }
.view-head p { margin-top: 0.3rem; font-size: 0.85rem; color: var(--muted); }
.muted, .empty { font-size: 0.85rem; color: var(--muted); }
.empty { padding: 0.8rem 0; }

/* Przegląd */
.ov { display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: 1.4rem; align-items: start; }
.ov__main { display: grid; gap: 1.6rem; min-width: 0; }
.hero-card {
  display: grid;
  justify-items: start;
  gap: 0.7rem;
  padding: 1.8rem;
  border: 1px solid var(--line);
  border-radius: 20px;
  background:
    radial-gradient(circle at 88% 12%, rgba(167, 187, 193, 0.5), transparent 55%),
    linear-gradient(120deg, #2c3639, #20272a);
}
.hero-card__tag { font-size: 0.66rem; letter-spacing: 0.1em; color: var(--accent); }
.hero-card h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); font-weight: 300; letter-spacing: -0.02em; }
.hero-card > p:not(.hero-card__tag) { font-size: 0.88rem; color: var(--muted); }
.hero-card__stats { display: flex; flex-wrap: wrap; gap: 0.5rem 1.4rem; margin: 0.3rem 0; font-size: 0.78rem; color: var(--muted); }
.hero-card__stats b { font-size: 1.1rem; font-weight: 500; color: var(--text); }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 0.8rem; }
.sec-head h3 { font-size: 0.95rem; font-weight: 400; }
.sec-head a { font-size: 0.75rem; color: var(--muted); }
.sec-head a:hover { color: var(--accent); }
.people { display: flex; gap: 1.1rem; overflow-x: auto; padding-bottom: 0.3rem; }
.people li { display: grid; justify-items: center; gap: 0.4rem; min-width: 72px; }
.people__avatar {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(140deg, #3a4448, #232a2d);
  border: 1px solid var(--line);
  color: var(--accent);
  font-size: 1.3rem;
}
.people small { max-width: 80px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 0.72rem; color: var(--muted); }

.ov__aside {
  display: grid;
  gap: 0.7rem;
  padding: 1.2rem;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.03);
}
.aside__title { font-size: 0.8rem; color: var(--muted); }
.np__cover {
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 16px;
  background: var(--surface-2);
  color: var(--accent);
  font-size: 2rem;
}
.np__cover img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.np__title { font-size: 0.95rem; font-weight: 500; }
.np__artist { margin-top: -0.4rem; font-size: 0.75rem; color: var(--muted); }
.mini { display: grid; gap: 0.5rem; margin-top: 0.4rem; }
.mini li { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 0.6rem; font-size: 0.78rem; }
.mini__thumb { display: grid; place-items: center; width: 34px; height: 34px; overflow: hidden; border-radius: 8px; background: var(--surface-2); color: var(--accent); }
.mini__thumb img { width: 100%; height: 100%; object-fit: cover; }
.mini small { display: block; color: var(--muted); font-size: 0.68rem; }
.mini em { font-style: normal; font-size: 0.7rem; color: var(--accent); }

/* Listy */
.rows { display: grid; gap: 0.5rem; margin-bottom: 1.6rem; }
.row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.8rem;
  padding: 0.65rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
}
.row__thumb {
  flex: none;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  overflow: hidden;
  border-radius: 10px;
  background: var(--surface-2);
  color: var(--accent);
  font-weight: 500;
}
.row__thumb img { width: 100%; height: 100%; object-fit: cover; }
.row__thumb--round { border-radius: 50%; }
.row__main { flex: 1 1 180px; min-width: 0; display: grid; line-height: 1.35; }
.row__main strong { font-size: 0.88rem; font-weight: 500; }
.row__main small { font-size: 0.72rem; color: var(--muted); overflow-wrap: anywhere; }
.row__main small a, .row__links a { color: var(--accent); }
.row__main small a:hover, .row__links a:hover { text-decoration: underline; }
.row__links { display: flex; gap: 0.8rem; font-size: 0.75rem; }
.row__actions { display: flex; gap: 0.35rem; margin-left: auto; }
.badge { padding: 0.18rem 0.6rem; border-radius: 999px; font-size: 0.66rem; font-weight: 500; white-space: nowrap; }
.badge--new { background: rgba(167, 187, 193, 0.18); color: var(--accent); }
.badge--accepted { background: rgba(130, 200, 160, 0.16); color: #9fd3b0; }
.badge--rejected { background: rgba(232, 160, 160, 0.15); color: #e8a0a0; }
.chip {
  padding: 0.3rem 0.65rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: transparent;
  color: var(--text);
  font: 400 0.72rem var(--font);
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}
.chip:hover { border-color: var(--accent); }
.chip--ok:hover { border-color: #9fd3b0; color: #9fd3b0; }
.chip--danger:hover { border-color: #e8a0a0; color: #e8a0a0; }
.tabs { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 1rem; }
.tab {
  padding: 0.4rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: 400 0.78rem var(--font);
  cursor: pointer;
}
.tab span { margin-left: 0.2rem; color: var(--accent); }
.tab.is-active { background: #111314; color: var(--text); border-color: var(--accent); }

/* Formularze w panelu */
.boxes { display: grid; gap: 1.2rem; max-width: 620px; }
.box { max-width: 620px; padding: 1.4rem; border: 1px solid var(--line); border-radius: 18px; background: rgba(255, 255, 255, 0.02); }
.box h3 { font-size: 1rem; font-weight: 400; }
.box__meta { display: flex; align-items: center; flex-wrap: wrap; gap: 0.6rem; font-size: 0.82rem; color: var(--muted); }
.box--danger { border-color: rgba(232, 160, 160, 0.35); }
.cover-preview img { display: block; max-width: 160px; max-height: 200px; border-radius: 12px; border: 1px solid var(--line); object-fit: cover; }

/* Powiadomienie */
.toast {
  position: fixed;
  left: 50%;
  bottom: 1.5rem;
  z-index: 50;
  transform: translateX(-50%);
  padding: 0.7rem 1.2rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #111314;
  font-size: 0.85rem;
}
.toast[data-type="error"] { border-color: rgba(232, 160, 160, 0.6); color: #e8a0a0; }

@media (max-width: 1000px) {
  .ov { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .panel { padding: 0.6rem; }
  .panel__shell { grid-template-columns: 1fr; border-radius: 20px; }
  .panel__side { flex-direction: row; align-items: center; gap: 0.3rem; overflow-x: auto; padding: 0.7rem; border-right: 0; border-bottom: 1px solid var(--line); }
  .panel__brand { padding: 0 0.5rem 0 0; }
  #sidenav { flex-direction: row; align-items: center; gap: 0.2rem; }
  .panel__label { display: none; }
  .panel__side a, .panel__logout { white-space: nowrap; }
  .panel__foot { margin: 0; padding: 0; display: flex; }
  .panel__main { padding: 1.1rem 1rem 1.6rem; }
  .row__actions { margin-left: 0; }
}
