  :root {
    --black: #111111;
    --black2: #181818;
    --black3: #1e1e1e;
    --black4: #242424;
    --black5: #2e2e2e;
    --red: #cc2200;
    --red-bright: #e03010;
    --red-dark: #8a1500;
    --yellow: #c8c8c8;
    --yellow-dim: #888888;
    --white: #f0f0f0;
    --grey: #555555;
    --grey-light: #888888;
    --border: #333333;
    --border-red: #3a1a10;
  }

  * { margin: 0; padding: 0; box-sizing: border-box; }
  html { scroll-behavior: smooth; }
  body {
    background: var(--black);
    color: var(--white);
    font-family: 'Rajdhani', sans-serif;
    font-size: 16px;
    min-height: 100vh;
    overflow-x: hidden;
  }

  /* === NAV === */
  nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    background: rgba(8,8,8,0.97);
    border-bottom: 1px solid var(--border-red);
    display: flex;
    align-items: center;
    padding: 0 24px;
    height: 56px;
    gap: 4px;
    overflow-x: auto;
    scrollbar-width: none;
  }
  nav::-webkit-scrollbar { display: none; }
  .nav-logo {
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    font-size: 20px;
    color: var(--red-bright);
    letter-spacing: 2px;
    white-space: nowrap;
    margin-right: 16px;
    text-shadow: 0 0 20px rgba(204,34,0,0.4);
    flex-shrink: 0;
  }
  .nav-logo .logo-gold {
    color: var(--white);
    text-shadow: 0 0 16px rgba(180,180,180,0.45);
  }
  .nav-btn {
    background: none;
    border: 1px solid transparent;
    color: var(--grey-light);
    font-family: 'Rajdhani', sans-serif;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
    padding: 6px 14px;
    cursor: pointer;
    white-space: nowrap;
    text-transform: uppercase;
    transition: all 0.2s;
    border-radius: 2px;
    flex-shrink: 0;
  }
  .nav-btn:hover, .nav-btn.active {
    color: var(--white);
    border-color: var(--grey);
    background: rgba(255,255,255,0.04);
  }

  /* === SECTIONS === */
  section {
    display: none;
    min-height: 100vh;
    padding: 76px 24px 40px;
    max-width: 1100px;
    margin: 0 auto;
  }
  section.active { display: block; }

  .section-title {
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    font-size: 48px;
    letter-spacing: 3px;
    color: var(--white);
    margin-bottom: 4px;
    line-height: 1;
    text-transform: uppercase;
  }
  .section-title span { color: var(--white); }
  .section-title .title-gold { color: var(--red-bright); text-shadow: none; }
  .section-subtitle {
    font-size: 13px;
    color: var(--grey-light);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 32px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
  }

  /* === CARDS === */
  .card {
    background: var(--black3);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 24px;
    margin-bottom: 20px;
  }
  .card-title {
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    font-size: 22px;
    letter-spacing: 2px;
    color: var(--white);
    margin-bottom: 16px;
  }
  /* === INPUTS === */
  .input-group { margin-bottom: 14px; }
  .input-group label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--grey-light);
    margin-bottom: 6px;
  }
  input[type="number"], input[type="text"], input[type="email"], input[type="password"], select {
    width: 100%;
    background: var(--black4);
    border: 1px solid var(--border);
    border-radius: 2px;
    color: var(--white);
    font-family: 'Share Tech Mono', monospace;
    font-size: 15px;
    padding: 10px 14px;
    transition: border-color 0.2s;
    -webkit-appearance: none;
  }
  input[type="number"]:focus, input[type="text"]:focus, input[type="email"]:focus, input[type="password"]:focus, select:focus {
    outline: none;
    border-color: var(--red);
  }
  select option { background: var(--black3); }

  /* === BUTTONS === */
  .btn {
    display: inline-block;
    font-family: 'Rajdhani', sans-serif;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 12px 28px;
    border: none;
    border-radius: 2px;
    cursor: pointer;
    transition: all 0.2s;
  }
  .btn-red { background: var(--red); color: #fff; }
  .btn-red:hover { background: var(--red-bright); box-shadow: 0 0 20px rgba(204,34,0,0.3); }
  .btn-yellow { background: var(--yellow); color: var(--black); }
  .btn-yellow:hover { background: #c8c8c8; box-shadow: 0 0 20px rgba(180,180,180,0.3); }
  .btn-outline { background: transparent; border: 1px solid var(--grey); color: var(--grey-light); }
  .btn-outline:hover { border-color: var(--white); color: var(--white); }

  /* === GRID === */
  .grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
  .grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }
  @media(max-width: 700px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }

  /* === RESULT BOX === */
  .result-box {
    background: var(--black4);
    border: 1px solid var(--border-red);
    border-left: 3px solid var(--red);
    border-radius: 2px;
    padding: 16px 20px;
    margin-bottom: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  .result-label { font-size: 12px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: var(--grey-light); }
  .result-value { font-family: 'Oswald', sans-serif;
    font-weight: 700; font-size: 28px; color: var(--yellow); letter-spacing: 2px; }
  .result-unit { font-size: 12px; color: var(--grey); margin-left: 4px; }

  /* === MACRO BARS === */
  .macro-row { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
  .macro-label { width: 130px; font-size: 13px; font-weight: 600; letter-spacing: 1px; flex-shrink: 0; }
  .macro-bar-bg { flex: 1; height: 8px; background: var(--black5); border-radius: 4px; overflow: hidden; }
  .macro-bar-fill { height: 100%; border-radius: 4px; transition: width 0.5s ease; }
  .macro-value { font-family: 'Share Tech Mono', monospace; font-size: 13px; width: 70px; text-align: right; flex-shrink: 0; }

  /* === TABLE === */
  .table-wrap { overflow-x: auto; }
  table { width: 100%; border-collapse: collapse; font-size: 14px; }
  th {
    background: var(--black4);
    color: var(--yellow);
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 700;
    padding: 10px 12px;
    border-bottom: 1px solid var(--border-red);
    text-align: left;
  }
  td {
    padding: 9px 12px;
    border-bottom: 1px solid var(--border);
    color: var(--white);
    font-family: 'Share Tech Mono', monospace;
    font-size: 13px;
  }
  tr:hover td { background: rgba(255,255,255,0.02); }

  /* === HOME === */
  .hero { padding: 40px 0 20px; position: relative; }
  .hero-title {
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    font-size: clamp(52px, 10vw, 96px);
    font-weight: 700;
    line-height: 0.92;
    letter-spacing: 4px;
    color: var(--white);
    margin-bottom: 8px;
    text-transform: uppercase;
  }
  .hero-title .accent { color: var(--red-bright); text-shadow: 0 0 20px rgba(204,34,0,0.3); }
  .hero-title .accent-gold { color: var(--white); text-shadow: none; }
  .hero-tagline { font-family: 'Rajdhani', sans-serif; font-size: 18px; font-weight: 700; letter-spacing: 3px; text-transform: uppercase; margin-bottom: 16px; margin-top: 4px; line-height: 1.5; }
  .tagline-white { color: var(--white); }
  .tagline-red { color: var(--red-bright); }
  .tagline-grey { color: var(--grey-light); font-size: 13px; font-weight: 500; letter-spacing: 3px; }
  .hero-subtitle { font-size: 15px; color: var(--grey-light); letter-spacing: 4px; text-transform: uppercase; margin-bottom: 32px; font-weight: 600; }
  .hero-line { width: 80px; height: 2px; background: var(--red); margin-bottom: 32px; }
  .skills-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin-top: 32px; }
  .skill-card {
    background: var(--black3);
    border: 1px solid var(--border);
    border-top: 2px solid var(--red-dark);
    padding: 20px;
    text-align: center;
    transition: border-color 0.2s, transform 0.2s;
    cursor: pointer;
  }
  .skill-card:hover { border-top-color: var(--red-bright); transform: translateY(-2px); }
  .skill-icon { font-size: 28px; display: block; margin-bottom: 8px; }
  .skill-name { font-family: 'Oswald', sans-serif;
    font-weight: 700; font-size: 18px; letter-spacing: 2px; color: var(--yellow); }
  .skill-desc { font-size: 12px; color: var(--grey-light); margin-top: 4px; letter-spacing: 1px; }
  .quick-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; margin-top: 32px; }
  .quick-link-btn {
    background: var(--black3);
    border: 1px solid var(--border);
    color: var(--grey-light);
    font-family: 'Rajdhani', sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 14px;
    cursor: pointer;
    transition: all 0.2s;
    border-radius: 2px;
    display: flex;
    align-items: center;
    gap: 10px;
  }
  .quick-link-btn:hover { border-color: var(--red); color: var(--white); background: rgba(204,34,0,0.08); }
  .quick-link-btn .ql-icon { font-size: 18px; flex-shrink: 0; }

  /* === HERO COPY === */
  .hero-lead {
    font-size: clamp(16px, 2.5vw, 20px);
    font-weight: 700;
    color: var(--white);
    line-height: 1.55;
    max-width: 620px;
    margin-bottom: 18px;
    letter-spacing: 0.5px;
  }
  .hero-sub-lead {
    font-size: 15px;
    font-weight: 600;
    color: var(--white);
    line-height: 1.7;
    max-width: 560px;
    margin-bottom: 32px;
    letter-spacing: 0.3px;
    padding-left: 14px;
    border-left: 2px solid var(--yellow-dim);
  }

  /* === CTA BUTTON === */
  .btn-cta {
    display: inline-block;
    font-family: 'Oswald', sans-serif;
    font-size: 17px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    padding: 16px 44px;
    border: none;
    border-radius: 2px;
    cursor: pointer;
    background: var(--red);
    color: #ffffff;
    box-shadow: 0 4px 28px rgba(204,34,0,0.3);
    transition: all 0.22s;
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
  }
  .btn-cta::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0);
    transition: background 0.2s;
  }
  .btn-cta:hover {
    background: var(--red-bright);
    box-shadow: 0 6px 36px rgba(204,34,0,0.45);
    transform: translateY(-2px);
  }
  .btn-cta:active { transform: translateY(0); }

  /* === WHY SECTION === */
  .why-section {
    margin: 36px 0 32px;
    padding: 28px 28px 22px;
    background: var(--black3);
    border: 1px solid var(--border);
    border-top: 2px solid var(--yellow-dim);
    border-radius: 4px;
    max-width: 720px;
  }
  .why-title {
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    font-size: 20px;
    letter-spacing: 3px;
    color: var(--yellow);
    margin-bottom: 20px;
    text-transform: uppercase;
  }
  .why-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px 24px;
  }
  @media(max-width: 600px) { .why-grid { grid-template-columns: 1fr; } }
  .why-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
  }
  .why-icon {
    color: var(--red-bright);
    font-family: 'Oswald', sans-serif;
    font-size: 20px;
    font-weight: 700;
    flex-shrink: 0;
    margin-top: 2px;
  }
  .why-item-title {
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 1px;
    color: var(--white);
    margin-bottom: 3px;
    text-transform: uppercase;
  }
  .why-item-desc {
    font-size: 13px;
    color: var(--grey-light);
    line-height: 1.55;
  }

  /* === WARMUP === */
  .warmup-day { margin-bottom: 24px; }
  .warmup-day-title {
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    font-size: 20px;
    letter-spacing: 2px;
    color: var(--red-bright);
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
  }
  .exercise-row { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--border); font-size: 14px; }
  .exercise-row:last-child { border-bottom: none; }
  .ex-num { font-family: 'Share Tech Mono', monospace; color: var(--red); font-size: 13px; width: 24px; flex-shrink: 0; }
  .ex-name { flex: 1; font-weight: 600; }
  .ex-sets { font-family: 'Share Tech Mono', monospace; font-size: 13px; color: var(--yellow); white-space: nowrap; }

  /* === PLAN — NOWY SELEKTOR BLOK/TYDZIEŃ/DZIEŃ === */
  .plan-selector {
    margin-bottom: 24px;
  }
  .selector-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 12px;
    align-items: center;
  }
  .selector-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--grey-light);
    width: 60px;
    flex-shrink: 0;
  }
  .sel-btn {
    background: var(--black4);
    border: 1px solid var(--border);
    color: var(--grey-light);
    font-family: 'Rajdhani', sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 8px 14px;
    cursor: pointer;
    transition: all 0.15s;
    border-radius: 2px;
    min-width: 48px;
    text-align: center;
  }
  .sel-btn:hover {
    border-color: var(--grey);
    color: var(--white);
  }
  .sel-btn.active {
    background: var(--red-dark);
    border-color: var(--red);
    color: var(--red-bright);
  }
  .sel-btn.active-yellow {
    background: rgba(180,180,180,0.12);
    border-color: var(--yellow-dim);
    color: var(--yellow);
  }
  .week-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
  }

  /* === PLAN CONTENT === */
  .plan-day-content {
    background: var(--black3);
    border: 1px solid var(--border);
    border-radius: 4px;
    overflow: hidden;
  }
  .plan-day-header {
    background: var(--black4);
    border-bottom: 1px solid var(--border-red);
    padding: 16px 20px;
  }
  .plan-day-title {
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    font-size: 22px;
    letter-spacing: 3px;
    color: var(--yellow);
    margin-bottom: 4px;
  }
  .plan-day-meta {
    font-size: 12px;
    color: var(--grey-light);
    letter-spacing: 1px;
  }

  /* === GLOSSARY === */
  .glossary-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
  .glossary-item { background: var(--black3); border: 1px solid var(--border); padding: 16px; border-radius: 2px; }
  .glossary-term { font-family: 'Oswald', sans-serif;
    font-weight: 700; font-size: 18px; letter-spacing: 2px; color: var(--yellow); margin-bottom: 6px; }
  .glossary-def { font-size: 13px; color: var(--grey-light); line-height: 1.6; }
  .periodization-compare { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 20px; }
  @media(max-width: 600px) { .periodization-compare { grid-template-columns: 1fr; } }
  .peri-col { background: var(--black3); border: 1px solid var(--border); padding: 20px; }
  .peri-col-title { font-family: 'Oswald', sans-serif;
    font-weight: 700; font-size: 18px; letter-spacing: 2px; margin-bottom: 12px; }
  .peri-list { list-style: none; }
  .peri-list li { font-size: 13px; color: var(--grey-light); padding: 6px 0; border-bottom: 1px solid var(--border); line-height: 1.5; }
  .peri-list li:last-child { border-bottom: none; }
  .peri-list li::before { content: '→ '; color: var(--red); }

  /* === TRENING START — SELEKTOR === */
  .training-selector {
    margin-bottom: 24px;
  }
  .day-cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 8px;
  }
  @media(max-width: 500px) { .day-cards-grid { grid-template-columns: 1fr; } }
  .day-card {
    background: var(--black4);
    border: 1px solid var(--border);
    border-left: 3px solid transparent;
    padding: 16px;
    cursor: pointer;
    transition: all 0.2s;
    border-radius: 2px;
  }
  .day-card:hover, .day-card.selected {
    border-left-color: var(--red-bright);
    background: rgba(204,34,0,0.06);
  }
  .day-card-name {
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    font-size: 17px;
    letter-spacing: 2px;
    color: var(--white);
    margin-bottom: 3px;
  }
  .day-card-label { font-size: 11px; color: var(--grey-light); letter-spacing: 1px; line-height: 1.4; }

  /* === TIMER === */
  .timer-bar {
    background: var(--black3);
    border: 1px solid var(--border-red);
    padding: 16px 24px;
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 24px;
    position: sticky;
    top: 60px;
    z-index: 100;
  }
  .timer-display { font-family: 'Oswald', sans-serif;
    font-weight: 700; font-size: 36px; color: var(--red-bright); letter-spacing: 4px; min-width: 120px; }
  .timer-label { font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--grey-light); margin-bottom: 2px; }

  /* === EXERCISE EDITOR === */
  .ex-editor { background: var(--black3); border: 1px solid var(--border); margin-bottom: 12px; border-radius: 2px; overflow: hidden; }
  .ex-editor-header {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    background: var(--black4);
    border-bottom: 1px solid var(--border);
    gap: 12px;
    cursor: pointer;
  }
  .ex-editor-name { flex: 1; font-weight: 700; font-size: 14px; letter-spacing: 1px; }
  .ex-editor-meta { font-family: 'Share Tech Mono', monospace; font-size: 12px; color: var(--grey-light); }
  .ex-editor-toggle { color: var(--yellow); font-size: 14px; }
  .ex-editor-body { padding: 16px; display: none; }
  .ex-editor-body.open { display: block; }

  .set-num { font-family: 'Share Tech Mono', monospace; font-size: 13px; color: var(--red); text-align: center; width: 30px; }
  .set-input {
    background: var(--black);
    border: 1px solid var(--border);
    border-radius: 2px;
    color: var(--white);
    font-family: 'Share Tech Mono', monospace;
    font-size: 14px;
    padding: 8px;
    text-align: center;
    width: 100%;
    transition: border-color 0.2s;
  }
  .set-input:focus { outline: none; border-color: var(--yellow); }
  .set-done-btn {
    width: 28px; height: 28px;
    border-radius: 50%;
    border: 2px solid var(--border);
    background: none;
    cursor: pointer;
    font-size: 13px;
    color: var(--grey);
    transition: all 0.2s;
    display: flex; align-items: center; justify-content: center;
  }
  .set-done-btn.done { border-color: #00cc44; color: #00cc44; background: rgba(0,204,68,0.1); }
  .ex-notes-input {
    width: 100%;
    background: var(--black);
    border: 1px solid var(--border);
    border-radius: 2px;
    color: var(--grey-light);
    font-family: 'Rajdhani', sans-serif;
    font-size: 13px;
    padding: 8px 12px;
    resize: none;
    margin-top: 8px;
  }
  .ex-notes-input:focus { outline: none; border-color: var(--grey); }

  /* === HISTORIA === */
  .history-card {
    background: var(--black3);
    border: 1px solid var(--border);
    padding: 18px 20px;
    margin-bottom: 12px;
    border-radius: 2px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    transition: background 0.2s;
  }
  .history-card:hover { background: var(--black4); }
  .history-date { font-family: 'Share Tech Mono', monospace; font-size: 12px; color: var(--grey-light); margin-bottom: 4px; }
  .history-name { font-family: 'Oswald', sans-serif;
    font-weight: 700; font-size: 18px; letter-spacing: 2px; color: var(--white); margin-bottom: 4px; }
  .history-stats { font-size: 12px; color: var(--grey-light); letter-spacing: 1px; }
  .history-duration { font-family: 'Oswald', sans-serif;
    font-weight: 700; font-size: 24px; color: var(--red-bright); letter-spacing: 2px; white-space: nowrap; }

  .empty-state { text-align: center; padding: 60px 20px; color: var(--grey); }
  .empty-state-icon { font-size: 48px; display: block; margin-bottom: 16px; opacity: 0.4; }
  .empty-state-text { font-size: 14px; letter-spacing: 2px; text-transform: uppercase; font-weight: 600; }

  /* === NOTIFICATION === */
  .notif {
    position: fixed;
    bottom: 24px; right: 24px;
    background: var(--black4);
    border: 1px solid var(--red);
    border-left: 3px solid var(--red-bright);
    padding: 14px 20px;
    font-size: 14px; font-weight: 600; letter-spacing: 1px;
    color: var(--white);
    z-index: 9999;
    transform: translateX(120%);
    transition: transform 0.3s;
    max-width: 320px;
  }
  .notif.show { transform: translateX(0); }

  /* === SCROLLBAR === */
  ::-webkit-scrollbar { width: 6px; height: 6px; }
  ::-webkit-scrollbar-track { background: var(--black2); }
  ::-webkit-scrollbar-thumb { background: var(--grey); border-radius: 3px; }
  ::-webkit-scrollbar-thumb:hover { background: var(--red); }

  /* === BADGE === */
  .badge { display: inline-block; font-size: 10px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; padding: 3px 8px; border-radius: 2px; }
  .badge-red { background: var(--red-dark); color: var(--red-bright); border: 1px solid var(--red-dark); }
  .badge-yellow { background: rgba(180,180,180,0.15); color: var(--yellow); border: 1px solid rgba(180,180,180,0.3); }
  .badge-green { background: rgba(0,204,68,0.1); color: #00cc44; border: 1px solid rgba(0,204,68,0.3); }

  .sep { border: none; border-top: 1px solid var(--border); margin: 24px 0; }
  .flex { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
  .flex-between { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }

  .text-red { color: var(--red-bright); }
  .text-yellow { color: var(--yellow); }
  .text-grey { color: var(--grey-light); }
  .mono { font-family: 'Share Tech Mono', monospace; }

  #active-training-view { display: none; }

  /* === SKILLS ACCORDION === */
  .skills-accordion {
    margin-top: 32px;
    display: flex;
    flex-direction: column;
    gap: 8px;
  }
  .skill-acc-item {
    border: 1px solid var(--border);
    border-radius: 3px;
    overflow: hidden;
    transition: border-color 0.25s;
  }
  .skill-acc-item.open { border-color: var(--yellow-dim); }
  .skill-acc-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: var(--black3);
    cursor: pointer;
    user-select: none;
    transition: background 0.2s;
    gap: 12px;
  }
  .skill-acc-header:hover { background: var(--black4); }
  .skill-acc-item.open .skill-acc-header {
    background: var(--black4);
    border-bottom: 1px solid var(--border);
  }
  .skill-acc-left { display: flex; align-items: center; gap: 14px; }
  .skill-acc-tag {
    font-family: 'Share Tech Mono', monospace;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--red-bright);
    background: var(--border-red);
    border: 1px solid var(--red-dark);
    padding: 3px 8px;
    border-radius: 2px;
    white-space: nowrap;
    flex-shrink: 0;
  }
  .skill-acc-name {
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    font-size: 20px;
    letter-spacing: 3px;
    color: var(--yellow);
    text-transform: uppercase;
  }
  .skill-acc-arrow {
    font-size: 12px;
    color: var(--grey);
    transition: transform 0.3s ease, color 0.2s;
    flex-shrink: 0;
  }
  .skill-acc-item.open .skill-acc-arrow {
    transform: rotate(180deg);
    color: var(--yellow);
  }
  .skill-acc-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.38s cubic-bezier(0.4, 0, 0.2, 1);
  }
  .skill-acc-body.open { max-height: 3000px; }
  .skill-acc-inner {
    background: var(--black);
  }
  .skill-acc-headline {
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    font-size: 18px;
    letter-spacing: 1.5px;
    color: var(--white);
    margin-bottom: 10px;
    line-height: 1.3;
  }
  .skill-acc-text {
    font-size: 14px;
    color: var(--grey-light);
    line-height: 1.75;
    margin-bottom: 18px;
    max-width: 680px;
    letter-spacing: 0.3px;
  }
  .skill-acc-stats { display: flex; gap: 20px; flex-wrap: wrap; }
  .skill-stat { display: flex; flex-direction: column; gap: 3px; }
  .stat-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--grey);
    text-transform: uppercase;
  }
  .stat-val {
    font-family: 'Share Tech Mono', monospace;
    font-size: 13px;
    color: var(--yellow);
    letter-spacing: 1px;
  }

  /* === HERO AVATAR === */
  /* === HERO AVATAR — full-width, blends with background === */
  .hero-avatar-wrap {
    position: relative;
    width: 100%;
    max-width: 720px;
    margin: 28px 0 8px;
    overflow: hidden;
    border-radius: 6px;
  }
  .hero-avatar-img {
    width: 100%;
    height: auto;
    max-height: 480px;
    object-fit: cover;
    object-position: center top;
    display: block;
    border-radius: 6px;
    filter: brightness(0.92) contrast(1.04);
  }
  .hero-avatar-wrap::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 50%;
    background: linear-gradient(to bottom, transparent, var(--black));
    pointer-events: none;
    border-radius: 0 0 6px 6px;
  }

  /* === ACCORDION LAYOUT — text above, full image below === */
  .skill-acc-inner--split {
    display: flex;
    flex-direction: column;
    background: var(--black);
  }
  .skill-acc-content {
    padding: 20px 20px 22px;
  }
  .skill-svg-wrap {
    width: 100%;
    border-top: 1px solid var(--border-red);
    overflow: hidden;
    border-radius: 0 0 3px 3px;
  }
  .skill-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    filter: brightness(0.92) contrast(1.05);
  }
  @media (max-width: 560px) {
    .hero-avatar-img { width: 100%; }
  }

  /* === BLOG === */
  .blog-card {
    background: var(--black3);
    border: 1px solid var(--border);
    border-left: 3px solid var(--red);
    padding: 24px;
    margin-bottom: 16px;
    cursor: pointer;
    transition: all 0.2s;
    border-radius: 2px;
  }
  .blog-card:hover { border-left-color: var(--yellow); background: var(--black4); transform: translateX(2px); }
  .blog-card-tag { font-size:11px; letter-spacing:3px; color:var(--red-bright); font-weight:700; margin-bottom:10px; text-transform:uppercase; }
  .blog-card-title { font-family:'Oswald',sans-serif; font-size:22px; letter-spacing:1px; color:var(--white); margin-bottom:10px; line-height:1.3; }
  .blog-card-meta { font-size:12px; color:var(--grey); letter-spacing:1px; margin-bottom:10px; }
  .blog-card-excerpt { font-size:13px; color:var(--grey-light); line-height:1.7; }
  .blog-post-header { border-bottom:1px solid var(--border-red); padding-bottom:24px; margin-bottom:32px; }
  .blog-post-tag { font-size:11px; letter-spacing:3px; color:var(--red-bright); font-weight:700; margin-bottom:12px; text-transform:uppercase; }
  .blog-post-title { font-family:'Bebas Neue',sans-serif; font-size:42px; letter-spacing:2px; color:var(--white); line-height:1.1; margin-bottom:16px; }
  .blog-post-meta { font-size:13px; color:var(--grey); letter-spacing:1px; }
  .blog-post-body h2 { font-family:'Oswald',sans-serif; font-size:22px; letter-spacing:2px; color:var(--yellow); margin:32px 0 14px; text-transform:uppercase; }
  .blog-post-body h3 { font-family:'Oswald',sans-serif; font-size:17px; letter-spacing:1px; color:var(--white); margin:24px 0 10px; text-transform:uppercase; }
  .blog-post-body p { font-size:14px; color:var(--grey-light); line-height:1.85; margin-bottom:16px; }
  .blog-post-body ul { margin:0 0 16px 20px; }
  .blog-post-body ul li { font-size:14px; color:var(--grey-light); line-height:1.8; margin-bottom:4px; }
  .blog-post-body ul li::marker { color:var(--red-bright); }
  .blog-highlight { background:var(--black4); border-left:3px solid var(--yellow); padding:16px 20px; margin:20px 0; border-radius:0 2px 2px 0; }
  .blog-highlight p { margin:0; color:var(--white); font-weight:600; font-size:14px; }
  .peri-compare-grid { display:grid; grid-template-columns:1fr 1fr; gap:16px; margin:20px 0; }
  @media(max-width:600px) { .peri-compare-grid { grid-template-columns:1fr; } }

  /* === LOGIN === */
  .login-tab { transition: all 0.2s; }
  .active-tab { background:var(--red) !important; color:var(--white) !important; }


  /* ===== HERO STATS BAR ===== */
  .hero-stats-bar {
    display: flex;
    align-items: stretch;
    gap: 0;
    background: var(--black3);
    border: 1px solid var(--border);
    border-left: 3px solid var(--red);
    border-radius: 2px;
    margin-bottom: 32px;
    overflow: hidden;
  }
  .hero-stat {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 16px 10px;
    text-align: center;
    gap: 4px;
  }
  .hero-stat-value {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 36px;
    color: var(--yellow);
    line-height: 1;
    letter-spacing: 2px;
  }
  .hero-stat-label {
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--grey);
    line-height: 1.3;
  }
  .hero-stat-divider {
    width: 1px;
    background: var(--border);
    flex-shrink: 0;
  }
  @media (max-width: 520px) {
    .hero-stats-bar { flex-wrap: wrap; }
    .hero-stat { flex: 1 1 45%; }
    .hero-stat-divider { display: none; }
    .hero-stat:nth-child(odd) { border-right: 1px solid var(--border); }
    .hero-stat { border-bottom: 1px solid var(--border); }
  }

  /* ===== FOOTER ===== */
  .site-footer {
    margin-top: 60px;
    background: var(--black2);
    border-top: 1px solid var(--border);
    padding: 32px 20px 24px;
  }
  .footer-inner {
    max-width: 860px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }
  .footer-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 6px;
  }
  .footer-link {
    font-family: 'Rajdhani', sans-serif;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--grey-light);
    cursor: pointer;
    transition: color 0.2s;
    text-decoration: none;
    background: none;
    border: none;
    padding: 4px 6px;
  }
  .footer-link:hover { color: var(--yellow); }
  .footer-sep { color: var(--grey); font-size: 11px; }
  .footer-socials {
    display: flex;
    gap: 12px;
    align-items: center;
  }
  .footer-social-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--black4);
    border: 1px solid var(--border);
    border-radius: 2px;
    padding: 10px 18px;
    color: var(--grey-light);
    text-decoration: none;
    font-family: 'Rajdhani', sans-serif;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1.5px;
    transition: all 0.2s;
  }
  .footer-social-btn:hover {
    border-color: #e1306c;
    color: #e1306c;
    background: rgba(225,48,108,0.08);
  }
  .ig-icon { width: 20px; height: 20px; }
  .footer-copy {
    font-size: 11px;
    color: var(--grey);
    letter-spacing: 1px;
    text-align: center;
  }

  /* ===== MODALS ===== */
  .modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.75);
    z-index: 1000;
    backdrop-filter: blur(2px);
  }
  .modal-overlay.open { display: block; }
  .modal-box {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1001;
    width: min(560px, 94vw);
    max-height: 85vh;
    background: var(--black2);
    border: 1px solid var(--border);
    border-top: 3px solid var(--red);
    border-radius: 2px;
    overflow: hidden;
    display: none;
    flex-direction: column;
  }
  .modal-box.open { display: flex; }
  .modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 22px;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
  }
  .modal-title {
    font-family: 'Oswald', sans-serif;
    font-size: 18px;
    letter-spacing: 3px;
    color: var(--white);
  }
  .modal-close {
    background: none;
    border: none;
    color: var(--grey);
    font-size: 18px;
    cursor: pointer;
    padding: 4px 8px;
    transition: color 0.2s;
    line-height: 1;
  }
  .modal-close:hover { color: var(--red-bright); }
  .modal-body {
    padding: 22px;
    overflow-y: auto;
    font-size: 13px;
    color: var(--grey-light);
    line-height: 1.75;
    flex: 1;
  }
  .modal-body h3 {
    font-family: 'Oswald', sans-serif;
    font-size: 14px;
    letter-spacing: 2px;
    color: var(--yellow);
    margin: 18px 0 6px;
    text-transform: uppercase;
  }
  .modal-body p { margin-bottom: 10px; }


  /* ===== HERO SYSTEM LIST ===== */
  .hero-system-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 32px;
  }
  .hero-system-list span {
    font-family: 'Rajdhani', sans-serif;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--grey);
  }


  /* ══════ LOADING SCREEN ══════ */
  #loader {
    position: fixed;
    inset: 0;
    background: #050505;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
  }
  #loader.hidden { opacity: 0; visibility: hidden; }
  .loader-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }
  .loader-logo {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 52px;
    letter-spacing: 4px;
    animation: logoPulse 1.2s ease-in-out infinite alternate;
  }
  .loader-war  { color: var(--white); text-shadow: none; }
  .loader-thenics { color: var(--red-bright); text-shadow: 0 0 30px rgba(204,34,0,0.6); }
  @keyframes logoPulse {
    from { opacity: 0.7; transform: scale(0.97); }
    to   { opacity: 1;   transform: scale(1.02); }
  }
  .loader-bar-wrap {
    width: 200px;
    height: 2px;
    background: var(--border);
    border-radius: 2px;
    overflow: hidden;
  }
  .loader-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--red), var(--yellow));
    transition: width 0.1s linear;
  }
  .loader-label {
    font-family: 'Rajdhani', sans-serif;
    font-size: 12px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--grey);
  }

  /* ══════ HAMBURGER ══════ */
  .hamburger {
    display: none;
    background: none;
    border: 1px solid var(--border);
    color: var(--grey-light);
    font-size: 20px;
    padding: 6px 12px;
    cursor: pointer;
    border-radius: 2px;
    margin-left: auto;
    flex-shrink: 0;
    transition: all 0.2s;
    line-height: 1;
  }
  .hamburger:hover { border-color: var(--yellow); color: var(--yellow); }

  /* ══════ MOBILE MENU ══════ */
  .mobile-menu-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    z-index: 1100;
    backdrop-filter: blur(2px);
  }
  .mobile-menu-overlay.open { display: block; }
  .mobile-menu {
    position: fixed;
    top: 0; right: 0;
    width: 260px;
    height: 100%;
    background: var(--black2);
    border-left: 1px solid var(--border-red);
    z-index: 1200;
    padding: 24px 0;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4,0,0.2,1);
  }
  .mobile-menu.open { transform: translateX(0); }
  .mob-menu-logo {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 28px;
    letter-spacing: 3px;
    padding: 0 24px 20px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 8px;
  }
  .mob-nav-btn {
    background: none;
    border: none;
    border-bottom: 1px solid var(--border);
    color: var(--grey-light);
    font-family: 'Rajdhani', sans-serif;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 16px 24px;
    text-align: left;
    cursor: pointer;
    transition: all 0.18s;
    width: 100%;
  }
  .mob-nav-btn:hover { color: var(--white); background: rgba(255,255,255,0.04); }
  .mob-nav-btn.active { color: var(--white); border-left: 3px solid var(--red); background: rgba(204,34,0,0.07); padding-left: 21px; }

  /* ══════ SECTION FADE ══════ */
  section {
    animation: none;
  }
  section.active {
    animation: sectionFadeIn 0.32s ease forwards;
  }
  @keyframes sectionFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
  }

  /* ══════ TOAST UPGRADE ══════ */
  #notif {
    position: fixed;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: var(--black2);
    border: 1px solid var(--border);
    border-left: 3px solid var(--yellow);
    color: var(--white);
    font-family: 'Rajdhani', sans-serif;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
    padding: 12px 24px;
    border-radius: 2px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
    z-index: 9000;
    white-space: nowrap;
    box-shadow: 0 4px 24px rgba(0,0,0,0.5);
  }
  #notif.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
  #notif.notif-red { border-left-color: var(--red-bright); }
  #notif.notif-green { border-left-color: #00cc44; }

  /* (reguła hamburgera przeniesiona niżej do @media (max-width: 1023px) —
     tu było za wąskie okno (520px), przez co tablety/małe laptopy nie
     dostawały ani hamburgera, ani nowego nagłówka desktopowego) */


  /* ══════ REST TIMER ══════ */
  .rest-timer-bar {
    background: var(--black3);
    border: 1px solid var(--border);
    border-top: 2px solid var(--yellow);
    border-radius: 2px;
    padding: 14px 16px 10px;
    margin-bottom: 20px;
  }
  .rest-timer-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    flex-wrap: wrap;
  }
  .rest-timer-label {
    font-family: 'Rajdhani', sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--yellow);
    flex-shrink: 0;
    margin-right: 4px;
  }
  .rest-timer-presets {
    display: flex;
    gap: 6px;
    flex: 1;
    flex-wrap: wrap;
  }
  .rest-preset-btn {
    background: var(--black4);
    border: 1px solid var(--border);
    color: var(--grey-light);
    font-family: 'Rajdhani', sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    padding: 5px 12px;
    border-radius: 2px;
    cursor: pointer;
    transition: all 0.18s;
  }
  .rest-preset-btn:hover,
  .rest-preset-btn.active { border-color: var(--yellow); color: var(--yellow); background: rgba(180,180,180,0.08); }
  .rest-stop-btn {
    background: none;
    border: 1px solid var(--border);
    color: var(--grey);
    font-size: 14px;
    padding: 4px 9px;
    border-radius: 2px;
    cursor: pointer;
    transition: all 0.18s;
    flex-shrink: 0;
  }
  .rest-stop-btn:hover { border-color: var(--red-bright); color: var(--red-bright); }
  .rest-timer-track {
    width: 100%;
    height: 3px;
    background: var(--border);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 6px;
  }
  .rest-timer-fill {
    height: 100%;
    width: 100%;
    background: linear-gradient(90deg, var(--yellow), var(--red-bright));
    transition: width 1s linear;
    border-radius: 2px;
  }
  .rest-timer-display {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 28px;
    color: var(--yellow);
    letter-spacing: 3px;
    text-align: center;
    line-height: 1;
  }
  .rest-timer-display.done { color: #00cc44; animation: restPulse 0.4s ease 3; }
  @keyframes restPulse {
    0%,100% { opacity:1; } 50% { opacity:0.3; }
  }

  /* ══════ ACHIEVEMENTS ══════ */
  .achievement {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 10px 4px;
    background: var(--black4);
    border: 1px solid var(--border);
    border-radius: 2px;
    text-align: center;
    transition: all 0.2s;
    opacity: 0.35;
    filter: grayscale(1);
  }
  .achievement.unlocked {
    opacity: 1;
    filter: none;
    border-color: var(--yellow);
    background: rgba(180,180,180,0.06);
    box-shadow: 0 0 12px rgba(180,180,180,0.15);
  }
  .achievement-icon { font-size: 22px; line-height: 1; }
  .achievement-name {
    font-size: 8px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--grey);
    line-height: 1.2;
    font-weight: 700;
    font-family: 'Rajdhani', sans-serif;
  }
  .achievement.unlocked .achievement-name { color: var(--yellow); }


  /* ══════ NAV ZADANIE BUTTON ══════ */
  .nav-btn-task {
    letter-spacing: 2px;
  }

  /* ══════ TASK BRIEFING ══════ */
  .task-briefing-header {
    margin-bottom: 28px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
  }
  .task-briefing-tag {
    font-size: 11px;
    letter-spacing: 3px;
    color: var(--red-bright);
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 10px;
  }
  .task-briefing-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 48px;
    letter-spacing: 3px;
    color: var(--white);
    line-height: 1;
    margin-bottom: 10px;
  }
  .task-briefing-sub {
    font-size: 13px;
    color: var(--grey);
    letter-spacing: 1px;
    line-height: 1.6;
  }

  /* ══════ TASK ACTIVE HEADER ══════ */
  .task-active-header {
    background: linear-gradient(135deg, rgba(204,34,0,0.12) 0%, rgba(0,0,0,0) 60%);
    border: 1px solid var(--border-red);
    border-left: 3px solid var(--red-bright);
    border-radius: 2px;
    padding: 20px 20px 16px;
    margin-bottom: 16px;
  }
  .task-active-tag {
    font-size: 11px;
    letter-spacing: 3px;
    color: var(--red-bright);
    font-weight: 700;
    margin-bottom: 8px;
    animation: taskPulse 2s ease-in-out infinite;
  }
  @keyframes taskPulse {
    0%,100% { opacity: 1; } 50% { opacity: 0.5; }
  }
  .task-active-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 36px;
    letter-spacing: 3px;
    color: var(--white);
    line-height: 1;
    margin-bottom: 8px;
  }
  .task-active-meta {
    font-size: 12px;
    letter-spacing: 2px;
    color: var(--grey-light);
    text-transform: uppercase;
  }

  /* ══════ DAY CARD UPGRADE ══════ */
  .day-card {
    position: relative;
    overflow: hidden;
  }
  .day-card::before {
    content: '▶ ROZPOCZNIJ';
    position: absolute;
    bottom: -30px;
    left: 0; right: 0;
    background: var(--red);
    text-align: center;
    font-size: 11px;
    letter-spacing: 2px;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    padding: 6px;
    transition: bottom 0.2s;
  }
  .day-card:hover::before { bottom: 0; }


  /* ══════ NAV TASK BUTTON ══════ */
  .nav-btn-task {
    letter-spacing: 3px;
  }


  /* ══════ BLOG ADMIN ══════ */
  .admin-post-row {
    background: var(--black3);
    border: 1px solid var(--border);
    border-radius: 2px;
    padding: 14px 16px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
  }
  .admin-post-info { flex: 1; min-width: 0; }
  .admin-post-title {
    font-family: 'Oswald', sans-serif;
    font-size: 15px;
    letter-spacing: 1px;
    color: var(--white);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 3px;
  }
  .admin-post-meta { font-size: 11px; color: var(--grey); letter-spacing: 1px; }
  .admin-post-actions { display: flex; gap: 6px; flex-shrink: 0; }
  .admin-action-btn {
    background: var(--black4);
    border: 1px solid var(--border);
    color: var(--grey-light);
    font-size: 12px;
    padding: 5px 10px;
    border-radius: 2px;
    cursor: pointer;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 600;
    transition: all 0.18s;
    letter-spacing: 1px;
  }
  .admin-action-btn.edit:hover { border-color: var(--yellow); color: var(--yellow); }
  .admin-action-btn.del:hover  { border-color: var(--red-bright); color: var(--red-bright); }
  .admin-post-builtin {
    font-size: 10px;
    color: var(--grey);
    background: var(--black4);
    border: 1px solid var(--border);
    padding: 2px 7px;
    border-radius: 2px;
    letter-spacing: 1px;
    flex-shrink: 0;
  }

  /* ══════ MARKDOWN RENDER ══════ */
  .md-body { font-size: 14px; color: var(--grey-light); line-height: 1.85; }
  .md-body h2 {
    font-family: 'Oswald', sans-serif; font-size: 22px; letter-spacing: 2px;
    color: var(--yellow); margin: 28px 0 12px; text-transform: uppercase;
  }
  .md-body h3 {
    font-family: 'Oswald', sans-serif; font-size: 17px; letter-spacing: 1px;
    color: var(--white); margin: 20px 0 8px; text-transform: uppercase;
  }
  .md-body p { margin-bottom: 14px; }
  .md-body strong { color: var(--white); font-weight: 700; }
  .md-body em { color: var(--yellow); font-style: italic; }
  .md-body ul { margin: 0 0 14px 20px; }
  .md-body ul li { margin-bottom: 5px; }
  .md-body ul li::marker { color: var(--red-bright); }
  .md-body blockquote {
    border-left: 3px solid var(--yellow);
    background: var(--black4);
    padding: 12px 16px;
    margin: 16px 0;
    border-radius: 0 2px 2px 0;
    color: var(--white);
    font-style: italic;
  }
  .md-body img {
    max-width: 100%; border-radius: 2px;
    border: 1px solid var(--border); margin: 16px 0;
  }
  .md-body hr {
    border: none; border-top: 1px solid var(--border); margin: 24px 0;
  }
  .md-body code {
    background: var(--black4); border: 1px solid var(--border);
    padding: 2px 6px; border-radius: 2px; font-size: 12px;
    color: var(--yellow); font-family: monospace;
  }


  /* ══════ DLA KOGO ══════ */
  .for-who-section {
    margin: 40px 0 32px;
    padding-top: 32px;
    border-top: 1px solid var(--border);
  }
  .for-who-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 36px;
    letter-spacing: 4px;
    margin-bottom: 20px;
    color: var(--white);
  }
  .for-who-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
    margin-bottom: 20px;
  }
  .for-who-card {
    background: var(--black3);
    border: 1px solid var(--border);
    border-top: 2px solid var(--red);
    border-radius: 2px;
    padding: 18px 16px;
    transition: border-color 0.2s;
  }
  .for-who-card:hover { border-top-color: var(--yellow); }
  .for-who-icon { font-size: 28px; margin-bottom: 10px; }
  .for-who-name {
    font-family: 'Oswald', sans-serif;
    font-size: 14px;
    letter-spacing: 2px;
    color: var(--yellow);
    margin-bottom: 8px;
  }
  .for-who-desc {
    font-size: 12px;
    color: var(--grey-light);
    line-height: 1.7;
  }
  .for-who-not {
    background: var(--black3);
    border: 1px solid var(--border);
    border-left: 3px solid var(--red-bright);
    border-radius: 2px;
    padding: 16px 18px;
  }
  .for-who-not-title {
    font-family: 'Oswald', sans-serif;
    font-size: 13px;
    letter-spacing: 2px;
    color: var(--red-bright);
    margin-bottom: 10px;
  }
  .for-who-not-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
  }
  .for-who-not-list span {
    font-size: 12px;
    color: var(--grey-light);
    letter-spacing: 0.5px;
  }

  /* ══════ PWA INSTALL BANNER ══════ */
  #pwa-banner {
    position: fixed;
    bottom: 70px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--black2);
    border: 1px solid var(--yellow);
    border-radius: 4px;
    padding: 12px 16px;
    display: none;
    align-items: center;
    gap: 12px;
    z-index: 8000;
    box-shadow: 0 4px 24px rgba(0,0,0,0.6);
    max-width: 340px;
    width: 90%;
  }
  #pwa-banner.show { display: flex; }
  .pwa-text { flex: 1; font-size: 13px; color: var(--white); line-height: 1.4; }
  .pwa-text strong { color: var(--yellow); font-family: 'Oswald', sans-serif; letter-spacing: 1px; }
  .pwa-btn { background: var(--yellow); color: #000; border: none; font-family: 'Rajdhani', sans-serif; font-weight: 700; font-size: 12px; letter-spacing: 1px; padding: 8px 12px; border-radius: 2px; cursor: pointer; white-space: nowrap; }
  .pwa-close { background: none; border: none; color: var(--grey); font-size: 18px; cursor: pointer; padding: 0 4px; line-height: 1; }


  /* ══════ FAQ ══════ */
  .faq-section { margin: 8px 0 32px; }
  .faq-item {
    border-bottom: 1px solid var(--border);
    overflow: hidden;
  }
  .faq-q {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 4px;
    cursor: pointer;
    font-family: 'Rajdhani', sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: var(--white);
    letter-spacing: 0.5px;
    transition: color 0.2s;
    gap: 12px;
  }
  .faq-q:hover { color: var(--yellow); }
  .faq-arrow {
    font-size: 12px;
    color: var(--grey);
    transition: transform 0.25s;
    flex-shrink: 0;
  }
  .faq-item.open .faq-arrow { transform: rotate(180deg); color: var(--yellow); }
  .faq-item.open .faq-q { color: var(--yellow); }
  .faq-a {
    font-size: 13px;
    color: var(--grey-light);
    line-height: 1.8;
    padding: 0 4px 16px;
    display: none;
  }
  .faq-item.open .faq-a { display: block; }


/* ═══════════════════════════════════════════════
   WARTHENICS v9 — NOWE MODUŁY
   Czat, Tracker, Własne Plany, Biblioteka Ćwiczeń
   ═══════════════════════════════════════════════ */

/* ── WSPÓLNE ──────────────────────────────────── */
.v9-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 12px;
}
.v9-section-header .section-title { margin-bottom: 0; }
.v9-empty-state {
  text-align: center;
  padding: 48px 20px;
  color: var(--grey);
}
.v9-empty-state .v9-empty-icon { font-size: 42px; margin-bottom: 12px; }
.v9-empty-state .v9-empty-text {
  font-family: 'Oswald', sans-serif;
  font-size: 18px;
  letter-spacing: 2px;
  margin-bottom: 8px;
}
.v9-empty-state .v9-empty-sub { font-size: 13px; color: var(--grey); }

/* TABS */
.v9-tabs {
  display: flex;
  border-bottom: 1px solid var(--border);
  margin-bottom: 20px;
  gap: 0;
}
.v9-tab {
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--grey-light);
  font-family: 'Rajdhani', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 10px 16px;
  cursor: pointer;
  transition: all 0.2s;
  margin-bottom: -1px;
}
.v9-tab.active {
  color: var(--red-bright);
  border-bottom-color: var(--red-bright);
}
.v9-tab-content { display: none; }
.v9-tab-content.active { display: block; }

/* UNREAD BADGE */
.unread-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  background: var(--red-bright);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  border-radius: 9px;
  padding: 0 4px;
  margin-left: 6px;
  vertical-align: middle;
}

/* ── MODUŁ 1: CZAT ───────────────────────────── */
#chat { padding-bottom: 80px; }

.chat-container {
  display: flex;
  flex-direction: column;
  height: calc(100vh - 200px);
  min-height: 400px;
  max-height: 700px;
}

.chat-messages-wrap {
  flex: 1;
  overflow-y: auto;
  background: var(--black2);
  border: 1px solid var(--border);
  border-radius: 2px;
  padding: 16px;
  margin-bottom: 12px;
  scroll-behavior: smooth;
}

.chat-msg {
  display: flex;
  flex-direction: column;
  margin-bottom: 14px;
  max-width: 80%;
}
.chat-msg.mine { align-items: flex-end; margin-left: auto; }
.chat-msg.theirs { align-items: flex-start; }

.chat-bubble {
  padding: 10px 14px;
  border-radius: 2px;
  font-family: 'Rajdhani', sans-serif;
  font-size: 15px;
  line-height: 1.5;
  word-break: break-word;
}
.chat-msg.mine .chat-bubble {
  background: var(--red);
  color: #fff;
  border-bottom-right-radius: 0;
}
.chat-msg.theirs .chat-bubble {
  background: var(--black3);
  border: 1px solid var(--border);
  color: var(--white);
  border-bottom-left-radius: 0;
}

.chat-msg-meta {
  font-size: 10px;
  color: var(--grey);
  letter-spacing: 1px;
  margin-top: 4px;
}
.chat-msg.mine .chat-msg-meta { text-align: right; }

.chat-media-img {
  max-width: 220px;
  max-height: 200px;
  border-radius: 2px;
  border: 1px solid var(--border);
  cursor: pointer;
  display: block;
  margin-top: 6px;
}

.chat-input-bar {
  display: flex;
  gap: 8px;
  align-items: flex-end;
  background: var(--black3);
  border: 1px solid var(--border);
  border-radius: 2px;
  padding: 8px;
}
.chat-input-bar textarea {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--white);
  font-family: 'Rajdhani', sans-serif;
  font-size: 15px;
  resize: none;
  outline: none;
  min-height: 40px;
  max-height: 100px;
  padding: 6px 4px;
  line-height: 1.4;
}
.chat-attach-btn {
  background: none;
  border: 1px solid var(--border);
  color: var(--grey-light);
  font-size: 18px;
  width: 40px;
  height: 40px;
  border-radius: 2px;
  cursor: pointer;
  flex-shrink: 0;
  transition: border-color 0.2s;
  display: flex; align-items: center; justify-content: center;
}
.chat-attach-btn:hover { border-color: var(--red-bright); color: var(--red-bright); }
.chat-send-btn {
  background: var(--red);
  border: none;
  color: #fff;
  font-family: 'Oswald', sans-serif;
  font-size: 14px;
  letter-spacing: 2px;
  padding: 0 16px;
  height: 40px;
  border-radius: 2px;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.2s;
}
.chat-send-btn:hover { background: var(--red-bright); }
.chat-send-btn:disabled { opacity: 0.4; cursor: not-allowed; }

.chat-media-preview {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--black4);
  border: 1px solid var(--border-red);
  border-radius: 2px;
  padding: 8px 12px;
  margin-bottom: 8px;
}
.chat-media-preview img, .chat-media-preview video {
  max-height: 60px;
  max-width: 100px;
  border-radius: 2px;
}
.chat-media-preview-name {
  font-size: 12px;
  color: var(--grey-light);
  flex: 1;
}
.chat-media-preview-remove {
  background: none;
  border: none;
  color: var(--grey);
  font-size: 16px;
  cursor: pointer;
  padding: 2px 6px;
}

/* ADMIN INBOX */
.chat-inbox-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 2px;
  margin-bottom: 8px;
  cursor: pointer;
  transition: border-color 0.2s;
  background: var(--black2);
}
.chat-inbox-row:hover { border-color: var(--red-bright); }
.chat-inbox-avatar {
  width: 40px; height: 40px;
  background: var(--black3);
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}
.chat-inbox-info { flex: 1; min-width: 0; }
.chat-inbox-name {
  font-family: 'Oswald', sans-serif;
  font-size: 15px;
  letter-spacing: 1px;
  color: var(--white);
  margin-bottom: 3px;
}
.chat-inbox-last {
  font-size: 12px;
  color: var(--grey-light);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.chat-inbox-meta { text-align: right; flex-shrink: 0; }
.chat-inbox-time { font-size: 10px; color: var(--grey); letter-spacing: 1px; }

/* ── MODUŁ 2: TRACKER ────────────────────────── */
.cal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.cal-nav-btn {
  background: var(--black3);
  border: 1px solid var(--border);
  color: var(--white);
  font-size: 18px;
  width: 36px; height: 36px;
  border-radius: 2px;
  cursor: pointer;
  transition: border-color 0.2s;
  display: flex; align-items: center; justify-content: center;
}
.cal-nav-btn:hover { border-color: var(--red-bright); }
.cal-month-label {
  font-family: 'Oswald', sans-serif;
  font-size: 20px;
  letter-spacing: 3px;
  color: var(--white);
}

.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 3px;
  margin-bottom: 20px;
}
.cal-day-header {
  text-align: center;
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--grey);
  padding: 6px 0;
  font-weight: 700;
}
.cal-day {
  min-height: 52px;
  background: var(--black2);
  border: 1px solid var(--border);
  border-radius: 2px;
  padding: 4px;
  cursor: pointer;
  transition: border-color 0.2s;
  position: relative;
}
.cal-day:hover { border-color: var(--red-bright); }
.cal-day.other-month { opacity: 0.3; }
.cal-day.today { border-color: var(--yellow); }
.cal-day.has-workout { border-color: var(--red); }
.cal-day.completed { border-color: #00cc44; }
.cal-day-num {
  font-size: 11px;
  color: var(--grey-light);
  line-height: 1;
  margin-bottom: 3px;
}
.cal-day.today .cal-day-num { color: var(--yellow); font-weight: 700; }
.cal-workout-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--red-bright);
  margin: 1px auto;
}
.cal-workout-dot.done { background: #00cc44; }

/* Day modal */
.day-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  z-index: 1000;
  align-items: flex-end;
  justify-content: center;
}
.day-modal-overlay.open { display: flex; }
.day-modal {
  background: var(--black3);
  border: 1px solid var(--border);
  border-top: 2px solid var(--red-bright);
  border-radius: 2px 2px 0 0;
  padding: 20px;
  width: 100%;
  max-width: 480px;
  max-height: 80vh;
  overflow-y: auto;
}
.day-modal-title {
  font-family: 'Oswald', sans-serif;
  font-size: 20px;
  letter-spacing: 3px;
  margin-bottom: 16px;
}

.workout-picker-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 2px;
  margin-bottom: 6px;
  cursor: pointer;
  transition: border-color 0.2s;
  background: var(--black2);
}
.workout-picker-item:hover { border-color: var(--red-bright); }
.workout-picker-item-name {
  font-family: 'Oswald', sans-serif;
  font-size: 14px;
  letter-spacing: 1px;
}
.workout-picker-item-label { font-size: 12px; color: var(--grey-light); }

.scheduled-workout-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 2px;
  margin-bottom: 6px;
  background: var(--black2);
}
.scheduled-workout-info { flex: 1; }
.scheduled-workout-name {
  font-size: 14px; font-weight: 600; color: var(--white);
  margin-bottom: 2px;
}
.scheduled-workout-meta { font-size: 11px; color: var(--grey-light); }
.scheduled-workout-done { color: #00cc44; font-size: 18px; }

/* Reminder */
.reminder-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}
.reminder-row label {
  font-size: 12px;
  color: var(--grey-light);
  letter-spacing: 1px;
  text-transform: uppercase;
  white-space: nowrap;
}
.reminder-time-input {
  background: var(--black2);
  border: 1px solid var(--border);
  border-radius: 2px;
  color: var(--white);
  font-family: 'Share Tech Mono', monospace;
  font-size: 14px;
  padding: 7px 10px;
  outline: none;
  width: 100px;
}

/* ── MODUŁ 3: WŁASNE PLANY ───────────────────── */
.plan-card {
  background: var(--black2);
  border: 1px solid var(--border);
  border-radius: 2px;
  padding: 16px;
  margin-bottom: 10px;
  cursor: pointer;
  transition: border-color 0.2s;
}
.plan-card:hover { border-color: var(--red-bright); }
.plan-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.plan-card-name {
  font-family: 'Oswald', sans-serif;
  font-size: 18px;
  letter-spacing: 2px;
  color: var(--white);
  margin-bottom: 4px;
}
.plan-card-desc {
  font-size: 13px;
  color: var(--grey-light);
  margin-bottom: 10px;
  line-height: 1.5;
}
.plan-card-stats {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.plan-card-stat {
  font-size: 11px;
  color: var(--grey);
  letter-spacing: 1px;
  text-transform: uppercase;
}
.plan-card-actions {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}
.plan-action-btn {
  background: none;
  border: 1px solid var(--border);
  color: var(--grey-light);
  font-size: 12px;
  padding: 5px 10px;
  border-radius: 2px;
  cursor: pointer;
  font-family: 'Rajdhani', sans-serif;
  letter-spacing: 1px;
  transition: all 0.2s;
}
.plan-action-btn:hover { border-color: var(--red-bright); color: var(--red-bright); }
.plan-action-btn.danger:hover { border-color: var(--red-dark); color: var(--red-bright); }

/* Edytor planu */
/* Plan editor — fixed header + scrollable body */
.plan-editor-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--black);
  z-index: 1100;
  flex-direction: column;
}
.plan-editor-overlay.open { display: flex; }

.plan-editor-header {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  background: var(--black);
  border-bottom: 2px solid var(--red-bright);
  padding: 12px 16px;
  min-height: 56px;
  box-sizing: border-box;
}
.plan-editor-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 16px 120px;
  -webkit-overflow-scrolling: touch;
}
.plan-editor-title-input {
  flex: 1;
  background: var(--black3);
  border: 1px solid var(--border);
  border-radius: 2px;
  color: var(--white);
  font-family: 'Oswald', sans-serif;
  font-size: 17px;
  letter-spacing: 2px;
  padding: 9px 12px;
  outline: none;
  min-width: 0;
}
.plan-editor-title-input:focus { border-color: var(--red-bright); }

.plan-day-block {
  background: var(--black2);
  border: 1px solid var(--border);
  border-radius: 2px;
  margin-bottom: 12px;
  overflow: hidden;
}
.plan-day-block-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  cursor: pointer;
  background: var(--black3);
}
.plan-day-block-name {
  font-family: 'Oswald', sans-serif;
  font-size: 16px;
  letter-spacing: 2px;
  color: var(--white);
}
.plan-day-block-body { padding: 12px 16px; }

.ex-row-mini {
  display: grid;
  grid-template-columns: 1fr 52px 52px 52px auto;
  gap: 6px;
  align-items: center;
  margin-bottom: 8px;
}
.ex-row-mini input {
  background: var(--black3);
  border: 1px solid var(--border);
  border-radius: 2px;
  color: var(--white);
  font-family: 'Share Tech Mono', monospace;
  font-size: 13px;
  padding: 7px 8px;
  outline: none;
  width: 100%;
}
.ex-row-mini input:focus { border-color: var(--red-bright); }
.ex-row-mini-name { grid-column: 1; }
.ex-del-btn {
  background: none;
  border: none;
  color: var(--grey);
  font-size: 16px;
  cursor: pointer;
  padding: 4px;
  transition: color 0.2s;
}
.ex-del-btn:hover { color: var(--red-bright); }

.ex-library-search {
  position: relative;
  margin-bottom: 8px;
}
.ex-library-search input {
  width: 100%;
  box-sizing: border-box;
  background: var(--black3);
  border: 1px solid var(--border);
  border-radius: 2px;
  color: var(--white);
  font-family: 'Rajdhani', sans-serif;
  font-size: 14px;
  padding: 10px 14px;
  outline: none;
}
.ex-library-search input:focus { border-color: var(--red-bright); }
.ex-library-dropdown {
  position: absolute;
  top: 100%;
  left: 0; right: 0;
  background: var(--black3);
  border: 1px solid var(--border);
  border-top: none;
  border-radius: 0 0 2px 2px;
  max-height: 200px;
  overflow-y: auto;
  z-index: 100;
  display: none;
}
.ex-library-dropdown.open { display: block; }
.ex-lib-option {
  padding: 10px 14px;
  cursor: pointer;
  font-size: 13px;
  color: var(--grey-light);
  transition: background 0.15s;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.ex-lib-option:hover { background: rgba(204,34,0,0.15); color: var(--white); }
.ex-lib-option-cat {
  font-size: 10px;
  color: var(--grey);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-top: 2px;
}

/* ── MODUŁ 4: BIBLIOTEKA ĆWICZEŃ ─────────────── */
.exercise-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
  margin-top: 16px;
}
.exercise-card {
  background: var(--black2);
  border: 1px solid var(--border);
  border-radius: 2px;
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.2s, transform 0.15s;
}
.exercise-card:hover { border-color: var(--red-bright); transform: translateY(-2px); }
.exercise-card-thumb {
  width: 100%;
  height: 110px;
  object-fit: cover;
  background: var(--black3);
  display: block;
}
.exercise-card-thumb-placeholder {
  width: 100%;
  height: 110px;
  background: var(--black3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
}
.exercise-card-body { padding: 10px 12px; }
.exercise-card-name {
  font-family: 'Oswald', sans-serif;
  font-size: 14px;
  letter-spacing: 1px;
  color: var(--white);
  margin-bottom: 4px;
  line-height: 1.2;
}
.exercise-card-cat {
  font-size: 10px;
  color: var(--red-bright);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.exercise-card-diff {
  font-size: 11px;
  color: var(--yellow);
  letter-spacing: 1px;
}
.exercise-card-video-badge {
  display: inline-block;
  background: rgba(204,34,0,0.2);
  color: var(--red-bright);
  font-size: 9px;
  letter-spacing: 1px;
  padding: 2px 5px;
  border-radius: 2px;
  margin-left: 4px;
  vertical-align: middle;
}

/* Filter chips */
.filter-chips {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 10px;
  margin-bottom: 4px;
}
.filter-chip {
  background: var(--black3);
  border: 1px solid var(--border);
  color: var(--grey-light);
  font-family: 'Rajdhani', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.15s;
}
.filter-chip.active { background: var(--red); border-color: var(--red); color: #fff; }
.filter-chip:hover:not(.active) { border-color: var(--red-bright); color: var(--white); }

/* Exercise modal */
.ex-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  z-index: 1000;
  align-items: flex-start;
  justify-content: center;
  overflow-y: auto;
  padding: 20px 0;
}
.ex-modal-overlay.open { display: flex; }
.ex-modal {
  background: var(--black3);
  border: 1px solid var(--border);
  border-top: 2px solid var(--red-bright);
  border-radius: 2px;
  width: 100%;
  max-width: 480px;
  overflow: hidden;
  margin: auto;
}
.ex-modal-video {
  width: 100%;
  max-height: 260px;
  background: #000;
  display: block;
}
.ex-modal-img {
  width: 100%;
  max-height: 240px;
  object-fit: cover;
  display: block;
}
.ex-modal-body { padding: 20px; }
.ex-modal-title {
  font-family: 'Oswald', sans-serif;
  font-size: 24px;
  letter-spacing: 2px;
  margin-bottom: 6px;
}
.ex-modal-meta {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.ex-modal-desc {
  font-size: 14px;
  color: var(--grey-light);
  line-height: 1.7;
  margin-bottom: 14px;
}
.ex-modal-cues {
  list-style: none;
  padding: 0;
  margin: 0 0 14px;
}
.ex-modal-cues li {
  padding: 7px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  color: var(--grey-light);
  display: flex;
  gap: 8px;
  align-items: flex-start;
}
.ex-modal-cues li::before {
  content: '→';
  color: var(--red-bright);
  flex-shrink: 0;
}

/* Admin exercise form */
.diff-stars { display: flex; gap: 4px; }
.diff-star {
  font-size: 22px;
  cursor: pointer;
  color: var(--grey);
  transition: color 0.15s;
}
.diff-star.active { color: var(--yellow); }

.cue-row {
  display: flex;
  gap: 8px;
  margin-bottom: 6px;
  align-items: center;
}
.cue-row input {
  flex: 1;
  background: var(--black2);
  border: 1px solid var(--border);
  border-radius: 2px;
  color: var(--white);
  font-family: 'Rajdhani', sans-serif;
  font-size: 14px;
  padding: 8px 12px;
  outline: none;
}
.cue-row input:focus { border-color: var(--red-bright); }

.upload-progress-wrap {
  margin-top: 8px;
}
.upload-progress-bar {
  height: 4px;
  background: var(--black3);
  border-radius: 2px;
  overflow: hidden;
  margin-top: 4px;
}
.upload-progress-fill {
  height: 100%;
  background: var(--red-bright);
  transition: width 0.3s;
  border-radius: 2px;
}

/* Nav badge for chat */
.nav-chat-wrap { position: relative; display: inline-block; }
.nav-chat-badge {
  position: absolute;
  top: -4px; right: -4px;
  width: 14px; height: 14px;
  background: var(--red-bright);
  border-radius: 50%;
  font-size: 9px;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-weight: 700;
  display: none;
}
.nav-chat-badge.show { display: flex; }

/* Locked state overlay */
.module-locked {
  text-align: center;
  padding: 48px 20px;
  border: 1px solid var(--border);
  border-radius: 2px;
  background: var(--black2);
}
.module-locked-icon { font-size: 48px; margin-bottom: 16px; }
.module-locked-title {
  font-family: 'Oswald', sans-serif;
  font-size: 22px;
  letter-spacing: 3px;
  margin-bottom: 10px;
}
.module-locked-desc {
  font-size: 14px;
  color: var(--grey-light);
  line-height: 1.7;
  max-width: 340px;
  margin: 0 auto 20px;
}

/* ── PANEL ADMINA ─────────────────────────────────────── */
.admin-user-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  background: var(--black2);
  border: 1px solid var(--border);
  border-radius: 2px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}
.admin-user-info { flex: 1; min-width: 0; }
.admin-user-name {
  font-family: 'Oswald', sans-serif;
  font-size: 15px;
  letter-spacing: 1px;
  color: var(--white);
  margin-bottom: 2px;
}
.admin-user-email {
  font-size: 12px;
  color: var(--grey-light);
  margin-bottom: 6px;
  word-break: break-all;
}
.admin-user-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.admin-badge {
  font-size: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 3px 7px;
  border-radius: 2px;
  background: var(--black3);
  border: 1px solid var(--border);
  color: var(--grey-light);
}
.admin-badge.badge-admin {
  background: rgba(204,34,0,0.2);
  border-color: var(--red-bright);
  color: var(--red-bright);
}
.admin-badge.badge-green {
  background: rgba(0,204,68,0.15);
  border-color: #00cc44;
  color: #00cc44;
}
.admin-user-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  flex-shrink: 0;
}

/* ══════ HOMEPAGE: CO TU ZNAJDZIESZ ══════ */
.home-explore-section { margin-top: 40px; padding-top: 32px; border-top: 1px solid var(--border); }
.home-explore-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
}
.home-explore-card {
  background: var(--black3);
  border: 1px solid var(--border);
  border-top: 2px solid var(--red);
  border-radius: 2px;
  padding: 18px 16px;
  cursor: pointer;
  transition: border-color 0.2s, transform 0.15s;
}
.home-explore-card:hover { border-top-color: var(--yellow); transform: translateY(-2px); }
.home-explore-name {
  font-family: 'Oswald', sans-serif;
  font-size: 14px;
  letter-spacing: 2px;
  color: var(--white);
  margin-bottom: 8px;
}
.home-explore-desc {
  font-size: 12px;
  color: var(--grey-light);
  line-height: 1.6;
}

/* ══════ PLANY TRENINGOWE: EKRAN WYBORU (prostokątne okienka) ══════ */
.plan-choice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin-bottom: 8px;
}
.plan-choice-card {
  background: var(--black3);
  border: 1px solid var(--border);
  border-top: 3px solid var(--red);
  border-radius: 2px;
  padding: 28px 24px;
  cursor: pointer;
  transition: border-color 0.2s, transform 0.15s, background 0.2s;
  min-height: 180px;
  display: flex;
  flex-direction: column;
}
.plan-choice-card:hover {
  border-top-color: var(--yellow);
  background: var(--black4);
  transform: translateY(-3px);
}
.plan-choice-tag {
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--grey-light);
  text-transform: uppercase;
  margin-bottom: 10px;
}
.plan-choice-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 30px;
  letter-spacing: 2px;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 12px;
}
.plan-choice-desc {
  font-size: 13px;
  color: var(--grey-light);
  line-height: 1.7;
  flex-grow: 1;
}
.plan-choice-cta {
  font-size: 12px;
  letter-spacing: 2px;
  color: var(--red-bright);
  font-weight: 700;
  margin-top: 16px;
}

/* ══════ PROTOKÓŁ 0G: INTRO WEWNĄTRZ ZAKŁADKI ══════ */
.protocol-intro { margin-bottom: 32px; }

/* ══════ SPÓJNOŚĆ PRZYCISKÓW: standardowe rozmiary zamiast losowych inline ══════ */
.btn-sm { font-size: 12px !important; padding: 8px 16px !important; }
.btn-lg { font-size: 15px !important; padding: 15px 32px !important; }

/* ══════ INTERAKTYWNA MINIATURKA ĆWICZENIA (lewa strona wiersza) ══════ */
.ex-thumb-frame {
  position: relative;
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  background: var(--black2);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s, transform 0.15s;
}
.ex-thumb-frame.clickable { cursor: pointer; }
.ex-thumb-frame.clickable:hover { border-color: var(--red-bright); transform: scale(1.04); }
.ex-thumb-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ex-thumb-frame .ex-thumb-icon { font-size: 22px; opacity: 0.5; }
.ex-thumb-frame .ex-thumb-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.35);
  color: #fff;
  font-size: 16px;
  opacity: 0;
  transition: opacity 0.2s;
}
.ex-thumb-frame.clickable:hover .ex-thumb-play { opacity: 1; }

/* ══════ NAWIGACJA: mobile (<1024px) vs desktop v2 (≥1024px) ══════ */
@media (max-width: 1023px) {
  .hamburger { display: block; }
  .nav-btn { display: none; }
  .nav-desktop-v2 { display: none !important; }
}

/* ══════ NOWY NAGŁÓWEK DESKTOPOWY (≥1024px) — bez hamburgera ══════ */
.nav-desktop-v2 {
  display: none;
  position: sticky;
  top: 0;
  z-index: 500;
  align-items: center;
  height: 80px;
  padding: 0 40px;
  background: rgba(17,17,17,0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 0 var(--red);
  transition: background 0.25s;
}
@media (min-width: 1024px) {
  .nav-desktop-v2 { display: flex; }
  nav:not(.nav-desktop-v2) { display: none !important; }
}

.ndv2-logo {
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  font-size: 22px;
  letter-spacing: 2px;
  text-transform: uppercase;
  cursor: pointer;
  flex-shrink: 0;
  user-select: none;
  color: var(--red-bright);
  text-shadow: 0 0 16px rgba(204,34,0,0.35);
}
.ndv2-logo .logo-gold {
  color: var(--white);
  text-shadow: 0 0 14px rgba(180,180,180,0.4);
}

.ndv2-links {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 36px;
}

.ndv2-link {
  position: relative;
  font-family: 'Rajdhani', sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--grey-light);
  cursor: pointer;
  transition: color 0.25s;
  padding: 4px 0;
  user-select: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.ndv2-link::after {
  content: '';
  position: absolute;
  left: 0; bottom: -4px;
  width: 0;
  height: 2px;
  background: var(--red-bright);
  transition: width 0.25s ease;
}
.ndv2-link:hover { color: var(--white); }
.ndv2-link:hover::after { width: 100%; }
.ndv2-link.active { color: var(--white); }
.ndv2-link.active::after { width: 100%; }

.ndv2-caret { font-size: 10px; transition: transform 0.25s; }
.ndv2-dropdown { position: relative; }
.ndv2-dropdown.open .ndv2-caret { transform: rotate(180deg); }

.ndv2-dropdown-menu {
  position: fixed;
  transform: translateX(-50%) translateY(-8px);
  background: var(--black2);
  border: 1px solid var(--border);
  border-top: 2px solid var(--red);
  border-radius: 2px;
  min-width: 210px;
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s, transform 0.25s;
  z-index: 9999;
  box-shadow: 0 12px 32px rgba(0,0,0,0.5);
}
.ndv2-dropdown.open .ndv2-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.ndv2-dropdown-menu a {
  display: block;
  padding: 10px 20px;
  font-family: 'Rajdhani', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--grey-light);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.ndv2-dropdown-menu a:hover { background: rgba(204,34,0,0.1); color: var(--white); }

.ndv2-cta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.ndv2-btn {
  font-family: 'Rajdhani', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 11px 24px;
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.25s;
  border: 1px solid transparent;
  white-space: nowrap;
}
.ndv2-btn-white {
  background: transparent;
  border-color: var(--border);
  color: var(--white);
}
.ndv2-btn-white:hover {
  border-color: var(--white);
  box-shadow: 0 0 16px rgba(240,240,240,0.15);
}
.ndv2-btn-red {
  background: var(--red);
  color: #fff;
}
.ndv2-btn-red:hover {
  background: var(--red-bright);
  box-shadow: 0 0 18px rgba(224,48,16,0.45);
}

/* Sticky nav-desktop-v2 zajmuje miejsce w normalnym flow (w przeciwieństwie
   do position:fixed starego <nav>), więc duży top-padding sekcji (pod stary,
   fixed nav) na desktopie jest zbędny — inaczej powstaje podwójny odstęp. */
@media (min-width: 1024px) {
  section { padding-top: 40px; }
}

/* ══════ BANER ZAŁOŻYCIELA (góra strony głównej) ══════ */
.founder-banner {
  position: relative;
  display: flex;
  align-items: stretch;
  gap: 32px;
  background: radial-gradient(circle at 85% 30%, rgba(204,34,0,0.18), transparent 55%), var(--black3);
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  margin-top: 24px;
  margin-bottom: 48px;
}
.founder-banner-text {
  flex: 1.3;
  padding: 40px 40px 32px 32px;
  min-width: 0;
}
.founder-banner-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.15;
  letter-spacing: 1px;
  color: var(--white);
}
.founder-banner-name { color: var(--red-bright); }
.founder-banner-underline {
  width: 70px;
  height: 3px;
  background: var(--red-bright);
  margin: 14px 0 20px;
}
.founder-banner-text p {
  font-size: 14px;
  line-height: 1.75;
  color: var(--grey-light);
  margin-bottom: 14px;
}
.founder-banner-ig {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1.5px solid var(--red-bright);
  border-radius: 8px;
  color: var(--red-bright);
  margin-top: 8px;
  transition: background 0.2s, color 0.2s;
}
.founder-banner-ig:hover { background: var(--red-bright); color: #fff; }

.founder-banner-photo {
  flex: 1;
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  min-width: 0;
  max-width: 320px;
}
.founder-banner-photo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: bottom;
  display: block;
}

@media (max-width: 720px) {
  .founder-banner { flex-direction: column-reverse; }
  .founder-banner-text { padding: 24px 20px 28px; }
  .founder-banner-photo { max-width: none; height: 420px; }
}

/* ══════ PITCH / HOOK (pod tagline, nad CTA) ══════ */
.pitch-block { max-width: 640px; margin: 28px 0 32px; }
.pitch-hook {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(24px, 3.2vw, 32px);
  line-height: 1.25;
  color: var(--white);
  margin-bottom: 14px;
}
.pitch-sub {
  font-size: 15px;
  line-height: 1.7;
  color: var(--grey-light);
  margin-bottom: 18px;
}
.pitch-body {
  font-size: 14px;
  line-height: 1.75;
  color: var(--grey-light);
  margin-bottom: 12px;
}
.pitch-body strong { color: var(--white); }

/* ══════ NA CZYM TO POLEGA (callout) ══════ */
.polega-block {
  max-width: 640px;
  margin: 40px 0 44px;
  padding: 24px 28px;
  background: var(--black3);
  border-left: 3px solid var(--red-bright);
  border-radius: 2px;
}
.polega-tag {
  font-family: 'Rajdhani', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--red-bright);
  text-transform: uppercase;
  margin-bottom: 12px;
}
.polega-text {
  font-size: 14px;
  line-height: 1.75;
  color: var(--grey-light);
  margin-bottom: 10px;
}
.polega-text:last-child { margin-bottom: 0; }

/* ══════ ZAMKNIĘCIE (cytat + tagline) ══════ */
.closing-block {
  max-width: 680px;
  margin: 56px auto 24px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
  text-align: center;
}
.closing-text {
  font-size: 16px;
  line-height: 1.75;
  color: var(--grey-light);
  margin-bottom: 20px;
}
.closing-tagline {
  font-family: 'Rajdhani', sans-serif;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
}
