:root {
  --bg: #07060f;
  --bg-2: #0d0a1c;
  --panel: #120d24;
  --panel-2: #1a1336;
  --border: #2b2150;
  --border-2: #3a2c6e;
  --text: #ece9ff;
  --muted: #9a92c4;
  --violet: #a855f7;
  --violet-2: #c084fc;
  --cyan: #22d3ee;
  --gold: #fbbf24;
  --danger: #fb7185;
  --ok: #34d399;
  --radius: 14px;
  --glow: 0 0 30px rgba(168,85,247,.35);
  font-family: 'Rajdhani', system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
.hidden { display: none !important; }
html { scroll-behavior: smooth; }
body {
  background: radial-gradient(1000px 500px at 85% -5%, rgba(168,85,247,.18), transparent 60%),
              radial-gradient(800px 500px at 0% 10%, rgba(34,211,238,.12), transparent 55%),
              var(--bg);
  color: var(--text);
  line-height: 1.55;
  min-height: 100vh;
  overflow-x: hidden;
}
a { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: underline; }

.bg-grid {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(rgba(168,85,247,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(168,85,247,.06) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(circle at 50% 30%, #000 0%, transparent 75%);
}

/* BUTTONS */
.btn {
  font-family: 'Rajdhani', sans-serif; font-weight: 700; letter-spacing: .5px;
  border: none; border-radius: 10px; cursor: pointer;
  padding: 11px 18px; font-size: 15px; transition: transform .12s, box-shadow .2s, background .2s;
}
.btn:active { transform: translateY(0); }
.btn--primary { background: linear-gradient(135deg, var(--violet), var(--cyan)); color: #0a0716; box-shadow: var(--glow); }
.btn--primary:hover { box-shadow: 0 0 42px rgba(34,211,238,.5); }
.btn--ghost { background: transparent; color: var(--text); border: 1px solid var(--border-2); }
.btn--ghost:hover { border-color: var(--violet); color: var(--violet-2); }
.btn--small { padding: 7px 12px; font-size: 13px; }
.btn--danger { background: rgba(251,113,133,.12); color: var(--danger); border: 1px solid rgba(251,113,133,.3); }
.btn--danger:hover { background: rgba(251,113,133,.22); }
.btn--block { width: 100%; padding: 14px; font-size: 16px; }

/* NAV */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 28px;
  background: rgba(7,6,15,.82); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav__brand { display: flex; align-items: center; gap: 10px; }
.nav__logo { color: var(--violet); font-size: 24px; text-shadow: var(--glow); }
.nav__name { font-family: 'Orbitron', sans-serif; font-weight: 900; letter-spacing: 3px; }
.nav__links { display: flex; gap: 22px; }
.nav__links a { color: var(--muted); font-weight: 600; letter-spacing: .5px; }
.nav__links a:hover { color: var(--violet-2); text-decoration: none; }
.nav-user { display: flex; align-items: center; gap: 10px; background: var(--panel); border: 1px solid var(--border-2); padding: 7px 12px; border-radius: 10px; }
.nav-user__avatar { width: 26px; height: 26px; border-radius: 7px; background: linear-gradient(135deg, var(--violet), var(--cyan)); color: #0a0716; display: grid; place-items: center; font-weight: 800; font-family: 'Orbitron'; }
.nav-user span { font-weight: 700; }
.nav-user__logout { background: none; border: none; color: var(--muted); cursor: pointer; font-size: 13px; font-weight: 600; }
.nav-user__logout:hover { color: var(--danger); }

/* HERO */
.hero { position: relative; overflow: hidden; padding: 90px 20px 70px; }
.hero__scan {
  position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(0deg, transparent 0 3px, rgba(168,85,247,.025) 3px 4px);
}
.hero__inner { position: relative; max-width: 820px; margin: 0 auto; text-align: center; }
.hero__tag {
  display: inline-block; font-family: 'Orbitron'; font-size: 11px; letter-spacing: 3px;
  color: var(--cyan); border: 1px solid var(--cyan); border-radius: 30px; padding: 6px 16px; margin-bottom: 22px;
}
.hero__title {
  font-family: 'Orbitron'; font-weight: 900; font-size: clamp(44px, 9vw, 96px);
  letter-spacing: 4px; line-height: 1; text-shadow: 0 0 40px rgba(168,85,247,.5);
}
.hero__title span { color: transparent; background: linear-gradient(135deg, var(--violet), var(--cyan)); -webkit-background-clip: text; background-clip: text; }
.hero__sub { color: var(--muted); font-size: 18px; margin: 18px auto 30px; max-width: 600px; }

.hero__ip {
  display: inline-flex; align-items: center; gap: 18px; margin: 0 auto 34px;
  background: var(--panel); border: 1px solid var(--border-2); border-radius: 14px; padding: 14px 18px;
  box-shadow: var(--glow);
}
.hero__ip-label { display: block; font-size: 11px; letter-spacing: 2px; color: var(--muted); font-weight: 700; }
.hero__ip-value { font-family: 'Orbitron'; font-size: 17px; color: var(--cyan); }

.hero__stats { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.stat { background: var(--panel); border: 1px solid var(--border); border-radius: 12px; padding: 14px 22px; min-width: 110px; }
.stat__num { display: block; font-family: 'Orbitron'; font-size: 22px; color: var(--violet-2); }
.stat__lbl { font-size: 12px; color: var(--muted); letter-spacing: 1px; text-transform: uppercase; }

/* SECTIONS */
.section { max-width: 1100px; margin: 0 auto; padding: 70px 24px; }
.section--alt { background: linear-gradient(180deg, transparent, rgba(168,85,247,.04), transparent); }
.section__head { text-align: center; margin-bottom: 30px; }
.section__kicker { display: inline-block; font-family: 'Orbitron'; font-size: 11px; letter-spacing: 3px; color: var(--violet-2); border: 1px solid var(--border-2); border-radius: 30px; padding: 5px 14px; }
.section__title { font-family: 'Orbitron'; font-weight: 700; font-size: clamp(24px, 4vw, 38px); margin: 14px 0 6px; }
.section__date { color: var(--muted); font-size: 15px; }

.note {
  max-width: 800px; margin: 0 auto 26px; padding: 14px 18px; border-left: 3px solid var(--gold);
  background: rgba(251,191,36,.08); border-radius: 10px; color: #fbe6b4; font-size: 15px;
}

/* REGULAMIN */
.reg { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 18px; }
.reg__card {
  position: relative; background: var(--panel); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px 22px 22px; overflow: hidden;
  transition: border-color .2s, transform .2s;
}
.reg__card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: linear-gradient(var(--violet), var(--cyan)); }
.reg__card:hover { border-color: var(--violet); transform: translateY(-3px); }
.reg__num { font-family: 'Orbitron'; font-size: 30px; font-weight: 900; color: transparent; -webkit-text-stroke: 1px var(--violet-2); margin-bottom: 6px; }
.reg__card h3 { font-family: 'Orbitron'; font-size: 17px; margin-bottom: 10px; color: var(--text); }
.reg__card ul { list-style: none; }
.reg__card li { color: var(--muted); font-size: 14.5px; padding: 5px 0 5px 18px; position: relative; }
.reg__card li::before { content: "▸"; position: absolute; left: 0; color: var(--cyan); }

/* SHOP */
.shop-banner {
  display: flex; align-items: center; gap: 16px; max-width: 760px; margin: 0 auto 30px;
  background: linear-gradient(90deg, rgba(251,191,36,.12), var(--panel)); border: 1px solid rgba(251,191,36,.3);
  border-radius: var(--radius); padding: 18px 20px;
}
.shop-banner__icon { font-size: 28px; }
.shop-banner h3 { font-family: 'Orbitron'; font-size: 17px; }
.shop-banner p { color: var(--muted); font-size: 14px; margin-top: 3px; }
.shop-banner code { background: var(--bg-2); border: 1px solid var(--border); padding: 2px 8px; border-radius: 6px; color: var(--cyan); font-family: 'Orbitron'; }

.ranks { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.rank {
  position: relative; background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px; transition: border-color .2s, transform .2s; overflow: hidden;
}
.rank:hover { border-color: var(--violet); transform: translateY(-3px); }
.rank__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.rank__top h3 { font-family: 'Orbitron'; font-size: 20px; }
.rank__price { font-family: 'Orbitron'; font-weight: 700; color: var(--violet-2); font-size: 17px; }
.rank p { color: var(--muted); font-size: 14px; margin-bottom: 16px; }
.rank__foot { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--border); padding-top: 12px; font-size: 13px; color: var(--muted); }
.rank__foot code { background: var(--bg-2); border: 1px solid var(--border); padding: 3px 9px; border-radius: 6px; color: var(--cyan); font-family: 'Orbitron'; }
.rank--popular { border-color: rgba(251,191,36,.4); }
.rank--top { border-color: rgba(34,211,238,.4); }
.rank__tag { position: absolute; top: 0; right: 0; background: var(--gold); color: #0a0716; font-size: 10px; font-weight: 800; letter-spacing: 1px; padding: 4px 12px; border-bottom-left-radius: 10px; }
.rank__tag--top { background: var(--cyan); }

/* REPORT */
.report { max-width: 720px; margin: 0 auto; background: var(--panel); border: 1px solid var(--border); border-radius: 18px; padding: 26px; box-shadow: var(--glow); }
.report__lock { text-align: center; padding: 30px 10px; }
.report__lock-icon { font-size: 40px; margin-bottom: 10px; }
.report__lock h3 { font-family: 'Orbitron'; margin-bottom: 8px; }
.report__lock p { color: var(--muted); max-width: 420px; margin: 0 auto 18px; }
.report__user { display: flex; justify-content: space-between; align-items: center; background: var(--bg-2); border: 1px solid var(--border); border-radius: 12px; padding: 12px 16px; margin-bottom: 18px; }
.report__user-lbl { display: block; font-size: 12px; color: var(--muted); }
.report__user-name { font-weight: 700; font-family: 'Orbitron'; }

.tabs { display: flex; gap: 8px; background: var(--bg-2); border: 1px solid var(--border); border-radius: 12px; padding: 5px; margin-bottom: 20px; }
.tab { flex: 1; padding: 10px; background: transparent; border: none; color: var(--muted); border-radius: 9px; cursor: pointer; font-weight: 700; font-family: 'Rajdhani'; font-size: 14px; }
.tab--active { background: linear-gradient(135deg, var(--violet), var(--cyan)); color: #0a0716; }

.form { display: flex; flex-direction: column; gap: 16px; }
.form label { display: block; font-weight: 600; color: var(--text); font-size: 14px; }
.form input, .form select, .form textarea {
  width: 100%; margin-top: 6px; padding: 11px 13px; border-radius: 10px;
  background: var(--bg-2); border: 1px solid var(--border); color: var(--text); font-family: inherit; font-size: 15px;
}
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--violet); }
.form__error { color: var(--danger); font-size: 13px; text-align: center; }

.dropzone { margin-top: 6px; border: 2px dashed var(--border-2); border-radius: 12px; padding: 22px; text-align: center; cursor: pointer; transition: border-color .2s; }
.dropzone:hover { border-color: var(--violet); }
#file-drop-text span { display: block; color: var(--text); font-weight: 600; }
#file-drop-text small { color: var(--muted); }
#file-selected-info { display: flex; align-items: center; justify-content: center; gap: 8px; color: var(--ok); font-weight: 700; }

.report__success { text-align: center; padding: 30px 10px; }
.report__success-icon { width: 64px; height: 64px; margin: 0 auto 14px; border-radius: 50%; background: rgba(52,211,153,.15); color: var(--ok); display: grid; place-items: center; font-size: 30px; }
.report__success h3 { font-family: 'Orbitron'; margin-bottom: 6px; }
.report__success p { color: var(--muted); margin-bottom: 16px; }

.reports__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.reports__head h3 { font-family: 'Orbitron'; }
.reports__list { display: flex; flex-direction: column; gap: 10px; }
.reports__loading, .reports__empty { text-align: center; color: var(--muted); padding: 24px; background: var(--bg-2); border: 1px solid var(--border); border-radius: 12px; }

.rep-card { background: var(--bg-2); border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; cursor: pointer; transition: border-color .2s; }
.rep-card:hover { border-color: var(--violet); }
.rep-card__top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.rep-card__id { font-family: 'Orbitron'; font-size: 12px; color: var(--cyan); }
.rep-card__date { font-size: 12px; color: var(--muted); }
.rep-card__title { font-weight: 700; margin: 4px 0 2px; }
.rep-card__player { font-size: 13px; color: var(--muted); }
.rep-badge { display: inline-flex; align-items: center; gap: 5px; padding: 4px 11px; border-radius: 20px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.rep-badge--nie { background: rgba(251,191,36,.12); color: var(--gold); border: 1px solid rgba(251,191,36,.35); }
.rep-badge--tra { background: rgba(34,211,238,.12); color: var(--cyan); border: 1px solid rgba(34,211,238,.35); }
.rep-badge--roz { background: rgba(52,211,153,.12); color: var(--ok); border: 1px solid rgba(52,211,153,.35); }

/* MODAL */
.modal { position: fixed; inset: 0; z-index: 100; display: none; align-items: center; justify-content: center; padding: 16px; }
.modal.flex { display: flex; }
.modal.hidden { display: none; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(4,3,10,.78); backdrop-filter: blur(4px); }
.modal__box { position: relative; width: min(560px, 94vw); max-height: 90vh; overflow-y: auto; background: var(--panel); border: 1px solid var(--border-2); border-radius: 18px; padding: 28px; box-shadow: var(--glow); }
.modal__close { position: absolute; top: 16px; right: 18px; background: none; border: none; color: var(--muted); font-size: 18px; cursor: pointer; }
.modal__close:hover { color: var(--danger); }
.modal__box h3 { font-family: 'Orbitron'; margin-bottom: 4px; }
.modal__sub { color: var(--muted); font-size: 13px; margin-bottom: 16px; }
.modal__id { font-family: 'Orbitron'; font-size: 12px; color: var(--cyan); }
.modal__date { font-size: 12px; color: var(--muted); }
.modal__row { margin-top: 14px; }
.modal__row-lbl { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); margin-bottom: 5px; }
.modal__val { background: var(--bg-2); border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; font-size: 14px; }
.modal__desc { background: var(--bg-2); border: 1px solid var(--border); border-radius: 10px; padding: 12px; font-size: 14px; white-space: pre-wrap; line-height: 1.6; }
.modal__media { margin-top: 14px; }
.modal__media img, .modal__media video { max-height: 260px; border-radius: 10px; border: 1px solid var(--border); }
#modal-report-status-badge { display: inline-flex; }

/* FOOTER */
.footer { border-top: 1px solid var(--border); padding: 40px 24px; text-align: center; color: var(--muted); display: flex; flex-direction: column; gap: 10px; align-items: center; }
.footer__brand { font-family: 'Orbitron'; font-weight: 900; letter-spacing: 3px; color: var(--text); }
.footer__small { font-size: 12px; color: #6b6390; }

/* TOAST */
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); background: var(--panel-2); border: 1px solid var(--cyan); color: var(--text); padding: 12px 20px; border-radius: 10px; z-index: 200; font-weight: 600; box-shadow: var(--glow); }

/* SCROLL PROGRESS */
.progress { position: fixed; top: 0; left: 0; height: 3px; width: 0%; z-index: 200;
  background: linear-gradient(90deg, var(--violet), var(--cyan)); box-shadow: var(--glow); }

/* ANIMATIONS */
@keyframes gradientShift { 0% { background-position: 0% 50%; } 100% { background-position: 200% 50%; } }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes orbFloat {
  0% { transform: translate(0,0) scale(1); }
  33% { transform: translate(34px,-46px) scale(1.12); }
  66% { transform: translate(-22px,24px) scale(.94); }
  100% { transform: translate(0,0) scale(1); }
}
@keyframes shimmer { 0% { background-position: -200% 0; } 100% { background-position: 200% 0; } }
@keyframes spinSlow { to { transform: rotate(360deg); } }

.hero__orbs { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.orb { display: block; position: absolute; border-radius: 50%; filter: blur(42px); opacity: .45; animation: orbFloat 16s ease-in-out infinite; }
.orb--1 { width: 320px; height: 320px; background: radial-gradient(circle, var(--violet), transparent 70%); top: -80px; left: 8%; }
.orb--2 { width: 280px; height: 280px; background: radial-gradient(circle, var(--cyan), transparent 70%); bottom: -60px; right: 6%; animation-delay: -5s; }
.orb--3 { width: 220px; height: 220px; background: radial-gradient(circle, #f0abfc, transparent 70%); top: 38%; left: 56%; animation-delay: -9s; }

.hero__title span {
  background: linear-gradient(90deg, var(--violet), var(--cyan), var(--violet));
  background-size: 200% auto; -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: gradientShift 5s linear infinite;
}

.btn--primary { position: relative; overflow: hidden; }
.btn--primary::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.35) 50%, transparent 70%);
  background-size: 220% 100%; animation: shimmer 3.8s linear infinite;
}

.reveal { opacity: 0; transform: translateY(30px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* FEATURES */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.feature {
  position: relative; background: var(--panel); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 26px 24px; overflow: hidden;
  transition: transform .25s, border-color .25s, box-shadow .25s;
}
.feature::before { content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(168,85,247,.14), transparent 60%); opacity: 0; transition: opacity .25s; }
.feature:hover { transform: translateY(-6px); border-color: var(--violet); box-shadow: var(--glow); }
.feature:hover::before { opacity: 1; }
.feature__icon { font-size: 32px; display: inline-block; animation: floaty 4.5s ease-in-out infinite; margin-bottom: 12px; }
.feature h3 { font-family: 'Orbitron'; font-size: 17px; margin-bottom: 8px; }
.feature p { color: var(--muted); font-size: 14.5px; }

/* STEPS */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.step { position: relative; background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px 22px; transition: border-color .25s, transform .25s; }
.step:hover { border-color: var(--cyan); transform: translateY(-4px); }
.step__num { font-family: 'Orbitron'; font-size: 36px; font-weight: 900; color: transparent; -webkit-text-stroke: 1px var(--cyan); margin-bottom: 8px; }
.step h3 { font-family: 'Orbitron'; font-size: 16px; margin-bottom: 6px; }
.step p { color: var(--muted); font-size: 14px; }

/* CTA */
.cta { text-align: center; background: linear-gradient(135deg, rgba(168,85,247,.12), rgba(34,211,238,.1));
  border: 1px solid var(--border-2); border-radius: 20px; padding: 44px 24px; }
.cta h2 { font-family: 'Orbitron'; font-size: clamp(22px, 4vw, 34px); margin-bottom: 10px; }
.cta p { color: var(--muted); max-width: 560px; margin: 0 auto 22px; }

.section__sub { color: var(--muted); max-width: 660px; margin: 0 auto 30px; text-align: center; font-size: 16px; }

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq details { background: var(--panel); border: 1px solid var(--border); border-radius: 12px; padding: 0 18px; transition: border-color .2s; }
.faq details[open] { border-color: var(--violet); }
.faq summary { cursor: pointer; padding: 16px 0; font-weight: 700; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--violet-2); font-size: 22px; font-weight: 700; }
.faq details[open] summary::after { content: "−"; }
.faq__body { color: var(--muted); padding: 0 0 16px; font-size: 14.5px; }

/* NEWS */
.news { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.news__card { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px 22px; border-left: 3px solid var(--violet); transition: border-color .2s, transform .2s; }
.news__card:hover { border-color: var(--cyan); transform: translateY(-3px); }
.news__date { font-size: 12px; color: var(--cyan); margin-bottom: 6px; font-family: 'Orbitron'; }
.news__card h3 { font-family: 'Orbitron'; font-size: 17px; margin-bottom: 8px; }
.news__card p { color: var(--muted); font-size: 14.5px; white-space: pre-wrap; }
.news__author { margin-top: 10px; font-size: 12px; color: var(--muted); }
.news-admin { max-width: 620px; margin: 30px auto 0; background: var(--panel); border: 1px solid var(--border-2); border-radius: var(--radius); padding: 24px; }
.news-admin h3 { font-family: 'Orbitron'; margin-bottom: 14px; }
.news-admin__hint { font-size: 12px; color: var(--muted); font-family: 'Rajdhani'; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
  * { animation: none !important; }
}

@media (max-width: 640px) {
  .nav__links { display: none; }
  .hero__ip { flex-direction: column; gap: 10px; }
}
