/* ============================================================
   === 🌐 GLOBAL STYLE — PUBLIC WIKI (PBC) v2.0 ===
   Файл: main-global-style-pbc.css
   Призначення: глобальна дизайн-система публічного wiki-сайту
   Стиль: GAMING / SCI-FI CYBERPUNK у дусі GTA Online.
          UA5 Tools брендинг: синій (primary) + червоний (accent).
   Ізольовано від admin через namespace .pbc-*
   ============================================================ */

/* =============================================================
   1. CSS VARIABLES / DESIGN TOKENS
   ============================================================= */
.pbc-scope,
:root .pbc-scope {
  /* === Поверхні / темний канвас === */
  --pbc-bg-canvas:    #0a0e1a;
  --pbc-bg-panel:     #0e1322;
  --pbc-bg-elevated:  #131a2d;
  --pbc-bg-deep:      #060810;
  --pbc-bg-overlay:   rgba(10, 14, 26, 0.85);

  /* === UA5 Tools BRAND — синій + червоний === */
  --pbc-blue:         #1e7fff;   /* primary brand */
  --pbc-blue-hover:   #3d92ff;
  --pbc-blue-active:  #1668d4;
  --pbc-blue-soft:    rgba(30, 127, 255, 0.12);
  --pbc-blue-glow:    rgba(30, 127, 255, 0.55);

  --pbc-red:          #ef4444;   /* accent red */
  --pbc-red-hover:    #f56565;
  --pbc-red-active:   #dc2626;
  --pbc-red-soft:     rgba(239, 68, 68, 0.12);
  --pbc-red-glow:     rgba(239, 68, 68, 0.5);

  /* === Семантичні === */
  --pbc-success: #22c55e;
  --pbc-warning: #fbbf24;
  --pbc-error:   #ef4444;
  --pbc-info:    #1e7fff;

  /* === Тексти === */
  --pbc-text-primary:   #f0f4ff;
  --pbc-text-secondary: #b8c2dd;
  --pbc-text-muted:     #7886a8;
  --pbc-text-disabled:  #4a5470;
  --pbc-text-on-blue:   #ffffff;
  --pbc-text-on-red:    #ffffff;

  /* === Бордюри === */
  --pbc-border:        rgba(120, 134, 168, 0.15);
  --pbc-border-strong: rgba(120, 134, 168, 0.32);
  --pbc-border-blue:   rgba(30, 127, 255, 0.4);
  --pbc-border-red:    rgba(239, 68, 68, 0.4);

  /* === Шрифти — gaming sci-fi === */
  --pbc-font-display: "Rajdhani", "Saira", "Inter", system-ui, sans-serif;
  --pbc-font-ui:      "Saira", "Inter", system-ui, sans-serif;
  --pbc-font-body:    "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --pbc-font-mono:    "JetBrains Mono", "IBM Plex Mono", "Consolas", monospace;

  /* === Розміри тексту === */
  --pbc-text-xs:   0.75rem;   /* 12 */
  --pbc-text-sm:   0.875rem;  /* 14 */
  --pbc-text-base: 1rem;      /* 16 */
  --pbc-text-lg:   1.125rem;  /* 18 */
  --pbc-text-xl:   1.5rem;    /* 24 */
  --pbc-text-2xl:  2rem;      /* 32 */
  --pbc-text-3xl:  2.75rem;   /* 44 */
  --pbc-text-4xl:  4rem;      /* 64 */

  /* === Spacing === */
  --pbc-space-1: 0.25rem;
  --pbc-space-2: 0.5rem;
  --pbc-space-3: 0.75rem;
  --pbc-space-4: 1rem;
  --pbc-space-5: 1.25rem;
  --pbc-space-6: 1.5rem;
  --pbc-space-8: 2rem;
  --pbc-space-10: 2.5rem;
  --pbc-space-12: 3rem;
  --pbc-space-16: 4rem;
  --pbc-space-24: 6rem;

  /* === Border radius (sharp gaming) === */
  --pbc-radius-none: 0;
  --pbc-radius-sm:   2px;
  --pbc-radius-md:   4px;
  --pbc-radius-lg:   8px;    /* для крупних карток / hero */
  --pbc-radius-pill: 9999px;

  /* === Shadows + glows === */
  --pbc-shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
  --pbc-shadow-md: 0 8px 24px rgba(0, 0, 0, 0.55);
  --pbc-shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.7);
  --pbc-glow-blue: 0 0 32px var(--pbc-blue-glow);
  --pbc-glow-red:  0 0 24px var(--pbc-red-glow);
  --pbc-edge-inset: inset 0 1px 0 rgba(255, 255, 255, 0.06);

  /* === Z-index === */
  --pbc-z-base:    1;
  --pbc-z-sticky:  100;
  --pbc-z-nav:     200;
  --pbc-z-overlay: 800;
  --pbc-z-modal:   900;
  --pbc-z-tooltip: 1000;

  /* === Transitions === */
  --pbc-transition-fast: 150ms ease-out;
  --pbc-transition-base: 250ms ease-out;
  --pbc-transition-slow: 400ms ease-out;

  /* === Container / layout === */
  --pbc-container-max:    1280px;
  --pbc-container-narrow: 880px;
  --pbc-content-pad:      clamp(1rem, 3vw, 2rem);
}

/* =============================================================
   2. RESET (scoped до .pbc-scope)
   ============================================================= */
body.pbc-scope,
body.pbc-scope *,
body.pbc-scope *::before,
body.pbc-scope *::after {
  box-sizing: border-box;
}

body.pbc-scope {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  background: var(--pbc-bg-canvas);
  color: var(--pbc-text-primary);
  font-family: var(--pbc-font-body);
  font-size: var(--pbc-text-base);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.pbc-scope img,
body.pbc-scope picture,
body.pbc-scope video,
body.pbc-scope svg {
  display: block;
  max-width: 100%;
  height: auto;
}

body.pbc-scope a { color: inherit; text-decoration: none; }

body.pbc-scope button {
  font-family: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

body.pbc-scope ul,
body.pbc-scope ol { list-style: none; margin: 0; padding: 0; }

body.pbc-scope :focus { outline: none; }
body.pbc-scope :focus-visible {
  outline: 2px solid var(--pbc-blue);
  outline-offset: 2px;
}

/* =============================================================
   3. TYPOGRAPHY
   ============================================================= */
.pbc-h1, .pbc-h2, .pbc-h3 {
  font-family: var(--pbc-font-display);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.05;
  color: var(--pbc-text-primary);
  margin: 0;
}
.pbc-h1 {
  font-size: var(--pbc-text-4xl);
  font-weight: 700;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}
.pbc-h2 {
  font-size: var(--pbc-text-3xl);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.01em;
}
.pbc-h3 {
  font-size: var(--pbc-text-2xl);
  font-weight: 600;
}

.pbc-ui-label {
  font-family: var(--pbc-font-ui);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: var(--pbc-text-sm);
  font-weight: 600;
  color: var(--pbc-text-secondary);
}

.pbc-mono {
  font-family: var(--pbc-font-mono);
  font-feature-settings: "tnum" 1;
  letter-spacing: -0.01em;
}

.pbc-tag-tech {
  display: inline-block;
  font-family: var(--pbc-font-mono);
  font-size: var(--pbc-text-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 4px 10px;
  background: var(--pbc-blue-soft);
  border: 1px solid var(--pbc-border-blue);
  color: var(--pbc-blue);
  border-radius: var(--pbc-radius-sm);
}

.pbc-tag-tech--red {
  background: var(--pbc-red-soft);
  border-color: var(--pbc-border-red);
  color: var(--pbc-red);
}

/* Бренд-акцент в заголовку (червоний 5, синій решта) */
.pbc-brand-mark {
  font-family: var(--pbc-font-display);
  font-weight: 900;
  letter-spacing: -0.04em;
}
.pbc-brand-mark b {
  color: var(--pbc-red);
  font-weight: inherit;
  text-shadow: 0 0 24px var(--pbc-red-glow);
}

/* =============================================================
   4. LAYOUT PRIMITIVES
   ============================================================= */
.pbc-container {
  width: 100%;
  max-width: var(--pbc-container-max);
  margin-inline: auto;
  padding-inline: var(--pbc-content-pad);
}
.pbc-container--narrow { max-width: var(--pbc-container-narrow); }

.pbc-section {
  padding-block: clamp(3rem, 6vw, 5rem);
}

.pbc-stack > * + * { margin-top: var(--pbc-space-4); }

.pbc-grid {
  display: grid;
  gap: var(--pbc-space-6);
}
.pbc-grid--cards-220 { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.pbc-grid--cards-280 { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.pbc-grid--cards-340 { grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); }

/* =============================================================
   5. PANEL / SURFACE — з chamfered кутами і HUD brackets
   ============================================================= */
.pbc-panel {
  position: relative;
  background: var(--pbc-bg-panel);
  border: 1px solid var(--pbc-border);
  box-shadow: var(--pbc-edge-inset), var(--pbc-shadow-md);
  padding: var(--pbc-space-6);
  /* Chamfered corners — зрізаний правий-верхній і лівий-нижній */
  clip-path: polygon(
    0 0,
    calc(100% - 14px) 0,
    100% 14px,
    100% 100%,
    14px 100%,
    0 calc(100% - 14px)
  );
}
.pbc-panel--elevated { background: var(--pbc-bg-elevated); }
.pbc-panel--glow    { box-shadow: var(--pbc-edge-inset), var(--pbc-shadow-md), var(--pbc-glow-blue); }

/* HUD corner brackets — для виділених панелей */
.pbc-panel--hud {
  clip-path: none;
  border: none;
  background: var(--pbc-bg-panel);
}
.pbc-panel--hud::before,
.pbc-panel--hud::after,
.pbc-panel--hud > .pbc-hud-bracket-tr,
.pbc-panel--hud > .pbc-hud-bracket-bl {
  content: "";
  position: absolute;
  width: 22px;
  height: 22px;
  border-color: var(--pbc-blue);
  border-style: solid;
  border-width: 0;
  z-index: 2;
  pointer-events: none;
}
.pbc-panel--hud::before {
  top: -1px; left: -1px;
  border-top-width: 2px;
  border-left-width: 2px;
}
.pbc-panel--hud::after {
  bottom: -1px; right: -1px;
  border-bottom-width: 2px;
  border-right-width: 2px;
}
.pbc-panel--hud > .pbc-hud-bracket-tr {
  top: -1px; right: -1px;
  border-top-width: 2px;
  border-right-width: 2px;
}
.pbc-panel--hud > .pbc-hud-bracket-bl {
  bottom: -1px; left: -1px;
  border-bottom-width: 2px;
  border-left-width: 2px;
}

/* =============================================================
   6. BUTTON
   ============================================================= */
.pbc-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--pbc-space-2);
  font-family: var(--pbc-font-ui);
  font-size: var(--pbc-text-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.75rem 1.5rem;
  background: var(--pbc-bg-elevated);
  color: var(--pbc-text-primary);
  border: 1px solid var(--pbc-border-strong);
  border-radius: var(--pbc-radius-md);
  cursor: pointer;
  user-select: none;
  transition: background var(--pbc-transition-fast),
              border-color var(--pbc-transition-fast),
              transform var(--pbc-transition-fast),
              box-shadow var(--pbc-transition-fast);
}
.pbc-button:hover {
  background: var(--pbc-blue-soft);
  border-color: var(--pbc-blue);
  color: var(--pbc-text-primary);
}
.pbc-button:active { transform: translateY(1px); }
.pbc-button:disabled,
.pbc-button[aria-disabled="true"] {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

.pbc-button--primary {
  background: linear-gradient(180deg, var(--pbc-blue), var(--pbc-blue-active));
  border-color: var(--pbc-blue);
  color: var(--pbc-text-on-blue);
  box-shadow: var(--pbc-glow-blue);
}
.pbc-button--primary:hover {
  background: linear-gradient(180deg, var(--pbc-blue-hover), var(--pbc-blue));
  border-color: var(--pbc-blue-hover);
  color: var(--pbc-text-on-blue);
}

.pbc-button--danger {
  background: linear-gradient(180deg, var(--pbc-red), var(--pbc-red-active));
  border-color: var(--pbc-red);
  color: var(--pbc-text-on-red);
  box-shadow: var(--pbc-glow-red);
}
.pbc-button--danger:hover {
  background: linear-gradient(180deg, var(--pbc-red-hover), var(--pbc-red));
  border-color: var(--pbc-red-hover);
  color: var(--pbc-text-on-red);
}

.pbc-button--ghost {
  background: transparent;
  border-color: var(--pbc-border);
}

.pbc-button--sm { padding: 0.5rem 1rem;  font-size: var(--pbc-text-xs); }
.pbc-button--lg { padding: 1rem 2rem;    font-size: var(--pbc-text-base); }

.pbc-icon-button {
  width: 40px; height: 40px; padding: 0;
}

/* Chamfered button variant (cyberpunk shape) */
.pbc-button--clip {
  clip-path: polygon(
    8px 0,
    100% 0,
    100% calc(100% - 8px),
    calc(100% - 8px) 100%,
    0 100%,
    0 8px
  );
  border: none;
  /* Подвійний шар для рамки під clip-path */
  background:
    linear-gradient(var(--pbc-bg-elevated), var(--pbc-bg-elevated)) padding-box,
    var(--pbc-border-strong) border-box;
}
.pbc-button--clip.pbc-button--primary {
  background: linear-gradient(180deg, var(--pbc-blue), var(--pbc-blue-active));
}
.pbc-button--clip.pbc-button--danger {
  background: linear-gradient(180deg, var(--pbc-red), var(--pbc-red-active));
}

/* =============================================================
   7. CARD — з chamfered top-right і bottom-left
   ============================================================= */
.pbc-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--pbc-bg-panel);
  border: 1px solid var(--pbc-border);
  box-shadow: var(--pbc-edge-inset);
  transition: transform var(--pbc-transition-base),
              box-shadow var(--pbc-transition-base);
  overflow: hidden;
  clip-path: polygon(
    0 0,
    calc(100% - 18px) 0,
    100% 18px,
    100% 100%,
    18px 100%,
    0 calc(100% - 18px)
  );
}
.pbc-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--pbc-edge-inset), var(--pbc-shadow-lg);
}

/* HUD corner accent — невелика "галочка" у правому верхньому куті */
.pbc-card::after {
  content: "";
  position: absolute;
  top: 0; right: 0;
  width: 18px; height: 18px;
  background: linear-gradient(135deg, transparent 49%, var(--pbc-blue) 50%);
  opacity: 0.6;
  transition: opacity var(--pbc-transition-base);
  z-index: 3;
}
.pbc-card:hover::after { opacity: 1; }

.pbc-card__media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--pbc-bg-deep);
}
.pbc-card__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 600ms ease-out;
}
.pbc-card:hover .pbc-card__media img { transform: scale(1.05); }

.pbc-card__body {
  padding: var(--pbc-space-5);
  display: flex;
  flex-direction: column;
  gap: var(--pbc-space-2);
  flex: 1;
}

.pbc-card__title {
  font-family: var(--pbc-font-display);
  font-size: var(--pbc-text-lg);
  font-weight: 600;
  color: var(--pbc-text-primary);
  margin: 0;
  line-height: 1.2;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.pbc-card__description {
  font-family: var(--pbc-font-body);
  font-size: var(--pbc-text-sm);
  color: var(--pbc-text-muted);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.pbc-card__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: var(--pbc-space-3);
  border-top: 1px solid var(--pbc-border);
}

.pbc-wiki-item-card .pbc-card__media { aspect-ratio: 1 / 1; }
.pbc-wiki-item-card__price {
  font-family: var(--pbc-font-mono);
  color: var(--pbc-blue);
  font-size: var(--pbc-text-sm);
  font-weight: 700;
}

/* =============================================================
   8. IMAGE PREVIEW
   ============================================================= */
.pbc-image-preview {
  position: relative;
  width: 100%;
  background: var(--pbc-bg-deep);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pbc-image-preview img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
}
.pbc-image-preview--16-9 { aspect-ratio: 16 / 9; }
.pbc-image-preview--4-3  { aspect-ratio: 4 / 3; }
.pbc-image-preview--1-1  { aspect-ratio: 1 / 1; }
.pbc-image-preview--3-4  { aspect-ratio: 3 / 4; }

/* Skeleton */
.pbc-image-preview--loading::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(90deg,
    transparent 0%, rgba(30,127,255,0.08) 50%, transparent 100%);
  animation: pbc-skeleton 1.4s linear infinite;
}
@keyframes pbc-skeleton {
  from { transform: translateX(-100%); }
  to   { transform: translateX(100%); }
}

/* Empty / fallback — neon grid */
.pbc-image-preview--empty {
  background:
    linear-gradient(135deg, rgba(30,127,255,0.06), rgba(239,68,68,0.04)),
    linear-gradient(0deg,  rgba(120,134,168,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120,134,168,0.06) 1px, transparent 1px),
    var(--pbc-bg-deep);
  background-size: 100% 100%, 24px 24px, 24px 24px, 100% 100%;
}
.pbc-image-preview--empty::after {
  content: "UA5";
  font-family: var(--pbc-font-display);
  font-size: var(--pbc-text-2xl);
  font-weight: 900;
  color: rgba(30,127,255,0.4);
  letter-spacing: -0.02em;
}

/* =============================================================
   9. MODAL
   ============================================================= */
.pbc-modal-backdrop {
  position: fixed; inset: 0;
  z-index: var(--pbc-z-overlay);
  background: var(--pbc-bg-overlay);
  backdrop-filter: blur(6px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: var(--pbc-space-4);
}
.pbc-modal-backdrop[data-open="true"] { display: flex; }

.pbc-modal {
  position: relative;
  z-index: var(--pbc-z-modal);
  background: var(--pbc-bg-panel);
  border: 1px solid var(--pbc-border-strong);
  border-radius: var(--pbc-radius-lg);
  box-shadow: var(--pbc-shadow-lg), var(--pbc-edge-inset);
  width: min(560px, 100%);
  max-height: 80vh;
  display: flex;
  flex-direction: column;
}

.pbc-modal__header {
  padding: var(--pbc-space-5);
  border-bottom: 1px solid var(--pbc-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.pbc-modal__title {
  font-family: var(--pbc-font-display);
  font-size: var(--pbc-text-xl);
  margin: 0;
  text-transform: uppercase;
  letter-spacing: -0.01em;
}
.pbc-modal__body  { padding: var(--pbc-space-5); overflow-y: auto; flex: 1; }
.pbc-modal__footer {
  padding: var(--pbc-space-4) var(--pbc-space-5);
  border-top: 1px solid var(--pbc-border);
  display: flex;
  gap: var(--pbc-space-3);
  justify-content: flex-end;
}

/* =============================================================
   10. NAVIGATION
   ============================================================= */
.pbc-nav {
  position: sticky;
  top: 0;
  z-index: var(--pbc-z-nav);
  background: var(--pbc-bg-overlay);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--pbc-border);
}
.pbc-nav__inner {
  max-width: var(--pbc-container-max);
  margin-inline: auto;
  padding: var(--pbc-space-3) var(--pbc-content-pad);
  display: flex;
  align-items: center;
  gap: var(--pbc-space-6);
}
.pbc-nav__logo {
  font-family: var(--pbc-font-display);
  font-size: var(--pbc-text-xl);
  font-weight: 900;
  letter-spacing: -0.02em;
  display: inline-flex;
  align-items: baseline;
  gap: 2px;
  color: var(--pbc-text-primary);
  text-transform: uppercase;
}
.pbc-nav__logo b {
  color: var(--pbc-red);
  font-weight: 900;
  text-shadow: 0 0 16px var(--pbc-red-glow);
}
.pbc-nav__menu {
  display: flex;
  gap: var(--pbc-space-1);
  flex: 1;
  flex-wrap: wrap;
}
.pbc-nav__link {
  font-family: var(--pbc-font-ui);
  font-size: var(--pbc-text-sm);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.5rem 1rem;
  color: var(--pbc-text-secondary);
  border-radius: var(--pbc-radius-sm);
  transition: color var(--pbc-transition-fast),
              background var(--pbc-transition-fast);
  position: relative;
}
.pbc-nav__link:hover {
  color: var(--pbc-text-primary);
  background: var(--pbc-blue-soft);
}
.pbc-nav__link[aria-current="page"] {
  color: var(--pbc-blue);
  background: var(--pbc-blue-soft);
}
.pbc-nav__link[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 1rem; right: 1rem; bottom: 0;
  height: 2px;
  background: var(--pbc-blue);
  box-shadow: 0 0 8px var(--pbc-blue-glow);
}

/* =============================================================
   11. BADGE / DOT
   ============================================================= */
.pbc-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--pbc-space-1);
  font-family: var(--pbc-font-ui);
  font-size: var(--pbc-text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 3px 9px;
  background: var(--pbc-bg-elevated);
  border: 1px solid var(--pbc-border);
  border-radius: var(--pbc-radius-sm);
  color: var(--pbc-text-secondary);
}
.pbc-badge--success { color: var(--pbc-success); border-color: rgba(34,197,94,0.4); background: rgba(34,197,94,0.08); }
.pbc-badge--warning { color: var(--pbc-warning); border-color: rgba(251,191,36,0.4); background: rgba(251,191,36,0.08); }
.pbc-badge--error   { color: var(--pbc-red);     border-color: var(--pbc-border-red); background: var(--pbc-red-soft); }
.pbc-badge--info    { color: var(--pbc-blue);    border-color: var(--pbc-border-blue); background: var(--pbc-blue-soft); }

.pbc-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--pbc-success);
  animation: pbc-pulse 1.6s ease-in-out infinite;
}
@keyframes pbc-pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(34,197,94,0.6); }
  50%      { opacity: 0.7; box-shadow: 0 0 0 6px rgba(34,197,94,0); }
}

/* =============================================================
   12. TABLE
   ============================================================= */
.pbc-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--pbc-border);
  border-radius: var(--pbc-radius-md);
}
.pbc-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--pbc-font-body);
  font-size: var(--pbc-text-sm);
}
.pbc-table th, .pbc-table td {
  padding: var(--pbc-space-3) var(--pbc-space-4);
  border-bottom: 1px solid var(--pbc-border);
  text-align: left;
  vertical-align: middle;
}
.pbc-table th {
  background: var(--pbc-bg-elevated);
  font-family: var(--pbc-font-ui);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: var(--pbc-text-xs);
  color: var(--pbc-text-secondary);
  font-weight: 600;
}
.pbc-table tr:hover td { background: var(--pbc-blue-soft); }

/* =============================================================
   13. EMPTY / SKELETON
   ============================================================= */
.pbc-empty {
  padding: var(--pbc-space-12) var(--pbc-space-4);
  text-align: center;
  border: 1px dashed var(--pbc-border);
  border-radius: var(--pbc-radius-md);
  color: var(--pbc-text-muted);
}
.pbc-empty__title {
  font-family: var(--pbc-font-display);
  font-size: var(--pbc-text-lg);
  text-transform: uppercase;
  margin-bottom: var(--pbc-space-2);
  color: var(--pbc-text-secondary);
}

.pbc-skeleton {
  background: linear-gradient(90deg,
    var(--pbc-bg-panel) 0%,
    var(--pbc-bg-elevated) 50%,
    var(--pbc-bg-panel) 100%);
  background-size: 200% 100%;
  animation: pbc-skeleton-shift 1.4s ease-in-out infinite;
  border-radius: var(--pbc-radius-sm);
}
@keyframes pbc-skeleton-shift {
  from { background-position: 200% 0; }
  to   { background-position: -200% 0; }
}

/* =============================================================
   14. UTILITIES
   ============================================================= */
.pbc-u-hidden { display: none !important; }
.pbc-u-sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.pbc-u-text-center { text-align: center; }
.pbc-u-text-muted  { color: var(--pbc-text-muted); }
.pbc-u-text-blue   { color: var(--pbc-blue); }
.pbc-u-text-red    { color: var(--pbc-red); }

.pbc-u-mt-0 { margin-top: 0 !important; }
.pbc-u-mt-2 { margin-top: var(--pbc-space-2); }
.pbc-u-mt-4 { margin-top: var(--pbc-space-4); }
.pbc-u-mt-6 { margin-top: var(--pbc-space-6); }
.pbc-u-mt-8 { margin-top: var(--pbc-space-8); }

.pbc-u-gap-2 { gap: var(--pbc-space-2); }
.pbc-u-gap-4 { gap: var(--pbc-space-4); }

.pbc-u-flex            { display: flex; }
.pbc-u-flex-wrap       { flex-wrap: wrap; }
.pbc-u-items-center    { align-items: center; }
.pbc-u-justify-between { justify-content: space-between; }

/* =============================================================
   14.5. NUMBERED SECTION HEADER (brutalist gaming)
   ============================================================= */
.pbc-section-header {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: var(--pbc-space-6);
  padding-left: var(--pbc-space-2);
}

.pbc-section-header__number {
  font-family: var(--pbc-font-display);
  font-size: clamp(4rem, 9vw, 8rem);
  font-weight: 900;
  line-height: 0.85;
  letter-spacing: -0.05em;
  -webkit-text-stroke: 2px var(--pbc-blue);
  color: transparent;
  opacity: 0.5;
  user-select: none;
  white-space: nowrap;
  flex-shrink: 0;
  margin-top: -0.1em;
}

.pbc-section-header__content {
  flex: 1;
  padding-top: var(--pbc-space-2);
}

.pbc-section-header__divider {
  display: inline-block;
  width: 48px;
  height: 3px;
  background: linear-gradient(90deg, var(--pbc-blue), var(--pbc-red));
  margin-bottom: var(--pbc-space-3);
}

@media (max-width: 640px) {
  .pbc-section-header { flex-direction: column; gap: var(--pbc-space-2); }
  .pbc-section-header__number { font-size: 3.5rem; }
}

/* =============================================================
   14.6. GLITCH TEXT (hover-effect для заголовків)
   ============================================================= */
.pbc-glitch {
  position: relative;
  display: inline-block;
}
.pbc-glitch::before,
.pbc-glitch::after {
  content: attr(data-text);
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  opacity: 0;
}
.pbc-glitch:hover::before {
  color: var(--pbc-blue);
  transform: translate(-3px, 0);
  clip-path: polygon(0 0, 100% 0, 100% 45%, 0 45%);
  opacity: 0.8;
  animation: pbc-glitch-1 800ms infinite linear alternate-reverse;
}
.pbc-glitch:hover::after {
  color: var(--pbc-red);
  transform: translate(3px, 0);
  clip-path: polygon(0 55%, 100% 55%, 100% 100%, 0 100%);
  opacity: 0.8;
  animation: pbc-glitch-2 1100ms infinite linear alternate-reverse;
}
@keyframes pbc-glitch-1 {
  0%   { transform: translate(-3px, 0); }
  50%  { transform: translate(-1px, -1px); }
  100% { transform: translate(-3px, 1px); }
}
@keyframes pbc-glitch-2 {
  0%   { transform: translate(3px, 0); }
  50%  { transform: translate(1px, 1px); }
  100% { transform: translate(3px, -1px); }
}

/* =============================================================
   14.65. GLASS PANEL — backdrop-blur "можливості" / sidebar
   ============================================================= */
.pbc-glass {
  position: relative;
  background: linear-gradient(160deg,
    rgba(30, 127, 255, 0.06) 0%,
    rgba(14, 19, 34, 0.65) 50%,
    rgba(239, 68, 68, 0.04) 100%);
  backdrop-filter: blur(12px) saturate(120%);
  -webkit-backdrop-filter: blur(12px) saturate(120%);
  border: 1px solid rgba(120, 134, 168, 0.18);
  padding: var(--pbc-space-6);
  clip-path: polygon(
    0 0,
    calc(100% - 22px) 0,
    100% 22px,
    100% 100%,
    22px 100%,
    0 calc(100% - 22px)
  );
}
.pbc-glass__title {
  font-family: var(--pbc-font-ui);
  font-size: var(--pbc-text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--pbc-text-secondary);
  margin: 0 0 var(--pbc-space-4);
}
.pbc-glass__list {
  display: flex;
  flex-direction: column;
  gap: var(--pbc-space-3);
}

/* =============================================================
   14.66. FEATURE ROW (item in glass panel)
   ============================================================= */
.pbc-feature-row {
  display: flex;
  align-items: center;
  gap: var(--pbc-space-3);
  padding: var(--pbc-space-3);
  background: rgba(10, 14, 26, 0.4);
  border: 1px solid rgba(120, 134, 168, 0.08);
  transition: background var(--pbc-transition-fast),
              border-color var(--pbc-transition-fast),
              transform var(--pbc-transition-fast);
  cursor: default;
}
.pbc-feature-row:hover {
  background: rgba(30, 127, 255, 0.06);
  border-color: var(--pbc-border-blue);
  transform: translateX(4px);
}
.pbc-feature-row__body {
  flex: 1;
  min-width: 0;
}
.pbc-feature-row__title {
  font-family: var(--pbc-font-ui);
  font-size: var(--pbc-text-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--pbc-text-primary);
  margin: 0;
}
.pbc-feature-row__desc {
  font-size: var(--pbc-text-xs);
  color: var(--pbc-text-muted);
  margin: 2px 0 0;
  line-height: 1.45;
}

/* =============================================================
   14.67. ICON BOX (кольоровий контейнер для SVG-іконки)
   ============================================================= */
.pbc-icon-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  background: var(--pbc-blue-soft);
  border: 1px solid var(--pbc-border-blue);
  color: var(--pbc-blue);
  clip-path: polygon(
    8px 0, 100% 0, 100% calc(100% - 8px),
    calc(100% - 8px) 100%, 0 100%, 0 8px
  );
}
.pbc-icon-box--red {
  background: var(--pbc-red-soft);
  border-color: var(--pbc-border-red);
  color: var(--pbc-red);
}
.pbc-icon-box--lg {
  width: 64px; height: 64px;
}
.pbc-icon-box svg {
  width: 60%; height: 60%;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* =============================================================
   14.68. FEATURE TILE — велика картка з іконкою (Database / Player / ...)
   ============================================================= */
.pbc-feature-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--pbc-space-3);
  background: var(--pbc-bg-panel);
  border: 1px solid var(--pbc-border);
  box-shadow: var(--pbc-edge-inset);
  padding: var(--pbc-space-6);
  transition: transform var(--pbc-transition-base),
              border-color var(--pbc-transition-base),
              box-shadow var(--pbc-transition-base);
  clip-path: polygon(
    0 0,
    calc(100% - 16px) 0,
    100% 16px,
    100% 100%,
    16px 100%,
    0 calc(100% - 16px)
  );
}
.pbc-feature-tile:hover {
  transform: translateY(-3px);
  border-color: var(--pbc-border-strong);
  box-shadow: var(--pbc-edge-inset), var(--pbc-shadow-md);
}
.pbc-feature-tile__title {
  font-family: var(--pbc-font-display);
  font-size: var(--pbc-text-lg);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  color: var(--pbc-text-primary);
  margin: 0;
}
.pbc-feature-tile__desc {
  font-size: var(--pbc-text-sm);
  color: var(--pbc-text-muted);
  margin: 0;
  line-height: 1.5;
  flex: 1;
}
.pbc-feature-tile__tag {
  display: inline-flex;
  align-self: flex-start;
  font-family: var(--pbc-font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 3px 8px;
  background: var(--pbc-blue-soft);
  color: var(--pbc-blue);
  border: 1px solid var(--pbc-border-blue);
}
.pbc-feature-tile__tag--red {
  background: var(--pbc-red-soft);
  color: var(--pbc-red);
  border-color: var(--pbc-border-red);
}

/* =============================================================
   14.7. SVG LOGO HELPERS
   ============================================================= */
.pbc-logo-svg {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 0 24px var(--pbc-blue-glow))
          drop-shadow(0 8px 32px rgba(0,0,0,0.6));
}

/* =============================================================
   15. ANIMATIONS (gaming neon)
   ============================================================= */
@keyframes pbc-scan-line {
  from { transform: translateY(-100%); }
  to   { transform: translateY(100vh); }
}
@keyframes pbc-glow-pulse {
  0%, 100% { box-shadow: 0 0 12px var(--pbc-blue-glow); }
  50%      { box-shadow: 0 0 28px var(--pbc-blue-glow); }
}
.pbc-anim-glow { animation: pbc-glow-pulse 2.4s ease-in-out infinite; }

/* =============================================================
   16. RESPONSIVE
   ============================================================= */
@media (max-width: 1024px) {
  body.pbc-scope {
    --pbc-text-4xl: 3rem;
    --pbc-text-3xl: 2.25rem;
    --pbc-text-2xl: 1.5rem;
  }
}

@media (max-width: 640px) {
  body.pbc-scope {
    --pbc-text-4xl: 2.25rem;
    --pbc-text-3xl: 1.75rem;
    --pbc-text-2xl: 1.375rem;
    --pbc-text-xl:  1.125rem;
  }
  .pbc-section { padding-block: 2rem; }
  .pbc-nav__inner { gap: var(--pbc-space-3); }
}

/* =============================================================
   17. PRINT
   ============================================================= */
@media print {
  body.pbc-scope { background: white; color: black; }
  .pbc-nav, .pbc-modal-backdrop { display: none; }
}

/* =============================================================
   18. ACCESSIBILITY
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  body.pbc-scope *,
  body.pbc-scope *::before,
  body.pbc-scope *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* =============================================================
   19. WIP / ROADMAP PAGE (винесене з inline сторінок-заглушок)
   ============================================================= */
.pbc-wip-page {
  position: relative;
  isolation: isolate;
  padding-block: clamp(3rem, 7vw, 6rem);
  overflow: hidden;
}
.pbc-wip-page::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(ellipse 60% 50% at 25% 35%, rgba(30, 127, 255, 0.12), transparent 70%),
    radial-gradient(ellipse 55% 45% at 80% 75%, rgba(239, 68, 68, 0.10), transparent 70%);
}
.pbc-wip-page::after {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background-image:
    linear-gradient(0deg,  rgba(30,127,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(30,127,255,0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 55% at 50% 50%, black 20%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 70% 55% at 50% 50%, black 20%, transparent 80%);
  opacity: 0.6;
  pointer-events: none;
}

.pbc-wip-page__head {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--pbc-space-4);
  max-width: 720px;
  margin-inline: auto;
}
.pbc-wip-page__num {
  font-family: var(--pbc-font-display);
  font-size: clamp(4.5rem, 11vw, 8rem);
  font-weight: 900;
  line-height: 0.85;
  letter-spacing: -0.05em;
  -webkit-text-stroke: 2px var(--pbc-blue);
  color: transparent;
  opacity: 0.55;
  user-select: none;
  margin: 0;
}
.pbc-wip-page__title {
  font-family: var(--pbc-font-display);
  font-size: clamp(2.25rem, 5.5vw, 3.5rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 1.0;
  margin: 0;
}
.pbc-wip-page__title b {
  color: var(--pbc-red);
  text-shadow: 0 0 22px var(--pbc-red-glow);
}
.pbc-wip-page__lede {
  color: var(--pbc-text-secondary);
  max-width: 540px;
  margin: 0;
  font-size: var(--pbc-text-lg);
  line-height: 1.55;
}
.pbc-wip-page__divider {
  display: inline-block;
  width: 72px; height: 3px;
  background: linear-gradient(90deg, var(--pbc-blue), var(--pbc-red));
  box-shadow: 0 0 12px rgba(30, 127, 255, 0.4);
}
.pbc-wip-page__meta {
  display: inline-flex;
  align-items: center;
  gap: var(--pbc-space-3);
  font-family: var(--pbc-font-mono);
  font-size: var(--pbc-text-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--pbc-text-muted);
  padding: var(--pbc-space-2) var(--pbc-space-4);
  border: 1px solid var(--pbc-border);
  background: var(--pbc-bg-elevated);
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
}
.pbc-wip-page__actions {
  display: flex;
  gap: var(--pbc-space-3);
  flex-wrap: wrap;
  justify-content: center;
  margin-top: var(--pbc-space-3);
}
.pbc-wip-page__content {
  margin-top: var(--pbc-space-12);
}

/* =============================================================
   20. STATUS LIVE INDICATOR — пульсуючий індикатор стану
   ============================================================= */
.pbc-status-live {
  display: inline-flex;
  align-items: center;
  gap: var(--pbc-space-2);
  font-family: var(--pbc-font-mono);
  font-size: var(--pbc-text-xs);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--pbc-success);
  padding: 4px 10px;
  border: 1px solid rgba(34, 197, 94, 0.35);
  background: rgba(34, 197, 94, 0.07);
  border-radius: var(--pbc-radius-sm);
}
.pbc-status-live::before {
  content: "";
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--pbc-success);
  animation: pbc-pulse 1.6s ease-in-out infinite;
}
.pbc-status-live--warn {
  color: var(--pbc-warning);
  border-color: rgba(251, 191, 36, 0.35);
  background: rgba(251, 191, 36, 0.07);
}
.pbc-status-live--warn::before { background: var(--pbc-warning); }
.pbc-status-live--idle {
  color: var(--pbc-text-muted);
  border-color: var(--pbc-border);
  background: var(--pbc-bg-elevated);
}
.pbc-status-live--idle::before {
  background: var(--pbc-text-muted);
  animation: none;
}

/* =============================================================
   21. INFO TILE — універсальна картка для roadmap/category-grid
   ============================================================= */
.pbc-info-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--pbc-space-3);
  background: var(--pbc-bg-panel);
  border: 1px solid var(--pbc-border);
  box-shadow: var(--pbc-edge-inset);
  padding: var(--pbc-space-5) var(--pbc-space-5) var(--pbc-space-4);
  transition: transform var(--pbc-transition-base),
              border-color var(--pbc-transition-base),
              box-shadow var(--pbc-transition-base);
  clip-path: polygon(
    0 0,
    calc(100% - 14px) 0,
    100% 14px,
    100% 100%,
    14px 100%,
    0 calc(100% - 14px)
  );
}
.pbc-info-tile:hover {
  transform: translateY(-3px);
  border-color: var(--pbc-border-strong);
  box-shadow: var(--pbc-edge-inset), var(--pbc-shadow-md), 0 0 24px rgba(30, 127, 255, 0.18);
}
.pbc-info-tile__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--pbc-space-3);
}
.pbc-info-tile__num {
  font-family: var(--pbc-font-mono);
  font-size: var(--pbc-text-xs);
  letter-spacing: 0.16em;
  color: var(--pbc-text-muted);
}
.pbc-info-tile__title {
  font-family: var(--pbc-font-display);
  font-size: var(--pbc-text-lg);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  color: var(--pbc-text-primary);
  margin: 0;
  line-height: 1.15;
}
.pbc-info-tile__desc {
  font-size: var(--pbc-text-sm);
  color: var(--pbc-text-muted);
  margin: 0;
  line-height: 1.55;
  flex: 1;
}
.pbc-info-tile__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--pbc-space-3);
  padding-top: var(--pbc-space-3);
  border-top: 1px solid var(--pbc-border);
  font-family: var(--pbc-font-mono);
  font-size: var(--pbc-text-xs);
  letter-spacing: 0.08em;
}

/* Кутова "галочка" як у feature-tile */
.pbc-info-tile::after {
  content: "";
  position: absolute;
  top: 0; right: 0;
  width: 14px; height: 14px;
  background: linear-gradient(135deg, transparent 49%, var(--pbc-blue) 50%);
  opacity: 0.5;
  transition: opacity var(--pbc-transition-base);
}
.pbc-info-tile:hover::after { opacity: 1; }
.pbc-info-tile--red::after { background: linear-gradient(135deg, transparent 49%, var(--pbc-red) 50%); }
.pbc-info-tile--red:hover {
  box-shadow: var(--pbc-edge-inset), var(--pbc-shadow-md), 0 0 24px rgba(239, 68, 68, 0.16);
}

/* =============================================================
   22. PROGRESS BAR — для модулів/roadmap
   ============================================================= */
.pbc-progress {
  position: relative;
  width: 100%;
  height: 6px;
  background: var(--pbc-bg-deep);
  border: 1px solid var(--pbc-border);
  overflow: hidden;
}
.pbc-progress__fill {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--pbc-blue) 0%, #3da3ff 50%, var(--pbc-blue-hover) 100%);
  box-shadow: 0 0 12px var(--pbc-blue-glow);
  transition: width 600ms cubic-bezier(0.16, 1, 0.3, 1);
}
.pbc-progress__fill--red {
  background: linear-gradient(90deg, var(--pbc-red) 0%, #ff6363 50%, var(--pbc-red-hover) 100%);
  box-shadow: 0 0 12px var(--pbc-red-glow);
}
.pbc-progress__fill--warn {
  background: linear-gradient(90deg, var(--pbc-warning) 0%, #fcd34d 100%);
  box-shadow: 0 0 12px rgba(251, 191, 36, 0.5);
}
.pbc-progress__fill--success {
  background: linear-gradient(90deg, var(--pbc-success) 0%, #4ade80 100%);
  box-shadow: 0 0 12px rgba(34, 197, 94, 0.5);
}

/* Indeterminate striped bar */
.pbc-progress__fill--indeterminate {
  width: 40% !important;
  background-size: 200% 100%;
  animation: pbc-progress-slide 1.6s linear infinite;
}
@keyframes pbc-progress-slide {
  from { transform: translateX(-100%); }
  to   { transform: translateX(250%); }
}

.pbc-progress-meta {
  display: flex;
  justify-content: space-between;
  font-family: var(--pbc-font-mono);
  font-size: var(--pbc-text-xs);
  letter-spacing: 0.08em;
  color: var(--pbc-text-muted);
  margin-top: var(--pbc-space-2);
}

/* =============================================================
   23. TIMELINE — для журналу змін
   ============================================================= */
.pbc-timeline {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--pbc-space-6);
  padding-left: var(--pbc-space-8);
}
.pbc-timeline::before {
  content: "";
  position: absolute;
  top: 0; bottom: 0; left: 11px;
  width: 2px;
  background: linear-gradient(180deg, var(--pbc-blue), var(--pbc-red) 70%, transparent);
  opacity: 0.35;
}
.pbc-timeline__item {
  position: relative;
}
.pbc-timeline__item::before {
  content: "";
  position: absolute;
  top: 14px; left: calc(-1 * var(--pbc-space-8) + 6px);
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--pbc-blue);
  box-shadow: 0 0 0 4px var(--pbc-bg-canvas), 0 0 12px var(--pbc-blue-glow);
  z-index: 1;
}
.pbc-timeline__item--red::before {
  background: var(--pbc-red);
  box-shadow: 0 0 0 4px var(--pbc-bg-canvas), 0 0 12px var(--pbc-red-glow);
}
.pbc-timeline__date {
  display: inline-block;
  font-family: var(--pbc-font-mono);
  font-size: var(--pbc-text-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--pbc-text-muted);
  margin-bottom: var(--pbc-space-2);
}
.pbc-timeline__title {
  font-family: var(--pbc-font-display);
  font-size: var(--pbc-text-xl);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  color: var(--pbc-text-primary);
  margin: 0 0 var(--pbc-space-2);
  line-height: 1.15;
}
.pbc-timeline__body {
  background: var(--pbc-bg-panel);
  border: 1px solid var(--pbc-border);
  box-shadow: var(--pbc-edge-inset);
  padding: var(--pbc-space-4) var(--pbc-space-5);
  clip-path: polygon(
    0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px)
  );
  transition: border-color var(--pbc-transition-base);
}
.pbc-timeline__item:hover .pbc-timeline__body {
  border-color: var(--pbc-border-strong);
}
.pbc-timeline__desc {
  font-size: var(--pbc-text-sm);
  color: var(--pbc-text-secondary);
  line-height: 1.55;
  margin: 0;
}
.pbc-timeline__tags {
  display: flex;
  gap: var(--pbc-space-2);
  flex-wrap: wrap;
  margin-top: var(--pbc-space-3);
}

/* =============================================================
   24. MEMBER CARD — для сторінки "Команда"
   ============================================================= */
.pbc-member-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--pbc-space-3);
  background: var(--pbc-bg-panel);
  border: 1px solid var(--pbc-border);
  box-shadow: var(--pbc-edge-inset);
  padding: var(--pbc-space-5);
  transition: transform var(--pbc-transition-base),
              border-color var(--pbc-transition-base),
              box-shadow var(--pbc-transition-base);
  clip-path: polygon(
    0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 18px 100%, 0 calc(100% - 18px)
  );
}
.pbc-member-card:hover {
  transform: translateY(-4px);
  border-color: var(--pbc-blue);
  box-shadow: var(--pbc-edge-inset), var(--pbc-shadow-md), 0 0 28px rgba(30, 127, 255, 0.22);
}
.pbc-member-card__avatar {
  width: 88px; height: 88px;
  border: 2px solid var(--pbc-border-blue);
  background: linear-gradient(135deg, var(--pbc-blue-soft), var(--pbc-red-soft));
  display: flex; align-items: center; justify-content: center;
  font-family: var(--pbc-font-display);
  font-size: var(--pbc-text-2xl);
  font-weight: 900;
  color: var(--pbc-blue);
  letter-spacing: -0.02em;
  clip-path: polygon(
    10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px
  );
}
.pbc-member-card__role {
  font-family: var(--pbc-font-mono);
  font-size: var(--pbc-text-xs);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--pbc-blue);
}
.pbc-member-card__name {
  font-family: var(--pbc-font-display);
  font-size: var(--pbc-text-lg);
  font-weight: 700;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: -0.01em;
}
.pbc-member-card__bio {
  font-size: var(--pbc-text-sm);
  color: var(--pbc-text-muted);
  line-height: 1.55;
  margin: 0;
  flex: 1;
}
.pbc-member-card__tags {
  display: flex;
  gap: var(--pbc-space-2);
  flex-wrap: wrap;
  padding-top: var(--pbc-space-3);
  border-top: 1px solid var(--pbc-border);
}

/* =============================================================
   25. CHANNEL TILE — для сторінки "Контакти"
   ============================================================= */
.pbc-channel-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--pbc-space-3);
  background: var(--pbc-bg-panel);
  border: 1px solid var(--pbc-border);
  box-shadow: var(--pbc-edge-inset);
  padding: var(--pbc-space-5);
  text-decoration: none;
  transition: transform var(--pbc-transition-base),
              border-color var(--pbc-transition-base),
              background var(--pbc-transition-base);
  clip-path: polygon(
    0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 16px 100%, 0 calc(100% - 16px)
  );
}
.pbc-channel-tile:hover {
  transform: translateY(-3px);
  border-color: var(--pbc-blue);
  background: linear-gradient(160deg, var(--pbc-bg-panel) 0%, var(--pbc-blue-soft) 120%);
}
.pbc-channel-tile__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--pbc-space-3);
}
.pbc-channel-tile__platform {
  font-family: var(--pbc-font-mono);
  font-size: var(--pbc-text-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--pbc-text-muted);
}
.pbc-channel-tile__title {
  font-family: var(--pbc-font-display);
  font-size: var(--pbc-text-lg);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  color: var(--pbc-text-primary);
  margin: 0;
}
.pbc-channel-tile__handle {
  font-family: var(--pbc-font-mono);
  font-size: var(--pbc-text-sm);
  color: var(--pbc-blue);
  word-break: break-all;
}
.pbc-channel-tile__desc {
  font-size: var(--pbc-text-sm);
  color: var(--pbc-text-muted);
  margin: 0;
  line-height: 1.55;
  flex: 1;
}
.pbc-channel-tile__arrow {
  display: inline-flex;
  align-items: center;
  gap: var(--pbc-space-2);
  font-family: var(--pbc-font-ui);
  font-size: var(--pbc-text-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--pbc-blue);
  margin-top: var(--pbc-space-2);
  padding-top: var(--pbc-space-3);
  border-top: 1px solid var(--pbc-border);
  transition: gap var(--pbc-transition-fast);
}
.pbc-channel-tile:hover .pbc-channel-tile__arrow {
  gap: var(--pbc-space-3);
}

/* =============================================================
   26. QUICK LINK — компактний link-блок для index.html "Швидкий старт"
   ============================================================= */
.pbc-quick-link {
  display: flex;
  align-items: center;
  gap: var(--pbc-space-4);
  background: var(--pbc-bg-panel);
  border: 1px solid var(--pbc-border);
  padding: var(--pbc-space-4) var(--pbc-space-5);
  text-decoration: none;
  transition: transform var(--pbc-transition-fast),
              border-color var(--pbc-transition-fast),
              background var(--pbc-transition-fast);
  clip-path: polygon(
    10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px
  );
}
.pbc-quick-link:hover {
  transform: translateX(4px);
  border-color: var(--pbc-blue);
  background: linear-gradient(90deg, var(--pbc-bg-panel) 0%, var(--pbc-blue-soft) 200%);
}
.pbc-quick-link__num {
  font-family: var(--pbc-font-display);
  font-size: var(--pbc-text-xl);
  font-weight: 900;
  -webkit-text-stroke: 1.5px var(--pbc-blue);
  color: transparent;
  flex-shrink: 0;
  width: 44px;
  text-align: center;
}
.pbc-quick-link__body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}
.pbc-quick-link__title {
  font-family: var(--pbc-font-ui);
  font-size: var(--pbc-text-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--pbc-text-primary);
}
.pbc-quick-link__desc {
  font-size: var(--pbc-text-xs);
  color: var(--pbc-text-muted);
  line-height: 1.4;
}
.pbc-quick-link__arrow {
  color: var(--pbc-blue);
  font-family: var(--pbc-font-mono);
  font-size: var(--pbc-text-lg);
  transition: transform var(--pbc-transition-fast);
}
.pbc-quick-link:hover .pbc-quick-link__arrow {
  transform: translateX(4px);
}

/* =============================================================
   27. EXTRA UTILITIES (v3.0)
   ============================================================= */
.pbc-u-text-success { color: var(--pbc-success); }
.pbc-u-text-warning { color: var(--pbc-warning); }
.pbc-u-mb-2 { margin-bottom: var(--pbc-space-2); }
.pbc-u-mb-4 { margin-bottom: var(--pbc-space-4); }
.pbc-u-mb-6 { margin-bottom: var(--pbc-space-6); }
.pbc-u-grow { flex: 1; }
.pbc-u-stack-2 > * + * { margin-top: var(--pbc-space-2); }
.pbc-u-stack-3 > * + * { margin-top: var(--pbc-space-3); }

/* Entrance reveal — для tiles при скролі / завантаженні */
@keyframes pbc-reveal-up {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
.pbc-reveal {
  animation: pbc-reveal-up 600ms cubic-bezier(0.16, 1, 0.3, 1) both;
}
.pbc-reveal:nth-child(2) { animation-delay: 80ms; }
.pbc-reveal:nth-child(3) { animation-delay: 160ms; }
.pbc-reveal:nth-child(4) { animation-delay: 240ms; }
.pbc-reveal:nth-child(5) { animation-delay: 320ms; }
.pbc-reveal:nth-child(6) { animation-delay: 400ms; }
.pbc-reveal:nth-child(7) { animation-delay: 480ms; }
.pbc-reveal:nth-child(8) { animation-delay: 560ms; }
