@charset "UTF-8";

/* ═══════════════════════════════════════════
   KOMPENDIUM AIAD — ENHANCED DESIGN SYSTEM
   ═══════════════════════════════════════════ */

:root {
  --bg:             #050810;
  --bg-2:           #080d1a;
  --bg-3:           #0b1223;
  --glass-bg:       rgba(8, 13, 26, 0.92);
  --glass-border:   rgba(255, 255, 255, 0.06);
  --muted:          #4d637f;
  --muted-2:        #64748b;
  --accent:         #5865F2;
  --accent-light:   #818cf8;
  --accent-glow:    rgba(88, 101, 242, 0.35);
  --accent-2:       #3b82f6;
  --card-bg:        rgba(9, 13, 26, 0.95);
  --text:           #dde6f0;
  --text-dim:       #94a3b8;
  --text-bright:    #f1f5f9;
  --text-green:     #4ade80;
  --sidebar-w:      300px;
  --radius-sm:      8px;
  --radius-md:      12px;
  --radius-lg:      18px;
  --radius-xl:      24px;
  --shadow-sm:      0 2px 8px rgba(0,0,0,0.3);
  --shadow-md:      0 6px 24px rgba(0,0,0,0.4);
  --shadow-lg:      0 16px 48px rgba(0,0,0,0.55);
  --shadow-accent:  0 8px 28px rgba(88,101,242,0.25);
}

/* ── Base ── */
html, body {
  min-height: 100%;
  margin: 0;
  overflow-x: hidden;
  overflow-y: auto;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scrollbar-width: none;
  font-size: 14px;
  line-height: 1.6;
}

body::before {
  content: none;
  pointer-events: none;
}

body::after {
  content: none;
  pointer-events: none;
}

/* Global noise overlay for depth */
body {
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(88,101,242,0.07) 0%, transparent 70%),
    radial-gradient(ellipse 60% 40% at 100% 80%, rgba(59,130,246,0.04) 0%, transparent 60%);
  background-attachment: fixed;
}

/* Watermark — tylko obszar treL�ci, nie sidebar */
#watermark {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: var(--sidebar-w);
  pointer-events: none;
  z-index: 2;
  overflow: hidden;
}

#watermark canvas {
  display: block;
  width: 100%;
  height: 100%;
  opacity: 0.045;
}

@media (max-width: 900px) {
  #watermark { left: 0; }
}

.app, .main, .topbar {
  position: relative;
  z-index: 1;
}

/* ── Typography ── */
h1, h2, h3, h4,
.rank-id, .badge, .code-container,
.profile-role, .section-logo + div,
.limit-table th, .score-val, .nav-pill, .copy-btn {
  font-family: 'Rajdhani', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ── Layout ── */
.app {
  display: flex;
  min-height: 100vh;
  overflow: visible;
  align-items: flex-start;
}

/* ═══════════════════════════════════════════
   SIDEBAR
   ═══════════════════════════════════════════ */
.sidebar {
  width: var(--sidebar-w);
  position: fixed;
  top: 0; left: 0;
  height: 100vh;
  background: #121820;
  border-right: 1px solid rgba(212, 175, 110, 0.18);
  padding: 0 14px 24px;
  box-sizing: border-box;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: rgba(212, 175, 110, 0.35) transparent;
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.28s ease;
  z-index: 120;
  box-shadow: 4px 0 28px rgba(0, 0, 0, 0.4);
}

.sidebar::after {
  content: none;
}

.sidebar::before {
  content: '';
  position: sticky;
  top: 0;
  display: block;
  height: 3px;
  margin: 0 -14px 0;
  background: linear-gradient(90deg, #8b5a2b, #e0b45a, #8b5a2b);
  z-index: 2;
  pointer-events: none;
  flex-shrink: 0;
}

/* Brand */
.sidebar .brand {
  display: flex;
  gap: 11px;
  align-items: center;
  padding: 20px 6px 16px;
  margin-bottom: 14px;
  border-bottom: 1px solid rgba(212, 175, 110, 0.16);
  position: relative;
}

.brand-logo-wrap {
  width: 46px;
  height: 46px;
  padding: 2px;
  border-radius: 50%;
  background: linear-gradient(160deg, #f0d78c, #b8863a 55%, #6e4318);
  box-sizing: border-box;
  flex-shrink: 0;
}

.sidebar .brand .aiad-logo {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  background: #121820;
  box-shadow: none;
}

.sidebar .brand:hover .aiad-logo {
  transform: none;
}

.brand h1 {
  font-family: 'Rajdhani', sans-serif;
  font-size: 16px;
  margin: 0;
  font-weight: 700;
  letter-spacing: 0.03em;
  line-height: 1.2;
  text-transform: none;
  color: #f4efe4;
  background: none;
  -webkit-background-clip: unset;
  background-clip: unset;
  -webkit-text-fill-color: #f4efe4;
}

.brand h1 span {
  color: #e0b45a;
  -webkit-text-fill-color: #e0b45a;
  background: none;
}

.sidebar .brand-tag,
.sidebar .brand > div > div[style] {
  font-size: 10.5px !important;
  color: #8a9aab !important;
  margin-top: 2px;
  line-height: 1.35;
  letter-spacing: 0.01em;
}

/* ── Search ── */
.search-container {
  margin-bottom: 14px;
  position: relative;
}

.search-input {
  width: 100%;
  padding: 10px 32px 10px 36px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.22);
  color: var(--text-bright);
  font-family: 'Inter', sans-serif;
  font-size: 12.5px;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
}

.search-input:focus {
  outline: none;
  background: rgba(224, 180, 90, 0.07);
  border-color: rgba(224, 180, 90, 0.42);
  box-shadow: 0 0 0 3px rgba(224, 180, 90, 0.1);
}

.search-input::placeholder { color: rgba(255, 255, 255, 0.28); }

.search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted-2);
  width: 14px;
  height: 14px;
  pointer-events: none;
  transition: color 0.2s;
}

.search-container:focus-within .search-icon {
  color: #e0b45a;
}

.search-clear-btn {
  position: absolute;
  right: 9px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: var(--muted-2);
  width: 16px;
  height: 16px;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: color 0.2s;
}
.search-clear-btn:hover { color: var(--text-bright); }
.search-clear-btn.visible { display: flex; }

.search-results {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin-top: 6px;
  background: #161c26;
  border: 1px solid rgba(212, 175, 110, 0.22);
  border-radius: var(--radius-md);
  max-height: 300px;
  overflow-y: auto;
  z-index: 200;
  box-shadow: var(--shadow-lg);
}

.search-results.active { display: block; }

.search-result-item {
  padding: 10px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  cursor: pointer;
  transition: background-color 0.15s, color 0.15s;
  font-size: 12.5px;
  color: var(--text-dim);
}
.search-result-item:last-child { border-bottom: none; }
.search-result-item:hover {
  background: rgba(224, 180, 90, 0.1);
  color: #ffffff;
}

.search-result-section {
  font-weight: 700;
  color: #e0b45a;
  padding: 10px 14px;
  background: rgba(224, 180, 90, 0.06);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.search-no-results {
  padding: 22px 14px 20px;
  text-align: center;
  color: #475569;
  font-size: 13px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.search-no-results svg { opacity: 0.35; margin-bottom: 2px; }
.search-no-results strong { color: #94a3b8; }
.search-no-results-hint { font-size: 11px; color: #334155; margin-top: 2px; }

/* ── Nav Menu ── */
.menu {
  margin-top: 2px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.menu button {
  width: 100%;
  text-align: left;
  padding: 10px 12px 10px 13px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: transparent;
  color: #c8d5e8;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 11px;
  font-weight: 500;
  font-size: 13px;
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease;
  font-family: 'Inter', sans-serif;
  position: relative;
  overflow: hidden;
  animation: menuItemIn 0.35s ease both;
  animation-delay: calc(var(--menu-i, 0) * 35ms);
}

@keyframes menuItemIn {
  from { opacity: 0; transform: translateX(-8px); }
  to   { opacity: 1; transform: none; }
}

.menu button::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: #e0b45a;
  opacity: 0;
  transform: scaleY(0.4);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.menu button:hover:not(.active) {
  background: rgba(255, 255, 255, 0.045);
  color: #dce8f5;
}

.menu button:hover:not(.active)::before {
  opacity: 0.45;
  transform: scaleY(0.7);
}

.menu button.active {
  background: rgba(224, 180, 90, 0.12);
  border-color: rgba(224, 180, 90, 0.22);
  color: #f4efe4;
  box-shadow: none;
}

.menu button.active::before {
  opacity: 1;
  transform: scaleY(1);
}

.menu button .menu-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: #7a8b9e;
  stroke: currentColor;
  transition: color 0.2s;
}

.menu button:hover:not(.active) .menu-icon {
  color: #c9b07a;
}

.menu button.active .menu-icon {
  color: #e0b45a;
  filter: none;
}

.menu button .menu-num {
  order: 2;
  flex-shrink: 0;
  margin-left: auto;
  font-family: 'Rajdhani', sans-serif;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: rgba(148, 163, 184, 0.4);
  transition: color 0.2s ease;
}

.menu button:hover:not(.active) .menu-num {
  color: rgba(224, 180, 90, 0.55);
}

.menu button.active .menu-num {
  color: rgba(224, 180, 90, 0.8);
}

.menu button .menu-label {
  flex: 1;
  min-width: 0;
  font-family: 'Rajdhani', sans-serif;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  line-height: 1.25;
  color: #b9c8dc;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.2s ease;
}

.menu button:hover:not(.active) .menu-label {
  color: #eef3f9;
}

.menu button.active .menu-label {
  color: #f4efe4;
  text-shadow: none;
}

.menu button > span:not(.menu-num):not(.menu-label):not(.menu-icon) {
  flex: 1;
  min-width: 0;
  font-family: 'Rajdhani', sans-serif;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.menu-separator {
  height: 1px;
  background: linear-gradient(90deg,
    rgba(212, 175, 110, 0.28) 0%,
    rgba(255, 255, 255, 0.04) 100%);
  margin: 10px 4px;
}

.menu-group-label,
.menu-label-group {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 9.5px;
  font-weight: 700;
  color: #c4a056;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  padding: 20px 12px 7px 13px;
}

.menu-group-label:first-child,
.menu-label-group:first-child {
  padding-top: 6px;
}

.menu-group-label::after,
.menu-label-group::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(212, 175, 110, 0.3), transparent);
}

/* ═══════════════════════════════════════════
   MAIN CONTENT
   ═══════════════════════════════════════════ */
.main {
  flex: 1;
  min-width: 0;
  padding: 28px 28px 28px;
  overflow: visible;
  position: relative;
  margin-left: var(--sidebar-w);
}

.card {
  background: linear-gradient(160deg,
    rgba(12, 18, 36, 0.95) 0%,
    rgba(7, 11, 23, 0.97) 100%);
  border: 1px solid rgba(255,255,255,0.06);
  box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255,255,255,0.03);
  padding: 32px;
  border-radius: var(--radius-xl);
  max-width: 980px;
  margin: 0 auto;
  padding-bottom: 80px;
  position: relative;
  min-height: 80vh;
  backdrop-filter: blur(4px);
}

.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(88,101,242,0.6) 25%,
    rgba(96,165,250,0.4) 65%,
    transparent 100%);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  pointer-events: none;
}

/* Content fade-in on navigation */
@keyframes contentFadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Page Header ── */
.header-row {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 28px;
  padding: 20px 22px;
  background: linear-gradient(135deg,
    rgba(88,101,242,0.08) 0%,
    rgba(59,130,246,0.03) 100%);
  border: 1px solid rgba(88,101,242,0.14);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
}

.header-row::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg,
    rgba(88,101,242,0.6) 0%,
    rgba(96,165,250,0.3) 50%,
    transparent 100%);
}

.header-row::after {
  content: '';
  position: absolute;
  right: -30px; top: -30px;
  width: 120px; height: 120px;
  background: radial-gradient(circle, rgba(88,101,242,0.06), transparent 70%);
  pointer-events: none;
}

.section-logo {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
}

/* Logo AIAD — oryginalny plik aiad.png, bez przycinania */
.aiad-logo {
  display: block;
  object-fit: contain;
  object-position: center;
  border-radius: 50%;
  box-shadow:
    0 0 0 1px rgba(88, 101, 242, 0.22),
    0 4px 12px rgba(0, 0, 0, 0.35);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.aiad-logo:hover {
  box-shadow:
    0 0 0 1px rgba(129, 140, 248, 0.35),
    0 6px 16px rgba(88, 101, 242, 0.2);
}

h2 {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.05em;
  background: linear-gradient(135deg, #f1f5f9 0%, #93c5fd 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.subtitle {
  color: var(--muted-2);
  font-size: 12.5px;
  margin-top: 3px;
  font-family: 'Inter', sans-serif;
  letter-spacing: 0.02em;
}

/* ── Topbar (mobile) ── */
.topbar {
  display: none;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  position: fixed;
  top: 0; left: 0; right: 0;
  background: #121820;
  border-bottom: 1px solid rgba(212, 175, 110, 0.18);
  z-index: 60;
  box-shadow: 0 4px 16px rgba(0,0,0,0.35);
}

.topbar::after {
  content: none;
}

.topbar .top-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.topbar .aiad-logo {
  width: 34px;
  height: 34px;
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .app { height: 100%; overflow: visible; }
  .sidebar {
    position: fixed;
    left: -320px;
    top: 0;
    bottom: 0;
    height: 100vh;
    width: 280px;
    z-index: 200;
    box-shadow: 4px 0 32px rgba(0, 0, 0, 0.7);
    transform: translateX(0);
  }
  .sidebar.open { left: 0; }
  .main { padding: 14px; margin-top: 56px; margin-left: 0 !important; }
  .topbar { display: flex; }
  .card { padding: 18px; border-radius: var(--radius-lg); }
  .section-logo { width: 44px; height: 44px; }
  .section-logo.aiad-logo { width: 44px; height: 44px; }
}

/* ═══════════════════════════════════════════
   CARD CONTENT BASE
   ═══════════════════════════════════════════ */
.card-content {
  white-space: pre-line;
  line-height: 1.65;
  color: #c8d5e8;
}

.card-content strong { color: #ffffff; font-weight: 600; }
.card-content p { margin: 0 0 8px; color: #c8d5e8; }
.card-content a { transition: color 0.2s; }
.card-content a:hover { color: #fff !important; }

.card-content ul { list-style-type: none; padding-left: 0; margin: 8px 0; }
.card-content li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 5px;
}
.card-content li::before {
  content: '';
  position: absolute;
  left: 6px; top: 0.75em;
  width: 5px; height: 5px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 6px var(--accent-glow);
}

.card-content > strong {
  display: block;
  margin-top: 0;
  color: #60a5fa;
  font-size: 1.02em;
  margin-bottom: 6px;
}
.card-content ul + strong { margin-top: 22px; }

.card-content .header-note {
  font-weight: 700;
  color: #e2e8f0;
  display: block;
  margin-top: 28px;
  margin-bottom: 10px;
  border-left: 3px solid #5865F2;
  padding: 9px 14px;
  background: linear-gradient(90deg,
    rgba(88,101,242,0.10), transparent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-family: 'Rajdhani', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-size: 14.5px;
  scroll-margin-top: 100px;
  transition: background-color 0.3s;
}

.card-content hr {
  border: 0;
  height: 1px;
  background: rgba(255,255,255,0.06);
  margin: 22px 0;
}

/* ═══════════════════════════════════════════
   UI COMPONENTS
   ═══════════════════════════════════════════ */

/* Tables */
.table-wrapper {
  width: 100%;
  overflow-x: auto;
  border-radius: var(--radius-md);
  border: 1px solid rgba(88,101,242,0.14);
  margin-bottom: 18px;
  background: rgba(6,10,20,0.7);
  box-shadow: var(--shadow-sm);
}

.limit-table { width: 100%; border-collapse: collapse; margin: 0; min-width: 500px; }
.limit-table th {
  text-align: left;
  padding: 13px 14px;
  background: rgba(88,101,242,0.1);
  color: #818cf8;
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(88,101,242,0.14);
  white-space: nowrap;
  letter-spacing: 0.07em;
}
.limit-table th:last-child { text-align: right; }
.limit-table td {
  padding: 11px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  font-size: 13.5px;
  vertical-align: middle;
}
.limit-table tr:hover td { background: rgba(255,255,255,0.025); }
.limit-table tr:last-child td { border-bottom: none; }
.limit-table td:first-child { color: #e2e8f0; font-weight: 600; width: 40%; }
.limit-table td:last-child { text-align: right; color: var(--text-green); font-family: 'Menlo', monospace; font-weight: 600; }
.limit-table .list-cars { font-size: 12.5px; color: var(--muted-2); line-height: 1.5; font-family: Inter, sans-serif; }

/* Code blocks */
.code-container {
  position: relative;
  background: rgba(3, 5, 12, 0.95);
  border: 1px solid rgba(88,101,242,0.14);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  margin: 10px 0;
  font-family: 'Menlo', 'Monaco', 'Courier New', monospace;
  color: #e2e8f0;
  font-size: 12.5px;
  overflow-x: auto;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.02);
}
.code-container .cmd-text { color: #a5c9ff; display: block; margin-bottom: 3px; }
.code-container .cmd-arg { color: #7aa2c0; }

.copy-btn {
  position: absolute;
  top: 8px; right: 8px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  color: #64748b;
  font-size: 10px;
  padding: 4px 8px;
  border-radius: 5px;
  cursor: pointer;
  transition: 0.2s;
  text-transform: uppercase;
  font-weight: 700;
}
.copy-btn:hover { background: rgba(255,255,255,0.12); color: #fff; }
.copy-btn.copied { background: #16a34a; color: #fff; border-color: #16a34a; }

/* Badges */
.badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 5px;
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.badge-green { background: rgba(34,197,94,0.12); color: #4ade80; border: 1px solid rgba(34,197,94,0.2); }
.badge-red { background: rgba(239,68,68,0.12); color: #f87171; border: 1px solid rgba(239,68,68,0.2); }
.badge-orange { background: rgba(249,115,22,0.12); color: #fb923c; border: 1px solid rgba(249,115,22,0.2); }

/* ── Rules Box ── */
.rules-box {
  background: linear-gradient(145deg,
    rgba(12,18,38,0.85) 0%,
    rgba(8,12,24,0.9) 100%);
  border: 1px solid rgba(88,101,242,0.18);
  border-radius: var(--radius-lg);
  padding: 22px;
  margin: 18px 0;
  position: relative;
  overflow: hidden;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.rules-box::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg,
    rgba(88,101,242,0.7) 0%,
    rgba(96,165,250,0.3) 60%,
    transparent 100%);
}
.rules-box:hover {
  border-color: rgba(88,101,242,0.3);
  box-shadow: 0 8px 28px rgba(0,0,0,0.25), 0 0 24px rgba(88,101,242,0.06);
}
.rules-box h4 {
  margin: 0 0 12px;
  color: #818cf8;
  font-size: 13.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
}
.rules-box ul { margin: 0; padding: 0; list-style: none; }
.rules-box li {
  padding-left: 0;
  margin-bottom: 7px;
  font-size: 13.5px;
  color: #e2e8f0;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.rules-box li::before { display: none; }
.rules-box .icon { color: #60a5fa; flex-shrink: 0; margin-top: 2px; }
.divider-rules { margin: 14px 0; border-top: 1px solid rgba(59,130,246,0.15); }

/* ── Tip Box ── */
.tip-box {
  background: linear-gradient(145deg,
    rgba(12,18,38,0.8) 0%,
    rgba(8,12,24,0.85) 100%);
  border: 1px solid rgba(88,101,242,0.2);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  margin: 18px 0;
  color: #a5b4fc;
  font-size: 13px;
  line-height: 1.65;
  position: relative;
  overflow: hidden;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.tip-box::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg,
    rgba(88,101,242,0.6) 0%,
    rgba(129,140,248,0.3) 50%,
    transparent 100%);
}
.tip-box:hover {
  border-color: rgba(88,101,242,0.38);
  box-shadow: 0 6px 24px rgba(0,0,0,0.2), 0 0 20px rgba(88,101,242,0.07);
}
.tip-box strong { color: #c7d2fe; font-weight: 600; }

/* ── Warning Box ── */
.warning-box {
  margin-top: 18px;
  background: linear-gradient(145deg,
    rgba(28,8,8,0.9) 0%,
    rgba(18,6,6,0.95) 100%);
  border: 1px solid rgba(239,68,68,0.3);
  border-left: 3px solid #ef4444;
  color: #fca5a5;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  font-size: 13.5px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 4px 20px rgba(239,68,68,0.08);
  position: relative;
  overflow: hidden;
}

.warning-box::before {
  content: '!';
  font-size: 12px;
  font-weight: 900;
  color: #ef4444;
  background: rgba(239,68,68,0.1);
  border: 1.5px solid rgba(239,68,68,0.5);
  border-radius: 50%;
  width: 20px; height: 20px;
  min-width: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ── Profile Grid ── */
.profile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(215px, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.profile-card {
  background: linear-gradient(145deg,
    rgba(18,26,48,0.85) 0%,
    rgba(10,15,32,0.9) 100%);
  border: 1px solid rgba(88,101,242,0.16);
  padding: 20px 18px;
  border-radius: var(--radius-lg);
  text-align: center;
  transition: all 0.3s cubic-bezier(0.34,1.56,0.64,1);
  position: relative;
  overflow: hidden;
}

.profile-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg,
    rgba(88,101,242,0.55) 0%,
    rgba(96,165,250,0.25) 60%,
    transparent 100%);
}

.profile-card:hover {
  transform: translateY(-6px) scale(1.01);
  border-color: rgba(88,101,242,0.38);
  background: linear-gradient(145deg,
    rgba(22,30,56,0.92) 0%,
    rgba(13,19,38,0.96) 100%);
  box-shadow: 0 18px 42px rgba(0,0,0,0.45), 0 0 32px rgba(88,101,242,0.1);
}

.profile-role {
  color: #818cf8;
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 7px;
  display: block;
  letter-spacing: 1px;
}

.profile-name {
  font-size: 17px;
  font-weight: 600;
  color: #f1f5f9;
  margin-bottom: 7px;
  font-family: 'Rajdhani', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.profile-desc { font-size: 12px; color: var(--muted-2); line-height: 1.5; }

.profile-card.chief {
  border-color: rgba(245,158,11,0.35);
  background: linear-gradient(145deg,
    rgba(34,22,8,0.9) 0%,
    rgba(18,12,4,0.95) 100%);
}
.profile-card.chief::before {
  background: linear-gradient(90deg,
    rgba(245,158,11,0.65) 0%,
    rgba(251,191,36,0.25) 60%,
    transparent 100%);
}
.profile-card.chief .profile-role { color: #fbbf24; }

/* ── Rank Cards ── */
.rank-card {
  background: linear-gradient(145deg,
    rgba(12,18,36,0.88) 0%,
    rgba(7,11,22,0.92) 100%);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-lg);
  margin-bottom: 16px;
  overflow: hidden;
  transition: all 0.25s ease;
  position: relative;
}

.rank-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg,
    rgba(88,101,242,0.35) 0%,
    rgba(96,165,250,0.18) 50%,
    transparent 100%);
  z-index: 1;
}

.rank-card:hover {
  border-color: rgba(88,101,242,0.18);
  box-shadow: 0 8px 32px rgba(0,0,0,0.32), 0 0 20px rgba(88,101,242,0.05);
  transform: translateY(-1px);
}

.rank-header {
  background: linear-gradient(135deg,
    rgba(88,101,242,0.09) 0%,
    rgba(59,130,246,0.03) 100%);
  padding: 14px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(88,101,242,0.1);
}

.rank-header h3 {
  margin: 0;
  font-size: 16px;
  color: #e2e8f0;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.rank-id {
  font-family: 'Rajdhani', monospace;
  font-weight: 600;
  font-size: 12px;
  color: var(--muted-2);
  background: rgba(0,0,0,0.3);
  padding: 3px 9px;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.05);
}

.rank-body { padding: 18px; }

.rank-desc {
  font-size: 13.5px;
  color: #c8d5e8;
  margin-bottom: 14px;
  line-height: 1.65;
}

.rank-req-box {
  background: linear-gradient(135deg,
    rgba(255,255,255,0.04) 0%,
    rgba(255,255,255,0.01) 100%);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  border: 1px solid rgba(255,255,255,0.07);
  border-left: 3px solid var(--accent);
  transition: all 0.25s;
}

.rank-req-box:hover {
  border-color: rgba(59,130,246,0.22);
  background: linear-gradient(135deg,
    rgba(255,255,255,0.07) 0%,
    rgba(255,255,255,0.02) 100%);
}

.rank-req-title {
  font-size: 12px;
  text-transform: uppercase;
  font-weight: 700;
  color: #94a3b8;
  margin-bottom: 7px;
  display: block;
  font-family: 'Rajdhani', sans-serif;
  letter-spacing: 0.05em;
}

.rank-iii-plus { border-left: 3px solid #f59e0b; }
.rank-iii      { border-left: 3px solid #a855f7; }
.rank-ii       { border-left: 3px solid #3b82f6; }
.rank-i        { border-left: 3px solid #10b981; }
.rank-apprentice { border-left: 3px solid #64748b; }

/* ── Info Grid ── */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(275px, 1fr));
  gap: 14px;
  margin: 14px 0;
}

.info-card {
  background: linear-gradient(145deg,
    rgba(18,26,52,0.97) 0%,
    rgba(10,15,32,0.98) 100%);
  border: 1px solid rgba(88,101,242,0.28);
  padding: 16px 18px;
  border-radius: var(--radius-md);
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}

.info-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg,
    rgba(88,101,242,0.45) 0%,
    rgba(96,165,250,0.18) 60%,
    transparent 100%);
}

.info-card:hover {
  border-color: rgba(88,101,242,0.38);
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(0,0,0,0.28), 0 0 18px rgba(88,101,242,0.07);
}

.info-card h4 {
  margin: 0 0 9px;
  font-size: 13.5px;
  color: #818cf8;
  display: flex;
  align-items: center;
  gap: 7px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.info-card p { font-size: 12.5px; color: #94a3b8; margin: 0; line-height: 1.6; }

/* ── Step List ── */
.step-list { display: flex; flex-direction: column; gap: 12px; margin-top: 14px; }

.step-item {
  background: linear-gradient(145deg,
    rgba(12,18,38,0.8) 0%,
    rgba(8,12,24,0.85) 100%);
  border: 1px solid rgba(88,101,242,0.16);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  transition: all 0.25s ease;
}

.step-item:hover {
  border-color: rgba(88,101,242,0.3);
  transform: translateX(4px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

/* ── Score Grid ── */
.score-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin: 14px 0;
}

.score-box {
  background: #161c26;
  border: 1px solid rgba(212, 175, 110, 0.16);
  padding: 12px 8px;
  text-align: center;
  border-radius: 8px;
  transition: border-color 0.15s ease;
}

.score-box:hover {
  border-color: rgba(224, 180, 90, 0.4);
  transform: none;
  box-shadow: none;
}

.score-val {
  display: block;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 22px;
  font-weight: 600;
  font-variant-numeric: lining-nums tabular-nums;
  font-style: normal;
  font-synthesis: none;
  color: #e0b45a;
  text-shadow: none;
  letter-spacing: 0;
}

.score-label {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 10.5px;
  color: #8a9aab;
  text-transform: none;
  font-weight: 500;
  letter-spacing: 0;
  margin-top: 2px;
}

@media (max-width: 720px) {
  .score-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ── Nav Pills ── */
.quick-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 22px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  animation: contentFadeIn 0.4s ease-out;
}

.nav-pill {
  background: rgba(88,101,242,0.07);
  border: 1px solid rgba(88,101,242,0.18);
  color: #818cf8;
  padding: 6px 13px;
  border-radius: var(--radius-sm);
  font-size: 11px;
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  font-weight: 600;
  white-space: nowrap;
  letter-spacing: 0.05em;
}

.nav-pill:hover {
  background: rgba(88,101,242,0.18);
  color: #c7d2fe;
  border-color: rgba(88,101,242,0.4);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(88,101,242,0.2);
}

/* ── Back to Top ── */
.back-to-top {
  position: fixed;
  bottom: 28px; right: 28px;
  width: 42px; height: 42px;
  background: linear-gradient(135deg, #5865F2, #3b82f6);
  color: #fff;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,0.12);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s, transform 0.3s, box-shadow 0.3s;
  z-index: 100;
  box-shadow: var(--shadow-accent);
}

.back-to-top.visible { opacity: 1; pointer-events: auto; }
.back-to-top:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 36px rgba(88,101,242,0.5);
}

/* ── Evidence Gallery ── */
.evidence-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin: 16px 0;
  padding: 20px;
  background: linear-gradient(145deg, rgba(12, 18, 38, 0.85) 0%, rgba(8, 12, 24, 0.9) 100%);
  border: 1px solid rgba(88, 101, 242, 0.18);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
}

.evidence-gallery::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, rgba(88, 101, 242, 0.7) 0%, rgba(96, 165, 250, 0.3) 60%, transparent 100%);
}

.evidence-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: var(--radius-md);
  border: 2px solid rgba(88, 101, 242, 0.25);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.evidence-img:hover {
  transform: translateY(-4px) scale(1.02);
  border-color: rgba(88, 101, 242, 0.5);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4), 0 0 20px rgba(88, 101, 242, 0.15);
}


.video-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(88, 101, 242, 0.6) 0%, rgba(96, 165, 250, 0.3) 50%, transparent 100%);
  z-index: 1;
}

/* ── Responsive dla galerii ── */
@media (max-width: 768px) {
  .evidence-gallery {
    grid-template-columns: 1fr;
    padding: 16px;
    gap: 12px;
  }
  
  .evidence-img {
    height: 180px;
  }
}

@media (max-width: 480px) {
  .evidence-gallery {
    padding: 12px;
  }
  
  .evidence-img {
    height: 150px;
  }
}

/* ── Scrollbar ── */
.sidebar::-webkit-scrollbar { width: 4px; }
.sidebar::-webkit-scrollbar-track { background: transparent; }
.sidebar::-webkit-scrollbar-thumb { background: rgba(212, 175, 110, 0.35); border-radius: 3px; }
.sidebar::-webkit-scrollbar-thumb:hover { background: rgba(212, 175, 110, 0.55); }

/* ═══════════════════════════════════════════
   TABS
   ═══════════════════════════════════════════ */

/* Outer tabs */
.tw-tab-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 20px;
  padding: 4px;
  background: #12161e;
  border: 1px solid rgba(212, 175, 110, 0.2);
  border-radius: 10px;
  backdrop-filter: none;
  box-shadow: none;
  position: relative;
}

.tw-tab-nav::before {
  content: none;
}

.tw-tab {
  padding: 8px 16px;
  border-radius: 7px;
  border: 1px solid transparent;
  background: transparent;
  color: #9aa8b8;
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 600;
  font-size: 13px;
  text-transform: none;
  letter-spacing: 0;
  cursor: pointer;
  transition: color 0.15s, background 0.15s, border-color 0.15s;
  display: flex;
  align-items: center;
  gap: 6px;
  position: relative;
}

.tw-tab.active {
  background: rgba(224, 180, 90, 0.14);
  border-color: rgba(212, 175, 110, 0.4);
  color: #f4efe4;
  box-shadow: none;
}

.tw-tab.active::after {
  content: none;
}

.tw-tab:hover:not(.active) {
  background: rgba(255, 255, 255, 0.04);
  color: #e8e4dc;
  border-color: rgba(255, 255, 255, 0.08);
}

.tw-panel { display: none; }
.tw-panel.active { display: block; animation: contentFadeIn 0.28s ease; white-space: normal; }

/* Inner tabs */
.ktw-tab-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 16px;
  padding: 4px;
  background: #12161e;
  border: 1px solid rgba(212, 175, 110, 0.18);
  border-radius: 10px;
}

.ktw-tab {
  padding: 7px 12px;
  border-radius: 6px;
  border: 1px solid transparent;
  background: transparent;
  color: #9aa8b8;
  font-size: 12.5px;
  font-weight: 600;
  font-family: 'Inter', system-ui, sans-serif;
  text-transform: none;
  letter-spacing: 0;
  cursor: pointer;
  transition: color 0.15s, background 0.15s, border-color 0.15s;
  white-space: nowrap;
  flex-shrink: 0;
}

.ktw-tab.active {
  background: rgba(224, 180, 90, 0.14);
  border-color: rgba(212, 175, 110, 0.4);
  color: #f4efe4;
  box-shadow: none;
}

.ktw-tab:hover:not(.active) {
  color: #e8e4dc;
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
}

.ktw-panel { display: none; }
.ktw-panel.active { display: block; animation: contentFadeIn 0.22s ease; white-space: normal; }

body.page-test-wiedzy .card-content .header-note {
  border-left-color: #c9a15b;
  background: rgba(224, 180, 90, 0.07);
  color: #f4efe4;
}

.tw-lead {
  margin: 0 0 14px;
  font-family: 'Rajdhani', sans-serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #f4efe4;
}

.tw-meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 0 0 8px;
}

.tw-meta-card {
  background: #161c26;
  border: 1px solid rgba(212, 175, 110, 0.16);
  border-radius: 8px;
  padding: 12px 16px;
}

.tw-meta-label {
  color: #c4a056;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 5px;
  font-family: 'Inter', system-ui, sans-serif;
}

.tw-meta-val {
  color: #f4efe4;
  font-size: 14px;
  font-weight: 600;
  font-family: 'Inter', system-ui, sans-serif;
}

.tw-total {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 10px;
  margin-top: 8px;
  padding: 12px 16px;
  background: #161c26;
  border: 1px solid rgba(212, 175, 110, 0.28);
  border-radius: 8px;
}

.tw-total-num {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 26px;
  font-weight: 600;
  font-variant-numeric: lining-nums tabular-nums;
  font-synthesis: none;
  color: #e0b45a;
  letter-spacing: 0;
}

.tw-total-label {
  font-size: 12px;
  color: #8a9aab;
  font-weight: 500;
  font-family: 'Inter', system-ui, sans-serif;
}

.tw-stages,
.tw-rules,
.tw-crits {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.tw-stage {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: #161c26;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 8px;
  padding: 12px 14px;
}

.tw-stage-num {
  background: #1a1814;
  border: 1px solid rgba(201, 161, 91, 0.4);
  color: #e0c07a;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 12px;
  font-weight: 600;
  font-variant-numeric: lining-nums tabular-nums;
  font-synthesis: none;
  min-width: 22px;
  height: 22px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transform: none;
}

.tw-stage-title {
  color: #f4efe4;
  font-weight: 600;
  font-size: 13px;
  margin-bottom: 3px;
  font-family: 'Inter', system-ui, sans-serif;
}

.tw-stage-pts {
  color: #86c97a;
  font-size: 12px;
  font-weight: 600;
}

.tw-stage-desc {
  color: #8a9aab;
  font-size: 12.5px;
  line-height: 1.5;
  font-family: 'Inter', system-ui, sans-serif;
}

.tw-rule {
  padding: 9px 14px;
  background: #161c26;
  border-left: 3px solid #c9a15b;
  border-radius: 0 6px 6px 0;
  color: #c5d0dc;
  font-size: 13px;
  font-family: 'Inter', system-ui, sans-serif;
}

.tw-rule strong {
  color: #f4efe4;
}

.tw-rule--warn {
  background: #1a1416;
  border-left-color: #a44a42;
}

.tw-rule--warn strong {
  color: #d4a09a;
}

.tw-crit {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 14px;
  background: #161c26;
  border-left: 3px solid #86c97a;
  border-radius: 0 6px 6px 0;
  color: #c5d0dc;
  font-size: 13px;
  font-family: 'Inter', system-ui, sans-serif;
}

.tw-crit strong {
  color: #f4efe4;
}

.tw-crit-max {
  font-size: 12px;
  font-weight: 600;
  padding: 2px 10px;
  border-radius: 4px;
  white-space: nowrap;
  background: rgba(74, 222, 128, 0.1);
  border: 1px solid rgba(74, 222, 128, 0.28);
  color: #86c97a;
}

.tw-crit--mid {
  border-left-color: #c9a15b;
}

.tw-crit--mid .tw-crit-max {
  background: rgba(224, 180, 90, 0.1);
  border-color: rgba(201, 161, 91, 0.35);
  color: #e0c07a;
}

.tw-crit--low {
  border-left-color: #c47a3a;
}

.tw-crit--low .tw-crit-max {
  background: rgba(249, 115, 22, 0.1);
  border-color: rgba(249, 115, 22, 0.28);
  color: #fb923c;
}

.tw-crit--zero {
  background: #1a1416;
  border-left-color: #a44a42;
}

.tw-crit--zero .tw-crit-max {
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.28);
  color: #e8a0a0;
}

.tw-tip {
  background: #141a16;
  border: 1px solid rgba(74, 222, 128, 0.22);
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 10px;
  color: #b8d4bc;
  font-size: 13px;
  font-family: 'Inter', system-ui, sans-serif;
}

.tw-tip strong {
  color: #d4ead6;
}

.tw-foot {
  color: #c5d0dc;
  font-size: 13.5px;
  font-family: 'Inter', system-ui, sans-serif;
}

.tw-link {
  color: #e0b45a;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(224, 180, 90, 0.4);
}

.tw-link:hover {
  color: #f0d78c;
}

@media (max-width: 640px) {
  .tw-meta-grid {
    grid-template-columns: 1fr;
  }
}

/* Specialized tab components */
.tw-badge { display: inline-flex; padding: 2px 9px; border-radius: 4px; font-size: 11px; font-weight: 600; letter-spacing: 0.04em; margin-bottom: 8px; font-family: 'Inter', system-ui, sans-serif; }
.tw-badge-blue { background: rgba(224,180,90,0.1); border: 1px solid rgba(212,175,110,0.28); color: #e0c07a; }
.tw-badge-red { background: rgba(239,68,68,0.1); border: 1px solid rgba(239,68,68,0.28); color: #e8a0a0; }

.tw-codes-table { display: grid; grid-template-columns: repeat(auto-fill, minmax(255px,1fr)); gap: 5px; margin: 8px 0 16px; }
.tw-ct-item { display: flex; gap: 9px; padding: 7px 11px; background: #161c26; border: 1px solid rgba(212,175,110,0.12); border-radius: 6px; transition: border-color 0.15s; align-items: baseline; }
.tw-ct-item:hover { border-color: rgba(224,180,90,0.35); }
.tw-ct-item.danger { border-color: rgba(239,68,68,0.3); background: #1a1416; }
.tw-ct-code { font-size: 12px; color: #e0c07a; font-weight: 600; flex-shrink: 0; min-width: 68px; font-family: 'Inter', system-ui, sans-serif; font-variant-numeric: lining-nums tabular-nums; }
.tw-ct-desc { font-size: 12.5px; color: #c5d0dc; font-family: 'Inter', system-ui, sans-serif; }

.tw-stat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px,1fr)); gap: 7px; margin-top: 10px; }
.tw-stat-card { display: flex; align-items: center; gap: 11px; background: #161c26; border: 1px solid rgba(255,255,255,0.08); border-radius: 8px; padding: 11px 13px; }
.tw-stat-card.hl { border-color: rgba(212,175,110,0.35); background: rgba(224,180,90,0.07); }
.tw-stat-num { width: 28px; height: 28px; background: #1a1814; border: 1px solid rgba(201,161,91,0.4); border-radius: 4px; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 600; color: #e0c07a; flex-shrink: 0; font-family: 'Inter', system-ui, sans-serif; font-variant-numeric: lining-nums tabular-nums; font-synthesis: none; transform: none; }
.tw-stat-title { font-size: 11px; color: #8a9aab; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; font-family: 'Inter', system-ui, sans-serif; }
.tw-stat-desc { font-size: 12.5px; color: #e8e4dc; margin-top: 1px; font-family: 'Inter', system-ui, sans-serif; }

.tw-units-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px,1fr)); gap: 9px; margin-top: 10px; }
.tw-unit-card { border-radius: 8px; padding: 0; overflow: hidden; transition: border-color 0.15s; background: #161c26; }
.tw-unit-card:hover { transform: none; box-shadow: none; }
.tw-unit-accent { height: 2px; width: 100%; }
.tw-unit-body { padding: 13px 15px; }
.tw-unit-head { display: flex; align-items: center; gap: 9px; margin-bottom: 7px; }
.tw-unit-abbr { font-size: 12px; font-weight: 700; font-family: 'Inter', system-ui, sans-serif; letter-spacing: 0.04em; padding: 2px 8px; border-radius: 4px; }
.tw-unit-full { font-size: 11px; color: #8a9aab; }
.tw-unit-desc { font-size: 12.5px; color: #c5d0dc; line-height: 1.55; font-family: 'Inter', system-ui, sans-serif; }

.tw-unit-aiad { background: rgba(224,180,90,0.07); border: 1px solid rgba(212,175,110,0.28); }
.tw-unit-aiad .tw-unit-accent { background: #c9a15b; }
.tw-unit-aiad .tw-unit-abbr { background: rgba(224,180,90,0.16); color: #e0c07a; }
.tw-unit-sahp { background: rgba(234,179,8,0.07); border: 1px solid rgba(234,179,8,0.28); }
.tw-unit-sahp .tw-unit-accent { background: #ca8a04; }
.tw-unit-sahp .tw-unit-abbr { background: rgba(234,179,8,0.16); color: #fde047; }
.tw-unit-fto { background: rgba(249,115,22,0.08); border: 1px solid rgba(249,115,22,0.28); }
.tw-unit-fto .tw-unit-accent { background: #ea580c; }
.tw-unit-fto .tw-unit-abbr { background: rgba(249,115,22,0.16); color: #fb923c; }
.tw-unit-swat { background: rgba(239,68,68,0.08); border: 1px solid rgba(239,68,68,0.28); }
.tw-unit-swat .tw-unit-accent { background: #dc2626; }
.tw-unit-swat .tw-unit-abbr { background: rgba(239,68,68,0.16); color: #f87171; }
.tw-unit-sru { background: rgba(6,182,212,0.07); border: 1px solid rgba(6,182,212,0.25); }
.tw-unit-sru .tw-unit-accent { background: #0e7490; }
.tw-unit-sru .tw-unit-abbr { background: rgba(6,182,212,0.14); color: #22d3ee; }
.tw-unit-dtu { background: rgba(168,85,247,0.08); border: 1px solid rgba(168,85,247,0.25); }
.tw-unit-dtu .tw-unit-accent { background: #7c3aed; }
.tw-unit-dtu .tw-unit-abbr { background: rgba(168,85,247,0.16); color: #c084fc; }
.tw-unit-dea { background: rgba(249,115,22,0.08); border: 1px solid rgba(249,115,22,0.25); }
.tw-unit-dea .tw-unit-accent { background: #c2410c; }
.tw-unit-dea .tw-unit-abbr { background: rgba(249,115,22,0.16); color: #fb923c; }

.tw-threat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 10px;
}
.tw-thr-card {
  background: #161c26;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-left-width: 3px;
  border-radius: 8px;
  padding: 14px 16px;
  box-shadow: none;
}
.tw-thr-green  { border-left-color: #5a9a62; }
.tw-thr-orange { border-left-color: #c47a3a; }
.tw-thr-red    { border-left-color: #a44a42; }
.tw-thr-black  { border-left-color: #6b7785; }
.tw-thr-purple { border-left-color: #9a6ad4; }
.tw-thr-name {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.tw-thr-green  .tw-thr-name { color: #8fbf90; }
.tw-thr-orange .tw-thr-name { color: #d4a07a; }
.tw-thr-red    .tw-thr-name { color: #d4a09a; }
.tw-thr-black  .tw-thr-name { color: #9aa8b8; }
.tw-thr-purple .tw-thr-name { color: #c084fc; }
.tw-thr-row {
  display: grid;
  grid-template-columns: 6.5em 1fr;
  gap: 12px;
  align-items: start;
  font-size: 13px;
  padding: 7px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.tw-thr-row:last-child { border-bottom: none; padding-bottom: 0; }
.tw-thr-key {
  color: #8a9aab;
  font-family: 'Inter', system-ui, sans-serif;
}
.tw-thr-val {
  color: #c5d0dc;
  font-size: 13px;
  text-align: left;
  line-height: 1.45;
  font-family: 'Inter', system-ui, sans-serif;
}

@media (max-width: 720px) {
  .tw-threat-grid { grid-template-columns: 1fr; }
}

.tw-host {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-top: 14px;
}
.tw-host-label {
  margin: 8px 0 2px;
  padding: 0 2px;
  font-size: 11px;
  font-weight: 600;
  color: #8a9aab;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-family: 'Inter', system-ui, sans-serif;
}
.tw-host-label:first-child { margin-top: 0; }
.tw-host-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: #161c26;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-left: 3px solid #5a9a62;
  border-radius: 0 8px 8px 0;
}
.tw-host-row--2 { border-left-color: #5a7aa8; }
.tw-host-row--3 { border-left-color: #c47a3a; }
.tw-host-row--5 { border-left-color: #a44a42; }
.tw-host-name {
  flex: 1;
  color: #e8e4dc;
  font-size: 13.5px;
  font-family: 'Inter', system-ui, sans-serif;
}
.tw-host-sub {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  color: #8a9aab;
  font-weight: 400;
}
.tw-host-n {
  flex-shrink: 0;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 12.5px;
  font-weight: 600;
  font-variant-numeric: lining-nums tabular-nums;
  color: #8fbf90;
  white-space: nowrap;
}
.tw-host-row--2 .tw-host-n { color: #8aa8c8; }
.tw-host-row--3 .tw-host-n { color: #d4a07a; }
.tw-host-row--5 .tw-host-n { color: #d4a09a; }

.tw-force-steps { display: flex; flex-direction: column; gap: 9px; margin-top: 10px; }
.tw-force-step { display: flex; gap: 13px; padding: 11px 13px; background: #161c26; border: 1px solid rgba(255,255,255,0.08); border-radius: 8px; }
.tw-force-step.danger { border-color: rgba(239,68,68,0.35); background: #1a1416; }
.tw-fs-num { width: 22px; height: 22px; border-radius: 4px; background: #1a1814; border: 1px solid rgba(201,161,91,0.4); display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 600; color: #e0c07a; flex-shrink: 0; font-family: 'Inter', system-ui, sans-serif; font-variant-numeric: lining-nums tabular-nums; font-synthesis: none; transform: none; }
.tw-force-step.danger .tw-fs-num { background: #1a1416; border-color: rgba(164,74,66,0.5); color: #e8a0a0; }
.tw-fs-title { font-size: 13px; font-weight: 600; color: #f4efe4; margin-bottom: 2px; font-family: 'Inter', system-ui, sans-serif; }
.tw-fs-desc { font-size: 12.5px; color: #c5d0dc; line-height: 1.5; font-family: 'Inter', system-ui, sans-serif; }

.tw-terms-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px,1fr)); gap: 7px; margin-top: 10px; }
.tw-term-card { background: #161c26; border: 1px solid rgba(212,175,110,0.16); border-radius: 6px; padding: 11px 13px; transition: border-color 0.15s; }
.tw-term-card:hover { border-color: rgba(224,180,90,0.4); transform: none; }
.tw-term-abbr { font-size: 13px; font-weight: 600; color: #e0c07a; font-family: 'Inter', system-ui, sans-serif; letter-spacing: 0.02em; }
.tw-term-full { font-size: 11px; color: #8a9aab; margin-top: 2px; }
.tw-term-pl { font-size: 12px; color: #c5d0dc; margin-top: 4px; line-height: 1.45; border-top: 1px solid rgba(212,175,110,0.12); padding-top: 4px; }

.tw-steps { display: flex; flex-direction: column; gap: 7px; margin-top: 10px; }
.tw-step { display: flex; gap: 11px; padding: 9px 13px; background: #161c26; border: 1px solid rgba(212,175,110,0.14); border-radius: 6px; align-items: flex-start; transition: border-color 0.15s; }
.tw-step:hover { border-color: rgba(224,180,90,0.35); }
.tw-step-n { width: 22px; height: 22px; background: #1a1814; border: 1px solid rgba(201,161,91,0.4); border-radius: 4px; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 600; color: #e0c07a; flex-shrink: 0; font-family: 'Inter', system-ui, sans-serif; font-variant-numeric: lining-nums tabular-nums; font-synthesis: none; transform: none; }
.tw-step-txt { font-size: 13px; color: #c5d0dc; line-height: 1.5; padding-top: 1px; font-family: 'Inter', system-ui, sans-serif; }

.tw-limity-wrap { overflow-x: auto; margin-top: 10px; border-radius: 8px; border: 1px solid rgba(212,175,110,0.16); }
.tw-limity-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.tw-limity-table th { background: rgba(224,180,90,0.1); color: #e0c07a; font-weight: 600; padding: 8px 11px; text-align: center; font-size: 11px; letter-spacing: 0.04em; text-transform: uppercase; font-family: 'Inter', system-ui, sans-serif; }
.tw-limity-table th:first-child { text-align: left; }
.tw-limity-table td { padding: 7px 11px; border-bottom: 1px solid rgba(255,255,255,0.06); color: #c5d0dc; }
.tw-limity-table td.c { text-align: center; font-variant-numeric: lining-nums tabular-nums; }
.tw-limity-table tr.sp td { color: #e0c07a; }
.tw-limity-table tr:last-child td { border-bottom: none; }

.tw-c0-box {
  background: #1a1416;
  border: 1px solid rgba(139, 70, 64, 0.4);
  border-left: 3px solid #a44a42;
  border-radius: 8px;
  padding: 14px 16px;
  margin-top: 14px;
  box-shadow: none;
}
.tw-c0-title {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #d4a09a;
  margin-bottom: 8px;
}
.tw-c0-desc {
  font-size: 13.5px;
  color: #c5d0dc;
  line-height: 1.55;
  margin-bottom: 10px;
  font-family: 'Inter', system-ui, sans-serif;
}
.tw-c0-ex {
  padding: 10px 12px;
  border-radius: 6px;
  margin-top: 7px;
}
.tw-c0-good {
  background: #141a16;
  border: 1px solid rgba(90, 154, 98, 0.28);
  border-left: 3px solid #5a9a62;
}
.tw-c0-bad {
  background: #1a1416;
  border: 1px solid rgba(164, 74, 66, 0.28);
  border-left: 3px solid #a44a42;
}
.tw-c0-badge {
  font-size: 11px;
  font-weight: 600;
  margin-bottom: 4px;
  font-family: 'Inter', system-ui, sans-serif;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.tw-c0-good .tw-c0-badge { color: #8fbf90; }
.tw-c0-bad .tw-c0-badge { color: #d4a09a; }
.tw-c0-text {
  font-size: 13px;
  color: #c5d0dc;
  font-family: 'Menlo', 'Consolas', monospace;
}

.ktw-pts {
  font-size: 11px;
  font-weight: 500;
  color: #c4a056;
  margin-left: 5px;
}

.tw-role {
  background: #161c26;
  border: 1px solid rgba(212, 175, 110, 0.22);
  border-left: 3px solid #c9a15b;
  border-radius: 8px;
  padding: 14px 16px;
  margin-bottom: 16px;
  box-shadow: none;
}
.tw-role--alert {
  background: #1a1416;
  border-color: rgba(139, 70, 64, 0.4);
  border-left-color: #a44a42;
}
.tw-role-title {
  margin: 0 0 8px;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #c4a056;
}
.tw-role--alert .tw-role-title { color: #d4a09a; }
.tw-role p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.65;
  color: #c5d0dc;
  font-family: 'Inter', system-ui, sans-serif;
}
.tw-role p strong { color: #f4efe4; }
.tw-role--alert p strong { color: #e8d4d4; }

.tw-sec-label {
  margin: 16px 0 10px;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #8a9aab;
}

.tw-neg {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-top: 4px;
}
.tw-neg-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 14px;
  background: #161c26;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
}
.tw-neg-name {
  flex: 1;
  color: #e8e4dc;
  font-size: 13.5px;
  font-family: 'Inter', system-ui, sans-serif;
}
.tw-neg-sub {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  color: #8a9aab;
}
.tw-neg-val {
  flex-shrink: 0;
  text-align: right;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 13px;
  font-weight: 600;
  font-variant-numeric: lining-nums tabular-nums;
  color: #c4a056;
  white-space: nowrap;
}
.tw-neg-hint {
  font-weight: 400;
  color: #8a9aab;
  font-size: 12px;
}
.tw-neg-note {
  color: #8a9aab;
  font-size: 12.5px;
  font-style: normal;
}

.tw-fix {
  margin-top: 4px;
  background: #161c26;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  overflow: hidden;
}
.tw-fix-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.tw-fix-row:last-child { border-bottom: none; }
.tw-fix-code {
  flex-shrink: 0;
  min-width: 7.2em;
  text-align: center;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.03em;
  padding: 4px 8px;
  border-radius: 4px;
  border: 1px solid transparent;
}
.tw-fix-code--yellow {
  color: #d4b06a;
  border-color: rgba(201, 161, 91, 0.35);
  background: #1a1814;
}
.tw-fix-code--red {
  color: #d4a09a;
  border-color: rgba(164, 74, 66, 0.4);
  background: #1a1416;
}
.tw-fix-code--gray {
  color: #9aa8b8;
  border-color: rgba(107, 119, 133, 0.4);
  background: #161a20;
}
.tw-fix-act {
  flex: 1;
  color: #c5d0dc;
  font-size: 13.5px;
  font-family: 'Inter', system-ui, sans-serif;
}
.tw-fix-n {
  flex-shrink: 0;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 13px;
  font-weight: 600;
  font-variant-numeric: lining-nums tabular-nums;
  color: #c4a056;
  white-space: nowrap;
}

.tw-neg-fib {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: #161c26;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-left: 3px solid #7a6aa0;
  border-radius: 0 8px 8px 0;
}
.tw-neg-iso {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: #1a1416;
  border: 1px solid rgba(139, 70, 64, 0.4);
  border-left: 3px solid #a44a42;
  border-radius: 0 8px 8px 0;
  box-shadow: none;
}
.tw-neg-iso-n {
  flex-shrink: 0;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 13px;
  font-weight: 600;
  font-variant-numeric: lining-nums tabular-nums;
  color: #d4a09a;
  white-space: nowrap;
}

.tw-notice--warn {
  background: #1a1416;
  border-color: rgba(139, 70, 64, 0.4);
  color: #d2c4c4;
}

.tw-radio-box { background: rgba(224,180,90,0.06); border: 1px solid rgba(212,175,110,0.2); border-left: 3px solid #c9a15b; border-radius: 6px; padding: 13px 15px; margin-bottom: 12px; }
.tw-radio-label { font-size: 11px; font-weight: 600; color: #c4a056; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 5px; font-family: 'Inter', system-ui, sans-serif; }
.tw-radio-text { font-size: 13px; color: #c5d0dc; font-style: normal; line-height: 1.5; }

.tw-notice { display: flex; align-items: flex-start; gap: 9px; background: rgba(224,180,90,0.07); border: 1px solid rgba(212,175,110,0.22); border-radius: 6px; padding: 11px 13px; font-size: 13px; color: #c5d0dc; margin: 10px 0; line-height: 1.5; }

.tw-proc-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px,1fr)); gap: 9px; margin: 10px 0; }
.tw-proc-card { background: #161c26; border: 1px solid rgba(212,175,110,0.14); border-radius: 8px; padding: 13px 15px; text-align: left; }
.tw-proc-icon { font-size: 18px; margin-bottom: 7px; }
.tw-proc-card-title { font-size: 13px; font-weight: 600; color: #f4efe4; margin-bottom: 5px; font-family: 'Inter', system-ui, sans-serif; }
.tw-proc-card-desc { font-size: 12.5px; color: #8a9aab; line-height: 1.45; }

.tw-pursuit-wrap { overflow-x: auto; margin-top: 14px; border-radius: 8px; border: 1px solid rgba(212,175,110,0.16); background: #141a24; }
.tw-pursuit-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.tw-pursuit-table th { background: rgba(224,180,90,0.08); color: #c4a056; font-size: 11px; font-weight: 600; padding: 9px 15px; text-align: left; letter-spacing: 0.04em; text-transform: uppercase; border-bottom: 1px solid rgba(212,175,110,0.16); font-family: 'Inter', system-ui, sans-serif; }
.tw-pursuit-table td { padding: 10px 15px; border-bottom: 1px solid rgba(255,255,255,0.05); color: #e8e4dc; font-weight: 600; font-size: 13px; font-family: 'Inter', system-ui, sans-serif; }
.tw-pursuit-table tr:hover td { background: rgba(255,255,255,0.02); }
.tw-pursuit-table tr:last-child td { border-bottom: none; }

.tw-c-green  { color: #4ade80 !important; }
.tw-c-orange { color: #fb923c !important; }
.tw-c-yellow { color: #fbbf24 !important; }
.tw-c-red    { color: #f87171 !important; }
.tw-c-gray   { color: #94a3b8 !important; }
.tw-c-purple { color: #c084fc !important; }

.tw-adw-warn-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin-top: 10px; }
.tw-adw-warn { padding: 9px 13px; border-radius: var(--radius-sm); font-size: 11.5px; }
.tw-adw-warn-red { background: rgba(239,68,68,0.07); border: 1px solid rgba(239,68,68,0.18); color: #fca5a5; }
.tw-adw-warn-orange { background: rgba(249,115,22,0.07); border: 1px solid rgba(249,115,22,0.18); color: #fdba74; }

.tw-miranda-block { background: #161c26; border: 1px solid rgba(212,175,110,0.2); border-radius: 8px; padding: 14px; margin-top: 7px; }
.tw-miranda-block p { font-size: 13px; color: #c5d0dc; line-height: 1.6; margin-bottom: 9px; }
.tw-miranda-block p:last-child { margin-bottom: 0; }

/* ═══════════════════════════════════════════
   POJAZDY — layout sekcji
   ═══════════════════════════════════════════ */

.vehicles-page {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.vehicles-lead {
  margin: 0;
  padding: 13px 16px;
  font-size: 14px;
  line-height: 1.65;
  color: #c5d0dc;
  border-radius: 10px;
  border: 1px solid rgba(212, 175, 110, 0.16);
  background: rgba(224, 180, 90, 0.06);
  font-family: 'Inter', system-ui, sans-serif;
}

.veh-section {
  margin: 0;
  padding: 18px 18px 16px;
  border-radius: 14px;
  border: 1px solid rgba(212, 175, 110, 0.16);
  background: #161c26;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
}

.veh-section-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 14px;
  padding: 0 0 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  border-left: none;
  border-radius: 0;
  background: none;
}

.veh-section-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #1a1814;
  border: 1px solid rgba(201, 161, 91, 0.35);
  color: #e0b45a;
}

.veh-section-icon svg {
  display: block;
  width: 18px;
  height: 18px;
  transform: none;
}

.veh-section-text {
  min-width: 0;
  min-height: 36px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: left;
}

.veh-title {
  margin: 0;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #f4efe4;
  line-height: 1.15;
  background: none;
  -webkit-background-clip: unset;
  background-clip: unset;
  -webkit-text-fill-color: #f4efe4;
}

.veh-subtitle {
  margin: 3px 0 0;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 12px;
  color: #8a9aab;
  letter-spacing: 0;
  line-height: 1.3;
}

.veh-section-header.seu .veh-section-icon {
  background: #121a18;
  border-color: rgba(16, 185, 129, 0.35);
  color: #34d399;
}

.veh-section-header.ted .veh-section-icon {
  background: #18141e;
  border-color: rgba(168, 85, 247, 0.35);
  color: #c084fc;
}

.veh-section-header.heat .veh-section-icon {
  background: #1c1612;
  border-color: rgba(249, 115, 22, 0.4);
  color: #fb923c;
}

.veh-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.veh-card {
  margin: 0;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #141a24;
  box-shadow: none;
  transition: border-color 0.15s ease;
  position: relative;
  overflow: visible;
}

.veh-card::before {
  display: none;
}

.veh-card:hover {
  border-color: rgba(224, 180, 90, 0.35);
  box-shadow: none;
  transform: none;
}

.veh-card.seu-card:hover {
  border-color: rgba(16, 185, 129, 0.4);
  box-shadow: none;
}

.veh-card.ted-card:hover {
  border-color: rgba(168, 85, 247, 0.4);
  box-shadow: none;
}

.veh-card.heat-card:hover {
  border-color: rgba(249, 115, 22, 0.4);
  box-shadow: none;
}

.veh-car-icon {
  display: none;
}

.veh-info {
  flex: 1;
  min-width: 0;
  text-align: left;
}

.veh-name {
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 600;
  font-size: 13.5px;
  color: #f4efe4;
  text-transform: none;
  letter-spacing: 0;
  line-height: 1.3;
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.veh-spawn {
  display: inline-block;
  margin: 4px 8px 0 0;
  padding: 0;
  border: none;
  border-radius: 0;
  background: none;
  font-family: 'Menlo', 'Consolas', monospace;
  font-size: 11.5px;
  color: #c9a15b;
  cursor: pointer;
  transition: color 0.15s;
}

.veh-spawn:hover {
  color: #f0d78c;
  border-color: transparent;
  background: none;
}

.veh-rank-badge {
  flex-shrink: 0;
  align-self: center;
  min-width: 7.2em;
  text-align: center;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 11px;
  font-weight: 600;
  font-style: normal;
  font-synthesis: none;
  font-variant-numeric: lining-nums tabular-nums;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  padding: 5px 8px;
  border-radius: 4px;
  white-space: nowrap;
  background: rgba(88, 101, 242, 0.12);
  color: #a5b4fc;
  border: 1px solid rgba(88, 101, 242, 0.25);
}

.veh-rank-badge--seu {
  background: rgba(16, 185, 129, 0.12) !important;
  color: #6ee7b7 !important;
  border-color: rgba(16, 185, 129, 0.28) !important;
}

.veh-rank-badge--ted {
  background: rgba(168, 85, 247, 0.12) !important;
  color: #d8b4fe !important;
  border-color: rgba(168, 85, 247, 0.28) !important;
}

.veh-rank-badge--heat {
  background: rgba(249, 115, 22, 0.12) !important;
  color: #fdba74 !important;
  border-color: rgba(249, 115, 22, 0.28) !important;
}

.veh-rank-badge.rank-kadet {
  background: rgba(148, 163, 184, 0.12) !important;
  color: #94a3b8 !important;
  border-color: rgba(148, 163, 184, 0.25) !important;
}

.veh-rank-badge.rank-oficer {
  background: rgba(59, 130, 246, 0.12) !important;
  color: #60a5fa !important;
  border-color: rgba(59, 130, 246, 0.25) !important;
}

.veh-rank-badge.rank-sierzant {
  background: rgba(20, 184, 166, 0.12) !important;
  color: #2dd4bf !important;
  border-color: rgba(20, 184, 166, 0.25) !important;
}

.veh-rank-badge.rank-porucznik {
  background: rgba(168, 85, 247, 0.12) !important;
  color: #c084fc !important;
  border-color: rgba(168, 85, 247, 0.25) !important;
}

.veh-rank-badge.rank-kapitan {
  background: rgba(245, 158, 11, 0.12) !important;
  color: #fbbf24 !important;
  border-color: rgba(245, 158, 11, 0.25) !important;
}

.veh-offroad-tag {
  display: inline-flex;
  align-items: center;
  margin-top: 4px;
  padding: 0;
  border-radius: 0;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  color: #6ee7b7;
  background: none;
  border: none;
}

.veh-offroad-tag::before {
  content: none;
}

@media (max-width: 900px) {
  .veh-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .veh-card {
    flex-wrap: wrap;
  }
  .veh-rank-badge {
    margin-left: 0;
  }
}

/* ═══════════════════════════════════════════
   ANIMATIONS & HIGHLIGHTS
   ═══════════════════════════════════════════ */
@keyframes highlightPulse {
  0%   { background-color: rgba(59,130,246,0.0); }
  10%  { background-color: rgba(59,130,246,0.28); box-shadow: 0 0 20px rgba(59,130,246,0.18); border-radius: var(--radius-sm); }
  100% { background-color: rgba(59,130,246,0.0); border-radius: var(--radius-sm); }
}

.highlight-pulse { animation: highlightPulse 1.5s ease-out; }

.scroll-reveal,
.scroll-reveal.active,
.scroll-reveal-left.active,
.scroll-reveal-right.active { opacity: 1; }

/* ═══════════════════════════════════════════
   MODAL (Gallery)
   ═══════════════════════════════════════════ */
.evidence-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(175px, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.evidence-img {
  width: 100%; height: auto;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255,255,255,0.06);
  transition: transform 0.3s, border-color 0.3s;
  cursor: pointer;
}
.evidence-img:hover {
  transform: scale(1.03);
  border-color: var(--accent);
  box-shadow: 0 4px 16px rgba(0,0,0,0.4);
}

.modal {
  display: none;
  position: fixed;
  z-index: 200;
  left: 0; top: 0;
  width: 100%; height: 100%;
  overflow: auto;
  background: rgba(0,0,0,0.92);
  backdrop-filter: blur(8px);
  align-items: center;
  justify-content: center;
}

.modal-content {
  margin: auto;
  display: block;
  max-width: 90%;
  max-height: 85vh;
  border-radius: var(--radius-md);
  border: 1px solid var(--accent);
  box-shadow: 0 0 40px rgba(88,101,242,0.25);
  animation: zoom 0.25s ease;
}

.close-modal {
  position: absolute;
  top: 18px; right: 30px;
  color: #f1f1f1;
  font-size: 36px;
  font-weight: bold;
  transition: 0.3s;
  cursor: pointer;
  z-index: 201;
}
.close-modal:hover { color: var(--accent); }

.prev, .next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  padding: 14px;
  margin-top: -44px;
  color: white;
  font-weight: bold;
  font-size: 28px;
  transition: 0.3s ease;
  user-select: none;
  background: rgba(0,0,0,0.5);
  z-index: 201;
}
.prev { left: 0; border-radius: 0 3px 3px 0; }
.next { right: 0; border-radius: 3px 0 0 3px; }
.prev:hover, .next:hover { background: rgba(88,101,242,0.75); }

@keyframes zoom {
  from { transform: scale(0.92); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}

/* Misc */
.card-content:has(.tw-tab-nav) { white-space: normal; }

/* ═══════════════════════════════════════════
   WATERMARK
   ═══════════════════════════════════════════ */
#watermark {
  display: none;
}
#watermark canvas {
  width: 100%;
  height: 100%;
}
#watermark {
  display: block !important;
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 500;
  overflow: hidden;
}
#watermark canvas {
  display: block;
  width: 100%;
  height: 100%;
  opacity: 0.038;
}

/* ═══════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════ */
.credits-footer {
  position: fixed;
  bottom: 9px; right: 18px;
  font-size: 11.5px;
  color: var(--muted);
  opacity: 0.55;
  z-index: 100;
  pointer-events: none;
  letter-spacing: 0.02em;
}

@media (max-width: 480px) { .credits-footer { display: none; } }

/* Branding — tytuL� sidebara */
.brand h1 {
  font-family: 'Rajdhani', sans-serif !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  letter-spacing: 0.03em !important;
  text-transform: none !important;
  color: #f4efe4;
  background: none !important;
  -webkit-background-clip: unset !important;
  background-clip: unset !important;
  -webkit-text-fill-color: #f4efe4 !important;
  line-height: 1.2;
}

.brand h1 span {
  color: #e0b45a !important;
  -webkit-text-fill-color: #e0b45a !important;
}

/* ═══════════════════════════════════════════
   LIGHTBOX
   ═══════════════════════════════════════════ */
.lb-thumb {
  position: relative;
  width: 50%;
  height: 140px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: zoom-in;
  border: 1px solid rgba(255,255,255,0.12);
}
.lb-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.2s; }
.lb-thumb:hover img { transform: scale(1.05); }
.lb-hint {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.55);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 12px; font-weight: 600;
  letter-spacing: 0.04em; opacity: 0; transition: opacity 0.2s;
  text-align: center; padding: 6px;
}
.lb-thumb:hover .lb-hint { opacity: 1; }

#lightbox {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.9);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(8px);
}
#lightbox-inner { position: relative; display: inline-block; }
#lightbox-img {
  max-width: 90vw; max-height: 85vh;
  border-radius: var(--radius-md);
  border: 1px solid rgba(165,201,255,0.3);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.06), 0 8px 70px rgba(0,0,0,0.95);
  display: block;
}
#lightbox-close {
  position: absolute; top: -13px; right: -13px;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: #1a2540;
  border: 2px solid rgba(165,201,255,0.35);
  color: #e2e8f0;
  font-size: 14px; font-weight: 700;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  line-height: 1;
  transition: background 0.15s;
}
#lightbox-close:hover { background: #2d3f60; }
#lightbox-bg { position: absolute; inset: 0; cursor: zoom-out; }

/* ═══════════════════════════════════════════
   WYPOSAZENIE PAGE — sidebar nav items
   ═══════════════════════════════════════════ */
.wyp-unit-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  cursor: pointer;
  transition: all 0.18s;
  margin-bottom: 4px;
}
.wyp-unit-card:hover {
  background: rgba(88,101,242,0.08);
  border-color: rgba(88,101,242,0.22);
}

/* ═══════════════════════════════════════════
   NAV ITEM CLASSES (new sidebar structure)
   ═══════════════════════════════════════════ */
.nav-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  font-size: 12.5px;
  font-weight: 500;
  color: #6b85a4;
  transition: all 0.18s;
  user-select: none;
  position: relative;
}

.nav-item:hover {
  background: rgba(255,255,255,0.04);
  color: #c8d8e8;
  border-color: rgba(255,255,255,0.05);
}

.nav-item.active {
  background: linear-gradient(135deg,
    rgba(88,101,242,0.16) 0%,
    rgba(59,130,246,0.08) 100%);
  border-color: rgba(88,101,242,0.28);
  color: #fff;
  box-shadow: 0 2px 12px rgba(88,101,242,0.12);
}

.nav-item .nav-icon { font-size: 14px; flex-shrink: 0; }
.nav-item .nav-label { flex: 1; }

.nav-group-header {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  color: #4d637f;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  transition: all 0.18s;
  user-select: none;
}

.nav-group-header:hover {
  color: #94a3b8;
  background: rgba(255,255,255,0.025);
}

.nav-group-header .arrow {
  margin-left: auto;
  font-size: 10px;
  opacity: 0.6;
  transition: transform 0.2s;
}

.nav-divider {
  display: block;
  height: 1px;
  background: rgba(255,255,255,0.05);
  margin: 7px 4px;
}

.nav-sublist {
  padding-left: 8px;
  list-style: none;
  margin: 0;
  padding: 0 0 0 8px;
}

.nav-item.sub   { font-size: 12.5px; padding: 7px 10px; }
.nav-item.sub2  { font-size: 12px;   padding: 6px 10px; color: #536880; }
.nav-item.sub2:hover { color: #94a3b8; }

/* ═══════════════════════════════════════════
   CONTENT PAGE HEADER BOOKMARK BTN
   ═══════════════════════════════════════════ */
.phb-logo {
  width: 50px; height: 50px;
  border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(88,101,242,0.35), 0 0 20px rgba(88,101,242,0.25);
  flex-shrink: 0;
}

/* ═══════════════════════════════════════════
   EXTRA POLISH — card content animations
   ═══════════════════════════════════════════ */

/* Better scrollbar for main */
.main::-webkit-scrollbar { width: 5px; }
.main::-webkit-scrollbar-track { background: transparent; }
.main::-webkit-scrollbar-thumb { background: rgba(88,101,242,0.25); border-radius: 3px; }

.menu button.active {
  animation: none;
}

/* Selection color */
::selection {
  background: rgba(88,101,242,0.35);
  color: #fff;
}

/* Focus ring */
button:focus-visible, a:focus-visible {
  outline: 2px solid rgba(88,101,242,0.6);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ═══════════════════════════════════════════
   KOMENDY BOT — layout (kolory = design system)
   ═══════════════════════════════════════════ */

body.page-komendy-bot #watermark canvas,
body.page-limity #watermark canvas,
body.page-dzialanie #watermark canvas,
body.page-umundurowanie #watermark canvas,
body.page-zarzad #watermark canvas,
body.page-pojazdy #watermark canvas,
body.page-training #watermark canvas,
body.page-test-wiedzy #watermark canvas,
body.page-benefity #watermark canvas,
body.page-struktura #watermark canvas,
body.page-przeszukania #watermark canvas {
  opacity: 0.018 !important;
}

.bot-commands {
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
  z-index: 2;
}

.bot-lead {
  margin: 0 0 8px;
  padding: 13px 16px;
  font-size: 14px;
  line-height: 1.65;
  color: #c5d0dc;
  font-family: 'Inter', system-ui, sans-serif;
  border-radius: 10px;
  border: 1px solid rgba(212, 175, 110, 0.16);
  background: rgba(224, 180, 90, 0.06);
}

.bot-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.bot-chip {
  display: flex;
  align-items: center;
  align-self: stretch;
  gap: 10px;
  padding: 18px 0 2px;
  margin: 10px 0 4px;
  border-radius: 0;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #c4a056;
  background: none;
  border: 0;
  border-top: 1px solid rgba(212, 175, 110, 0.2);
}

.bot-section:first-of-type .bot-chip {
  border-top: none;
  padding-top: 4px;
  margin-top: 4px;
}

.bot-chip::before {
  content: '';
  width: 3px;
  height: 14px;
  border-radius: 1px;
  background: #c9a15b;
  flex-shrink: 0;
}

.bot-chip::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(212, 175, 110, 0.18);
}

.bot-card {
  padding: 18px 18px 16px;
  border-radius: 10px;
  background: #161c26;
  border: 1px solid rgba(212, 175, 110, 0.16);
  box-shadow: none;
}

.bot-card--new {
  border-color: rgba(61, 143, 90, 0.35);
  border-left: 3px solid #3d8f5a;
  background: #161c26;
  box-shadow: none;
}

.bot-card-head h3 {
  margin: 0 0 10px;
  padding: 0 0 10px;
  border-bottom: 1px solid rgba(212, 175, 110, 0.2);
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #e0b45a;
}

.bot-card-title-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 0;
}

.bot-card-title-row h3 {
  margin: 0;
  padding: 0;
  border-bottom: none;
}

.bot-card-head:has(.bot-card-title-row) {
  border-bottom: 1px solid rgba(212, 175, 110, 0.2);
  margin-bottom: 10px;
  padding-bottom: 10px;
}

.bot-card-head:has(.bot-card-title-row) p {
  margin-bottom: 16px;
}

.bot-tag-new {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #7dba90;
  background: rgba(61, 143, 90, 0.12);
  border: 1px solid rgba(61, 143, 90, 0.28);
  border-radius: 8px;
  padding: 3px 8px;
}

.bot-card-head p {
  margin: 0 0 16px;
  font-size: 14px;
  line-height: 1.65;
  color: #c5d0dc;
  font-family: 'Inter', system-ui, sans-serif;
}

.bot-card-head p strong {
  color: #f4efe4;
  font-weight: 600;
}

.bot-snippet {
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(212, 175, 110, 0.2);
  background: #141a24;
}

.bot-snippet-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 14px;
  background: rgba(224, 180, 90, 0.07);
  border-bottom: 1px solid rgba(212, 175, 110, 0.14);
}

.bot-snippet--solo .bot-snippet-bar {
  border-bottom: none;
}

.bot-snippet-bar code {
  font-family: 'Consolas', 'Menlo', 'Monaco', monospace;
  font-size: 14px;
  font-weight: 600;
  color: #e0c07a;
  text-transform: none;
  letter-spacing: 0;
  word-break: break-all;
}

.bot-snippet-copy {
  position: static !important;
  flex-shrink: 0;
  margin: 0;
  padding: 6px 12px !important;
  border-radius: 8px !important;
  font-family: 'Inter', system-ui, sans-serif !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  letter-spacing: 0.04em !important;
  text-transform: uppercase !important;
  color: #c4a056 !important;
  background: rgba(224, 180, 90, 0.1) !important;
  border: 1px solid rgba(212, 175, 110, 0.28) !important;
  box-shadow: none !important;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.bot-snippet-copy:hover {
  background: rgba(224, 180, 90, 0.2) !important;
  color: #f4efe4 !important;
  border-color: rgba(224, 180, 90, 0.45) !important;
  box-shadow: none !important;
}

.bot-snippet-copy.copied {
  background: rgba(61, 143, 90, 0.18) !important;
  color: #7dba90 !important;
  border-color: rgba(61, 143, 90, 0.4) !important;
}

.bot-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 14px;
  background: #121820;
}

.bot-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.bot-field label {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 11px;
  font-weight: 600;
  color: #8a9aab;
  text-transform: lowercase;
  letter-spacing: 0.02em;
}

.bot-field span {
  display: block;
  padding: 10px 12px;
  border-radius: 8px;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 13px;
  font-weight: 500;
  font-variant-numeric: lining-nums tabular-nums;
  font-synthesis: none;
  line-height: 1.45;
  color: #f4efe4;
  background: #161c26;
  border: 1px solid rgba(212, 175, 110, 0.16);
  text-transform: none;
  word-break: break-word;
}

.bot-tip {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 12px 0 0;
  padding: 14px 16px;
  border-radius: 8px;
  border: 1px solid rgba(212, 175, 110, 0.2);
  border-left: 3px solid #c9a15b;
  background: rgba(224, 180, 90, 0.06);
}

.bot-tip svg {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  color: #c4a056;
  margin-top: 2px;
}

.bot-tip p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.6;
  color: #c5d0dc;
  font-family: 'Inter', system-ui, sans-serif;
}

@media (max-width: 720px) {
  .bot-fields {
    grid-template-columns: 1fr;
  }
  .bot-snippet-bar {
    flex-direction: column;
    align-items: stretch;
  }
  .bot-snippet-copy {
    width: 100%;
    text-align: center;
  }
}

/* ═══════════════════════════════════════════
   LIMITY — dedykowany layout sekcji
   ═══════════════════════════════════════════ */

.limits-page {
  position: relative;
  z-index: 2;
}

.limits-lead {
  margin: 0 0 8px;
  padding: 13px 16px;
  font-size: 14px;
  line-height: 1.65;
  color: #c5d0dc;
  border-radius: 10px;
  border: 1px solid rgba(212, 175, 110, 0.16);
  background: rgba(224, 180, 90, 0.06);
  font-family: 'Inter', system-ui, sans-serif;
}

body.page-limity .card-content > .quick-nav {
  position: sticky;
  top: 10px;
  z-index: 10;
  gap: 6px;
  margin-bottom: 16px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(212, 175, 110, 0.2);
  background: #161c26;
  backdrop-filter: none;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.28);
}

body.page-limity .card-content > .quick-nav > span {
  width: 100%;
  margin-bottom: 2px;
  font-size: 10px;
  color: #8a9aab !important;
  letter-spacing: 0.12em;
}

body.page-limity .card-content > .quick-nav .nav-pill {
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 11px;
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: none;
  background: rgba(224, 180, 90, 0.08);
  border-color: rgba(212, 175, 110, 0.28);
  color: #c4a056;
  transform: none;
  box-shadow: none;
}

body.page-limity .card-content > .quick-nav .nav-pill:hover {
  background: rgba(224, 180, 90, 0.16);
  color: #f4efe4;
  border-color: rgba(224, 180, 90, 0.45);
  transform: none;
  box-shadow: none;
}

body.page-limity .highlight-pulse {
  animation: limityHighlightPulse 1.5s ease-out;
}

@keyframes limityHighlightPulse {
  0%   { background-color: transparent; }
  10%  { background-color: rgba(224, 180, 90, 0.14); }
  100% { background-color: transparent; }
}

.limits-rules {
  margin-bottom: 8px;
  padding: 16px 18px 12px;
  border-radius: 12px;
  border: 1px solid rgba(212, 175, 110, 0.16);
  background: #161c26;
  box-shadow: none;
}

.limits-rules .header-note {
  margin-top: 0 !important;
  margin-bottom: 12px;
  padding-top: 0;
  border-top: none;
}

.limits-rules ul {
  margin: 0;
}

.limits-rules li {
  color: #c5d0dc;
  margin-bottom: 8px;
  line-height: 1.6;
  font-family: 'Inter', system-ui, sans-serif;
}

body.page-limity .limits-rules li::before {
  background: #c9a15b;
  box-shadow: none;
}

.limits-page .header-note {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
  margin-bottom: 12px;
  padding: 20px 0 0;
  font-size: 12px;
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #c4a056;
  background: none;
  border: 0;
  border-top: 1px solid rgba(212, 175, 110, 0.2);
  border-radius: 0;
  box-shadow: none;
}

.limits-page > .header-note:first-of-type {
  margin-top: 18px;
}

.limits-page .header-note::before {
  content: '';
  width: 3px;
  height: 14px;
  border-radius: 1px;
  background: #c9a15b;
  flex-shrink: 0;
}

.limits-page .header-note::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(212, 175, 110, 0.18);
}

.limits-page .header-note[data-nav="FTO"] { color: #d4a07a; }
.limits-page .header-note[data-nav="FTO"]::before { background: #c2410c; }

.limits-page .header-note[data-nav="ZARZĄD SRU"],
.limits-page .header-note[data-nav="SRU (ELITE)"],
.limits-page .header-note[data-nav="SRU (TRIAL)"] { color: #8bb8c2; }
.limits-page .header-note[data-nav="ZARZĄD SRU"]::before,
.limits-page .header-note[data-nav="SRU (ELITE)"]::before,
.limits-page .header-note[data-nav="SRU (TRIAL)"]::before { background: #3d7a88; }

.limits-page .header-note[data-nav="DEA"] { color: #d4a07a; }
.limits-page .header-note[data-nav="DEA"]::before { background: #c2410c; }

.limits-page .header-note[data-nav="SAHP"] { color: #d4c07a; }
.limits-page .header-note[data-nav="SAHP"]::before { background: #ca8a04; }

.limits-page .header-note[data-nav="AIAD"] { color: #e0c07a; }
.limits-page .header-note[data-nav="AIAD"]::before { background: #e0b45a; }

.limits-page .limits-rules .header-note {
  margin-top: 0 !important;
  padding-top: 0;
  border-top: none;
}

.limits-page .table-wrapper {
  margin-bottom: 4px;
  border: 1px solid rgba(212, 175, 110, 0.16);
  background: #161c26;
  box-shadow: none;
  border-radius: 10px;
}

.limits-page .table-wrapper:hover {
  border-color: rgba(212, 175, 110, 0.28);
  box-shadow: none;
}

.limits-page .limit-table th {
  background: rgba(224, 180, 90, 0.08);
  color: #c4a056;
  padding: 12px 16px;
  font-family: 'Inter', system-ui, sans-serif;
  border-bottom: 1px solid rgba(212, 175, 110, 0.16);
}

.limits-page .limit-table td {
  padding: 11px 16px;
  font-size: 13.5px;
  font-family: 'Inter', system-ui, sans-serif;
  border-bottom: 1px solid rgba(212, 175, 110, 0.08);
}

.limits-page .limit-table td:first-child {
  color: #f4efe4;
  font-weight: 600;
}

.limits-page .limit-table td:last-child {
  color: #e0b45a;
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 600;
  font-variant-numeric: lining-nums tabular-nums;
  font-synthesis: none;
}

.limits-page .limit-table tr:nth-child(even) td {
  background: rgba(224, 180, 90, 0.03);
}

.limits-page .limit-table tr:hover td {
  background: rgba(224, 180, 90, 0.06);
}

.limits-page .header-note[data-nav="AIAD"] + .table-wrapper {
  border-color: rgba(212, 175, 110, 0.32);
  box-shadow: none;
}

.limits-page .header-note[data-nav="AIAD"] + .table-wrapper .limit-table th {
  background: rgba(224, 180, 90, 0.12);
  color: #e0c07a;
}

body.page-limity .badge-red {
  color: #c98a8a;
  background: rgba(161, 75, 75, 0.12);
  border: 1px solid rgba(161, 75, 75, 0.28);
  border-radius: 8px;
}

@media (max-width: 640px) {
  body.page-limity .card-content > .quick-nav {
    position: static;
  }
  body.page-limity .card-content > .quick-nav .nav-pill {
    font-size: 10px;
    padding: 6px 11px;
  }
}

/* ═══════════════════════════════════════════
   DZIAL�ANIE — layout sekcji
   ═══════════════════════════════════════════ */

.dzialanie-page {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.dzialanie-lead {
  margin: 0 0 8px;
  padding: 13px 16px;
  font-size: 14px;
  line-height: 1.65;
  color: #c5d0dc;
  border-radius: 10px;
  border: 1px solid rgba(212, 175, 110, 0.16);
  background: rgba(224, 180, 90, 0.06);
  font-family: 'Inter', system-ui, sans-serif;
}

.dzialanie-sec {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: #c4a056;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin: 18px 0 10px;
}

.dzialanie-sec:first-of-type { margin-top: 4px; }

.dzialanie-sec::before {
  content: '';
  width: 3px;
  height: 14px;
  border-radius: 1px;
  background: #c9a15b;
  flex-shrink: 0;
}

.dzialanie-sec::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(212, 175, 110, 0.18);
}

.duty-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.duty-card {
  padding: 16px 18px 16px 16px;
  border-radius: 10px;
  background: #161c26;
  border: 1px solid rgba(212, 175, 110, 0.16);
  border-left: 3px solid #c9a15b;
  box-shadow: none;
}

.duty-card:hover {
  border-color: rgba(212, 175, 110, 0.28);
  border-left-color: #e0b45a;
  box-shadow: none;
  transform: none;
}

.duty-card--wide {
  grid-column: 1 / -1;
}

.duty-icon { display: none; }

.duty-card h4 {
  margin: 0 0 10px;
  padding: 0 0 10px;
  border-bottom: 1px solid rgba(212, 175, 110, 0.2);
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #e0b45a;
}

.duty-card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: #c5d0dc;
  font-family: 'Inter', system-ui, sans-serif;
}

.dzialanie-alert {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 8px;
  border: 1px solid rgba(139, 70, 64, 0.4);
  border-left: 3px solid #a44a42;
  background: #1a1416;
  box-shadow: none;
  text-align: left;
}

.dzialanie-alert-icon { display: none; }

.dzialanie-alert h4 {
  margin: 0 0 8px;
  padding: 0 0 8px;
  border-bottom: 1px solid rgba(161, 75, 75, 0.28);
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #d4a09a;
}

.dzialanie-alert p {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: #d2c4c4;
  font-family: 'Inter', system-ui, sans-serif;
}

.dzialanie-alert p strong {
  color: #f4efe4;
  font-weight: 600;
}

@media (max-width: 720px) {
  .duty-grid {
    grid-template-columns: 1fr;
  }
  .duty-card--wide {
    grid-column: auto;
  }
}

/* ═══════════════════════════════════════════
   UMUNDUROWANIE — layout sekcji
   ═══════════════════════════════════════════ */

.uniform-page {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.uniform-lead {
  margin: 0;
  padding: 13px 16px;
  font-size: 14px;
  line-height: 1.65;
  color: #c5d0dc;
  border-radius: 10px;
  border: 1px solid rgba(212, 175, 110, 0.16);
  background: rgba(224, 180, 90, 0.06);
  font-family: 'Inter', system-ui, sans-serif;
}

.uniform-lead a {
  color: #e0b45a;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(224, 180, 90, 0.4);
  transition: color 0.2s, border-color 0.2s;
}

.uniform-lead a:hover {
  color: #f0d78c;
  border-bottom-color: #f0d78c;
}

.uniform-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.uniform-card {
  padding: 20px 20px 18px;
  border-radius: 14px;
  background: #161c26;
  border: 1px solid rgba(212, 175, 110, 0.16);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.uniform-card:hover {
  border-color: rgba(224, 180, 90, 0.4);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.26);
  transform: translateY(-2px);
}

.uniform-card--wide {
  grid-column: 1 / -1;
}

.uniform-card--zarzad {
  border-color: rgba(224, 180, 90, 0.35);
  background: linear-gradient(180deg, #1e1a12 0%, #161410 100%);
  align-self: stretch;
}

.uniform-card-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.uniform-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(224, 180, 90, 0.12);
  border: 1px solid rgba(224, 180, 90, 0.28);
  color: #e0b45a;
}

.uniform-icon svg {
  width: 20px;
  height: 20px;
}

.uniform-icon--fto {
  background: rgba(249, 115, 22, 0.12);
  border-color: rgba(249, 115, 22, 0.28);
  color: #fb923c;
}

.uniform-icon--swat {
  background: rgba(59, 130, 246, 0.12);
  border-color: rgba(59, 130, 246, 0.28);
  color: #60a5fa;
}

.uniform-icon--zarzad {
  background: rgba(226, 232, 240, 0.08);
  border-color: rgba(224, 180, 90, 0.35);
  color: #f4efe4;
}

.uniform-card h4 {
  margin: 0;
  font-family: 'Rajdhani', sans-serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #f4efe4;
  background: none;
  -webkit-background-clip: unset;
  background-clip: unset;
  -webkit-text-fill-color: #f4efe4;
}

.uniform-card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.65;
  color: #c5d0dc;
  font-family: 'Inter', system-ui, sans-serif;
}

.uniform-card p strong {
  color: #f4efe4;
  font-weight: 600;
}

.uniform-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.uniform-gallery-block {
  margin-top: 18px;
  padding: 14px 14px 16px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.22);
  border: 1px dashed rgba(212, 175, 110, 0.28);
}

.uniform-gallery-hint {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  padding: 8px 12px;
  border-radius: 8px;
  background: rgba(224, 180, 90, 0.1);
  border: 1px solid rgba(212, 175, 110, 0.22);
  font-family: 'Rajdhani', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #e0c07a;
}

.uniform-gallery-hint svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: #e0b45a;
}

.uniform-photo {
  cursor: zoom-in;
  outline: none;
  transition: transform 0.2s ease;
}

.uniform-photo:focus-visible {
  outline: 2px solid #e0b45a;
  outline-offset: 3px;
  border-radius: 12px;
}

.uniform-photo-frame {
  position: relative;
  height: 240px;
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid rgba(212, 175, 110, 0.28);
  background: #0c1018;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.uniform-photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
  display: block;
  transition: transform 0.25s ease;
}

.uniform-photo-badge {
  position: absolute;
  bottom: 10px;
  right: 10px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 11px;
  border-radius: 999px;
  background: #c9a15b;
  color: #1a1408;
  font-family: 'Rajdhani', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
  pointer-events: none;
}

.uniform-photo-badge svg {
  width: 13px;
  height: 13px;
}

.uniform-photo-label {
  display: block;
  margin-top: 9px;
  text-align: center;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 12.5px;
  font-weight: 600;
  color: #8a9aab;
  letter-spacing: 0.02em;
}

.uniform-photo:hover .uniform-photo-frame,
.uniform-photo:focus-visible .uniform-photo-frame {
  border-color: #e0b45a;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.3);
}

.uniform-photo:hover .uniform-photo-frame img {
  transform: scale(1.04);
}

.uniform-photo:hover .uniform-photo-label {
  color: #c5d0dc;
}

.uniform-alert {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 18px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(239, 68, 68, 0.28);
  background: linear-gradient(145deg, rgba(28, 10, 10, 0.95), rgba(14, 8, 12, 0.98));
}

.uniform-alert-icon {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Rajdhani', sans-serif;
  font-size: 13px;
  font-weight: 800;
  color: #fca5a5;
  background: rgba(239, 68, 68, 0.12);
  border: 1.5px solid rgba(239, 68, 68, 0.4);
}

.uniform-alert p {
  margin: 0;
  font-size: 14px;
  line-height: 1.65;
  color: #e2e8f0;
  font-family: 'Inter', system-ui, sans-serif;
}

.uniform-alert p strong {
  color: #fff;
}

@media (max-width: 720px) {
  .uniform-grid {
    grid-template-columns: 1fr;
  }
  .uniform-card--wide {
    grid-column: auto;
  }
  .uniform-photo-frame {
    height: 190px;
  }
}

/* ═══════════════════════════════════════════
   ZARZĄD — layout sekcji
   ═══════════════════════════════════════════ */

body.page-zarzad .card,
body.page-struktura .card,
body.page-pojazdy .card,
body.page-umundurowanie .card,
body.page-training .card,
body.page-test-wiedzy .card,
body.page-benefity .card,
body.page-przeszukania .card,
body.page-dzialanie .card,
body.page-limity .card,
body.page-komendy-bot .card {
  background: #141a24;
  border: 1px solid rgba(212, 175, 110, 0.16);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
  backdrop-filter: none;
}

body.page-zarzad .card::before,
body.page-struktura .card::before,
body.page-pojazdy .card::before,
body.page-umundurowanie .card::before,
body.page-training .card::before,
body.page-test-wiedzy .card::before,
body.page-benefity .card::before,
body.page-przeszukania .card::before,
body.page-dzialanie .card::before,
body.page-limity .card::before,
body.page-komendy-bot .card::before {
  content: none;
}

body.page-zarzad .header-row,
body.page-struktura .header-row,
body.page-pojazdy .header-row,
body.page-umundurowanie .header-row,
body.page-training .header-row,
body.page-test-wiedzy .header-row,
body.page-benefity .header-row,
body.page-przeszukania .header-row,
body.page-dzialanie .header-row,
body.page-limity .header-row,
body.page-komendy-bot .header-row {
  background: rgba(224, 180, 90, 0.07);
  border: 1px solid rgba(212, 175, 110, 0.22);
  overflow: hidden;
}

body.page-zarzad .header-row::before,
body.page-zarzad .header-row::after,
body.page-struktura .header-row::before,
body.page-struktura .header-row::after,
body.page-pojazdy .header-row::before,
body.page-pojazdy .header-row::after,
body.page-umundurowanie .header-row::before,
body.page-umundurowanie .header-row::after,
body.page-training .header-row::before,
body.page-training .header-row::after,
body.page-test-wiedzy .header-row::before,
body.page-test-wiedzy .header-row::after,
body.page-benefity .header-row::before,
body.page-benefity .header-row::after,
body.page-przeszukania .header-row::before,
body.page-przeszukania .header-row::after,
body.page-dzialanie .header-row::before,
body.page-dzialanie .header-row::after,
body.page-limity .header-row::before,
body.page-limity .header-row::after,
body.page-komendy-bot .header-row::before,
body.page-komendy-bot .header-row::after {
  content: none;
}

body.page-zarzad .header-row h2,
body.page-struktura .header-row h2,
body.page-pojazdy .header-row h2,
body.page-umundurowanie .header-row h2,
body.page-training .header-row h2,
body.page-test-wiedzy .header-row h2,
body.page-benefity .header-row h2,
body.page-przeszukania .header-row h2,
body.page-dzialanie .header-row h2,
body.page-limity .header-row h2,
body.page-komendy-bot .header-row h2 {
  background: none;
  -webkit-background-clip: unset;
  background-clip: unset;
  -webkit-text-fill-color: #f4efe4;
  color: #f4efe4;
  letter-spacing: 0.04em;
}

body.page-zarzad .header-row .subtitle,
body.page-struktura .header-row .subtitle,
body.page-pojazdy .header-row .subtitle,
body.page-umundurowanie .header-row .subtitle,
body.page-training .header-row .subtitle,
body.page-test-wiedzy .header-row .subtitle,
body.page-benefity .header-row .subtitle,
body.page-przeszukania .header-row .subtitle,
body.page-dzialanie .header-row .subtitle,
body.page-limity .header-row .subtitle,
body.page-komendy-bot .header-row .subtitle {
  color: #8a9aab;
}

body.page-zarzad .header-row .section-logo.aiad-logo,
body.page-struktura .header-row .section-logo.aiad-logo,
body.page-pojazdy .header-row .section-logo.aiad-logo,
body.page-umundurowanie .header-row .section-logo.aiad-logo,
body.page-training .header-row .section-logo.aiad-logo,
body.page-test-wiedzy .header-row .section-logo.aiad-logo,
body.page-benefity .header-row .section-logo.aiad-logo,
body.page-przeszukania .header-row .section-logo.aiad-logo,
body.page-dzialanie .header-row .section-logo.aiad-logo,
body.page-limity .header-row .section-logo.aiad-logo,
body.page-komendy-bot .header-row .section-logo.aiad-logo {
  box-shadow: 0 0 0 2px #c9a15b;
}

body.page-zarzad .header-row .section-logo.aiad-logo:hover,
body.page-struktura .header-row .section-logo.aiad-logo:hover,
body.page-pojazdy .header-row .section-logo.aiad-logo:hover,
body.page-umundurowanie .header-row .section-logo.aiad-logo:hover,
body.page-training .header-row .section-logo.aiad-logo:hover,
body.page-test-wiedzy .header-row .section-logo.aiad-logo:hover,
body.page-benefity .header-row .section-logo.aiad-logo:hover,
body.page-przeszukania .header-row .section-logo.aiad-logo:hover,
body.page-dzialanie .header-row .section-logo.aiad-logo:hover,
body.page-limity .header-row .section-logo.aiad-logo:hover,
body.page-komendy-bot .header-row .section-logo.aiad-logo:hover {
  box-shadow: 0 0 0 2px #e0b45a;
  transform: none;
}

.board-page {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.board-lead {
  margin: 0;
  padding: 13px 16px;
  font-size: 14px;
  line-height: 1.65;
  color: #c5d0dc;
  border-radius: 10px;
  border: 1px solid rgba(212, 175, 110, 0.16);
  background: rgba(224, 180, 90, 0.06);
  font-family: 'Inter', system-ui, sans-serif;
}

.board-sec {
  margin: 8px 0 0;
  font-family: 'Rajdhani', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #c4a056;
}

.board-card {
  position: relative;
  padding: 20px 22px 18px;
  border-radius: 14px;
  background: #161c26;
  border: 1px solid rgba(212, 175, 110, 0.18);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.board-card:hover {
  border-color: rgba(224, 180, 90, 0.4);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.28);
  transform: translateY(-2px);
}

.board-card--chief {
  padding: 22px 24px 20px;
  border-color: rgba(224, 180, 90, 0.45);
  background: linear-gradient(180deg, #1e1a12 0%, #161410 100%);
}

.board-card--chief:hover {
  border-color: rgba(224, 180, 90, 0.55);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.32);
}

.board-card--chief .board-num {
  background: #e0b45a;
  border-color: #e0b45a;
  color: #1a1408;
}

.board-card--chief .board-role {
  color: #e0b45a;
}

.board-card--vacant {
  border-style: dashed;
  border-color: rgba(100, 116, 139, 0.35);
  background: #141820;
  opacity: 0.88;
}

.board-card--vacant:hover {
  border-color: rgba(100, 116, 139, 0.5);
  transform: none;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.board-card--vacant .board-name {
  color: #94a3b8;
}

.board-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.board-card-top {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.board-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  padding: 4px 8px;
  border-radius: 7px;
  font-family: 'Rajdhani', sans-serif;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #e0b45a;
  background: rgba(224, 180, 90, 0.12);
  border: 1px solid rgba(224, 180, 90, 0.32);
}

.board-role {
  font-family: 'Rajdhani', sans-serif;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #c9b07a;
}

.board-name {
  margin: 0 0 10px;
  font-family: 'Rajdhani', sans-serif;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #f4efe4;
  line-height: 1.15;
  background: none;
  -webkit-background-clip: unset;
  background-clip: unset;
  -webkit-text-fill-color: #f4efe4;
}

.board-card--chief .board-name {
  font-size: 26px;
  color: #f7f3ea;
  -webkit-text-fill-color: #f7f3ea;
}

.board-desc {
  margin: 0;
  font-size: 14px;
  line-height: 1.65;
  color: #c5d0dc;
  font-family: 'Inter', system-ui, sans-serif;
}

.board-mentor {
  margin-top: 0;
}

.board-mentor-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

@media (max-width: 960px) {
  .board-mentor-grid { grid-template-columns: 1fr; }
}

.board-mentor-card {
  border-radius: 14px;
  border: 1px solid rgba(212, 175, 110, 0.16);
  background: #161c26;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.board-mentor-card:hover {
  border-color: rgba(224, 180, 90, 0.35);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.26);
  transform: translateY(-2px);
}

.board-mentor-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 18px;
}

.board-mentor-main {
  min-width: 0;
  flex: 1;
}

.board-mentor-top {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}

.board-mentor-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  padding: 2px 7px;
  border-radius: 6px;
  font-family: 'Rajdhani', sans-serif;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #1a1408;
  background: #c9a15b;
  border: 1px solid #c9a15b;
}

.board-mentor-label {
  font-family: 'Rajdhani', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #c4a056;
}

.board-mentor-name {
  margin: 0 0 4px;
  font-family: 'Rajdhani', sans-serif;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #f4efe4;
  line-height: 1.15;
  background: none;
  -webkit-background-clip: unset;
  background-clip: unset;
  -webkit-text-fill-color: #f4efe4;
}

.board-mentor-desc {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  color: #c5d0dc;
  font-family: 'Inter', system-ui, sans-serif;
}

.board-mentor-discord {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 11px;
  border-radius: 8px;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 12.5px;
  font-weight: 600;
  color: #f4efe4;
  background: rgba(224, 180, 90, 0.12);
  border: 1px solid rgba(224, 180, 90, 0.28);
}

.board-mentor-discord svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: #e0b45a;
}

@media (min-width: 1100px) {
  .board-row {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 960px) {
  .board-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .board-card--chief .board-name {
    font-size: 22px;
  }
  .board-name {
    font-size: 19px;
  }
  .board-mentor-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}

/* ═══════════════════════════════════════════
   LOGOWANIE — panel Discord OAuth
   ═══════════════════════════════════════════ */

/* Wejście karty — tylko opacity, bez transform (transform psuje klik w przycisk). */
@keyframes authPanelIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.auth-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  box-sizing: border-box;
  overflow-y: auto;
  /* Spokojne, ciemne tło — cała uwaga idzie na kartę. */
  background: radial-gradient(ellipse 90% 80% at 50% 42%, #121926 0%, #0b111a 52%, #06090f 100%);
  opacity: 1;
  transition: opacity 0.35s ease;
}

.auth-overlay.auth-leaving {
  opacity: 0;
  pointer-events: none;
}

.auth-stage {
  width: 100%;
  max-width: 418px;
  animation: authPanelIn 0.35s ease both;
}

.auth-panel {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 38px 34px 28px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background:
    linear-gradient(158deg, rgba(255, 255, 255, 0.05) 0%, transparent 44%),
    linear-gradient(168deg, #212b3a 0%, #1a2331 46%, #121924 100%);
  transform: none;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    inset 0 -1px 0 rgba(0, 0, 0, 0.55),
    inset 1px 0 0 rgba(255, 255, 255, 0.03),
    inset -1px 0 0 rgba(0, 0, 0, 0.28),
    0 0 0 1px rgba(0, 0, 0, 0.5),
    0 2px 3px rgba(0, 0, 0, 0.26),
    0 14px 22px rgba(0, 0, 0, 0.3),
    0 28px 46px rgba(0, 0, 0, 0.34),
    0 48px 80px rgba(0, 0, 0, 0.38);
  text-align: center;
}

.auth-panel.is-tilting {
  transform: none;
}

.auth-panel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #7c5127 20%, #c79b4f 50%, #7c5127 80%, transparent);
  pointer-events: none;
  z-index: 0;
}

.auth-panel::after {
  content: none;
  display: none;
}

.auth-head {
  /* Nad poświatą z .auth-panel::after. */
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 0;
}

/* Logo jak wytłoczona odznaka — cień pod spodem, bez świecenia. */
.auth-logo-wrap {
  position: relative;
  width: 84px;
  height: 84px;
  margin-bottom: 18px;
  padding: 3px;
  border-radius: 50%;
  background: linear-gradient(160deg, #d9b978, #9c7233 55%, #5d3a16);
  box-sizing: border-box;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.45),
    0 3px 6px rgba(0, 0, 0, 0.4),
    0 10px 22px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.auth-logo,
.auth-panel .aiad-logo {
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  border-radius: 50%;
  object-fit: cover;
  background: #141a24;
  box-shadow: none;
  transition: none;
}

.auth-logo:hover,
.auth-panel .aiad-logo:hover {
  box-shadow: none;
  transform: none;
}

.auth-title {
  margin: 0 0 6px;
  font-family: 'Rajdhani', sans-serif;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: none;
  color: #f4efe4;
  line-height: 1.15;
  background: none;
  -webkit-background-clip: unset;
  background-clip: unset;
  -webkit-text-fill-color: #f4efe4;
}

.auth-title span {
  color: #e0b45a;
  -webkit-text-fill-color: #e0b45a;
  background: none;
}

.auth-sub {
  margin: 0;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 12px;
  font-weight: 400;
  color: #8a9aab;
  letter-spacing: 0.02em;
  line-height: 1.4;
}

/* Treść panelu nad dekoracyjnymi warstwami (::before / ::after). */
.auth-panel > * {
  position: relative;
  z-index: 1;
}

.auth-panel > .auth-discord-btn {
  z-index: 5;
}

.auth-lead {
  margin: 24px 0 0;
  padding-top: 22px;
  /* Cieniowana linia zamiast płaskiej kreski. */
  border-top: 0;
  background:
    linear-gradient(90deg, transparent, rgba(224, 180, 90, 0.32) 22%, rgba(224, 180, 90, 0.32) 78%, transparent) top center / 100% 1px no-repeat;
  font-size: 13.5px;
  line-height: 1.55;
  color: #c5d0dc;
  font-family: 'Inter', system-ui, sans-serif;
}

.auth-flow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  list-style: none;
  margin: 18px 0 22px;
  padding: 11px 10px;
  counter-reset: auth-step;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(0, 0, 0, 0.26);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.3);
}

.auth-flow li {
  counter-increment: auth-step;
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 11px;
  font-weight: 500;
  color: #a8b6c6;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.auth-flow li::before {
  content: counter(auth-step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1px solid rgba(212, 175, 110, 0.35);
  background: rgba(212, 175, 110, 0.1);
  color: #e0b45a;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

/* Krok aktywny — sterowany klasą .auth-step-N na #authOverlay. */
.auth-overlay.auth-step-1 .auth-flow li[data-step="1"],
.auth-overlay.auth-step-2 .auth-flow li[data-step="2"],
.auth-overlay.auth-step-3 .auth-flow li[data-step="3"] {
  color: #f0d78c;
  font-weight: 600;
}

.auth-overlay.auth-step-1 .auth-flow li[data-step="1"]::before,
.auth-overlay.auth-step-2 .auth-flow li[data-step="2"]::before,
.auth-overlay.auth-step-3 .auth-flow li[data-step="3"]::before {
  background: #e0b45a;
  border-color: #e0b45a;
  color: #1a1408;
  box-shadow: 0 0 0 4px rgba(224, 180, 90, 0.16);
}

/* Kroki już zaliczone — ptaszek zamiast numeru. */
.auth-overlay.auth-step-2 .auth-flow li[data-step="1"]::before,
.auth-overlay.auth-step-3 .auth-flow li[data-step="1"]::before,
.auth-overlay.auth-step-3 .auth-flow li[data-step="2"]::before {
  content: '✓';
  background: rgba(224, 180, 90, 0.22);
  border-color: rgba(224, 180, 90, 0.5);
  color: #f0d78c;
  font-size: 11px;
}

/* Status (przekierowanie / weryfikacja) — ukryty dopóki JS nie ustawi tekstu. */
.auth-status {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin-bottom: 14px;
  padding: 11px 12px;
  border-radius: 9px;
  border: 1px solid rgba(212, 175, 110, 0.2);
  background: rgba(212, 175, 110, 0.07);
  color: #e8d6ab;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 12.5px;
  line-height: 1.45;
}

.auth-status.is-visible {
  display: flex;
}

.auth-status-spinner {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 2px solid rgba(224, 180, 90, 0.28);
  border-top-color: #e0b45a;
  animation: authSpin 0.7s linear infinite;
}

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

.auth-discord-btn .auth-btn-spinner {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  animation: authSpin 0.7s linear infinite;
}

.auth-flow li:not(:last-child)::after {
  content: '';
  display: block;
  width: 16px;
  height: 1px;
  margin: 0 8px 0 4px;
  background: rgba(212, 175, 110, 0.28);
  flex-shrink: 0;
}

.auth-error {
  display: none;
  margin-bottom: 14px;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid rgba(239, 68, 68, 0.22);
  background: rgba(239, 68, 68, 0.08);
  color: #f0a8a8;
  font-size: 12px;
  line-height: 1.45;
  text-align: left;
  font-family: 'Inter', system-ui, sans-serif;
}

.auth-discord-btn {
  position: relative;
  z-index: 5;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 15px 18px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(180deg, #6672f5 0%, #5865F2 48%, #4b57e0 100%);
  color: #fff;
  font-family: 'Rajdhani', sans-serif;
  font-size: 15.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: none;
  cursor: pointer;
  pointer-events: auto !important;
  overflow: hidden;
  isolation: isolate;
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.3),
    0 4px 10px rgba(0, 0, 0, 0.28),
    0 8px 18px rgba(40, 48, 130, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    inset 0 -1px 0 rgba(0, 0, 0, 0.28);
  transition: filter 0.12s ease;
}

.auth-discord-btn::after {
  display: none;
}

.auth-discord-btn:hover:not(:disabled) {
  filter: brightness(0.97);
  transform: none;
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.3),
    0 4px 10px rgba(0, 0, 0, 0.28),
    0 8px 18px rgba(40, 48, 130, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    inset 0 -1px 0 rgba(0, 0, 0, 0.28);
}

.auth-discord-btn:hover:not(:disabled)::after {
  display: none;
}

.auth-discord-btn:active:not(:disabled) {
  transform: translateY(0);
  filter: brightness(0.94);
}

.auth-discord-btn:disabled {
  opacity: 0.72;
  cursor: wait;
  transform: none;
  filter: saturate(0.75);
}

.auth-discord-btn:disabled::after {
  display: none;
}

.auth-discord-btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.auth-foot {
  margin: 16px 0 0;
  font-size: 11px;
  line-height: 1.5;
  color: #7a8b9e;
  font-family: 'Inter', system-ui, sans-serif;
}

@media (max-width: 400px) {
  .auth-panel {
    padding: 28px 20px 22px;
  }
  .auth-flow {
    flex-wrap: wrap;
    gap: 8px 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .auth-overlay,
  .auth-stage,
  .auth-discord-btn,
  .auth-discord-btn::after,
  .auth-status-spinner,
  .auth-discord-btn .auth-btn-spinner {
    animation: none !important;
    transition: none;
  }
  .auth-stage { opacity: 1; animation: none !important; }
}

/* ═══════════════════════════════════════════
   PRZESZUKANIA — layout sekcji
   ═══════════════════════════════════════════ */

.przesz-page {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 16px;
  white-space: normal;
}

.card-content .przesz-page,
.card-content .przesz-page * {
  white-space: normal;
}

.przesz-lead {
  margin: 0;
  padding: 13px 16px;
  font-size: 14px;
  line-height: 1.65;
  color: #c5d0dc;
  border-radius: 10px;
  border: 1px solid rgba(212, 175, 110, 0.16);
  background: rgba(224, 180, 90, 0.06);
  font-family: 'Inter', system-ui, sans-serif;
}

body.page-przeszukania .card-content > .quick-nav {
  position: sticky;
  top: 10px;
  z-index: 10;
  gap: 6px;
  margin-bottom: 8px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(212, 175, 110, 0.2);
  background: #161c26;
  backdrop-filter: none;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.28);
}

body.page-przeszukania .card-content > .quick-nav > span {
  width: 100%;
  margin-bottom: 2px;
  font-size: 10px;
  color: #8a9aab !important;
  letter-spacing: 0.12em;
}

body.page-przeszukania .card-content > .quick-nav .nav-pill {
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 11px;
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: none;
  background: rgba(224, 180, 90, 0.08);
  border-color: rgba(212, 175, 110, 0.28);
  color: #c4a056;
  transform: none;
  box-shadow: none;
}

body.page-przeszukania .card-content > .quick-nav .nav-pill:hover {
  background: rgba(224, 180, 90, 0.16);
  color: #f4efe4;
  border-color: rgba(224, 180, 90, 0.45);
  transform: none;
  box-shadow: none;
}

body.page-przeszukania .highlight-pulse {
  animation: przeszHighlightPulse 1.5s ease-out;
}

@keyframes przeszHighlightPulse {
  0%   { background-color: transparent; }
  10%  { background-color: rgba(224, 180, 90, 0.14); }
  100% { background-color: transparent; }
}

.przesz-block {
  padding: 20px 22px 22px;
  border-radius: 12px;
  border: 1px solid rgba(212, 175, 110, 0.16);
  background: #161c26;
  box-shadow: none;
}

.przesz-block-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  padding: 0 0 12px;
  border-bottom: 1px solid rgba(212, 175, 110, 0.14);
}

.przesz-block-head svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: #c4a056;
}

.przesz-block-head h4 {
  margin: 0;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #c4a056;
}

.przesz-steps {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.przesz-step {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  column-gap: 14px;
  row-gap: 0;
  align-items: start;
  padding: 16px 18px;
  box-sizing: border-box;
  border-radius: 10px;
  border: 1px solid rgba(212, 175, 110, 0.16);
  background: #141a24;
}

.card-content .przesz-steps > li.przesz-step {
  position: static;
  margin: 0;
  padding: 16px 18px;
}

.card-content .przesz-steps > li.przesz-step::before {
  display: none !important;
  content: none !important;
}

.przesz-step-num {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  line-height: 1;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 13px;
  font-weight: 600;
  font-synthesis: none;
  font-variant-numeric: lining-nums tabular-nums;
  letter-spacing: 0;
  text-transform: none;
  transform: none;
  text-shadow: none;
  color: #e0c07a;
  background: #1a1814;
  border: 1px solid rgba(201, 161, 91, 0.4);
  margin: 1px 0 0;
}

.przesz-step-body {
  min-width: 0;
  padding: 2px 0 0;
}

.przesz-step-title {
  margin: 0 0 8px;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #f4efe4;
  line-height: 1.25;
  scroll-margin-top: 100px;
}

.przesz-step-text {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.65;
  color: #c5d0dc;
  font-family: 'Inter', system-ui, sans-serif;
}

.card-content .przesz-step-text strong {
  display: inline;
  color: #f4efe4;
  font-weight: 600;
}

.przesz-evidence {
  padding: 16px 18px;
  border-radius: 12px;
  border: 1px solid rgba(212, 175, 110, 0.16);
  background: #161c26;
}

.przesz-evidence-title {
  margin: 0 0 4px;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #c4a056;
}

.przesz-evidence-hint {
  margin: 0 0 12px;
  font-size: 12px;
  font-family: 'Inter', system-ui, sans-serif;
  color: #8a9aab;
}

.przesz-gallery.evidence-gallery {
  margin: 0;
  padding: 0;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.przesz-gallery .evidence-img {
  height: 160px;
  object-fit: cover;
  border: 1px solid rgba(212, 175, 110, 0.2);
  transform: none;
}

.przesz-gallery .evidence-img:hover {
  transform: none;
  border-color: rgba(224, 180, 90, 0.45);
  box-shadow: none;
}

.przesz-video {
  padding: 16px 18px;
  border-radius: 12px;
  border: 1px solid rgba(212, 175, 110, 0.16);
  background: #161c26;
}

.przesz-video-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  font-size: 13px;
  font-weight: 600;
  color: #c4a056;
  font-family: 'Inter', system-ui, sans-serif;
}

.przesz-video-head svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: #c4a056;
}

.przesz-video video {
  width: 100%;
  max-height: 420px;
  display: block;
  border-radius: 8px;
  border: 1px solid rgba(212, 175, 110, 0.22);
  background: #000;
  object-fit: contain;
}

.przesz-alerts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.przesz-alert {
  margin: 0;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid rgba(139, 70, 64, 0.4);
  border-left: 3px solid #a44a42;
  background: #1a1416;
  box-shadow: none;
  text-align: left;
}

.przesz-alert h5 {
  margin: 0 0 8px;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #d4a09a;
  display: block;
}

.przesz-alert h5::before { content: none; }

.przesz-alert p {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  color: #d2c4c4;
  font-family: 'Inter', system-ui, sans-serif;
}

.przesz-alert p strong {
  color: #f4efe4;
}

.przesz-rules {
  padding: 20px 22px 22px;
  border-radius: 12px;
  border: 1px solid rgba(161, 75, 75, 0.28);
  background: #161c26;
  box-shadow: none;
}

.przesz-rules-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  padding: 0 0 12px;
  border-bottom: 1px solid rgba(161, 75, 75, 0.22);
}

.przesz-rules-head svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: #c98a8a;
}

.przesz-rules-head h4 {
  margin: 0;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #c98a8a;
  scroll-margin-top: 100px;
}

.przesz-ban-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.card-content .przesz-ban-list > li.przesz-ban {
  position: relative;
  margin: 0;
  padding: 12px 14px 12px 16px;
  list-style: none;
}

.card-content .przesz-ban-list > li.przesz-ban::before {
  display: none !important;
  content: none !important;
}

.przesz-ban {
  position: relative;
  box-sizing: border-box;
  margin: 0;
  padding: 12px 14px 12px 16px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: #141a24;
  overflow: hidden;
}

.przesz-ban::before { content: none; }

.przesz-ban--red {
  --przesz-ban-accent: #a14b4b;
  border-color: rgba(161, 75, 75, 0.32);
  border-left: 3px solid #a14b4b;
  background: #1a1416;
}

.przesz-ban--blue {
  --przesz-ban-accent: #6a7f96;
  border-color: rgba(106, 127, 150, 0.32);
  border-left: 3px solid #6a7f96;
  background: #15181e;
}

.przesz-ban--teal {
  --przesz-ban-accent: #c4a056;
  border-color: rgba(196, 160, 86, 0.32);
  border-left: 3px solid #c4a056;
  background: #18160f;
}

.przesz-ban h5 {
  margin: 0 0 6px;
  padding: 0;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: none;
  color: #f4efe4;
  line-height: 1.4;
}

.card-content .przesz-ban h5,
.card-content .przesz-ban p {
  padding: 0;
  margin-left: 0;
  margin-right: 0;
}

.przesz-ban--red h5 { color: #c98a8a; }
.przesz-ban--blue h5 { color: #9aa8b8; }
.przesz-ban--teal h5 { color: #c4a056; }

.przesz-ban p {
  margin: 0;
  padding: 0;
  font-size: 13.5px;
  line-height: 1.65;
  color: #c5d0dc;
  font-family: 'Inter', system-ui, sans-serif;
}

.przesz-ban-except {
  color: #c4a056;
  font-weight: 600;
}

@media (max-width: 960px) {
  .przesz-alerts {
    grid-template-columns: 1fr;
  }
  .przesz-gallery.evidence-gallery {
    grid-template-columns: 1fr;
  }
  .przesz-gallery .evidence-img {
    height: 200px;
  }
}


/* ═══════════════════════════════════════════
   STRUKTURA — layout sekcji
   ═══════════════════════════════════════════ */

.struct-page {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 12px;
  white-space: normal;
}

.card-content .struct-page,
.card-content .struct-page * {
  white-space: normal;
}

.struct-lead {
  margin: 0 0 4px;
  padding: 13px 16px;
  font-size: 14px;
  line-height: 1.65;
  color: #c5d0dc;
  border-radius: 10px;
  border: 1px solid rgba(212, 175, 110, 0.16);
  background: rgba(224, 180, 90, 0.06);
  font-family: 'Inter', system-ui, sans-serif;
}

body.page-struktura .card-content > .quick-nav {
  position: sticky;
  top: 10px;
  z-index: 10;
  gap: 6px;
  margin-bottom: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(212, 175, 110, 0.2);
  background: #161c26;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.28);
}

body.page-struktura .card-content > .quick-nav > span {
  width: 100%;
  margin-bottom: 2px;
  font-size: 10px;
  color: #8a9aab;
  letter-spacing: 0.12em;
}

body.page-struktura .card-content > .quick-nav .nav-pill {
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 10.5px;
  background: rgba(224, 180, 90, 0.08);
  border-color: rgba(212, 175, 110, 0.28);
  color: #e0c07a;
}

body.page-struktura .card-content > .quick-nav .nav-pill:hover {
  background: rgba(224, 180, 90, 0.16);
  color: #f4efe4;
  border-color: rgba(224, 180, 90, 0.45);
}

.struct-rank {
  margin: 0;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #161c26;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.struct-rank:hover {
  border-color: color-mix(in srgb, var(--struct-accent, #5865f2) 42%, transparent);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.28);
  transform: translateY(-1px);
}

.struct-rank::before {
  content: '';
  display: block;
  height: 3px;
  background: var(--struct-accent, #5865f2);
}

.struct-rank--iii-plus { --struct-accent: #f59e0b; }
.struct-rank--iii      { --struct-accent: #a855f7; }
.struct-rank--ii       { --struct-accent: #3b82f6; }
.struct-rank--i        { --struct-accent: #10b981; }
.struct-rank--apprentice { --struct-accent: #64748b; }

.struct-rank-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: color-mix(in srgb, var(--struct-accent, #5865f2) 8%, transparent);
}

.struct-rank-title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.struct-rank-pill {
  flex-shrink: 0;
  padding: 3px 8px;
  border-radius: 6px;
  font-family: 'Rajdhani', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--struct-accent, #818cf8);
  background: color-mix(in srgb, var(--struct-accent, #5865f2) 18%, transparent);
  border: 1px solid color-mix(in srgb, var(--struct-accent, #5865f2) 35%, transparent);
}

.struct-rank-name {
  margin: 0;
  font-family: 'Rajdhani', sans-serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #f4efe4;
  line-height: 1.2;
  scroll-margin-top: 100px;
  background: none;
  -webkit-background-clip: unset;
  background-clip: unset;
  -webkit-text-fill-color: #f4efe4;
}

.struct-rank-id {
  flex-shrink: 0;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 11px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: #94a3b8;
  padding: 4px 9px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.struct-rank-body {
  padding: 14px 16px 16px;
}

.struct-rank-desc {
  margin: 0 0 8px;
  font-size: 13px;
  line-height: 1.6;
  color: #c5d0dc;
  font-family: 'Inter', system-ui, sans-serif;
}

.struct-rank-desc--last {
  margin-bottom: 0;
}

.struct-req {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid color-mix(in srgb, var(--struct-accent, #5865f2) 28%, transparent);
  border-left: 3px solid var(--struct-accent, #5865f2);
  background: color-mix(in srgb, var(--struct-accent, #5865f2) 8%, transparent);
}

.struct-req-title {
  margin: 0 0 8px;
  font-family: 'Rajdhani', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #94a3b8;
}

.struct-req-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.struct-req-list li {
  position: relative;
  padding-left: 18px;
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  color: #c5d0dc;
  font-family: 'Inter', system-ui, sans-serif;
}

.struct-req-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--struct-accent, #5865f2);
}

.card-content .struct-req-list li {
  padding-left: 18px;
}

.card-content .struct-req-list li::before {
  display: block;
  left: 0;
  top: 0.5em;
}

@media (max-width: 640px) {
  .struct-rank-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .struct-rank-id {
    align-self: flex-start;
  }
}

/* ═══════════════════════════════════════════
   TRAINING CHECKER — layout sekcji
   ═══════════════════════════════════════════ */

.tc-page {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 20px;
  white-space: normal;
}

/* Nadpisanie globalnych stylAlw .card-content (pre-line, kropki listy) */
.card-content .tc-page,
.card-content .tc-page * {
  white-space: normal;
}

.card-content .tc-steps li {
  padding-left: 0;
  margin-bottom: 0;
}

.card-content .tc-steps li::before {
  display: none !important;
  content: none !important;
}

.card-content .tc-step-text strong,
.card-content .tc-step kbd,
.card-content .tc-step-text kbd,
.card-content .tc-discord-link {
  display: inline;
}

.card-content .tc-step-title {
  display: block;
}

.card-content .tc-discord-link {
  display: inline-flex;
}

.card-content .tc-step-num {
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  padding: 0;
  margin: 0;
  transform: none;
  font-style: normal;
}

.tc-lead {
  margin: 0;
  padding: 13px 16px;
  font-size: 14px;
  line-height: 1.65;
  color: #c5d0dc;
  border-radius: 10px;
  border: 1px solid rgba(212, 175, 110, 0.16);
  background: rgba(224, 180, 90, 0.06);
  font-family: 'Inter', system-ui, sans-serif;
}

.tc-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.tc-card {
  margin: 0;
  padding: 18px 18px 16px;
  border-radius: 14px;
  border: 1px solid rgba(212, 175, 110, 0.16);
  background: #161c26;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
  text-align: left;
}

.tc-card:hover {
  border-color: rgba(224, 180, 90, 0.4);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.26);
  transform: translateY(-2px);
}

.tc-card--ttc {
  border-color: rgba(59, 130, 246, 0.28);
}

.tc-card--ttc:hover {
  border-color: rgba(59, 130, 246, 0.5);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.26);
}

.tc-card--tc {
  border-color: rgba(212, 175, 110, 0.28);
}

.tc-card-icon {
  width: 40px;
  height: 40px;
  margin-bottom: 12px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(224, 180, 90, 0.12);
  border: 1px solid rgba(224, 180, 90, 0.28);
  color: #e0b45a;
}

.tc-card-icon svg {
  width: 20px;
  height: 20px;
}

.tc-card--ttc .tc-card-icon {
  background: rgba(59, 130, 246, 0.12);
  border-color: rgba(59, 130, 246, 0.28);
  color: #60a5fa;
}

.tc-card--tc .tc-card-icon {
  background: rgba(224, 180, 90, 0.12);
  border-color: rgba(224, 180, 90, 0.28);
  color: #e0b45a;
}

.tc-card h4 {
  margin: 0 0 8px;
  font-family: 'Rajdhani', sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #f4efe4;
  background: none;
  -webkit-background-clip: unset;
  background-clip: unset;
  -webkit-text-fill-color: #f4efe4;
}

.tc-card p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.6;
  color: #c5d0dc;
  font-family: 'Inter', system-ui, sans-serif;
}

.tc-card p a {
  color: #e0b45a;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(224, 180, 90, 0.4);
}

.tc-card p a:hover,
.tc-discord-link:hover {
  color: #f0d78c;
  border-bottom-color: #f0d78c;
}

.tc-discord-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 600;
  color: #e0c07a !important;
  text-decoration: none !important;
  border: 1px solid rgba(212, 175, 110, 0.35) !important;
  border-bottom: 1px solid rgba(212, 175, 110, 0.35) !important;
  background: rgba(224, 180, 90, 0.1);
  box-shadow: none;
  transition: background 0.15s, border-color 0.15s, color 0.15s, transform 0.15s;
}

.tc-discord-link::after {
  content: '↗';
  font-size: 11px;
  opacity: 0.75;
  margin-left: 2px;
}

.tc-discord-link:hover {
  background: rgba(224, 180, 90, 0.18);
  border-color: rgba(224, 180, 90, 0.55) !important;
  color: #f4efe4 !important;
  transform: translateY(-1px);
}

.tc-card p a:hover {
  border-bottom-color: #f0d78c;
}

.tc-notes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.tc-note {
  padding: 14px 16px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
}

.tc-note h5 {
  margin: 0 0 6px;
  font-family: 'Rajdhani', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tc-note p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.6;
  color: #c5d0dc;
  font-family: 'Inter', system-ui, sans-serif;
}

.tc-note--blue {
  border-color: rgba(59, 130, 246, 0.28);
  background: rgba(59, 130, 246, 0.07);
}

.tc-note--blue h5 {
  color: #60a5fa;
}

.tc-note--green {
  border-color: rgba(249, 115, 22, 0.28);
  background: rgba(249, 115, 22, 0.08);
}

.tc-note--green h5 {
  color: #fb923c;
}

.tc-rules {
  padding: 18px 20px;
  border-radius: 14px;
  border: 1px solid rgba(212, 175, 110, 0.16);
  background: #161c26;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
}

.tc-rules-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.tc-rules-head svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  color: #e0b45a;
}

.tc-rules-head h4 {
  margin: 0;
  font-family: 'Rajdhani', sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #f4efe4;
  background: none;
  -webkit-background-clip: unset;
  background-clip: unset;
  -webkit-text-fill-color: #f4efe4;
}

.tc-rules-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tc-rules-list li {
  position: relative;
  padding-left: 22px;
  font-size: 13.5px;
  line-height: 1.55;
  color: #c5d0dc;
  font-family: 'Inter', system-ui, sans-serif;
}

.tc-rules-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #c9a15b;
  box-shadow: none;
}

.tc-alert {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid rgba(139, 70, 64, 0.4);
  border-left: 3px solid #a44a42;
  background: #1a1416;
  box-shadow: none;
  font-size: 13.5px;
  line-height: 1.55;
  color: #d2c4c4;
  font-family: 'Inter', system-ui, sans-serif;
  text-align: left;
}

.tc-alert strong {
  flex-shrink: 0;
  color: #d4a09a;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.tc-guide {
  padding: 16px;
  border-radius: 14px;
  border: 1px solid rgba(212, 175, 110, 0.16);
  background: #161c26;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
}

.tc-guide-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.tc-guide-head svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  color: #e0b45a;
}

.tc-guide-head h4 {
  margin: 0;
  font-family: 'Rajdhani', sans-serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #f4efe4;
  background: none;
  -webkit-background-clip: unset;
  background-clip: unset;
  -webkit-text-fill-color: #f4efe4;
}

.tc-guide-video {
  margin-bottom: 18px;
  padding: 14px;
  border-radius: 12px;
  border: 1px solid rgba(212, 175, 110, 0.22);
  background: rgba(224, 180, 90, 0.06);
}

.tc-guide-video-label {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 600;
  color: #e0c07a;
  font-family: 'Inter', system-ui, sans-serif;
  line-height: 1.45;
}

.tc-guide-video video {
  width: 100%;
  display: block;
  border-radius: 10px;
  border: 1px solid rgba(212, 175, 110, 0.28);
  background: #000;
}

.tc-steps {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tc-step {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 11px 13px;
  border-radius: 10px;
  border: 1px solid rgba(212, 175, 110, 0.14);
  background: #141a24;
  text-align: left;
}

.tc-step-num {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  margin: 1px 0 0;
  padding: 0;
  line-height: 1;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 12px;
  font-weight: 600;
  font-style: normal;
  font-synthesis: none;
  font-variant-numeric: lining-nums tabular-nums;
  letter-spacing: 0;
  text-transform: none;
  transform: none;
  color: #e0c07a;
  background: #1a1814;
  border: 1px solid rgba(201, 161, 91, 0.4);
  align-self: flex-start;
}

.tc-step-body {
  flex: 1;
  min-width: 0;
}

.tc-step-title {
  margin: 0 0 4px;
  font-family: 'Rajdhani', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #f4efe4;
  line-height: 1.25;
}

.tc-step-text {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  color: #c5d0dc;
  font-family: 'Inter', system-ui, sans-serif;
}

.tc-step-text--sub {
  margin-top: 6px;
  font-size: 12px;
  color: #8a9aab;
}

.tc-step-text strong {
  color: #f4efe4;
  font-weight: 600;
}

.tc-discord-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 7px;
}

.tc-shortcuts {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 6px;
  margin-top: 7px;
  padding: 7px 9px;
  border-radius: 8px;
  border: 1px solid rgba(212, 175, 110, 0.2);
  background: rgba(224, 180, 90, 0.07);
}

.tc-shortcuts-plus,
.tc-shortcuts-arrow {
  font-size: 12px;
  font-weight: 600;
  color: #8a9aab;
  user-select: none;
}

.tc-shortcuts-label {
  font-size: 12px;
  font-weight: 600;
  color: #c5d0dc;
  margin-right: 4px;
}

.tc-step kbd {
  display: inline-block;
  padding: 2px 6px;
  margin: 0 1px;
  border-radius: 5px;
  font-family: 'Menlo', 'Consolas', monospace;
  font-size: 11px;
  font-weight: 600;
  color: #f4efe4;
  background: rgba(224, 180, 90, 0.16);
  border: 1px solid rgba(212, 175, 110, 0.35);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.2);
  vertical-align: baseline;
}

.tc-cmd {
  display: inline;
  padding: 2px 7px;
  border-radius: 5px;
  font-family: 'Menlo', 'Consolas', monospace;
  font-size: 12px;
  color: #e0c07a;
  background: rgba(224, 180, 90, 0.12);
  border: 1px solid rgba(212, 175, 110, 0.28);
}

@media (max-width: 960px) {
  .tc-grid {
    grid-template-columns: 1fr;
  }
  .tc-notes {
    grid-template-columns: 1fr;
  }
}

/* ═══════════════════════════════════════════
   BENEFITY
   ═══════════════════════════════════════════ */
.ben-sec {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: #c4a056;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin: 26px 0 12px;
}

.ben-sec:first-child { margin-top: 4px; }

.ben-sec::before {
  content: '';
  width: 3px;
  height: 14px;
  border-radius: 1px;
  background: #c9a15b;
  flex-shrink: 0;
}

.ben-sec::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(212, 175, 110, 0.18);
}

.ben-lead {
  font-size: 14px;
  font-family: 'Inter', system-ui, sans-serif;
  color: #c5d0dc;
  line-height: 1.65;
  margin: 0 0 14px;
}

.ben-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.ben-stat {
  background: #161c26;
  border: 1px solid rgba(212, 175, 110, 0.2);
  border-radius: 10px;
  padding: 18px 14px 16px;
  text-align: center;
}

.ben-stat::before { content: none; }
.ben-stat:hover { transform: none; box-shadow: none; }

.ben-stat-icon { display: none; }

.ben-stat-num {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 36px;
  font-weight: 600;
  font-variant-numeric: lining-nums tabular-nums;
  font-synthesis: none;
  color: #e0b45a;
  line-height: 1;
  letter-spacing: 0;
  text-shadow: none;
  transform: none;
}

.ben-stat-label {
  font-size: 12px;
  font-weight: 600;
  font-family: 'Inter', system-ui, sans-serif;
  color: #f4efe4;
  text-transform: none;
  letter-spacing: 0;
  margin-top: 8px;
}

.ben-stat-chip {
  display: inline-block;
  margin-top: 12px;
  font-size: 11.5px;
  font-weight: 600;
  font-family: 'Inter', system-ui, sans-serif;
  color: #c4a056;
  background: rgba(224, 180, 90, 0.08);
  border: 1px solid rgba(212, 175, 110, 0.22);
  padding: 4px 10px;
  border-radius: 8px;
}

.ben-ocen {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.ben-panel {
  background: #161c26;
  border: 1px solid rgba(212, 175, 110, 0.16);
  border-radius: 10px;
  padding: 16px;
}

.ben-panel--good {
  border-color: rgba(61, 143, 90, 0.28);
  border-left-width: 3px;
  border-left-color: #3d8f5a;
}

.ben-panel--bad {
  border-color: rgba(161, 75, 75, 0.28);
  border-left-width: 3px;
  border-left-color: #a14b4b;
}

.ben-panel-head {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 13px;
}

.ben-panel--good .ben-panel-head { color: #7dba90; }
.ben-panel--bad  .ben-panel-head { color: #c98a8a; }

.bph-icon {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.bph-icon svg { width: 15px; height: 15px; }

.ben-panel--good .bph-icon {
  background: rgba(61, 143, 90, 0.12);
  border: 1px solid rgba(61, 143, 90, 0.28);
  color: #7dba90;
}

.ben-panel--bad .bph-icon {
  background: rgba(161, 75, 75, 0.12);
  border: 1px solid rgba(161, 75, 75, 0.28);
  color: #c98a8a;
}

.ben-rule {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 9px 11px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  margin-bottom: 8px;
}

.ben-rule-x {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 18px;
  font-weight: 600;
  font-variant-numeric: lining-nums tabular-nums;
  font-synthesis: none;
  min-width: 32px;
  text-align: center;
  border-radius: 6px;
  padding: 2px 6px;
  flex-shrink: 0;
  transform: none;
}

.ben-panel--good .ben-rule-x {
  color: #7dba90;
  background: rgba(61, 143, 90, 0.12);
}

.ben-panel--bad .ben-rule-x {
  color: #c98a8a;
  background: rgba(161, 75, 75, 0.12);
}

.ben-rule-what {
  flex: 1;
  font-size: 13.5px;
  color: #c5d0dc;
  font-weight: 500;
  font-family: 'Inter', system-ui, sans-serif;
}

.ben-rule-arrow {
  color: #6b7a8a;
  font-size: 14px;
  flex-shrink: 0;
}

.ben-badge {
  font-size: 11px;
  font-weight: 600;
  font-family: 'Inter', system-ui, sans-serif;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 4px 9px;
  border-radius: 8px;
  white-space: nowrap;
  flex-shrink: 0;
}

.ben-badge--good {
  color: #7dba90;
  background: rgba(61, 143, 90, 0.12);
  border: 1px solid rgba(61, 143, 90, 0.28);
}

.ben-badge--bad {
  color: #c98a8a;
  background: rgba(161, 75, 75, 0.12);
  border: 1px solid rgba(161, 75, 75, 0.28);
}

.ben-note {
  font-size: 12px;
  font-family: 'Inter', system-ui, sans-serif;
  font-style: normal;
  color: #8a9aab;
  padding: 2px 4px 0;
}

.ben-swaps {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.ben-swap {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 10px;
  background: #161c26;
  border: 1px solid rgba(212, 175, 110, 0.16);
  font-size: 13.5px;
  font-family: 'Inter', system-ui, sans-serif;
  color: #c5d0dc;
  line-height: 1.45;
}

.ben-swap strong { color: #f4efe4; }
.ben-swap strong.txt-good { color: #7dba90; }
.ben-swap strong.txt-bad  { color: #c98a8a; }

.ben-swap-ic {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  flex-shrink: 0;
}

.ben-swap-ic--neutral {
  color: #c4a056;
  background: rgba(224, 180, 90, 0.1);
  border: 1px solid rgba(212, 175, 110, 0.28);
}

.ben-swap-ic--good {
  color: #7dba90;
  background: rgba(61, 143, 90, 0.12);
  border: 1px solid rgba(61, 143, 90, 0.28);
}

.ben-swap-ic--bad {
  color: #c98a8a;
  background: rgba(161, 75, 75, 0.12);
  border: 1px solid rgba(161, 75, 75, 0.28);
}

.ben-info {
  background: #161c26;
  border: 1px solid rgba(212, 175, 110, 0.16);
  border-radius: 10px;
  padding: 16px 18px;
}

.ben-info-lead {
  font-size: 13.5px;
  font-family: 'Inter', system-ui, sans-serif;
  color: #8a9aab;
  line-height: 1.6;
  margin: 0 0 6px;
}

.ben-info-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 10px 0;
  font-size: 13.5px;
  font-family: 'Inter', system-ui, sans-serif;
  color: #c5d0dc;
  line-height: 1.55;
}

.ben-info-item + .ben-info-item {
  border-top: 1px solid rgba(212, 175, 110, 0.1);
}

.ben-info-item .txt-bad { color: #c98a8a; }

.ben-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-top: 6px;
  flex-shrink: 0;
  box-shadow: none;
}

.ben-dot--bad     { background: #a14b4b; }
.ben-dot--neutral { background: #c4a056; }

body.page-benefity .card-content > .quick-nav {
  gap: 6px;
  margin-bottom: 16px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(212, 175, 110, 0.2);
  background: #161c26;
  box-shadow: none;
}

body.page-benefity .card-content > .quick-nav > span {
  width: 100%;
  margin-bottom: 2px;
  font-size: 10px;
  color: #8a9aab !important;
  letter-spacing: 0.12em;
}

body.page-benefity .highlight-pulse {
  animation: benHighlightPulse 1.5s ease-out;
}

@keyframes benHighlightPulse {
  0%   { background-color: transparent; }
  10%  { background-color: rgba(224, 180, 90, 0.14); }
  100% { background-color: transparent; }
}

body.page-benefity .card-content > .quick-nav .nav-pill {
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 11px;
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: none;
  background: rgba(224, 180, 90, 0.08);
  border-color: rgba(212, 175, 110, 0.28);
  color: #c4a056;
  transform: none;
  box-shadow: none;
}

body.page-benefity .card-content > .quick-nav .nav-pill:hover {
  background: rgba(224, 180, 90, 0.16);
  color: #f4efe4;
  border-color: rgba(224, 180, 90, 0.45);
  transform: none;
  box-shadow: none;
}

@media (max-width: 760px) {
  .ben-stats { grid-template-columns: 1fr; }
  .ben-ocen  { grid-template-columns: 1fr; }
  .ben-swaps { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════
   WARNING TOAST — tylko strona Zarząd
   ═══════════════════════════════════════════ */
#warningBar {
  display: none;
  position: fixed;
  bottom: 18px;
  left: calc((100% + var(--sidebar-w)) / 2);
  transform: translateX(-50%);
  z-index: 9999;
  align-items: center;
  gap: 11px;
  max-width: min(680px, calc(100vw - var(--sidebar-w) - 48px));
  padding: 11px 20px 11px 13px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(24, 12, 18, 0.96), rgba(12, 8, 16, 0.97));
  border: 1px solid rgba(239, 68, 68, 0.35);
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.55),
    0 0 24px rgba(239, 68, 68, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

body.page-zarzad #warningBar.armed {
  display: flex;
  animation: warningIn 0.4s cubic-bezier(0.34, 1.4, 0.64, 1) both;
}

@keyframes warningIn {
  from { opacity: 0; transform: translateX(-50%) translateY(14px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

#warningBar .wb-icon {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: rgba(239, 68, 68, 0.14);
  border: 1px solid rgba(239, 68, 68, 0.32);
  color: #f87171;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  animation: wbPulse 2.4s ease-in-out infinite;
}

@keyframes wbPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.25); }
  50%       { box-shadow: 0 0 0 5px rgba(239, 68, 68, 0); }
}

#warningBar .wb-text {
  font-size: 12.5px;
  line-height: 1.5;
  color: #d9dee7;
  letter-spacing: 0.01em;
}

#warningBar .wb-text strong {
  color: #f87171;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-family: 'Rajdhani', sans-serif;
  margin-right: 2px;
}

@media (max-width: 900px) {
  #warningBar {
    left: 50%;
    max-width: calc(100vw - 28px);
    bottom: 12px;
  }
}

.stats-denied {
  margin-top: 8px;
  padding: 28px 22px;
  border-radius: 14px;
  border: 1px solid rgba(239, 68, 68, 0.35);
  background: rgba(239, 68, 68, 0.08);
  text-align: center;
}

.stats-denied-title {
  font-family: 'Rajdhani', sans-serif;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fca5a5;
}

.stats-denied-text {
  margin: 12px auto 0;
  max-width: 42ch;
  font-size: 15px;
  line-height: 1.55;
  color: #e2e8f0;
}

.stats-denied-hint {
  margin: 10px auto 0;
  max-width: 46ch;
  font-size: 13px;
  color: #94a3b8;
}

/* ===== BOOT LOADER (puste okno przed JS) ===== */
.boot-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  min-height: min(52vh, 420px);
  padding: 48px 24px;
  text-align: center;
}

.boot-loading-spinner {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 2px solid rgba(88, 101, 242, 0.18);
  border-top-color: #818cf8;
  animation: bootSpin 0.75s linear infinite;
}

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

.boot-loading-text {
  font-family: 'Rajdhani', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #64748b;
}

/* ===== STATYSTYKI — osobny look (szary, nie „kompendium blue�t) ===== */
body.page-statystyki #card {
  max-width: 1220px;
  background: #111318;
  border: 1px solid #2a2e38;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.7);
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  opacity: 1;
}

body.page-statystyki #card::before {
  display: none;
}

body.page-statystyki .main {
  background: #0a0b0e;
}

body.page-statystyki #watermark {
  display: none !important;
}

body.page-statystyki .header-row {
  background: #1a1d24;
  border: 1px solid #2a2e38;
}

body.page-statystyki .header-row::before,
body.page-statystyki .header-row::after {
  display: none;
}

body.page-statystyki .card-content > .quick-nav {
  display: none !important;
}

.stats-page {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.stats-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 4px;
  border-radius: 12px;
  background: #15171c;
  border: 1px solid #252830;
}

.stats-tab {
  appearance: none;
  border: none;
  background: transparent;
  color: #8b93a0;
  border-radius: 9px;
  padding: 9px 14px;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-family: 'Rajdhani', sans-serif;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: color 0.15s ease, background 0.15s ease;
}

.stats-tab i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.4;
  flex-shrink: 0;
}

.stats-tab:hover {
  color: #e5e7eb;
  background: rgba(255, 255, 255, 0.04);
}

.stats-tab.is-active {
  color: #fff;
  background: #1f2430;
}

.stats-tab.is-active i { opacity: 1; }

.stats-tab.tab-sklad.is-active { color: #e5e7eb; }
.stats-tab.tab-sklad.is-active i { background: #94a3b8; }
.stats-tab.tab-search { color: #7aa2d4; }
.stats-tab.tab-search.is-active { color: #93c5fd; background: rgba(59, 130, 246, 0.12); }
.stats-tab.tab-search.is-active i { background: #3b82f6; }
.stats-tab.tab-train { color: #c4a35a; }
.stats-tab.tab-train.is-active { color: #fbbf24; background: rgba(245, 158, 11, 0.12); }
.stats-tab.tab-train.is-active i { background: #f59e0b; }
.stats-tab.tab-test { color: #9b87c7; }
.stats-tab.tab-test.is-active { color: #c4b5fd; background: rgba(139, 92, 246, 0.12); }
.stats-tab.tab-test.is-active i { background: #8b5cf6; }
.stats-tab.tab-plus { color: #6fbf8a; }
.stats-tab.tab-plus.is-active { color: #86efac; background: rgba(34, 197, 94, 0.12); }
.stats-tab.tab-plus.is-active i { background: #22c55e; }
.stats-tab.tab-praise { color: #c4b05a; }
.stats-tab.tab-praise.is-active { color: #fde68a; background: rgba(234, 179, 8, 0.12); }
.stats-tab.tab-praise.is-active i { background: #eab308; }

.stats-period {
  display: inline-flex;
  padding: 3px;
  border-radius: 10px;
  background: #15171c;
  border: 1px solid #252830;
  align-self: flex-start;
}

.stats-period[hidden] { display: none !important; }

.stats-period-btn {
  appearance: none;
  border: none;
  background: transparent;
  color: #8b93a0;
  border-radius: 8px;
  padding: 7px 14px;
  font: inherit;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  font-family: 'Rajdhani', sans-serif;
  letter-spacing: 0.04em;
  cursor: pointer;
}

.stats-period-btn.is-active {
  background: #222733;
  color: #f3f4f6;
}

.stats-blocks {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.stats-sheet-group {
  position: relative;
  border-radius: 8px;
  background: #12151b;
  border: 1px solid #1f242d;
  overflow: hidden;
  transition: border-color 0.15s ease;
}

.stats-sheet-group::after {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #3a4250;
}

.stats-sheet-group.tone-search::after { background: #3b82f6; }
.stats-sheet-group.tone-plus::after { background: #22c55e; }
.stats-sheet-group.tone-praise::after { background: #d4a017; }
.stats-sheet-group.tone-train::after { background: #c9892a; }
.stats-sheet-group.tone-test::after { background: #7c6bc4; }
.stats-sheet-group.tone-clock::after { background: #64748b; }
.stats-sheet-group.tone-suspend::after { background: #c44545; }

.stats-sheet-group:hover {
  border-color: #2a313c;
}

.stats-sheet-group.tone-search:hover { border-color: #2a4570; }
.stats-sheet-group.tone-plus:hover { border-color: #275a3a; }
.stats-sheet-group.tone-praise:hover { border-color: #5a4a22; }
.stats-sheet-group.tone-train:hover { border-color: #5a4522; }
.stats-sheet-group.tone-test:hover { border-color: #3d3560; }
.stats-sheet-group.tone-suspend:hover { border-color: #5a3030; }

.stats-sheet-group-title {
  margin: 0;
  padding: 8px 12px 7px 14px;
  font-family: 'Rajdhani', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #8b93a0;
  background: rgba(255, 255, 255, 0.015);
  border-bottom: 1px solid #1a1f27;
}

.stats-sheet-rows {
  display: flex;
  flex-direction: column;
  padding: 0;
}

.stats-sheet-row {
  display: grid;
  grid-template-columns: 18px minmax(0, auto) minmax(8px, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 7px 12px 7px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.stats-sheet-row:last-child {
  border-bottom: none;
}

.stats-sheet-row:hover {
  background: rgba(255, 255, 255, 0.02);
}

.stats-sheet-icon {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #6b7280;
  opacity: 0.85;
}

.stats-sheet-icon svg {
  width: 14px;
  height: 14px;
}

.stats-sheet-text {
  min-width: 0;
  display: flex;
  flex-direction: row;
  align-items: baseline;
  gap: 6px;
  flex-wrap: wrap;
}

.stats-sheet-label {
  font-family: 'Rajdhani', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #b8c0cc;
}

.stats-sheet-hint {
  font-size: 11px;
  color: #6f7888;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
}

.stats-sheet-rule {
  display: block;
  height: 1px;
  width: 100%;
  border-bottom: 1px dotted #252b35;
  opacity: 0.7;
  align-self: center;
}

.stats-sheet-value {
  font-size: 16px;
  font-weight: 700;
  color: #eef2f7;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  text-align: right;
  letter-spacing: 0.01em;
}

.stats-sheet-row.tone-search .stats-sheet-icon { color: #6ea8fe; }
.stats-sheet-row.tone-search .stats-sheet-value { color: #8bb8ff; }
.stats-sheet-row.tone-plus .stats-sheet-icon { color: #5dce80; }
.stats-sheet-row.tone-plus .stats-sheet-value { color: #72d992; }
.stats-sheet-row.tone-minus .stats-sheet-icon { color: #e87979; }
.stats-sheet-row.tone-minus .stats-sheet-value { color: #f08a8a; }
.stats-sheet-row.tone-praise .stats-sheet-icon { color: #d4b04a; }
.stats-sheet-row.tone-praise .stats-sheet-value { color: #e0c05c; }
.stats-sheet-row.tone-warn .stats-sheet-icon { color: #d99555; }
.stats-sheet-row.tone-warn .stats-sheet-value { color: #e3a566; }
.stats-sheet-row.tone-train .stats-sheet-icon { color: #d4a04a; }
.stats-sheet-row.tone-train .stats-sheet-value { color: #e0b05c; }
.stats-sheet-row.tone-ok .stats-sheet-icon { color: #4fbf8f; }
.stats-sheet-row.tone-ok .stats-sheet-value { color: #5fcea0; }
.stats-sheet-row.tone-test .stats-sheet-icon { color: #9b8fd4; }
.stats-sheet-row.tone-test .stats-sheet-value { color: #aea3e0; }
.stats-sheet-row.tone-clock .stats-sheet-icon { color: #9aa3b2; }
.stats-sheet-row.tone-clock .stats-sheet-value { color: #d1d5db; }

/* Zawieszenia — kompaktowa linia */
.stats-suspensions-panel {
  padding-bottom: 0;
}

.stats-suspensions-empty {
  margin: 0;
  padding: 10px 14px;
  color: #7a8494;
  font-size: 12px;
}

.stats-suspensions-list {
  display: flex;
  flex-direction: column;
}

.stats-suspension-item {
  padding: 8px 12px 9px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.stats-suspension-item:last-child {
  border-bottom: none;
}

.stats-suspension-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
}

.stats-suspension-type {
  display: inline-block;
  font-family: 'Rajdhani', sans-serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #f0a0a0;
}

.stats-suspension-meta {
  font-size: 12px;
  color: #c5cad3;
  font-variant-numeric: tabular-nums;
}

.stats-suspension-meta em {
  font-style: normal;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #6f7888;
  margin-right: 4px;
  font-family: 'Rajdhani', sans-serif;
}

.stats-suspension-reason {
  margin: 5px 0 0;
  padding: 0;
  font-size: 12px;
  color: #aeb6c2;
  line-height: 1.35;
  word-break: break-word;
}

.stats-suspension-reason em {
  font-style: normal;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #6f7888;
  margin-right: 6px;
  font-family: 'Rajdhani', sans-serif;
}

.stats-suspension-fields,
.stats-suspension-field,
.stats-suspension-k,
.stats-suspension-v,
.stats-suspension-reason-box,
.stats-suspension-top,
.stats-suspension-chip,
.stats-suspension-end,
.stats-suspension-duration,
.stats-suspension-reason-label {
  /* legacy cleared */
}

@media (max-width: 560px) {
  .stats-sheet-rule {
    display: none;
  }

  .stats-sheet-row {
    grid-template-columns: 18px minmax(0, 1fr) auto;
  }

  .stats-suspension-line {
    gap: 4px 10px;
  }
}

.stats-skeleton {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.stats-skeleton[hidden] {
  display: none !important;
}

.stats-skeleton-card {
  min-height: 168px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: #1c1f28;
  animation: statsShimmer 1.35s ease-in-out infinite;
}

.stats-skeleton-card:nth-child(2) { animation-delay: 0.1s; }
.stats-skeleton-card:nth-child(3) { animation-delay: 0.2s; }
.stats-skeleton-card:nth-child(4) { animation-delay: 0.3s; }

@keyframes statsShimmer {
  0%, 100% { opacity: 0.55; }
  50% { opacity: 0.9; }
}

@media (max-width: 900px) {
  .stats-skeleton {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .stats-skeleton {
    grid-template-columns: 1fr;
  }
}

.stats-lead {
  margin: 0;
  color: #8b95a5;
  font-size: 14px;
  line-height: 1.55;
  max-width: 70ch;
}

.stats-hint {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid #2a2e38;
  background: #1a1d24;
  color: #c4c9d2;
  font-size: 13.5px;
  line-height: 1.4;
}

.stats-hint strong {
  color: #f9fafb;
  font-weight: 700;
}

.stats-hint-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: #a8b0bc;
  font-size: 14px;
  font-weight: 700;
}

.stats-status {
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: #9aa8bc;
  font-size: 13px;
}

.stats-status--error {
  border-color: rgba(239, 68, 68, 0.35);
  color: #fca5a5;
  background: rgba(239, 68, 68, 0.08);
}

.stats-meta {
  font-size: 12.5px;
  color: #8090a6;
  line-height: 1.45;
}

.stats-meta strong {
  color: #e8eef8;
  font-weight: 700;
}

.stats-empty {
  margin: 0;
  color: #8090a6;
  font-size: 13px;
}

.stats-groups {
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.stats-group-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.stats-group-title {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.stats-group-bar {
  width: 3px;
  height: 18px;
  border-radius: 2px;
  background: #64748b;
  flex-shrink: 0;
}

.stats-group-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #64748b;
  flex-shrink: 0;
}

.stats-group.accent-red .stats-group-bar,
.stats-group.accent-red .stats-group-dot {
  background: #e11d48;
}

.stats-group.accent-gold .stats-group-bar,
.stats-group.accent-gold .stats-group-dot {
  background: #eab308;
}

.stats-group-head h3 {
  margin: 0;
  font-family: 'Rajdhani', sans-serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #f1f5f9;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.stats-group-count {
  min-width: 28px;
  height: 24px;
  padding: 0 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: #cbd5e1;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
}

.stats-group-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.stats-mini {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px 10px 10px;
  border-radius: 14px;
  border: 1px solid #2a2e38;
  background: linear-gradient(180deg, #1c1f27 0%, #161920 100%);
  color: inherit;
  cursor: pointer;
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
  font: inherit;
  width: 100%;
  text-align: center;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.03) inset;
}

.stats-mini-place {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 1;
  min-width: 24px;
  height: 24px;
  padding: 0 7px;
  border-radius: 999px;
  background: #12141a;
  border: 1px solid #333845;
  color: #e5e7eb;
  font-size: 11px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-variant-numeric: tabular-nums;
}

.stats-mini--ranked .stats-mini-place {
  background: #1a2333;
  border-color: #3b82f6;
  color: #93c5fd;
}

.stats-mini-place.is-top-1 {
  background: rgba(234, 179, 8, 0.18);
  border-color: #eab308;
  color: #fde68a;
}

.stats-mini-place.is-top-2 {
  background: rgba(148, 163, 184, 0.18);
  border-color: #94a3b8;
  color: #e2e8f0;
}

.stats-mini-place.is-top-3 {
  background: rgba(180, 83, 9, 0.2);
  border-color: #d97706;
  color: #fdba74;
}

.stats-mini:hover,
.stats-mini:focus-visible {
  outline: none;
  transform: translateY(-2px);
  border-color: #3d4452;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.28);
}

.stats-mini.accent-red {
  border-color: rgba(225, 29, 72, 0.4);
}

.stats-mini.accent-gold {
  border-color: rgba(234, 179, 8, 0.4);
}

.stats-mini.accent-gray {
  border-color: rgba(148, 163, 184, 0.28);
}

.stats-mini.accent-red:hover,
.stats-mini.accent-red:focus-visible {
  border-color: rgba(225, 29, 72, 0.7);
}

.stats-mini.accent-gold:hover,
.stats-mini.accent-gold:focus-visible {
  border-color: rgba(234, 179, 8, 0.7);
}

.stats-mini-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}

.stats-mini-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.06);
  border: 2px solid rgba(255, 255, 255, 0.14);
}

.stats-mini.accent-red .stats-mini-avatar {
  border-color: #e11d48;
}

.stats-mini.accent-gold .stats-mini-avatar {
  border-color: #eab308;
}

.stats-mini-avatar--fallback {
  background: rgba(88, 101, 242, 0.28);
}

.stats-mini-name {
  font-family: 'Rajdhani', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: #f8fafc;
  line-height: 1.2;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stats-mini-user {
  font-size: 11px;
  color: #8090a6;
  margin-top: -2px;
}

.stats-mini-badge {
  display: inline-flex;
  align-items: center;
  margin-top: 2px;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #0b0f14;
  background: #e11d48;
}

.stats-mini.accent-gold .stats-mini-badge {
  background: #eab308;
  color: #111827;
}

.stats-mini.accent-gray .stats-mini-badge {
  background: #94a3b8;
  color: #0f172a;
}

.stats-mini-badge--empty {
  background: rgba(255, 255, 255, 0.08) !important;
  color: #94a3b8 !important;
}

.stats-mini-tenure {
  font-size: 10px;
  color: #7f8fa3;
  letter-spacing: 0.02em;
}

.stats-mini-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  width: 100%;
  padding-top: 2px;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.stats-mini-grid--pair {
  grid-template-columns: 1fr 1fr;
}

.stats-mini-stat {
  padding: 7px 6px 6px;
  border-radius: 9px;
  background: rgba(0, 0, 0, 0.28);
  border: none;
}

.stats-mini-stat strong {
  display: block;
  font-size: 14px;
  font-weight: 800;
  color: #f8fafc;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}

.stats-mini-stat span {
  display: block;
  margin-top: 2px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #7a8494;
  font-family: 'Rajdhani', sans-serif;
}

.stats-mini-stat.tone-search strong { color: #60a5fa; }
.stats-mini-stat.tone-train strong { color: #fbbf24; }
.stats-mini-stat.tone-test strong { color: #a78bfa; }
.stats-mini-stat.tone-plus strong { color: #4ade80; }
.stats-mini-stat.tone-minus strong { color: #f87171; }
.stats-mini-stat.tone-praise strong { color: #fbbf24; }
.stats-mini-stat.tone-warn strong { color: #fb923c; }
.stats-mini-stat.tone-ok strong { color: #34d399; }

/* Profile — peL�na strona (nie modal) */
.stats-profile-page[hidden],
#statsRosterView[hidden] {
  display: none !important;
}

.stats-profile-page {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.stats-back-btn {
  align-self: flex-start;
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #1c1f28;
  color: #d1d5db;
  border-radius: 8px;
  padding: 8px 14px;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.stats-back-btn:hover {
  background: #262a35;
  color: #fff;
}

.stats-detail-hero {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border-radius: 10px;
  background: #1a1d24;
  border: 1px solid #2a2e38;
}

.stats-detail-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid rgba(255, 255, 255, 0.12);
}

.stats-detail-hero.accent-red .stats-detail-avatar {
  border-color: #e11d48;
}

.stats-detail-hero.accent-gold .stats-detail-avatar {
  border-color: #eab308;
}

.stats-detail-avatar--fallback {
  background: #2a2f3a;
}

.stats-detail-hero-text {
  min-width: 0;
  flex: 1;
}

.stats-detail-hero-text h3 {
  margin: 0;
  font-family: 'Rajdhani', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: #f8fafc;
  line-height: 1.15;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.stats-detail-meta {
  margin-top: 2px;
  font-size: 12px;
  color: #8b95a5;
  line-height: 1.3;
}

.stats-detail-rank-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  margin-top: 6px;
}

.stats-detail-rank {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  color: #fee2e2;
  background: rgba(225, 29, 72, 0.16);
  border: 1px solid rgba(225, 29, 72, 0.38);
}

.stats-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #e11d48;
  display: inline-block;
}

.stats-detail-hero.accent-gold .stats-detail-rank {
  color: #fef3c7;
  background: rgba(234, 179, 8, 0.12);
  border-color: rgba(234, 179, 8, 0.38);
}

.stats-detail-hero.accent-gold .stats-dot {
  background: #eab308;
}

.stats-detail-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #d7dde8;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.stats-detail-tenure {
  margin-top: 6px;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
}

.stats-detail-tenure-label {
  font-family: 'Rajdhani', sans-serif;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8090a6;
  width: 100%;
}

.stats-detail-tenure strong {
  color: #f1f5f9;
  font-size: 12px;
  font-weight: 700;
}

.stats-detail-tenure-days {
  font-size: 11px;
  color: #8b95a5;
}

.stats-detail-section-title {
  margin: 0;
  padding-left: 10px;
  border-left: 3px solid #6b7280;
  font-family: 'Rajdhani', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #c5cdd8;
}

.stats-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.stats-detail-grid--dense {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.stats-detail-tile {
  padding: 8px 10px;
  border-radius: 10px;
  background: #12141a;
  border: 1px solid #2a2e38;
  border-top: 2px solid #3d4452;
}

.stats-detail-tile.tone-search { border-top-color: #3b82f6; }
.stats-detail-tile.tone-clock { border-top-color: #94a3b8; }
.stats-detail-tile.tone-plus { border-top-color: #22c55e; }
.stats-detail-tile.tone-minus { border-top-color: #ef4444; }
.stats-detail-tile.tone-praise { border-top-color: #eab308; }
.stats-detail-tile.tone-warn { border-top-color: #f97316; }
.stats-detail-tile.tone-train { border-top-color: #f59e0b; }
.stats-detail-tile.tone-ok { border-top-color: #34d399; }
.stats-detail-tile.tone-test { border-top-color: #8b5cf6; }

.stats-detail-tile-head {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 22px;
}

.stats-detail-tile-icon {
  width: 18px;
  height: 18px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.06);
}

.stats-detail-tile-icon svg {
  width: 11px;
  height: 11px;
}

.stats-detail-tile.tone-search .stats-detail-tile-icon { color: #60a5fa; background: rgba(59, 130, 246, 0.15); }
.stats-detail-tile.tone-clock .stats-detail-tile-icon { color: #cbd5e1; background: rgba(148, 163, 184, 0.15); }
.stats-detail-tile.tone-plus .stats-detail-tile-icon { color: #4ade80; background: rgba(34, 197, 94, 0.15); }
.stats-detail-tile.tone-minus .stats-detail-tile-icon { color: #f87171; background: rgba(239, 68, 68, 0.15); }
.stats-detail-tile.tone-praise .stats-detail-tile-icon { color: #fbbf24; background: rgba(234, 179, 8, 0.15); }
.stats-detail-tile.tone-warn .stats-detail-tile-icon { color: #fb923c; background: rgba(249, 115, 22, 0.15); }
.stats-detail-tile.tone-train .stats-detail-tile-icon { color: #fbbf24; background: rgba(245, 158, 11, 0.15); }
.stats-detail-tile.tone-ok .stats-detail-tile-icon { color: #34d399; background: rgba(52, 211, 153, 0.15); }
.stats-detail-tile.tone-test .stats-detail-tile-icon { color: #a78bfa; background: rgba(139, 92, 246, 0.15); }

.stats-detail-tile-label {
  font-family: 'Rajdhani', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #8b95a5;
}

.stats-detail-tile-value {
  margin-top: 6px;
  font-size: 20px;
  font-weight: 700;
  color: #f8fafc;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.stats-detail-tile-hint {
  margin-top: 4px;
  font-size: 10px;
  color: #6f7888;
}

.stats-detail-panel {
  padding: 16px;
  border-radius: 14px;
  background: #1a1d24;
  border: 1px solid #2a2e38;
}

.stats-detail-panel-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.stats-history-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.stats-history-tab {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #12141a;
  color: #9ca3af;
  border-radius: 999px;
  padding: 6px 10px;
  font: inherit;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  font-family: 'Rajdhani', sans-serif;
  letter-spacing: 0.04em;
  cursor: pointer;
}

.stats-history-tab.is-active {
  background: #2a2f3a;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.18);
}

.stats-history-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: min(42vh, 380px);
  overflow: auto;
  padding-right: 2px;
}

.stats-history-empty {
  margin: 0;
  padding: 16px;
  border-radius: 10px;
  border: 1px dashed rgba(255, 255, 255, 0.1);
  color: #8b95a5;
  font-size: 13px;
  text-align: center;
  background: #16181f;
}

.stats-history-item {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #2a2e38;
  background: #12141a;
}

.stats-history-type {
  font-family: 'Rajdhani', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding-top: 1px;
}

.stats-history-item--pos .stats-history-type { color: #4ade80; }
.stats-history-item--neg .stats-history-type { color: #f87171; }
.stats-history-item--muted .stats-history-type { color: #94a3b8; }
.stats-history-item--neutral .stats-history-type { color: #93c5fd; }

.stats-history-date {
  font-size: 11px;
  color: #6f7888;
  white-space: nowrap;
  padding-top: 2px;
}

.stats-history-reason {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.45;
  color: #c5cdd8;
  word-break: break-word;
}

/* Legacy modal stub — ukryty */
.stats-profile-modal,
.stats-profile-modal[hidden] {
  display: none !important;
}

@media (min-width: 720px) {
  .stats-group-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1100px) {
  .stats-group-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 1100px) {
  .stats-detail-grid--dense {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .stats-group-grid {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .stats-mini {
    padding: 12px 8px 10px;
  }

  .stats-mini-name {
    font-size: 13px;
  }

  .stats-detail-hero {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .stats-detail-rank-row {
    justify-content: center;
  }

  .stats-detail-grid--dense {
    grid-template-columns: 1fr 1fr;
  }
}

