:root {
      --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
      --bg-main: #f1f5f9;
      --bg-card: #ffffff;
      --bg-card-hover: #ffffff;
      --bg-subtle: #e2e8f0;
      --bg-nav: rgba(255, 255, 255, 0.92);
      --border-color: #e2e8f0;
      --border-subtle: #edf2f7;
      --text-main: #0f172a;
      --text-muted: #475569;
      --text-dim: #94a3b8;
      --primary: #0284c7;
      --primary-hover: #0369a1;
      --primary-subtle: #f0f9ff;
      --primary-text: #0284c7;
      --accent-green: #10b981;
      --accent-green-bg: #ecfdf5;
      --accent-red: #ef4444;
      --accent-red-bg: #fef2f2;
      --accent-amber: #f59e0b;
      --accent-amber-bg: #fffbeb;
      --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
      --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
      --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
      --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
      --radius-sm: 8px;
      --radius-md: 12px;
      --radius-lg: 16px;
      --radius-xl: 24px;
      --radius-pill: 9999px;
    }

    .dark {
      --bg-main: #0b0f19;
      --bg-card: #131b2e;
      --bg-card-hover: #18223a;
      --bg-subtle: #1e293b;
      --bg-nav: rgba(19, 27, 46, 0.92);
      --border-color: #243048;
      --border-subtle: #1e293b;
      --text-main: #f8fafc;
      --text-muted: #94a3b8;
      --text-dim: #64748b;
      --primary: #38bdf8;
      --primary-hover: #7dd3fc;
      --primary-subtle: rgba(59, 130, 246, 0.15);
      --primary-text: #7dd3fc;
      --accent-green-bg: rgba(16, 185, 129, 0.15);
      --accent-red-bg: rgba(239, 68, 68, 0.15);
      --accent-amber-bg: rgba(245, 158, 11, 0.15);
      --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.5);
      --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4);
      --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.4);
    }

    *, *::before, *::after {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
    }

    html {
      overflow-x: clip;
      scroll-behavior: smooth;
    }

    body {
      font-family: var(--font-sans);
      background-color: var(--bg-main);
      color: var(--text-main);
      min-height: 100vh;
      line-height: 1.5;
      overflow-x: clip;
      width: 100%;
      transition: background-color 0.2s ease, color 0.2s ease;
      -webkit-font-smoothing: antialiased;
      -webkit-text-size-adjust: 100%;
    }

    a {
      color: inherit;
      text-decoration: none;
    }

    button, input, select, textarea {
      font-family: inherit;
      font-size: inherit;
    }

    .container {
      width: 100%;
      max-width: 1360px;
      margin: 0 auto;
      padding: 0 20px;
    }
    @media (min-width: 1440px) {
      .container {
        max-width: 1440px;
        padding: 0 24px;
      }
    }
    @media (min-width: 1536px) {
      .container {
        max-width: 1536px;
        padding: 0 32px;
      }
    }

    @media (max-width: 640px) {
      .container {
        padding: 0 14px;
      }
    }

    /* Navbar */
    .navbar {
      position: sticky;
      top: 0;
      z-index: 40;
      background: var(--bg-nav);
      backdrop-filter: blur(12px);
      -webkit-backdrop-filter: blur(12px);
      border-bottom: 1px solid var(--border-color);
      transition: all 0.2s ease;
    }

    .nav-content {
      display: flex;
      align-items: center;
      justify-content: space-between;
      height: 68px;
    }

    .brand {
      display: flex;
      align-items: center;
      gap: 12px;
      min-width: 0;
    }

    .brand-icon {
      width: 40px;
      height: 40px;
      min-width: 40px;
      background: linear-gradient(135deg, #0284c7, #0369a1);
      border-radius: var(--radius-md);
      display: flex;
      align-items: center;
      justify-content: center;
      color: #ffffff;
      font-weight: 800;
      font-size: 19px;
      box-shadow: 0 4px 10px rgba(37, 99, 235, 0.3);
    }

    .brand-text {
      min-width: 0;
    }

    .brand-text h1 {
      font-size: 1.1rem;
      font-weight: 700;
      letter-spacing: -0.02em;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .brand-text p {
      font-size: 0.78rem;
      color: var(--text-muted);
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    @media (max-width: 500px) {
      .brand-text p {
        display: none;
      }
      .brand-text h1 {
        font-size: 0.98rem;
      }
    }

    .nav-actions {
      display: flex;
      align-items: center;
      gap: 8px;
      flex-shrink: 0;
    }

    .btn-icon {
      background: var(--bg-subtle);
      border: 1px solid var(--border-color);
      color: var(--text-main);
      width: 38px;
      height: 38px;
      border-radius: var(--radius-md);
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      transition: all 0.15s ease;
    }

    .btn-icon:hover {
      background: var(--border-color);
    }

    /* Admin Bar */
    .admin-bar {
      display: none;
      background: linear-gradient(90deg, #1e1b4b, #312e81);
      color: #ffffff;
      padding: 10px 0;
      font-size: 0.88rem;
      border-bottom: 1px solid #4338ca;
    }

    .admin-bar.active {
      display: block;
    }

    .admin-bar-content {
      display: flex;
      align-items: center;
      justify-content: space-between;
      flex-wrap: wrap;
      gap: 10px;
    }

    .admin-badge {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      font-weight: 600;
      background: rgba(255, 255, 255, 0.15);
      padding: 4px 10px;
      border-radius: var(--radius-pill);
      font-size: 0.82rem;
    }

    .admin-actions {
      display: flex;
      align-items: center;
      gap: 6px;
      flex-wrap: wrap;
    }

    .btn-admin {
      background: rgba(255, 255, 255, 0.15);
      color: #ffffff;
      border: 1px solid rgba(255, 255, 255, 0.25);
      padding: 5px 12px;
      border-radius: var(--radius-sm);
      font-weight: 600;
      font-size: 0.82rem;
      cursor: pointer;
      display: inline-flex;
      align-items: center;
      gap: 5px;
      transition: all 0.15s ease;
    }

    .btn-admin:hover {
      background: rgba(255, 255, 255, 0.25);
    }

    .btn-admin.primary {
      background: #10b981;
      border-color: #059669;
    }

    .btn-admin.danger {
      background: #ef4444;
      border-color: #dc2626;
    }

    /* Hero */
    .hero {
      padding: 28px 0 16px;
      text-align: center;
    }

    .hero-badge {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      background: var(--primary-subtle);
      color: var(--primary-text);
      font-size: 0.82rem;
      font-weight: 600;
      padding: 5px 12px;
      border-radius: var(--radius-pill);
      margin-bottom: 12px;
    }

    .hero-title {
      font-size: clamp(1.75rem, 4.5vw, 2.5rem);
      font-weight: 800;
      letter-spacing: -0.03em;
      line-height: 1.22;
      margin-bottom: 12px;
      color: var(--text-main);
    }

    .hero-title span {
      background: linear-gradient(135deg, #2563eb, #8b5cf6);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
    }

    .hero-desc {
      max-width: 980px;
      margin: 0 auto;
      font-size: clamp(1rem, 1.8vw, 1.12rem);
      color: var(--text-muted);
      line-height: 1.68;
    }

    .hero-actions-admin {
      margin-top: 14px;
      display: flex;
      justify-content: center;
      gap: 10px;
    }

    .btn-hero-edit {
      background: var(--bg-card);
      border: 1px dashed var(--primary);
      color: var(--primary);
      padding: 5px 14px;
      border-radius: var(--radius-pill);
      font-size: 0.8rem;
      font-weight: 600;
      cursor: pointer;
      display: inline-flex;
      align-items: center;
      gap: 6px;
      box-shadow: var(--shadow-sm);
      transition: all 0.15s ease;
    }

    .btn-hero-edit:hover {
      background: var(--primary-subtle);
      border-style: solid;
      transform: translateY(-1px);
    }

    .is-admin .btn-hero-edit {
      display: inline-flex !important;
    }

    /* Tracker */
    .tracker-bar {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 12px;
      margin-top: 20px;
      flex-wrap: wrap;
    }

    .tracker-item {
      background: var(--bg-card);
      border: 1px solid var(--border-color);
      padding: 6px 14px;
      border-radius: var(--radius-pill);
      font-size: 0.82rem;
      font-weight: 600;
      color: var(--text-muted);
      display: inline-flex;
      align-items: center;
      gap: 6px;
      box-shadow: var(--shadow-sm);
    }

    .tracker-item b {
      color: var(--text-main);
    }

    /* Tools Section - Nowoczesny panel wyszukiwania i filtrów */
    .tools-section {
      background: var(--bg-card);
      border: 1px solid var(--border-color);
      border-radius: var(--radius-xl);
      padding: 24px;
      margin: 24px 0 32px;
      box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.05);
    }

    @media (max-width: 640px) {
      .tools-section {
        padding: 16px;
        margin: 16px 0 24px;
        border-radius: var(--radius-lg);
      }
    }

    .search-wrapper {
      position: relative;
      display: flex;
      align-items: center;
      margin-bottom: 12px;
    }

    .search-icon {
      position: absolute;
      left: 16px;
      top: 50%;
      transform: translateY(-50%);
      color: var(--text-dim);
      pointer-events: none;
    }

    .search-input {
      width: 100%;
      height: 50px;
      background: var(--bg-subtle);
      border: 1.5px solid var(--border-color);
      border-radius: var(--radius-md);
      padding: 0 74px 0 48px;
      font-size: 0.98rem;
      color: var(--text-main);
      transition: all 0.2s ease;
    }

    .search-input:focus {
      outline: none;
      border-color: var(--primary);
      background: var(--bg-card);
      box-shadow: 0 0 0 3px var(--primary-subtle);
    }

    .search-kbd-hint {
      position: absolute;
      right: 44px;
      top: 50%;
      transform: translateY(-50%);
      font-size: 0.75rem;
      font-weight: 700;
      color: var(--text-dim);
      background: var(--bg-card);
      border: 1px solid var(--border-color);
      padding: 2px 7px;
      border-radius: 6px;
      pointer-events: none;
      user-select: none;
    }

    .search-clear {
      position: absolute;
      right: 14px;
      top: 50%;
      transform: translateY(-50%);
      background: none;
      border: none;
      color: var(--text-dim);
      cursor: pointer;
      display: none;
      padding: 6px;
      font-size: 1.1rem;
      line-height: 1;
      transition: color 0.15s ease;
    }

    .search-clear:hover {
      color: var(--text-main);
    }

    /* Szybkie presety / filtry sytuacyjne */
    .quick-search-container {
      display: flex;
      align-items: center;
      gap: 8px;
      margin-bottom: 18px;
      flex-wrap: wrap;
    }

    .quick-search-title {
      font-size: 0.78rem;
      font-weight: 700;
      color: var(--text-dim);
      white-space: nowrap;
    }

    .quick-search-pills {
      display: flex;
      align-items: center;
      gap: 6px;
      flex-wrap: wrap;
    }

    .quick-chip {
      background: var(--bg-subtle);
      border: 1px solid var(--border-subtle);
      color: var(--text-muted);
      padding: 5px 12px;
      border-radius: var(--radius-pill);
      font-size: 0.78rem;
      font-weight: 500;
      cursor: pointer;
      transition: all 0.15s cubic-bezier(0.16, 1, 0.3, 1);
      display: inline-flex;
      align-items: center;
      gap: 5px;
      user-select: none;
    }

    .quick-chip:hover {
      background: var(--primary-subtle);
      color: var(--primary);
      border-color: var(--primary);
      transform: translateY(-1px);
    }

    .quick-chip.active {
      background: var(--primary);
      color: #ffffff;
      border-color: var(--primary);
      font-weight: 600;
      box-shadow: 0 2px 6px rgba(37, 99, 235, 0.25);
    }

    /* Subtelny separator sekcji */
    .tools-divider {
      height: 1px;
      background: var(--border-subtle);
      margin: 18px 0 16px;
    }

    /* PODŚWIETLANIE WYNIKÓW WYSZUKIWANIA */
    .search-highlight {
      background-color: #fef08a;
      color: #713f12;
      padding: 0 2px;
      border-radius: 3px;
      font-weight: 700;
      box-decoration-break: clone;
      -webkit-box-decoration-break: clone;
    }

    .dark .search-highlight {
      background-color: #854d0e;
      color: #fef08a;
    }

    .cross-cat-banner {
      background: var(--primary-subtle);
      border: 1px solid var(--primary);
      color: var(--text-main);
      padding: 14px 18px;
      border-radius: var(--radius-md);
      margin-bottom: 22px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      flex-wrap: wrap;
      font-size: 0.92rem;
    }

    /* KATEGORIE BRANŻOWE / MAKRO-KATEGORIE */
    .categories-container {
      margin-bottom: 18px;
    }

    .categories-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-bottom: 10px;
      flex-wrap: wrap;
      gap: 8px;
    }

    .categories-section-title {
      font-size: 0.78rem;
      font-weight: 700;
      color: var(--text-dim);
      text-transform: uppercase;
      letter-spacing: 0.05em;
    }

    .categories-hint {
      font-size: 0.75rem;
      color: var(--text-dim);
      font-weight: 500;
    }

    /* Eleganckie pigułki kategorii */
    .categories-grid {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      align-items: center;
    }

    .category-btn {
      background: var(--bg-card);
      border: 1.5px solid var(--border-color);
      color: var(--text-main);
      padding: 7px 14px;
      border-radius: var(--radius-pill);
      font-size: 0.84rem;
      font-weight: 600;
      cursor: pointer;
      transition: all 0.15s cubic-bezier(0.16, 1, 0.3, 1);
      display: inline-flex;
      align-items: center;
      gap: 8px;
      flex-shrink: 0;
      box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
    }

    .category-btn:hover {
      background: var(--bg-subtle);
      border-color: var(--primary);
      transform: translateY(-1px);
      box-shadow: var(--shadow-sm);
    }

    .category-btn.active {
      background: var(--primary);
      color: #ffffff;
      border-color: var(--primary);
      box-shadow: 0 4px 12px rgba(37, 99, 235, 0.28);
    }

    .category-btn .cat-count {
      font-size: 0.72rem;
      font-weight: 700;
      background: var(--bg-subtle);
      border: 1px solid var(--border-color);
      color: var(--text-muted);
      padding: 1px 7px;
      border-radius: var(--radius-pill);
      transition: all 0.15s ease;
    }

    .category-btn.active .cat-count {
      background: rgba(255, 255, 255, 0.22);
      border-color: rgba(255, 255, 255, 0.35);
      color: #ffffff;
    }

    /* Mobilny picker kategorii */
    .mobile-cat-select-wrapper {
      display: none;
      margin-bottom: 12px;
    }

    @media (max-width: 640px) {
      .mobile-cat-select-wrapper {
        display: block;
      }
      .categories-grid {
        display: none;
      }
      .categories-grid.show-mobile {
        display: flex;
      }
      .toggle-cat-grid-btn {
        display: inline-flex;
      }
    }

    .mobile-cat-select {
      width: 100%;
      height: 44px;
      background: var(--bg-subtle);
      border: 1.5px solid var(--border-color);
      border-radius: var(--radius-md);
      padding: 0 14px;
      font-size: 0.92rem;
      font-weight: 600;
      color: var(--text-main);
      outline: none;
    }

    .toggle-cat-grid-btn {
      display: none;
      align-items: center;
      gap: 4px;
      font-size: 0.78rem;
      color: var(--primary);
      background: none;
      border: none;
      cursor: pointer;
      font-weight: 600;
      margin-top: 6px;
    }

    /* Pasek podfiltrów precyzyjnych i statusu */
    .subfilters-bar {
      display: flex;
      align-items: center;
      justify-content: space-between;
      flex-wrap: wrap;
      gap: 12px;
      padding-top: 16px;
      border-top: 1px solid var(--border-subtle);
      font-size: 0.85rem;
    }

    .filter-group {
      display: flex;
      align-items: center;
      gap: 12px;
      flex-wrap: wrap;
    }

    .select-item {
      display: inline-flex;
      align-items: center;
      gap: 6px;
    }

    .select-item label {
      color: var(--text-dim);
      font-weight: 600;
      font-size: 0.8rem;
    }

    .filter-select {
      background: var(--bg-subtle);
      border: 1px solid var(--border-color);
      color: var(--text-main);
      padding: 6px 12px;
      border-radius: var(--radius-sm);
      font-size: 0.84rem;
      font-weight: 500;
      cursor: pointer;
      outline: none;
      transition: all 0.15s ease;
    }

    .filter-select:focus {
      border-color: var(--primary);
    }

    .filter-status-group {
      display: flex;
      align-items: center;
      gap: 12px;
      margin-left: auto;
    }

    @media (max-width: 640px) {
      .filter-status-group {
        width: 100%;
        justify-content: space-between;
        margin-left: 0;
        margin-top: 4px;
      }
    }

    .results-count {
      color: var(--text-muted);
      font-size: 0.84rem;
      font-weight: 500;
    }

    .results-count strong {
      color: var(--text-main);
      font-weight: 700;
    }

    .filter-reset-inline {
      background: none;
      border: none;
      color: var(--primary);
      font-size: 0.82rem;
      font-weight: 600;
      cursor: pointer;
      padding: 3px 6px;
      border-radius: 4px;
      transition: all 0.15s ease;
    }

    .filter-reset-inline:hover {
      color: #ef4444;
      background: rgba(239, 68, 68, 0.08);
      text-decoration: underline;
    }

    .theme-toggle-btn {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      padding: 3px 9px;
      font-size: 0.82rem;
      font-weight: 600;
      color: var(--text-muted);
      background: var(--bg-card);
      border: 1px solid var(--border-color);
      border-radius: 6px;
      cursor: pointer;
      transition: all 0.2s ease;
    }

    .theme-toggle-btn:hover {
      color: var(--text-main);
      border-color: var(--primary);
    }

    /* Siatka Zasobów */
    .grid-materials {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(min(100%, 360px), 1fr));
      gap: 22px;
      margin-bottom: 60px;
    }

    @media (max-width: 640px) {
      .grid-materials {
        grid-template-columns: 1fr;
        gap: 16px;
      }
    }

    /* Karta Zasobu */
    .card {
      background: var(--bg-card);
      border: 1px solid var(--border-color);
      border-radius: var(--radius-lg);
      padding: 22px;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
      box-shadow: var(--shadow-sm);
      position: relative;
      overflow-wrap: break-word;
      word-break: break-word;
    }
        content-visibility: auto;
        contain-intrinsic-size: 360px;
      }
.sentinel-box {
        grid-column: 1 / -1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 36px 20px;
        gap: 12px;
      }

      .btn-load-more {
        background: var(--bg-card);
        color: var(--primary);
        border: 2px solid var(--primary);
        font-weight: 600;
        font-size: 0.95rem;
        padding: 10px 26px;
        border-radius: var(--radius-pill);
        cursor: pointer;
        transition: all 0.2s ease;
        display: inline-flex;
        align-items: center;
        gap: 8px;
        box-shadow: var(--shadow-sm);
      }

      .btn-load-more:hover {
        background: var(--primary);
        color: #ffffff;
        transform: translateY(-2px);
        box-shadow: var(--shadow-md);
      }

      .spinner-icon {
        animation: spin 0.8s linear infinite;
      }

      @keyframes spin {
        to { transform: rotate(360deg); }
      }

    .card:hover {
      transform: translateY(-2px);
      box-shadow: var(--shadow-lg);
      border-color: rgba(37, 99, 235, 0.4);
    }

    

    .card-header {
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      margin-bottom: 12px;
      gap: 8px;
    }

    .badges-left {
      display: flex;
      align-items: center;
      gap: 6px;
      flex-wrap: wrap;
    }

    .badge {
      display: inline-flex;
      align-items: center;
      gap: 4px;
      font-size: 0.72rem;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 0.04em;
      padding: 3px 8px;
      border-radius: var(--radius-sm);
    }

    .badge-spotify {
      background: #ecfdf5;
      color: #059669;
    }
    .dark .badge-spotify {
      background: rgba(16, 185, 129, 0.2);
      color: #34d399;
    }

    .badge-youtube {
      background: #fef2f2;
      color: #dc2626;
    }
    .dark .badge-youtube {
      background: rgba(239, 68, 68, 0.2);
      color: #f87171;
    }

    .badge-web {
      background: #eff6ff;
      color: #2563eb;
    }
    .dark .badge-web {
      background: rgba(37, 99, 235, 0.2);
      color: #60a5fa;
    }

    .badge-accent {
      background: var(--bg-subtle);
      color: var(--text-muted);
      border: 1px solid var(--border-color);
    }

    .badge-level {
      background: var(--bg-subtle);
      color: var(--text-muted);
      border: 1px solid var(--border-color);
      font-weight: 700;
    }
    .badge-level.level-poczatkujacy {
      background: #ecfdf5;
      color: #047857;
      border-color: #a7f3d0;
    }
    .dark .badge-level.level-poczatkujacy {
      background: rgba(16, 185, 129, 0.2);
      color: #34d399;
      border-color: rgba(16, 185, 129, 0.3);
    }
    .badge-level.level-sredniozaawansowany {
      background: #eff6ff;
      color: #1d4ed8;
      border-color: #bfdbfe;
    }
    .dark .badge-level.level-sredniozaawansowany {
      background: rgba(59, 130, 246, 0.2);
      color: #60a5fa;
      border-color: rgba(59, 130, 246, 0.3);
    }
    .badge-level.level-zaawansowany {
      background: #fdf4ff;
      color: #a21caf;
      border-color: #f5d0fe;
    }
    .dark .badge-level.level-zaawansowany {
      background: rgba(168, 85, 247, 0.2);
      color: #c084fc;
      border-color: rgba(168, 85, 247, 0.3);
    }

    .badge-warning {
      background: #fee2e2;
      color: #b91c1c;
      font-size: 0.7rem;
    }
    .dark .badge-warning {
      background: rgba(239, 68, 68, 0.25);
      color: #fca5a5;
    }

    

    .card-body {
      margin-bottom: 18px;
    }

    .card-category-label {
      font-size: 0.75rem;
      font-weight: 700;
      color: var(--primary);
      text-transform: uppercase;
      letter-spacing: 0.05em;
      margin-bottom: 4px;
    }

    .card-title {
      font-size: 1.15rem;
      font-weight: 700;
      line-height: 1.35;
      margin-bottom: 10px;
      letter-spacing: -0.01em;
      overflow-wrap: break-word;
      word-break: break-word;
    }

    .card-title a {
      color: var(--text-main);
      transition: color 0.15s ease;
    }

    .card-title a:hover {
      color: var(--primary);
    }

    /* KONTENER OPISU - CAŁY OPIS ZAWSZE WIDOCZNY */
    .desc-wrapper {
      position: relative;
      margin-bottom: 12px;
    }

    .card-desc {
      font-size: 0.92rem;
      color: var(--text-muted);
      line-height: 1.55;
      white-space: normal;
      overflow-wrap: break-word;
      word-break: break-word;
      hyphens: auto;
    }

    .lang-switcher-btn {
      background: var(--bg-subtle);
      border: 1px solid var(--border-color);
      color: var(--text-muted);
      font-size: 0.76rem;
      font-weight: 600;
      cursor: pointer;
      padding: 3px 8px;
      border-radius: var(--radius-sm);
      margin-bottom: 10px;
      display: inline-flex;
      align-items: center;
      gap: 4px;
      transition: all 0.15s ease;
    }

    .lang-switcher-btn:hover {
      color: var(--text-main);
      border-color: var(--border-color);
    }

    

    .card-footer {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
      padding-top: 14px;
      border-top: 1px solid var(--border-subtle);
      flex-wrap: wrap;
    }

    .btn-visit {
      background: var(--primary);
      color: #ffffff;
      padding: 8px 14px;
      border-radius: var(--radius-md);
      font-size: 0.85rem;
      font-weight: 600;
      display: inline-flex;
      align-items: center;
      gap: 6px;
      transition: all 0.15s ease;
      flex-grow: 1;
      justify-content: center;
      min-height: 40px;
    }

    .btn-visit:hover {
      background: var(--primary-hover);
      box-shadow: 0 4px 10px rgba(37, 99, 235, 0.3);
    }

    .btn-copy {
      background: var(--bg-subtle);
      border: 1px solid var(--border-color);
      color: var(--text-muted);
      width: 40px;
      height: 40px;
      border-radius: var(--radius-md);
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      transition: all 0.15s ease;
      flex-shrink: 0;
    }

    .btn-copy:hover {
      background: var(--border-color);
      color: var(--text-main);
    }

    /* Admin inline actions */
    .admin-card-actions {
      display: none;
      gap: 6px;
      width: 100%;
      margin-top: 6px;
    }

    body.is-admin .admin-card-actions {
      display: flex;
    }

    .btn-card-edit {
      background: #eff6ff;
      color: #2563eb;
      border: 1px solid #bfdbfe;
      padding: 6px 10px;
      border-radius: var(--radius-sm);
      font-size: 0.78rem;
      font-weight: 600;
      cursor: pointer;
      flex: 1;
      text-align: center;
    }

    .btn-card-delete {
      background: #fef2f2;
      color: #dc2626;
      border: 1px solid #fecaca;
      padding: 6px 10px;
      border-radius: var(--radius-sm);
      font-size: 0.78rem;
      font-weight: 600;
      cursor: pointer;
      flex: 1;
      text-align: center;
    }

    /* Empty state */
    .empty-state {
      display: none;
      text-align: center;
      padding: 60px 20px;
      background: var(--bg-card);
      border: 1px dashed var(--border-color);
      border-radius: var(--radius-xl);
      margin-bottom: 60px;
    }

    .empty-state h3 {
      font-size: 1.3rem;
      margin-bottom: 8px;
    }

    .empty-state p {
      color: var(--text-muted);
      margin-bottom: 16px;
    }

    /* Toast */
    .toast {
      position: fixed;
      bottom: 24px;
      right: 24px;
      background: #0f172a;
      color: #ffffff;
      padding: 12px 20px;
      border-radius: var(--radius-md);
      box-shadow: var(--shadow-xl);
      display: flex;
      align-items: center;
      gap: 10px;
      font-size: 0.9rem;
      font-weight: 600;
      z-index: 100;
      transform: translateY(100px);
      opacity: 0;
      transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
      pointer-events: none;
      max-width: calc(100vw - 48px);
    }

    .toast.show {
      transform: translateY(0);
      opacity: 1;
    }

    /* Modals */
    .modal-backdrop {
      position: fixed;
      inset: 0;
      background: rgba(0, 0, 0, 0.5);
      backdrop-filter: blur(4px);
      z-index: 90;
      display: none;
      align-items: center;
      justify-content: center;
      padding: 16px;
    }

    .modal-backdrop.open {
      display: flex;
    }

    .modal-window {
      background: var(--bg-card);
      border: 1px solid var(--border-color);
      border-radius: var(--radius-xl);
      width: 100%;
      max-width: 580px;
      box-shadow: var(--shadow-xl);
      overflow: hidden;
      max-height: 90vh;
      display: flex;
      flex-direction: column;
      animation: modalEnter 0.2s ease-out;
    }

    @keyframes modalEnter {
      from { transform: scale(0.96); opacity: 0; }
      to { transform: scale(1); opacity: 1; }
    }

    .modal-header {
      padding: 18px 20px;
      border-bottom: 1px solid var(--border-color);
      display: flex;
      align-items: center;
      justify-content: space-between;
    }

    .modal-header h3 {
      font-size: 1.15rem;
      font-weight: 700;
    }

    .modal-close-btn {
      background: none;
      border: none;
      color: var(--text-dim);
      width: 32px;
      height: 32px;
      border-radius: var(--radius-sm);
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      font-size: 1.1rem;
      transition: all 0.15s ease;
    }

    .modal-close-btn:hover {
      background: var(--bg-subtle);
      color: var(--text-main);
    }


    .modal-body {
      padding: 20px;
      overflow-y: auto;
    }

    .form-group {
      margin-bottom: 14px;
    }

    .form-group label {
      display: block;
      font-size: 0.82rem;
      font-weight: 600;
      color: var(--text-main);
      margin-bottom: 5px;
    }

    .form-input, .form-textarea, .form-select {
      width: 100%;
      background: var(--bg-subtle);
      border: 1px solid var(--border-color);
      border-radius: var(--radius-sm);
      padding: 9px 12px;
      font-size: 0.92rem;
      color: var(--text-main);
      outline: none;
      transition: border-color 0.15s ease;
    }

    .form-input:focus, .form-textarea:focus, .form-select:focus {
      border-color: var(--primary);
      background: var(--bg-card);
    }

    .form-row {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 12px;
    }

    @media (max-width: 500px) {
      .form-row {
        grid-template-columns: 1fr;
      }
    }

    .modal-footer {
      padding: 14px 20px;
      border-top: 1px solid var(--border-color);
      display: flex;
      align-items: center;
      justify-content: flex-end;
      gap: 10px;
      background: var(--bg-subtle);
    }

    /* Footer */
    footer {
      border-top: 1px solid var(--border-color);
      padding: 36px 0;
      color: var(--text-muted);
      font-size: 0.88rem;
      text-align: center;
    }

    .footer-content {
      display: flex;
      align-items: center;
      justify-content: space-between;
      flex-wrap: wrap;
      gap: 16px;
    }

    @media (max-width: 640px) {
      .footer-content {
        flex-direction: column;
        text-align: center;
      }
    }

    .footer-lock-btn {
      background: none;
      border: none;
      color: var(--text-dim);
      cursor: pointer;
      display: inline-flex;
      align-items: center;
      gap: 6px;
      font-size: 0.8rem;
    }

    .footer-lock-btn:hover {
      color: var(--text-main);
    }
  
      /* CTA Banner (Sparing Partner & Trening) */
      .cta-banner-section {
        margin: 0 0 32px 0;
      }

      .cta-banner {
        background: #eff6ff;
        border: 1px solid #bfdbfe;
        border-radius: var(--radius-md);
        padding: 18px 24px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 24px;
        box-shadow: var(--shadow-sm);
        transition: all 0.2s ease;
      }

      .cta-banner:hover {
        border-color: #93c5fd;
        box-shadow: var(--shadow-md);
      }

      .cta-banner-text {
        color: #1e3a8a;
        font-size: 1.02rem;
        line-height: 1.55;
        flex: 1;
        font-weight: 400;
      }

      .cta-banner-text strong {
        color: #1d4ed8;
        font-weight: 700;
      }

      .cta-banner-actions {
        display: flex;
        flex-direction: column;
        align-items: flex-end;
        gap: 10px;
        flex-shrink: 0;
      }

      .cta-banner-btn {
        background: #2563eb;
        color: #ffffff;
        padding: 10px 22px;
        border-radius: var(--radius-sm);
        font-weight: 600;
        font-size: 0.95rem;
        text-decoration: none;
        white-space: nowrap;
        display: inline-flex;
        align-items: center;
        gap: 8px;
        transition: all 0.15s ease;
        box-shadow: 0 1px 3px rgba(37, 99, 235, 0.2);
      }

      .cta-banner-btn:hover {
        background: #1d4ed8;
        transform: translateY(-1px);
        box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
        color: #ffffff;
      }

      .cta-social-wrapper {
        display: flex;
        align-items: center;
        gap: 8px;
      }

      .cta-social-label {
        font-size: 0.8rem;
        color: #475569;
        font-weight: 500;
        white-space: nowrap;
      }

      .cta-social-buttons {
        display: flex;
        align-items: center;
        gap: 6px;
      }

      .cta-social-btn {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        background: #ffffff;
        border: 1px solid #bfdbfe;
        color: #1e3a8a;
        padding: 5px 12px;
        border-radius: var(--radius-pill);
        font-size: 0.8rem;
        font-weight: 600;
        text-decoration: none;
        transition: all 0.15s ease;
        box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
      }

      .cta-social-btn svg {
        flex-shrink: 0;
      }

      .cta-social-btn:hover {
        transform: translateY(-1px);
        box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08);
      }

      .cta-social-linkedin:hover {
        background: #0a66c2;
        border-color: #0a66c2;
        color: #ffffff;
      }

      .cta-social-facebook:hover {
        background: #1877f2;
        border-color: #1877f2;
        color: #ffffff;
      }

      .dark .cta-banner {
        background: rgba(37, 99, 235, 0.12);
        border-color: rgba(59, 130, 246, 0.3);
      }

      .dark .cta-banner:hover {
        border-color: rgba(59, 130, 246, 0.5);
      }

      .dark .cta-banner-text {
        color: #dbeafe;
      }

      .dark .cta-banner-text strong {
        color: #ffffff;
      }

      .dark .cta-banner-btn {
        background: #3b82f6;
      }

      .dark .cta-banner-btn:hover {
        background: #2563eb;
      }

      .dark .cta-social-label {
        color: #94a3b8;
      }

      .dark .cta-social-btn {
        background: rgba(30, 41, 59, 0.85);
        border-color: rgba(59, 130, 246, 0.35);
        color: #e2e8f0;
      }

      .dark .cta-social-linkedin:hover {
        background: #0a66c2;
        border-color: #0a66c2;
        color: #ffffff;
      }

      .dark .cta-social-facebook:hover {
        background: #1877f2;
        border-color: #1877f2;
        color: #ffffff;
      }

      @media (max-width: 768px) {
        .cta-banner {
          flex-direction: column;
          align-items: stretch;
          padding: 18px 20px;
          gap: 16px;
        }

        .cta-banner-actions {
          align-items: stretch;
          width: 100%;
          gap: 12px;
        }

        .cta-banner-btn {
          justify-content: center;
          width: 100%;
        }

        .cta-social-wrapper {
          justify-content: center;
          flex-wrap: wrap;
        }
      }

    /* ==========================================================================
       GLOBAL SITE HEADER (BRAND NAVIGATION)
       ========================================================================== */
    .site-header {
      background: #ffffff;
      border-bottom: 1px solid var(--border-color);
      box-shadow: 0 2px 8px -2px rgba(15, 23, 42, 0.04);
      position: sticky;
      top: 0;
      z-index: 150;
      width: 100%;
    }

    .dark .site-header {
      background: #131b2e;
      border-bottom-color: var(--border-color);
      box-shadow: 0 2px 8px -2px rgba(0, 0, 0, 0.4);
    }

    .site-header-container {
      max-width: 1280px;
      margin: 0 auto;
      padding: 0 20px;
      height: 76px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 20px;
    }
    @media (min-width: 1440px) {
      .site-header-container {
        max-width: 1440px;
        padding: 0 24px;
      }
    }
    @media (min-width: 1536px) {
      .site-header-container {
        max-width: 1536px;
        padding: 0 32px;
      }
    }

    .site-brand-wrapper {
      display: inline-flex;
      align-items: center;
      gap: 12px;
      flex-shrink: 0;
    }

    .site-brand-link {
      display: inline-flex;
      align-items: center;
      text-decoration: none;
      flex-shrink: 0;
    }

    .site-brand-logo {
      height: 48px;
      width: auto;
      display: block;
      object-fit: contain;
    }

    .site-brand-badge {
      font-size: 0.74rem;
      font-weight: 700;
      letter-spacing: 0.04em;
      padding: 4px 10px;
      background: #f0f9ff;
      color: #0284c7;
      border: 1px solid #bae6fd;
      border-radius: var(--radius-pill);
      white-space: nowrap;
      text-decoration: none;
      transition: all 0.15s ease;
      display: inline-flex;
      align-items: center;
    }

    .dark .site-brand-badge {
      background: rgba(2, 132, 199, 0.15);
      color: #38bdf8;
      border-color: rgba(56, 189, 248, 0.3);
    }

    .site-brand-badge:hover {
      background: #e0f2fe;
      color: #0369a1;
      border-color: #7dd3fc;
      transform: translateY(-1px);
    }

    .site-nav-desktop {
      display: flex;
      align-items: center;
      gap: 4px;
      list-style: none;
      margin: 0;
      padding: 0;
    }

    .site-nav-link {
      color: var(--text-muted);
      font-size: 0.90rem;
      font-weight: 600;
      padding: 8px 12px;
      border-radius: var(--radius-sm);
      transition: all 0.15s ease;
      white-space: nowrap;
      text-decoration: none;
    }

    .site-nav-link:hover {
      color: var(--text-main);
      background: var(--bg-subtle);
    }

    .site-nav-link.active {
      color: var(--primary);
      background: var(--primary-subtle);
      font-weight: 700;
    }

    .site-cta-btn {
      background: #fa5a29;
      color: #ffffff !important;
      font-size: 0.88rem;
      font-weight: 700;
      padding: 8px 18px;
      border-radius: var(--radius-pill);
      text-decoration: none;
      white-space: nowrap;
      transition: all 0.2s ease;
      box-shadow: 0 2px 6px rgba(250, 90, 41, 0.25);
      margin-left: 6px;
      display: inline-flex;
      align-items: center;
      gap: 6px;
      cursor: pointer;
      border: none;
    }

    .site-cta-btn:hover {
      background: #e04818;
      transform: translateY(-1px);
      box-shadow: 0 4px 12px rgba(250, 90, 41, 0.35);
    }

    /* Mobile Hamburger Button */
    .mobile-menu-btn {
      display: none;
      background: transparent;
      border: 1px solid var(--border-color);
      padding: 8px;
      border-radius: var(--radius-sm);
      color: var(--text-main);
      cursor: pointer;
    }

    .mobile-menu-drawer {
      display: none;
      position: absolute;
      top: 100%;
      left: 0;
      width: 100%;
      background: #ffffff;
      border-bottom: 1px solid var(--border-color);
      box-shadow: var(--shadow-lg);
      padding: 16px 20px 24px;
      z-index: 140;
      max-height: calc(100vh - 76px);
      overflow-y: auto;
    }

    .dark .mobile-menu-drawer {
      background: #131b2e;
    }

    .mobile-menu-drawer.open {
      display: block;
    }

    .mobile-nav-list {
      list-style: none;
      margin: 0;
      padding: 0;
      display: flex;
      flex-direction: column;
      gap: 4px;
    }

    .mobile-nav-list .site-nav-link {
      padding: 10px 14px;
      font-size: 0.95rem;
      width: 100%;
    }

    .mobile-cta-wrapper {
      margin-top: 14px;
      padding-top: 14px;
      border-top: 1px solid var(--border-color);
    }

    .mobile-cta-wrapper .site-cta-btn {
      width: 100%;
      justify-content: center;
      padding: 12px;
    }

    @media (max-width: 960px) {
      .site-nav-desktop {
        display: none;
      }
      .mobile-menu-btn {
        display: block;
      }
      .site-brand-logo {
        height: 38px;
      }
    }

    /* ==========================================================================
       GLOBAL SITE FOOTER
       ========================================================================== */
    .site-footer {
      background: #0f172a;
      color: #94a3b8;
      border-top: 1px solid #1e293b;
      padding: 56px 0 32px;
      margin-top: 40px;
      width: 100%;
    }

    .site-footer-container {
      max-width: 1280px;
      margin: 0 auto;
      padding: 0 24px;
    }
    @media (min-width: 1440px) {
      .site-footer-container {
        max-width: 1440px;
      }
    }
    @media (min-width: 1536px) {
      .site-footer-container {
        max-width: 1536px;
        padding: 0 32px;
      }
    }

    .site-footer-grid {
      display: grid;
      grid-template-columns: 1.4fr 1fr 1fr;
      gap: 40px;
      padding-bottom: 40px;
      border-bottom: 1px solid #1e293b;
    }

    .footer-col {
      display: flex;
      flex-direction: column;
      height: 100%;
    }

    .footer-brand-title {
      font-size: 1.15rem;
      font-weight: 700;
      color: #ffffff;
      margin-bottom: 12px;
      display: flex;
      align-items: center;
      gap: 8px;
    }

    .footer-brand-desc {
      font-size: 0.88rem;
      line-height: 1.6;
      color: #94a3b8;
      margin: 0 0 20px 0;
      max-width: 440px;
    }

    .footer-linkedin-card {
      display: flex;
      align-items: center;
      gap: 12px;
      background: rgba(255, 255, 255, 0.03);
      border: 1px solid #1e293b;
      border-radius: 10px;
      padding: 10px 14px;
      margin-top: auto;
      max-width: 380px;
      text-decoration: none;
      transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .footer-linkedin-card:hover {
      background: rgba(10, 102, 194, 0.08);
      border-color: rgba(10, 102, 194, 0.45);
      transform: translateY(-2px);
      box-shadow: 0 4px 12px -2px rgba(10, 102, 194, 0.2);
    }

    .footer-linkedin-icon {
      width: 32px;
      height: 32px;
      border-radius: 8px;
      background: #0a66c2;
      color: #ffffff;
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
      transition: transform 0.2s ease;
    }

    .footer-linkedin-card:hover .footer-linkedin-icon {
      transform: scale(1.05);
    }

    .footer-linkedin-text {
      display: flex;
      flex-direction: column;
      min-width: 0;
    }

    .footer-linkedin-title {
      font-size: 0.82rem;
      font-weight: 700;
      color: #f1f5f9;
      display: flex;
      align-items: center;
      gap: 6px;
    }

    .footer-linkedin-arrow {
      color: #60a5fa;
      transition: transform 0.2s ease;
    }

    .footer-linkedin-card:hover .footer-linkedin-arrow {
      transform: translateX(3px);
      color: #93c5fd;
    }

    .footer-linkedin-sub {
      font-size: 0.72rem;
      color: #94a3b8;
      margin-top: 1px;
    }

    .footer-col-title {
      font-size: 0.82rem;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 0.08em;
      color: #ffffff;
      margin: 0 0 16px 0;
    }

    .footer-links-list {
      list-style: none;
      display: flex;
      flex-direction: column;
      gap: 12px;
      margin: 0 0 20px 0;
      padding: 0;
    }

    .footer-links-list a {
      font-size: 0.90rem;
      color: #94a3b8;
      text-decoration: none;
      transition: color 0.15s ease, transform 0.15s ease;
      display: inline-block;
    }

    .footer-links-list a:hover {
      color: #ffffff;
      transform: translateX(3px);
    }

    .footer-cta-emerald {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      background: rgba(16, 185, 129, 0.14);
      border: 1px solid rgba(16, 185, 129, 0.45);
      color: #6ee7b7;
      font-size: 0.82rem;
      font-weight: 700;
      padding: 11px 14px;
      border-radius: 9px;
      text-decoration: none;
      margin-top: auto;
      width: 100%;
      max-width: 320px;
      box-sizing: border-box;
      transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
      box-shadow: 0 2px 8px -2px rgba(16, 185, 129, 0.2);
    }

    .footer-cta-emerald:hover {
      background: #059669;
      border-color: #059669;
      color: #ffffff;
      transform: translateY(-2px);
      box-shadow: 0 6px 18px rgba(5, 150, 105, 0.4);
    }

    .footer-cta-emerald .footer-btn-arrow {
      transition: transform 0.2s ease;
    }

    .footer-cta-emerald:hover .footer-btn-arrow {
      transform: translateX(3px);
    }

    .footer-cta-contact {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      background: rgba(255, 255, 255, 0.04);
      border: 1px solid #1e293b;
      color: #e2e8f0;
      font-size: 0.82rem;
      font-weight: 600;
      padding: 11px 14px;
      border-radius: 9px;
      text-decoration: none;
      margin-top: auto;
      width: 100%;
      max-width: 320px;
      box-sizing: border-box;
      transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .footer-cta-contact:hover {
      background: rgba(255, 255, 255, 0.09);
      border-color: #334155;
      color: #ffffff;
      transform: translateY(-2px);
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    }

    .footer-cta-contact .footer-btn-arrow {
      transition: transform 0.2s ease;
      color: #94a3b8;
    }

    .footer-cta-contact:hover .footer-btn-arrow {
      transform: translateX(3px);
      color: #ffffff;
    }

    .site-footer-bottom {
      padding-top: 24px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      flex-wrap: wrap;
      gap: 12px;
      font-size: 0.82rem;
      color: #64748b;
    }

    .footer-bottom-left {
      display: flex;
      align-items: center;
      gap: 16px;
      flex-wrap: wrap;
    }

    .footer-legal-links {
      display: flex;
      gap: 16px;
    }

    .footer-legal-links a {
      color: #64748b;
      text-decoration: none;
      transition: color 0.15s ease;
    }

    .footer-legal-links a:hover {
      color: #94a3b8;
    }

    @media (max-width: 960px) {
      .site-footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
      }
    }

    @media (max-width: 640px) {
      .site-footer {
        padding: 40px 0 24px;
      }
      .site-footer-grid {
        gap: 24px;
      }
      .site-footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 10px;
      }
    }
