/* ==========================================
   BojufkaRP - styles
   ========================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&family=Space+Grotesk:wght@500;600;700&family=IBM+Plex+Mono:wght@400;500;600&display=swap');

:root {
  --bg-0: #0a0610;
  --bg-1: #140a1f;
  --bg-2: #1c0f2b;
  --bg-card: rgba(28, 15, 43, 0.6);
  --bg-card-solid: #1c0f2b;

  --purple-50: #f5ecff;
  --purple-200: #d4b3ff;
  --purple-400: #a855f7;
  --purple-500: #9333ea;
  --purple-600: #7e22ce;
  --purple-700: #6b21a8;
  --purple-900: #3b0764;

  --magenta: #d946ef;
  --magenta-glow: rgba(217, 70, 239, 0.5);

  --text-primary: #ffffff;
  --text-secondary: #c4b5d4;
  --text-muted: #7a6d8c;

  --border-soft: rgba(168, 85, 247, 0.18);
  --border-medium: rgba(168, 85, 247, 0.35);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-pill: 999px;

  --shadow-glow: 0 0 40px rgba(168, 85, 247, 0.25);
  --shadow-card: 0 20px 60px rgba(0, 0, 0, 0.4);

  --container: 1280px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  background: var(--bg-0);
  color: var(--text-primary);
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body {
  background:
    radial-gradient(ellipse 80% 60% at 90% 10%, rgba(147, 51, 234, 0.35), transparent 60%),
    radial-gradient(ellipse 70% 50% at 10% 90%, rgba(217, 70, 239, 0.18), transparent 60%),
    radial-gradient(ellipse 100% 60% at 50% 50%, rgba(59, 7, 100, 0.4), transparent 70%),
    var(--bg-0);
  background-attachment: fixed;
  min-height: 100vh;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.4'/%3E%3C/svg%3E");
  opacity: 0.04;
  pointer-events: none;
  z-index: 1;
  mix-blend-mode: overlay;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
code { background: rgba(168,85,247,0.15); padding: 2px 8px; border-radius: 4px; font-family: 'IBM Plex Mono', monospace; font-size: 0.9em; }

/* Nagłówki - Space Grotesk dla charakteru */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  letter-spacing: -0.015em;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
  position: relative;
  z-index: 2;
}

/* NAV */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(10, 6, 16, 0.7);
  border-bottom: 1px solid var(--border-soft);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 32px;
  max-width: var(--container);
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
}

.logo-mark {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--purple-500), var(--magenta));
  display: grid;
  place-items: center;
  font-weight: 900;
  color: white;
  box-shadow: 0 0 24px var(--magenta-glow);
}

.logo-mark-img {
  width: 64px;
  height: 64px;
  background: transparent !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  object-fit: contain;
  padding: 0;
}

/* Logo "poziome" (zawiera już napis BojufkaRP) - nie pokazujemy obok tekstu */
.logo-mark-wide {
  width: auto;
  height: 56px;
  max-height: 56px;
  max-width: 260px;
}

.nav-links {
  display: flex;
  gap: 36px;
  list-style: none;
  align-items: center;
}

.nav-links a {
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.95rem;
  position: relative;
  padding: 6px 0;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--purple-200); }

.nav-links a.active::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 2px;
  background: linear-gradient(90deg, var(--purple-400), var(--magenta));
  border-radius: 2px;
}

/* HERO */
.hero {
  padding: 80px 0 100px;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: var(--radius-pill);
  background: rgba(147, 51, 234, 0.15);
  border: 1.5px solid var(--purple-500);
  color: var(--purple-200);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 28px;
  animation: float 4s ease-in-out infinite;
}

.badge::before {
  content: '';
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--magenta);
  box-shadow: 0 0 10px var(--magenta);
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.3); }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

.hero h1 {
  font-size: clamp(2.5rem, 5.5vw, 4.5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}

.hero h1 .accent {
  background: linear-gradient(135deg, var(--magenta), var(--purple-400));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p.lead {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.7;
  max-width: 540px;
  margin-bottom: 36px;
}

.hero-cta {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 32px;
  border-radius: var(--radius-pill);
  font-family: inherit;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  border: none;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: linear-gradient(135deg, var(--purple-500), var(--magenta));
  color: white;
  box-shadow: 0 8px 24px rgba(147, 51, 234, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(217, 70, 239, 0.5);
}

.btn-icon {
  width: 52px; height: 52px;
  padding: 0;
  border-radius: 14px;
  background: transparent;
  border: 1.5px solid var(--border-medium);
  color: var(--purple-200);
  font-size: 1.2rem;
}
.btn-icon:hover {
  border-color: var(--purple-400);
  background: rgba(168, 85, 247, 0.1);
}

.hero-visual {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card), 0 0 80px rgba(147, 51, 234, 0.25);
  border: 1px solid var(--border-medium);
}

.hero-visual img,
.hero-visual iframe,
.hero-placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: none;
  display: block;
}

.hero-placeholder {
  background: var(--bg-card-solid);
  display: grid;
  place-items: center;
}

.dot-pattern {
  position: absolute;
  width: 140px;
  height: 140px;
  background-image: radial-gradient(var(--purple-400) 1.5px, transparent 1.5px);
  background-size: 14px 14px;
  opacity: 0.5;
  z-index: 1;
}
.dot-pattern.tl { top: 60px; left: -20px; }
.dot-pattern.br { bottom: 60px; right: -20px; }

/* SEKCJE */
.section {
  padding: 80px 0;
  position: relative;
}

.section-head {
  margin-bottom: 48px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.section-head .eyebrow {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.8rem;
  color: var(--purple-400);
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.section-head h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.section-head h2 .accent {
  background: linear-gradient(135deg, var(--magenta), var(--purple-400));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* STATS BAR */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border-medium);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-medium);
}

.stats-bar-3 {
  grid-template-columns: repeat(3, 1fr);
}

.stat-item {
  background: var(--bg-card-solid);
  padding: 32px 24px;
  text-align: center;
  transition: background 0.3s;
}

.stat-item:hover {
  background: linear-gradient(135deg, rgba(147, 51, 234, 0.15), rgba(217, 70, 239, 0.05));
}

.stat-item .value {
  font-size: 2.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, white, var(--purple-200));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: -0.02em;
  display: block;
  margin-bottom: 6px;
}

.stat-item .label {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
}

.stat-item .live-dot {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #4ade80;
  margin-right: 6px;
  box-shadow: 0 0 10px #4ade80;
  animation: pulse 1.5s ease-in-out infinite;
}

.stat-item .live-dot.offline {
  background: #ef4444;
  box-shadow: 0 0 10px #ef4444;
  animation: none;
}

/* FEATURES */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 32px;
  position: relative;
  overflow: hidden;
  transition: all 0.3s;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--purple-400), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-medium);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3), 0 0 40px rgba(147, 51, 234, 0.15);
}

.feature-card:hover::before { opacity: 1; }

.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(147, 51, 234, 0.2), rgba(217, 70, 239, 0.15));
  border: 1px solid var(--border-medium);
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
}

.feature-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* TOPKA */
.topka-tabs {
  display: flex;
  gap: 8px;
  background: var(--bg-card-solid);
  padding: 6px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-soft);
  width: fit-content;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.topka-tab {
  padding: 10px 22px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-family: inherit;
  transition: all 0.2s;
  display: inline-block;
  text-decoration: none;
}

.topka-tab:hover {
  color: var(--purple-200);
}

.topka-tab.active {
  background: linear-gradient(135deg, var(--purple-500), var(--magenta));
  color: white;
}

.topka-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.topka-row {
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 16px 24px;
  transition: all 0.25s;
}

.topka-row:hover {
  border-color: var(--border-medium);
  transform: translateX(4px);
}

.topka-row.top-1 {
  background: linear-gradient(135deg, rgba(217, 70, 239, 0.15), rgba(147, 51, 234, 0.05));
  border-color: var(--magenta);
  box-shadow: 0 0 30px rgba(217, 70, 239, 0.2);
}
.topka-row.top-2 { border-color: rgba(168, 85, 247, 0.5); }
.topka-row.top-3 { border-color: rgba(168, 85, 247, 0.35); }

.topka-rank {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text-muted);
}

.topka-row.top-1 .topka-rank { color: var(--magenta); }
.topka-row.top-2 .topka-rank,
.topka-row.top-3 .topka-rank { color: var(--purple-400); }

.topka-player {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.topka-avatar {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--purple-700), var(--magenta));
  display: grid;
  place-items: center;
  font-weight: 800;
  color: white;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.topka-avatar-img {
  object-fit: cover;
  background: var(--bg-card-solid);
  border: 2px solid var(--border-medium);
  transition: border-color 0.2s, transform 0.2s;
}

a:hover .topka-avatar-img {
  border-color: var(--magenta);
  transform: scale(1.05);
}

.topka-player > div:not(.topka-avatar) {
  min-width: 0;
  flex: 1;
}

.topka-name {
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.topka-name-link {
  color: var(--text-primary);
  transition: color 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.topka-name-link::after {
  content: '↗';
  font-size: 0.75em;
  color: var(--purple-400);
  opacity: 0;
  transition: opacity 0.2s;
}

.topka-name-link:hover {
  color: var(--magenta);
}

.topka-name-link:hover::after {
  opacity: 1;
}

.topka-meta {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-family: 'Inter', sans-serif;
}

.topka-value {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 1.2rem;
  font-weight: 700;
  background: linear-gradient(135deg, white, var(--purple-200));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  white-space: nowrap;
}

/* SHOP */
.shop-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.product-card {
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 28px;
  position: relative;
  transition: all 0.3s;
  overflow: hidden;
}

.product-card.featured {
  border-color: var(--purple-500);
  box-shadow: 0 0 40px rgba(147, 51, 234, 0.2);
}

.product-card.featured::before {
  content: 'POLECANE';
  position: absolute;
  top: 16px; right: 16px;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  color: var(--magenta);
  padding: 4px 10px;
  background: rgba(217, 70, 239, 0.1);
  border-radius: var(--radius-pill);
  border: 1px solid var(--magenta);
}

.product-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-medium);
}

.product-category {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--purple-200);
  text-transform: uppercase;
  margin-bottom: 14px;
  padding: 4px 10px;
  background: rgba(147, 51, 234, 0.15);
  border-radius: var(--radius-pill);
}

.product-name {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.product-desc {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.55;
  margin-bottom: 28px;
  min-height: 65px;
}

.product-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.product-price {
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.product-price span {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 600;
}

.btn-buy {
  padding: 12px 22px;
  font-size: 0.85rem;
}

/* STATYSTYKI */
.chart-card {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin-bottom: 24px;
}

.chart-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 24px;
}

#online-chart {
  width: 100%;
  height: 280px;
}

/* REGULAMIN */
.rules-content {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 48px;
}

.rules-content h2 {
  margin: 32px 0 16px;
  font-size: 1.5rem;
  color: var(--purple-200);
}
.rules-content h2:first-child { margin-top: 0; }

.rules-content p, .rules-content li {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 12px;
}

.rules-content ul, .rules-content ol {
  padding-left: 22px;
}

/* FOOTER */
.footer {
  margin-top: 80px;
  border-top: 1px solid var(--border-soft);
  padding: 48px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 32px;
}

.footer-about p {
  color: var(--text-muted);
  margin: 16px 0;
  max-width: 400px;
  line-height: 1.6;
}

.footer h4 {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
  color: var(--purple-200);
}

.footer ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer ul a { color: var(--text-secondary); transition: color 0.2s; font-size: 0.95rem; }
.footer ul a:hover { color: white; }

.footer-bottom {
  border-top: 1px solid var(--border-soft);
  padding-top: 24px;
  color: var(--text-muted);
  font-size: 0.85rem;
  text-align: center;
}

/* ANIMATIONS */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  animation: reveal 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
.reveal-1 { animation-delay: 0.1s; }
.reveal-2 { animation-delay: 0.25s; }
.reveal-3 { animation-delay: 0.4s; }
.reveal-4 { animation-delay: 0.55s; }

@keyframes reveal {
  to { opacity: 1; transform: translateY(0); }
}

/* MOBILE */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero { padding: 40px 0 60px; }
  .stats-bar { grid-template-columns: repeat(2, 1fr); }
  .stats-bar-3 { grid-template-columns: 1fr; }
  .features, .shop-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .topka-row {
    grid-template-columns: 40px minmax(0, 1fr) auto;
    gap: 10px;
    padding: 12px 14px;
  }
  .topka-rank { font-size: 1.2rem; }
  .topka-player { gap: 10px; }
  .topka-avatar { width: 38px; height: 38px; font-size: 0.95rem; }
  .topka-name { font-size: 0.92rem; }
  .topka-meta { font-size: 0.75rem; }
  .topka-value { font-size: 0.95rem; }
  .topka-value strong { display: inline-block; }
  .container { padding: 0 20px; }
  .nav-inner { padding: 14px 20px; }
  .rules-content { padding: 24px; }
  .topka-tabs {
    width: auto !important;
    max-width: 100% !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 5px !important;
    gap: 4px !important;
    border-radius: 14px;
    mask-image: linear-gradient(to right, black 92%, transparent);
    -webkit-mask-image: linear-gradient(to right, black 92%, transparent);
  }
  .topka-tabs::-webkit-scrollbar { display: none; }
  .topka-tab {
    flex-shrink: 0 !important;
    font-size: 0.78rem !important;
    padding: 8px 14px !important;
    border-radius: 10px !important;
    white-space: nowrap !important;
  }
  .topka-tab .icon {
    width: 14px;
    height: 14px;
  }
}

.loading {
  display: grid;
  place-items: center;
  padding: 60px;
  color: var(--text-muted);
}

/* ==========================================
   MAPA GTA V
   ========================================== */
.gta-map {
  width: 100%;
  height: 75vh;
  min-height: 600px;
  background: #13a4cb;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.leaflet-container {
  background: #13a4cb !important;
  font-family: 'Inter', sans-serif !important;
}

.leaflet-control-zoom a {
  background: var(--bg-card-solid) !important;
  color: var(--text-primary) !important;
  border: 1px solid var(--border-medium) !important;
}
.leaflet-control-zoom a:hover {
  background: var(--purple-700) !important;
}

.leaflet-popup-content-wrapper {
  background: var(--bg-card-solid) !important;
  color: var(--text-primary) !important;
  border: 1px solid var(--border-medium) !important;
  border-radius: var(--radius-md) !important;
  box-shadow: 0 20px 50px rgba(0,0,0,0.6) !important;
}
.leaflet-popup-content {
  margin: 0 !important;
  padding: 0 !important;
  font-family: 'Inter', sans-serif !important;
}
.leaflet-popup-tip {
  background: var(--bg-card-solid) !important;
  border: 1px solid var(--border-medium) !important;
}
.leaflet-popup-close-button {
  color: var(--text-muted) !important;
  font-size: 18px !important;
  padding: 8px 10px !important;
}

.popup-head {
  padding: 14px 16px;
  border-bottom: 2px solid var(--border-medium);
}
.popup-type {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 4px;
}
.popup-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: white;
}
.popup-empty {
  padding: 14px 16px;
  color: var(--text-muted);
  font-style: italic;
}
.popup-row {
  padding: 6px 16px;
  font-size: 0.9rem;
}
.popup-row:first-of-type { padding-top: 12px; }
.popup-row:last-of-type { padding-bottom: 12px; }
.popup-label {
  color: var(--text-muted);
  margin-right: 6px;
}
.popup-coords {
  padding: 8px 16px;
  border-top: 1px solid var(--border-soft);
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.zone-label {
  background: rgba(10, 6, 16, 0.85) !important;
  border: 1px solid var(--border-medium) !important;
  color: var(--text-primary) !important;
  font-size: 0.8rem !important;
  font-weight: 600 !important;
  padding: 4px 10px !important;
  border-radius: 8px !important;
  box-shadow: 0 4px 12px rgba(0,0,0,0.5) !important;
  white-space: nowrap;
}
.zone-label::before { display: none !important; }
.zone-label-owned { border-color: var(--magenta) !important; }
.zone-label-free { opacity: 0.7; }

.map-legend {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  padding: 14px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  margin-bottom: 16px;
  font-size: 0.9rem;
  color: var(--text-secondary);
}
.map-legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
}
.map-dot {
  display: inline-block;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid;
}
.map-dot-org-owned     { background: rgba(239,68,68,0.35);  border-color: #ef4444; }
.map-dot-player-owned  { background: rgba(59,130,246,0.35); border-color: #3b82f6; }
.map-dot-free          { background: rgba(122,109,140,0.15); border-color: #7a6d8c; }

@media (max-width: 768px) {
  .gta-map { height: 60vh; min-height: 400px; }
  .map-legend { gap: 12px; font-size: 0.8rem; }
}

/* ==========================================
   SVG IKONY (lucide-style)
   ========================================== */
.icon {
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
}

/* Ikona w przyciskach btn-icon - centruje */
.btn-icon .icon {
  width: 22px;
  height: 22px;
}

/* Ikona w btn-primary obok tekstu */
.btn-primary .icon {
  width: 16px;
  height: 16px;
  margin-right: -2px;
}

/* Topka tabs */
.topka-tab .icon {
  width: 16px;
  height: 16px;
  margin-right: 4px;
  vertical-align: -3px;
  opacity: 0.85;
}

.topka-tab.active .icon {
  opacity: 1;
}

/* Feature card icon */
.feature-icon .icon {
  width: 28px;
  height: 28px;
  color: var(--magenta);
}

/* Mała ikona inline (przy h3) */
.icon-inline {
  vertical-align: -3px;
  margin-right: 4px;
  color: var(--purple-400);
}

/* Avatar org */
.topka-avatar .icon {
  color: white;
}

.spinner {
  width: 36px;
  height: 36px;
  border: 3px solid var(--border-soft);
  border-top-color: var(--purple-400);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ==========================================
   REGULAMIN - nowy styl
   ========================================== */

/* Pasek z 3 info na górze */
.rules-info {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 32px 0 40px;
}
.rules-info-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
}
.rules-info-item .icon {
  color: var(--magenta);
  flex-shrink: 0;
}
.rules-info-item div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.rules-info-item strong {
  font-size: 0.95rem;
  color: var(--text-primary);
}
.rules-info-item span {
  font-size: 0.83rem;
  color: var(--text-muted);
  line-height: 1.4;
}
@media (max-width: 768px) {
  .rules-info { grid-template-columns: 1fr; }
}

/* Accordion */
.rules-accordion {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.rule-section {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 0.2s;
}

.rule-section[open] {
  border-color: rgba(168, 85, 247, 0.3);
  box-shadow: 0 8px 24px rgba(168, 85, 247, 0.06);
}

.rule-section summary {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 24px;
  cursor: pointer;
  list-style: none;
  user-select: none;
  transition: background 0.15s;
}
.rule-section summary::-webkit-details-marker { display: none; }

.rule-section summary:hover {
  background: rgba(168, 85, 247, 0.05);
}

.rule-num {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--purple-300);
  background: rgba(168, 85, 247, 0.15);
  padding: 4px 10px;
  border-radius: 6px;
  letter-spacing: 0.05em;
}

.rule-title {
  flex: 1;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
}

.rule-toggle {
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--purple-400);
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(168, 85, 247, 0.1);
  transition: transform 0.25s, background 0.15s;
}

.rule-section[open] .rule-toggle {
  transform: rotate(45deg);
  background: rgba(217, 70, 239, 0.2);
  color: var(--magenta);
}

.rule-body {
  padding: 8px 28px 28px;
  border-top: 1px solid var(--border-soft);
  margin-top: 0;
  animation: ruleSlide 0.3s ease;
}

@keyframes ruleSlide {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

.rules-list {
  list-style: none;
  counter-reset: rule-counter;
  padding: 0;
  margin: 16px 0;
}

.rules-list li {
  counter-increment: rule-counter;
  position: relative;
  padding: 12px 0 12px 44px;
  line-height: 1.6;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-soft);
}

.rules-list li:last-child {
  border-bottom: none;
}

.rules-list li::before {
  content: counter(rule-counter);
  position: absolute;
  left: 0;
  top: 12px;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  background: rgba(168, 85, 247, 0.1);
  color: var(--purple-300);
  border-radius: 50%;
  font-size: 0.78rem;
  font-weight: 700;
  font-family: 'IBM Plex Mono', monospace;
}

.rules-list li strong { color: var(--text-primary); }

.rules-list-bullets {
  list-style: none;
  padding: 0;
  margin: 12px 0;
}
.rules-list-bullets li {
  position: relative;
  padding: 8px 0 8px 24px;
  color: var(--text-secondary);
}
.rules-list-bullets li::before {
  content: '▸';
  position: absolute;
  left: 4px;
  color: var(--magenta);
  font-weight: 700;
}

.rule-subhead {
  margin: 32px 0 14px;
  font-size: 1rem;
  color: var(--purple-200);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
}

/* Tagi inline */
.tag {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 12px;
  font-size: 0.78rem;
  font-weight: 700;
  font-family: 'IBM Plex Mono', monospace;
  letter-spacing: 0.02em;
}
.tag-danger { background: rgba(239, 68, 68, 0.15); color: #f87171; border: 1px solid rgba(239, 68, 68, 0.3); }
.tag-warning { background: rgba(251, 191, 36, 0.15); color: #fbbf24; border: 1px solid rgba(251, 191, 36, 0.3); }
.tag-info { background: rgba(59, 130, 246, 0.15); color: #60a5fa; border: 1px solid rgba(59, 130, 246, 0.3); }

/* Callouty */
.rule-callout {
  margin: 20px 0;
  padding: 16px 20px;
  border-radius: var(--radius-md);
  border-left: 4px solid;
}
.rule-callout strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1rem;
  color: var(--text-primary);
}
.rule-callout p { margin: 4px 0; color: var(--text-secondary); }
.rule-callout ul { margin: 8px 0; padding-left: 20px; color: var(--text-secondary); }
.rule-callout ul li { padding: 4px 0; }

.rule-callout-warning {
  background: rgba(251, 191, 36, 0.06);
  border-color: #fbbf24;
}
.rule-callout-danger {
  background: rgba(239, 68, 68, 0.06);
  border-color: #ef4444;
}
.rule-callout-info {
  background: rgba(168, 85, 247, 0.08);
  border-color: var(--purple-400);
}

/* Lista dozwolonych przedmiotów */
.rule-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 10px;
  margin: 14px 0;
}
.rule-item-allowed {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: rgba(74, 222, 128, 0.06);
  border: 1px solid rgba(74, 222, 128, 0.2);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 0.9rem;
  position: relative;
}
.rule-item-allowed .icon { color: #4ade80; flex-shrink: 0; }
.rule-item-note {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 4px;
  width: 100%;
}

/* Threat levels */
.threat-levels {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin: 14px 0;
}
.threat-level {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  background: var(--bg-card-solid);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
}
.threat-level strong { flex: 1; }
.threat-level span:last-child {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.85rem;
  color: var(--purple-200);
}
.threat-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 12px currentColor;
}
.threat-green .threat-dot   { background: #4ade80; color: #4ade80; }
.threat-orange .threat-dot  { background: #fb923c; color: #fb923c; }
.threat-red .threat-dot     { background: #ef4444; color: #ef4444; }
.threat-black .threat-dot   { background: #1e1e1e; color: #6b7280; box-shadow: 0 0 12px #6b7280; }

/* Heists grid */
.heists-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}

.heist-card {
  background: var(--bg-card-solid);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform 0.15s, border-color 0.15s;
}
.heist-card:hover {
  transform: translateY(-2px);
  border-color: rgba(168, 85, 247, 0.4);
}

.heist-card-head {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-soft);
}
.heist-card-head h4 {
  margin: 6px 0 0;
  font-size: 1.05rem;
  color: var(--text-primary);
}

.heist-tier-label {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 2px 8px;
  border-radius: 4px;
  font-family: 'IBM Plex Mono', monospace;
}

.heist-tier-1 .heist-tier-label { background: rgba(74, 222, 128, 0.15); color: #4ade80; }
.heist-tier-2 .heist-tier-label { background: rgba(59, 130, 246, 0.15); color: #60a5fa; }
.heist-tier-3 .heist-tier-label { background: rgba(251, 191, 36, 0.15); color: #fbbf24; }
.heist-tier-4 .heist-tier-label { background: rgba(251, 113, 36, 0.15); color: #fb923c; }
.heist-tier-5 .heist-tier-label { background: rgba(239, 68, 68, 0.15); color: #f87171; }

.heist-tier-1 { border-left: 3px solid #4ade80; }
.heist-tier-2 { border-left: 3px solid #60a5fa; }
.heist-tier-3 { border-left: 3px solid #fbbf24; }
.heist-tier-4 { border-left: 3px solid #fb923c; }
.heist-tier-5 { border-left: 3px solid #f87171; }

.heist-card-body {
  padding: 14px 18px;
  display: grid;
  gap: 8px;
}
.heist-stat {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
}
.heist-stat-label {
  color: var(--text-muted);
  font-size: 0.85rem;
}
.heist-stat strong {
  color: var(--text-primary);
  font-family: 'IBM Plex Mono', monospace;
}
.heist-stat-helmets strong { color: var(--magenta); }

.rules-footer {
  margin-top: 40px;
  padding: 24px;
  text-align: center;
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .rule-section summary { padding: 14px 16px; gap: 10px; }
  .rule-body { padding: 8px 16px 20px; }
  .rule-title { font-size: 1rem; }
  .rules-list li { padding-left: 38px; padding-right: 0; }
  .heists-grid { grid-template-columns: 1fr; }
}

/* ==========================================
   HAMBURGER MENU - mobile
   ========================================== */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  width: 44px;
  height: 44px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
  position: relative;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all 0.25s ease;
  transform-origin: center;
}

.nav-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
  background: var(--magenta);
}
.nav-toggle.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.nav-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
  background: var(--magenta);
}

/* Header drawera (mobile) - z tytułem i przyciskiem X */
.nav-drawer-header {
  display: none;
}

.nav-drawer-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  z-index: 998;
}

.nav-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Domyślnie drawer jest schowany - widoczny tylko na mobile po aktywacji */
.nav-drawer {
  display: none;
}

@media (max-width: 960px) {
  .nav-toggle {
    display: flex;
  }

  /* Ukrywamy desktop nav na mobile */
  .nav-links-desktop {
    display: none !important;
  }

  /* Mobile drawer - sliding z prawej */
  .nav-drawer {
    display: flex;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 280px;
    max-width: 85vw;
    background: var(--bg-card-solid);
    border-left: 1px solid rgba(168, 85, 247, 0.3);
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    padding: 0 0 32px;
    gap: 0;
    margin: 0;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 999;
    box-shadow: -20px 0 40px rgba(0, 0, 0, 0.5);
    overflow-y: auto;
  }

  .nav-drawer.active {
    transform: translateX(0);
  }

  /* Header drawera z tytułem i przyciskiem X */
  .nav-drawer-header {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px 18px 28px;
    border-bottom: 1px solid var(--border-soft);
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.08), transparent);
    margin-bottom: 8px;
  }

  .nav-drawer-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.01em;
  }

  .nav-drawer-close {
    background: rgba(168, 85, 247, 0.1);
    border: 1px solid rgba(217, 70, 239, 0.3);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    cursor: pointer;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s, transform 0.15s, border-color 0.15s;
    flex-shrink: 0;
  }

  .nav-drawer-close:hover {
    background: rgba(217, 70, 239, 0.2);
    border-color: var(--magenta);
    transform: rotate(90deg);
  }

  .nav-drawer-close:active {
    transform: rotate(90deg) scale(0.95);
  }

  .nav-drawer-close span {
    position: absolute;
    width: 16px;
    height: 2px;
    background: var(--magenta);
    border-radius: 2px;
  }
  .nav-drawer-close span:nth-child(1) { transform: rotate(45deg); }
  .nav-drawer-close span:nth-child(2) { transform: rotate(-45deg); }

  .nav-drawer-list {
    list-style: none;
    margin: 0;
    padding: 0;
  }

  .nav-drawer-list li {
    width: 100%;
    list-style: none;
  }

  .nav-drawer-list a {
    display: block;
    padding: 16px 28px;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-soft);
    transition: background 0.15s, color 0.15s;
  }

  .nav-drawer-list a:hover,
  .nav-drawer-list a.active {
    background: rgba(168, 85, 247, 0.12);
    color: var(--magenta);
  }

  .nav-drawer-list a.active {
    border-left: 3px solid var(--magenta);
    padding-left: 25px;
  }

  /* Pozostałe poprawki na mobile */
  .nav-inner {
    padding: 14px 18px;
  }

  .logo-mark-wide {
    height: 40px;
    max-width: 180px;
  }

  /* Większe paddingi sekcji żeby mobile lepiej wyglądał */
  .section { padding: 40px 0; }
  .hero { padding: 30px 0 50px; }
}

/* Bardzo małe ekrany */
@media (max-width: 380px) {
  .nav-drawer {
    width: 100%;
    max-width: 100%;
  }
}

/* ==========================================
   CENNIK
   ========================================== */
.cennik-cta {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin: 32px 0 40px;
}
.cennik-cta-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
  border: 1px solid var(--border-soft);
  position: relative;
  overflow: hidden;
}
.cennik-cta-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(168,85,247,0.12), transparent);
  opacity: 0;
  transition: opacity 0.2s;
  pointer-events: none;
}
.cennik-cta-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(168, 85, 247, 0.15);
  border-color: rgba(168, 85, 247, 0.5);
}
.cennik-cta-card:hover::before { opacity: 1; }
.cennik-cta-card .icon { color: var(--magenta); flex-shrink: 0; position: relative; z-index: 1; }
.cennik-cta-card div { flex: 1; min-width: 0; position: relative; z-index: 1; }
.cennik-cta-card strong {
  display: block;
  font-size: 1.1rem;
  color: var(--text-primary);
  margin-bottom: 2px;
}
.cennik-cta-card span {
  font-size: 0.85rem;
  color: var(--text-muted);
}
.cennik-cta-shop { background: linear-gradient(135deg, rgba(217,70,239,0.08), rgba(147,51,234,0.04)); }
.cennik-cta-discord { background: linear-gradient(135deg, rgba(88,101,242,0.1), rgba(88,101,242,0.04)); }
.cennik-cta-discord .icon { color: #5865f2; }

@media (max-width: 768px) {
  .cennik-cta { grid-template-columns: 1fr; }
}

/* Karty z cenami */
.price-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
  margin: 14px 0 24px;
}

.price-card {
  background: var(--bg-card-solid);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  transition: transform 0.15s, border-color 0.15s, box-shadow 0.15s;
  position: relative;
  overflow: hidden;
}

.price-card:hover {
  transform: translateY(-2px);
  border-color: rgba(168, 85, 247, 0.4);
  box-shadow: 0 8px 24px rgba(168, 85, 247, 0.08);
}

.price-card-head {
  flex: 1;
  min-width: 0;
}

.price-card-head h4 {
  margin: 0 0 4px;
  font-size: 1.05rem;
  color: var(--text-primary);
}

.price-card-desc {
  display: block;
  font-size: 0.83rem;
  color: var(--text-muted);
}

.pack-extra {
  margin-top: 6px;
  font-size: 0.78rem;
  color: var(--purple-300);
  font-weight: 600;
}

.price-card-price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  flex-shrink: 0;
}
.price-card-price strong {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 1.6rem;
  color: var(--text-primary);
}
.price-card-price span {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 600;
}

/* Tier kolorów */
.price-tier-1 { border-left: 3px solid #4ade80; }
.price-tier-1 .price-card-price strong { color: #4ade80; }
.price-tier-2 { border-left: 3px solid #60a5fa; }
.price-tier-2 .price-card-price strong { color: #60a5fa; }
.price-tier-3 { border-left: 3px solid #fbbf24; }
.price-tier-3 .price-card-price strong { color: #fbbf24; }
.price-tier-4 { border-left: 3px solid #fb923c; }
.price-tier-4 .price-card-price strong { color: #fb923c; }
.price-tier-5 { border-left: 3px solid #f87171; }
.price-tier-5 .price-card-price strong { color: #f87171; }

.price-card-pack {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.05), var(--bg-card-solid));
}

/* Coins grid */
.coins-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin: 14px 0 28px;
}

.coin-card {
  background: var(--bg-card-solid);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 20px 20px 18px;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s, border-color 0.15s, box-shadow 0.2s;
}

.coin-card::before {
  content: '';
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: radial-gradient(circle, rgba(217,70,239,0.08), transparent 60%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s;
}
.coin-card:hover::before { opacity: 1; }
.coin-card:hover {
  transform: translateY(-3px);
  border-color: rgba(217, 70, 239, 0.5);
  box-shadow: 0 12px 32px rgba(217, 70, 239, 0.12);
}

.coin-amount strong {
  display: block;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 1.7rem;
  color: var(--text-primary);
  margin-bottom: 2px;
}
.coin-amount span {
  display: block;
  font-size: 0.78rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}
.coin-price {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border-soft);
}
.coin-price strong {
  display: block;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 1.2rem;
  color: var(--magenta);
  font-weight: 700;
}
.coin-price s {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 2px;
  font-family: 'IBM Plex Mono', monospace;
}

.coin-card-promo {
  background: linear-gradient(135deg, rgba(217, 70, 239, 0.1), rgba(147, 51, 234, 0.04));
  border-color: rgba(217, 70, 239, 0.3);
}

.coin-card-badge {
  position: absolute;
  top: 12px; right: 12px;
  background: linear-gradient(135deg, #ef4444, #d946ef);
  color: white;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.72rem;
  font-weight: 800;
  font-family: 'IBM Plex Mono', monospace;
  letter-spacing: 0.02em;
  z-index: 1;
}

/* Lista cen z dodatkami */
.price-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 14px 0 24px;
}

.price-list-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  transition: border-color 0.15s, transform 0.15s;
}
.price-list-row:hover {
  border-color: rgba(168, 85, 247, 0.4);
  transform: translateX(4px);
}
.price-list-row span {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-secondary);
  font-size: 0.92rem;
}
.price-list-row .icon {
  color: var(--purple-400);
  flex-shrink: 0;
}
.price-list-row strong {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.95rem;
  color: var(--magenta);
  font-weight: 700;
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .price-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .price-card-price {
    align-self: flex-end;
  }
  .price-list-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
}

/* ==========================================
   TARYFIKATOR
   ========================================== */

.severity-legend {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px;
  margin: 32px 0 36px;
  padding: 18px;
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
}

.severity-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 4px;
}
.severity-item strong {
  font-size: 0.9rem;
  color: var(--text-primary);
  margin-right: 6px;
}
.severity-item span {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-family: 'IBM Plex Mono', monospace;
}

.sev-dot, .taryf-sev-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
  display: inline-block;
}

/* Severity colors - od jasnozielonego do czerwonego */
.sev-1 .sev-dot, .taryf-sev-1 .taryf-sev-dot { background: #4ade80; box-shadow: 0 0 8px #4ade80; }
.sev-2 .sev-dot, .taryf-sev-2 .taryf-sev-dot { background: #fbbf24; box-shadow: 0 0 8px #fbbf24; }
.sev-3 .sev-dot, .taryf-sev-3 .taryf-sev-dot { background: #fb923c; box-shadow: 0 0 8px #fb923c; }
.sev-4 .sev-dot, .taryf-sev-4 .taryf-sev-dot { background: #ef4444; box-shadow: 0 0 8px #ef4444; }
.sev-5 .sev-dot, .taryf-sev-5 .taryf-sev-dot { background: #b91c1c; box-shadow: 0 0 12px #ef4444; }

/* Lista przewinień */
.taryf-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.taryf-row {
  background: var(--bg-card-solid);
  border: 1px solid var(--border-soft);
  border-left: 3px solid;
  border-radius: 10px;
  padding: 14px 18px;
  transition: transform 0.15s, border-color 0.15s, box-shadow 0.15s;
}
.taryf-row:hover {
  transform: translateX(3px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}

.taryf-sev-1 { border-left-color: #4ade80; }
.taryf-sev-2 { border-left-color: #fbbf24; }
.taryf-sev-3 { border-left-color: #fb923c; }
.taryf-sev-4 { border-left-color: #ef4444; }
.taryf-sev-5 { border-left-color: #b91c1c; }

.taryf-row-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.taryf-name {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
}

.taryf-name strong {
  color: var(--text-primary);
  font-size: 0.98rem;
  font-weight: 600;
}

.taryf-punishment {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 4px 12px;
  background: rgba(168, 85, 247, 0.12);
  color: var(--purple-200);
  border-radius: 8px;
  white-space: nowrap;
  flex-shrink: 0;
}

.taryf-sev-1 .taryf-punishment { background: rgba(74, 222, 128, 0.12);  color: #86efac; }
.taryf-sev-2 .taryf-punishment { background: rgba(251, 191, 36, 0.12);  color: #fcd34d; }
.taryf-sev-3 .taryf-punishment { background: rgba(251, 146, 60, 0.12);  color: #fdba74; }
.taryf-sev-4 .taryf-punishment { background: rgba(239, 68, 68, 0.12);   color: #fca5a5; }
.taryf-sev-5 .taryf-punishment { background: rgba(185, 28, 28, 0.18);   color: #f87171; }

.taryf-desc {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--border-soft);
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
  font-style: italic;
}

@media (max-width: 768px) {
  .severity-legend {
    grid-template-columns: repeat(2, 1fr);
    padding: 14px;
    gap: 8px;
  }
  .severity-item strong { font-size: 0.82rem; }
  .severity-item span { font-size: 0.7rem; }

  .taryf-row { padding: 12px 14px; }
  .taryf-row-head { flex-direction: column; align-items: flex-start; gap: 8px; }
  .taryf-punishment { font-size: 0.78rem; padding: 3px 10px; }
  .taryf-name strong { font-size: 0.92rem; }
}

/* ==========================================
   WYSZUKIWARKA - regulamin/cennik/taryfikator
   ========================================== */
.search-wrap {
  margin: 24px 0 28px;
}

.search-input-row {
  position: relative;
  display: flex;
  align-items: center;
  background: var(--bg-card-solid);
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.search-input-row:focus-within {
  border-color: rgba(217, 70, 239, 0.5);
  box-shadow: 0 0 0 3px rgba(217, 70, 239, 0.12);
}

.search-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  flex-shrink: 0;
  color: var(--purple-300);
  pointer-events: none;
}

.search-input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: none;
  outline: none;
  padding: 14px 8px;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  color: var(--text-primary);
}

.search-input::placeholder {
  color: var(--text-muted);
}

.search-input::-webkit-search-cancel-button { display: none; }

.search-clear {
  background: none;
  border: none;
  width: 36px;
  height: 36px;
  margin-right: 6px;
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--text-muted);
  cursor: pointer;
  border-radius: 50%;
  transition: background 0.15s, color 0.15s;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.search-clear:hover {
  background: rgba(217, 70, 239, 0.15);
  color: var(--magenta);
}

.search-status {
  margin-top: 10px;
  padding: 0 4px;
  font-size: 0.85rem;
  min-height: 1.2em;
  font-weight: 500;
}

.search-status-ok {
  color: #4ade80;
}
.search-status-empty {
  color: #fb923c;
}

/* Highlight - <mark> w treści */
mark.search-hl {
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.4), rgba(217, 70, 239, 0.3));
  color: var(--text-primary);
  padding: 0 2px;
  border-radius: 3px;
  font-weight: 700;
  box-shadow: 0 0 0 1px rgba(251, 191, 36, 0.3);
}

/* Sekcja z dopasowaniem - delikatne wyróżnienie */
.rule-section.has-match {
  border-color: rgba(217, 70, 239, 0.4);
  box-shadow: 0 4px 16px rgba(217, 70, 239, 0.08);
}

@media (max-width: 768px) {
  .search-icon { width: 40px; }
  .search-input { padding: 12px 6px; font-size: 0.9rem; }
}

/* ==========================================
   STATYSTYKI v2
   ========================================== */

/* KPI grid */
.stats-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  margin: 32px 0 28px;
}

.stats-kpi {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 18px 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: transform 0.2s, border-color 0.15s, box-shadow 0.2s;
  position: relative;
  overflow: hidden;
}

.stats-kpi:hover {
  transform: translateY(-2px);
  border-color: rgba(168, 85, 247, 0.4);
  box-shadow: 0 8px 24px rgba(168, 85, 247, 0.08);
}

.stats-kpi-icon {
  color: var(--purple-300);
  margin-bottom: 4px;
}
.stats-kpi:hover .stats-kpi-icon { color: var(--magenta); }

.stats-kpi-value {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1;
  letter-spacing: -0.02em;
}

.stats-kpi-label {
  font-size: 0.82rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
}

.stats-kpi-live {
  background: linear-gradient(135deg, rgba(217, 70, 239, 0.08), var(--bg-card));
  border-color: rgba(217, 70, 239, 0.2);
}
.stats-kpi-live .stats-kpi-value { color: var(--magenta); }

/* Sumy serwerowe */
.stats-totals {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  margin-bottom: 32px;
}

.stats-total {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  background: var(--bg-card-solid);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  transition: border-color 0.15s, transform 0.15s;
}
.stats-total:hover {
  border-color: rgba(168, 85, 247, 0.3);
  transform: translateY(-1px);
}
.stats-total-icon { color: var(--purple-400); flex-shrink: 0; }
.stats-total div { display: flex; flex-direction: column; min-width: 0; }
.stats-total strong {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.35rem;
  color: var(--text-primary);
  line-height: 1.1;
}
.stats-total span {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Chart card */
.chart-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 18px;
  gap: 16px;
  flex-wrap: wrap;
}
.chart-card-head h3 { margin: 0 0 4px; }
.chart-card-sub {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
}
.chart-card-stats {
  display: flex;
  gap: 16px;
  flex-shrink: 0;
}
.chart-card-stats > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.chart-card-stats .cs-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.chart-card-stats strong {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.2rem;
  color: var(--magenta);
}

.chart-wrap {
  position: relative;
}
#online-chart {
  width: 100%;
  display: block;
  background: rgba(10, 6, 16, 0.4);
  border-radius: 8px;
  padding: 4px;
}

.chart-tooltip {
  position: absolute;
  pointer-events: none;
  background: var(--bg-card-solid);
  border: 1px solid rgba(217, 70, 239, 0.4);
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.85rem;
  z-index: 10;
  box-shadow: 0 8px 24px rgba(0,0,0,0.5);
  white-space: nowrap;
}
.chart-tooltip strong {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.1rem;
  color: var(--magenta);
}
.chart-tooltip span {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* Charts row (week + heatmap) */
.stats-charts-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

/* Bar chart - tygodniowy */
.bar-chart {
  display: flex;
  align-items: flex-end;
  justify-content: space-around;
  gap: 8px;
  height: 200px;
  padding: 16px 8px 0;
}
.bar-chart-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex: 1;
}
.bar-chart-value {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--purple-200);
}
.bar-chart-bar {
  width: 100%;
  max-width: 36px;
  background: linear-gradient(to top, var(--purple-700), var(--magenta));
  border-radius: 6px 6px 0 0;
  min-height: 8px;
  transition: transform 0.2s, filter 0.2s;
}
.bar-chart-col:hover .bar-chart-bar {
  transform: scaleY(1.04);
  filter: brightness(1.2);
}
.bar-chart-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-top: 4px;
}

/* Hours heatmap (24 godziny) */
.hours-heatmap {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 4px;
  padding: 10px 0 0;
}
.hours-cell {
  background: rgba(168, 85, 247, calc(var(--intensity, 0) * 0.7 + 0.05));
  border: 1px solid rgba(168, 85, 247, calc(var(--intensity, 0) * 0.4 + 0.1));
  border-radius: 6px;
  padding: 8px 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  cursor: help;
  transition: transform 0.15s, border-color 0.15s;
}
.hours-cell:hover {
  transform: scale(1.1);
  border-color: var(--magenta);
  z-index: 1;
}
.hours-cell-h {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}
.hours-cell-v {
  font-size: 0.68rem;
  color: var(--text-muted);
  font-family: 'Inter', sans-serif;
}
.hours-cell.peak {
  background: linear-gradient(135deg, rgba(217, 70, 239, 0.4), rgba(168, 85, 247, 0.3));
  border-color: var(--magenta);
}
.hours-cell.peak .hours-cell-v { color: white; }

.hours-legend {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border-soft);
  font-size: 0.82rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}
.hours-legend strong {
  color: var(--magenta);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.85rem;
}

/* Top players grid */
.stats-tops-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.stats-top-card {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 18px 20px 8px;
}

.stats-top-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-soft);
  margin-bottom: 4px;
}
.stats-top-head .icon { color: var(--magenta); }
.stats-top-head h4 {
  margin: 0;
  font-size: 0.92rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--purple-200);
}

.stats-top-row {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-soft);
  align-items: center;
}
.stats-top-row:last-child { border-bottom: none; }

.stats-top-rank {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--purple-300);
}
.stats-top-name {
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--text-primary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.stats-top-value {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--magenta);
}

.stats-top-empty {
  padding: 18px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.88rem;
}

/* Top organizacje - duże podium */
.stats-orgs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.stats-org-card {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}
.stats-org-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(217, 70, 239, 0.15);
}

.stats-org-tier-1 {
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.15), var(--bg-card));
  border-color: rgba(251, 191, 36, 0.5);
}
.stats-org-tier-1 .stats-org-rank { color: #fbbf24; }
.stats-org-tier-1 .stats-org-icon { color: #fbbf24; }

.stats-org-tier-2 {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.1), var(--bg-card));
  border-color: rgba(168, 85, 247, 0.4);
}
.stats-org-tier-2 .stats-org-rank { color: var(--purple-300); }
.stats-org-tier-2 .stats-org-icon { color: var(--purple-400); }

.stats-org-tier-3 {
  background: linear-gradient(135deg, rgba(217, 70, 239, 0.08), var(--bg-card));
  border-color: rgba(217, 70, 239, 0.3);
}
.stats-org-tier-3 .stats-org-rank { color: var(--magenta); }
.stats-org-tier-3 .stats-org-icon { color: var(--magenta); }

.stats-org-rank {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.stats-org-icon { display: flex; }

.stats-org-name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-top: 4px;
}

.stats-org-points {
  font-size: 0.92rem;
  color: var(--text-muted);
  font-weight: 600;
}

/* Footer note */
.stats-footer-note {
  margin-top: 32px;
  padding: 14px 18px;
  background: rgba(168, 85, 247, 0.05);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  color: var(--text-muted);
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 8px;
}
.stats-footer-note .icon { color: var(--purple-400); }

/* Mobile */
@media (max-width: 768px) {
  .stats-kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-kpi-value { font-size: 1.5rem; }
  .stats-totals { grid-template-columns: 1fr; }
  .stats-charts-row { grid-template-columns: 1fr; }
  .hours-heatmap { grid-template-columns: repeat(8, 1fr); }
  .stats-orgs-grid { grid-template-columns: 1fr; }
  .chart-card-stats { width: 100%; }
}

/* Sekcja head dla bloków statystyk */
.stats-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin: 28px 0 14px;
}
.stats-section-head h3 {
  margin: 0;
  font-size: 1.2rem;
}
.stats-section-note {
  font-size: 0.82rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}
.stats-section-note .icon { color: var(--purple-400); }
