/*
Theme Name: Astra Child
Template: astra
*/


/* BOOST4AI — Tutor Course FINAL v8 */

/* BACKGROUND */

body.single-courses {
  background:
    radial-gradient(circle at 10% 8%, rgba(255,122,22,.18), transparent 30%),
    radial-gradient(circle at 88% 8%, rgba(109,85,255,.15), transparent 34%),
    linear-gradient(180deg, #f7f4ef 0%, #ffffff 52%, #f4f1eb 100%) !important;
}

/* CONTAINER */

.tutor-course-details-page {
  width: min(1220px, calc(100% - 48px)) !important;
  margin: 0 auto !important;
  padding: 95px 0 110px !important;
  color: #151515 !important;
}

/* REMOVE */

.tutor-course-details-instructors,
.tutor-course-details-info {
  display: none !important;
}

/* EYEBROW */

.tutor-course-details-header::before {
  content: "KURS BOOST4AI";
  display: inline-flex;
  margin-bottom: 18px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255,122,22,.28);
  background: rgba(255,122,22,.09);
  color: #e85f00;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: .1em;
  text-transform: uppercase;
}

/* HEADER DESKTOP */

.tutor-course-details-header {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 0 38px !important;
}

.tutor-course-details-title {
  width: 100% !important;
  max-width: 1120px !important;
  margin: 0 !important;
  font-size: clamp(56px, 5.4vw, 82px) !important;
  line-height: .9 !important;
  letter-spacing: -.055em !important;
  font-weight: 950 !important;
  color: #000 !important;
}

.tutor-course-details-title span {
  display: inline !important;
  color: #000 !important;
  font-size: inherit !important;
  line-height: inherit !important;
  letter-spacing: inherit !important;
}

/* GRID DESKTOP */

.tutor-course-details-page > .tutor-row {
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: flex-start !important;
  gap: 0 !important;
}

.tutor-course-details-page main.tutor-col-xl-8 {
  width: 66.666666% !important;
  flex: 0 0 66.666666% !important;
  padding-right: 32px !important;
}

.tutor-course-details-page aside.tutor-col-xl-4 {
  width: 33.333333% !important;
  flex: 0 0 33.333333% !important;
  padding-left: 0 !important;
}

/* IMAGE */

.tutor-course-thumbnail img {
  width: 100% !important;
  border-radius: 30px !important;
  box-shadow: 0 30px 90px rgba(0,0,0,.14) !important;
}

/* CARDS */

.tutor-course-details-content,
.tutor-card,
.tutor-course-details-widget {
  border-radius: 30px !important;
  background: rgba(255,255,255,.84) !important;
  border: 1px solid rgba(0,0,0,.06) !important;
  backdrop-filter: blur(16px);
  box-shadow: 0 22px 70px rgba(0,0,0,.08) !important;
}

.tutor-course-details-content {
  margin-top: 28px !important;
  padding: 32px !important;
}

.tutor-card-body,
.tutor-card-footer,
.tutor-course-details-widget {
  padding: 26px !important;
}

/* TEXT — NIE DOTYKA TYTUŁU */

.tutor-course-details-page h2,
.tutor-course-details-page h3,
.tutor-course-details-page h4,
.tutor-course-details-page h5,
.tutor-course-details-page .tutor-color-black {
  color: #101010 !important;
  font-weight: 950 !important;
  letter-spacing: -.04em !important;
}

.tutor-course-details-page p,
.tutor-course-details-page li,
.tutor-course-details-page .tutor-color-secondary,
.tutor-course-details-page .tutor-color-muted {
  color: #5e5e5e !important;
  line-height: 1.6 !important;
}

.tutor-course-details-page p span,
.tutor-course-details-page li span,
.tutor-course-details-page .tutor-color-secondary span,
.tutor-course-details-page .tutor-color-muted span {
  color: inherit !important;
  line-height: inherit !important;
}

.tutor-course-details-widget-title,
.tutor-course-content-title {
  font-size: clamp(28px, 2.6vw, 40px) !important;
  line-height: .98 !important;
}

/* SIDEBAR */

.tutor-single-course-sidebar {
  position: sticky !important;
  top: 100px !important;
}

.tutor-single-course-sidebar-more {
  display: grid !important;
  gap: 18px !important;
}

/* BUTTONS */

.tutor-btn {
  min-height: 52px !important;
  border-radius: 999px !important;
  font-weight: 950 !important;
}

.tutor-btn-primary {
  background: #ff7a16 !important;
  border-color: #ff7a16 !important;
  color: #fff !important;
  box-shadow: 0 16px 30px rgba(255,122,22,.25) !important;
}

.tutor-btn-primary:hover {
  background: #070707 !important;
  border-color: #070707 !important;
}

.tutor-btn-outline-primary {
  background: transparent !important;
  border-color: #ff7a16 !important;
  color: #ff7a16 !important;
}

/* PROGRESS */

.tutor-progress-bar {
  background: rgba(0,0,0,.08) !important;
}

.tutor-progress-value {
  background: #ff7a16 !important;
}

/* ACCORDION */

.tutor-accordion-item {
  margin-bottom: 12px !important;
  border-radius: 22px !important;
  overflow: hidden !important;
  background: rgba(255,255,255,.84) !important;
  border: 1px solid rgba(0,0,0,.06) !important;
}

.tutor-accordion-item-header {
  padding: 18px 22px !important;
  font-weight: 900 !important;
  background: rgba(255,255,255,.88) !important;
  color: #111 !important;
}

.tutor-accordion-item-header.is-active {
  color: #ff7a16 !important;
}

.tutor-course-content-list-item {
  padding: 14px 20px !important;
  border-top: 1px solid rgba(0,0,0,.05) !important;
}

.tutor-course-content-list-item-title a {
  color: #151515 !important;
  font-weight: 750 !important;
  text-decoration: none !important;
}

.tutor-course-content-list-item-title a:hover {
  color: #ff7a16 !important;
}

/* TABLET */

@media (max-width: 1199px) {
  .tutor-course-details-page {
    width: min(860px, calc(100% - 40px)) !important;
    padding: 70px 0 85px !important;
  }

  .tutor-course-details-page > .tutor-row {
    display: flex !important;
    flex-direction: column !important;
    flex-wrap: nowrap !important;
  }

  .tutor-course-details-page main.tutor-col-xl-8,
  .tutor-course-details-page aside.tutor-col-xl-4 {
    width: 100% !important;
    flex: 0 0 auto !important;
    padding: 0 !important;
  }

  .tutor-course-details-page main.tutor-col-xl-8 {
    display: contents !important;
  }

  .tutor-course-thumbnail {
    order: 1 !important;
  }

  .tutor-course-details-page aside.tutor-col-xl-4 {
    order: 2 !important;
    margin-top: 20px !important;
  }

  .tutor-course-details-tab {
    order: 3 !important;
    width: 100% !important;
    margin-top: 24px !important;
  }

  .tutor-single-course-sidebar {
    position: static !important;
    margin-top: 0 !important;
  }

  .tutor-single-course-sidebar-more {
    margin-top: 16px !important;
  }
}

/* MOBILE */

@media (max-width: 560px) {
  .tutor-course-details-page {
    width: min(420px, calc(100% - 34px)) !important;
    padding: 34px 0 64px !important;
  }

  .tutor-course-details-header {
    margin-bottom: 22px !important;
  }

  .tutor-course-details-header::before {
    font-size: 10px !important;
    padding: 8px 12px !important;
    margin-bottom: 14px !important;
    letter-spacing: .08em !important;
  }

  .tutor-course-details-title {
    max-width: 390px !important;
    font-size: clamp(38px, 11.5vw, 48px) !important;
    line-height: .9 !important;
    letter-spacing: -.055em !important;
    color: #000 !important;
  }

  .tutor-course-details-title span {
    display: inline !important;
    font-size: inherit !important;
    line-height: inherit !important;
    color: #000 !important;
  }

  .tutor-course-thumbnail img {
    border-radius: 22px !important;
    box-shadow: 0 20px 55px rgba(0,0,0,.13) !important;
  }

  .tutor-course-details-page aside.tutor-col-xl-4 {
    margin-top: 18px !important;
  }

  .tutor-course-details-tab {
    margin-top: 22px !important;
  }

  .tutor-course-details-content,
  .tutor-card,
  .tutor-course-details-widget {
    border-radius: 22px !important;
    box-shadow: 0 16px 42px rgba(0,0,0,.07) !important;
  }

  .tutor-course-details-content {
    padding: 20px !important;
    margin-top: 0 !important;
  }

  .tutor-card-body,
  .tutor-card-footer,
  .tutor-course-details-widget {
    padding: 20px !important;
  }

  .tutor-course-details-page h2,
  .tutor-course-details-page h3,
  .tutor-course-details-page h4 {
    letter-spacing: -.035em !important;
  }

  .tutor-course-details-widget-title,
  .tutor-course-content-title {
    font-size: 27px !important;
    line-height: 1 !important;
  }

  .tutor-course-details-page p,
  .tutor-course-details-page li,
  .tutor-course-details-page p span,
  .tutor-course-details-page li span {
    font-size: 14.5px !important;
    line-height: 1.55 !important;
  }

  .tutor-btn {
    min-height: 50px !important;
  }

  .tutor-single-course-sidebar-more {
    gap: 14px !important;
  }

  .tutor-accordion-item {
    border-radius: 18px !important;
  }

  .tutor-accordion-item-header {
    padding: 16px 18px !important;
    font-size: 16px !important;
  }

  .tutor-course-content-list-item {
    padding: 13px 16px !important;
  }
}

/* VERY SMALL */

@media (max-width: 380px) {
  .tutor-course-details-page {
    width: calc(100% - 28px) !important;
  }

  .tutor-course-details-title {
    font-size: 36px !important;
    max-width: 330px !important;
  }
}















/* =========================================================
   BOOST4AI — TUTOR LMS ACCOUNT SYSTEM / DASHBOARD / FORMS
   PEŁNY CSS DO PODMIANY
   ========================================================= */


/* =========================================================
   1. GLOBALNE TŁO STRON TUTORA
   ========================================================= */

body:has(.tutor-dashboard),
body:has(.tutor-login-wrap),
body:has(.tutor-login-form-wrapper),
body:has(.tutor-forgot-password-form),
body:has(.tutor-registration-wrap),
body:has(.tutor-registration-form),
body:has(.tutor-student-registration-form) {
  background:
    radial-gradient(circle at 14% 12%, rgba(255,122,22,.16), transparent 32%),
    radial-gradient(circle at 84% 18%, rgba(109,85,255,.14), transparent 32%),
    linear-gradient(180deg, #f7f4ef 0%, #ffffff 52%, #f4f1eb 100%) !important;
}

body:has(.tutor-dashboard) #content,
body:has(.tutor-login-wrap) #content,
body:has(.tutor-login-form-wrapper) #content,
body:has(.tutor-forgot-password-form) #content,
body:has(.tutor-registration-wrap) #content,
body:has(.tutor-registration-form) #content,
body:has(.tutor-student-registration-form) #content,
body:has(.tutor-dashboard) .site-content,
body:has(.tutor-login-wrap) .site-content,
body:has(.tutor-login-form-wrapper) .site-content,
body:has(.tutor-forgot-password-form) .site-content,
body:has(.tutor-registration-wrap) .site-content,
body:has(.tutor-registration-form) .site-content,
body:has(.tutor-student-registration-form) .site-content {
  background:
    radial-gradient(circle at 14% 12%, rgba(255,122,22,.16), transparent 32%),
    radial-gradient(circle at 84% 18%, rgba(109,85,255,.14), transparent 32%),
    linear-gradient(180deg, #f7f4ef 0%, #ffffff 52%, #f4f1eb 100%) !important;
}

body:has(.tutor-dashboard) .ast-container,
body:has(.tutor-login-wrap) .ast-container,
body:has(.tutor-login-form-wrapper) .ast-container,
body:has(.tutor-forgot-password-form) .ast-container,
body:has(.tutor-registration-wrap) .ast-container,
body:has(.tutor-registration-form) .ast-container,
body:has(.tutor-student-registration-form) .ast-container {
  max-width: 100% !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}


/* =========================================================
   2. GŁÓWNY WRAPPER
   ========================================================= */

.tutor-wrap,
.tutor-dashboard {
  background: transparent !important;
  padding: 112px 0 120px !important;
}

.tutor-container {
  width: min(1180px, calc(100% - 40px)) !important;
  max-width: none !important;
}


/* =========================================================
   3. RESET HASŁA
   ========================================================= */

body:has(.tutor-forgot-password-form) #content,
body:has(.tutor-forgot-password-form) .site-content {
  padding-top: 175px !important;
  padding-bottom: 120px !important;
}

.tutor-forgot-password-form {
  width: min(560px, calc(100% - 32px)) !important;
  max-width: 560px !important;
  margin: 0 auto 90px !important;
  padding: 38px !important;
  border-radius: 34px !important;
  background:
    radial-gradient(circle at 92% 8%, rgba(255,122,22,.18), transparent 34%),
    radial-gradient(circle at 8% 92%, rgba(109,85,255,.08), transparent 32%),
    linear-gradient(180deg, rgba(255,255,255,.96), rgba(255,255,255,.84)) !important;
  border: 1px solid rgba(255,255,255,.88) !important;
  box-shadow: 0 34px 100px rgba(0,0,0,.13) !important;
  backdrop-filter: blur(24px);
}

.tutor-forgot-password-form::before {
  content: "RESET HASŁA";
  display: inline-flex;
  margin-bottom: 22px;
  padding: 9px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255,122,22,.28);
  background: rgba(255,122,22,.08);
  color: #e85f00;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: .08em;
  text-transform: uppercase;
}


/* =========================================================
   4. LOGOWANIE
   ========================================================= */

.tutor-login-wrap,
.tutor-login-form-wrapper {
  width: min(560px, calc(100% - 32px)) !important;
  max-width: 560px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  border-radius: 34px !important;
}

.tutor-login-wrap,
.tutor-login-form-wrapper {
  padding: 38px !important;
  background:
    radial-gradient(circle at 92% 8%, rgba(255,122,22,.18), transparent 34%),
    radial-gradient(circle at 8% 92%, rgba(109,85,255,.08), transparent 32%),
    linear-gradient(180deg, rgba(255,255,255,.96), rgba(255,255,255,.84)) !important;
  border: 1px solid rgba(255,255,255,.88) !important;
  box-shadow: 0 34px 100px rgba(0,0,0,.13) !important;
  backdrop-filter: blur(24px);
}

.tutor-login-wrap .tutor-login-form-wrapper,
.tutor-login-form-wrapper .tutor-login-wrap {
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}

.tutor-login-wrap::before {
  content: "DOSTĘP KURSANTA";
  display: inline-flex;
  margin-bottom: 22px;
  padding: 9px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255,122,22,.28);
  background: rgba(255,122,22,.08);
  color: #e85f00;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.tutor-login-form-wrapper::before {
  display: none !important;
}


/* =========================================================
   5. REJESTRACJA — BEZ PODWÓJNEGO BOXA
   ========================================================= */

body:has(.tutor-registration-wrap) #content,
body:has(.tutor-registration-form) #content,
body:has(.tutor-student-registration-form) #content,
body:has(.tutor-registration-wrap) .site-content,
body:has(.tutor-registration-form) .site-content,
body:has(.tutor-student-registration-form) .site-content {
  padding-top: 135px !important;
  padding-bottom: 120px !important;
}

body:has(.tutor-registration-wrap) .entry-title,
body:has(.tutor-registration-form) .entry-title,
body:has(.tutor-student-registration-form) .entry-title,
body:has(.tutor-registration-wrap) h1.entry-title,
body:has(.tutor-registration-form) h1.entry-title,
body:has(.tutor-student-registration-form) h1.entry-title {
  display: none !important;
}

body:has(.tutor-registration-wrap) article,
body:has(.tutor-registration-form) article,
body:has(.tutor-student-registration-form) article,
body:has(.tutor-registration-wrap) .ast-article-single,
body:has(.tutor-registration-form) .ast-article-single,
body:has(.tutor-student-registration-form) .ast-article-single,
body:has(.tutor-registration-wrap) .entry-content,
body:has(.tutor-registration-form) .entry-content,
body:has(.tutor-student-registration-form) .entry-content,
body:has(.tutor-registration-wrap) .entry-content > div,
body:has(.tutor-registration-form) .entry-content > div,
body:has(.tutor-student-registration-form) .entry-content > div {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

.tutor-registration-wrap {
  width: min(560px, calc(100% - 32px)) !important;
  max-width: 560px !important;
  margin: 0 auto 90px !important;
  padding: 38px !important;
  border-radius: 34px !important;
  background:
    radial-gradient(circle at 92% 8%, rgba(255,122,22,.18), transparent 34%),
    radial-gradient(circle at 8% 92%, rgba(109,85,255,.08), transparent 32%),
    linear-gradient(180deg, rgba(255,255,255,.96), rgba(255,255,255,.84)) !important;
  border: 1px solid rgba(255,255,255,.88) !important;
  box-shadow: 0 34px 100px rgba(0,0,0,.13) !important;
  backdrop-filter: blur(24px);
}

.tutor-registration-wrap .tutor-registration-form,
.tutor-registration-wrap .tutor-student-registration-form {
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

.tutor-registration-wrap::before {
  content: "REJESTRACJA";
  display: inline-flex;
  margin-bottom: 22px;
  padding: 9px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255,122,22,.28);
  background: rgba(255,122,22,.08);
  color: #e85f00;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: .08em;
  text-transform: uppercase;
}


/* =========================================================
   6. FORMULARZE — TYPOGRAFIA, INPUTY, LINKI
   ========================================================= */

.tutor-login-title,
.tutor-login-wrap h1,
.tutor-login-wrap h2,
.tutor-login-wrap h3,
.tutor-login-form-wrapper h1,
.tutor-login-form-wrapper h2,
.tutor-login-form-wrapper h3,
.tutor-registration-wrap h1,
.tutor-registration-wrap h2,
.tutor-registration-wrap h3,
.tutor-registration-form h1,
.tutor-registration-form h2,
.tutor-registration-form h3,
.tutor-student-registration-form h1,
.tutor-student-registration-form h2,
.tutor-student-registration-form h3,
.tutor-forgot-password-form h1,
.tutor-forgot-password-form h2,
.tutor-forgot-password-form h3 {
  color: #151515 !important;
  font-size: 30px !important;
  line-height: 1.05 !important;
  font-weight: 950 !important;
  letter-spacing: -.035em !important;
  margin: 0 0 22px !important;
}

.tutor-login-wrap p,
.tutor-login-form-wrapper p,
.tutor-forgot-password-form p,
.tutor-registration-wrap p,
.tutor-registration-form p,
.tutor-student-registration-form p,
.tutor-forgot-password-form .tutor-color-muted,
.tutor-registration-wrap .tutor-color-muted,
.tutor-registration-form .tutor-color-muted,
.tutor-student-registration-form .tutor-color-muted {
  color: #555 !important;
  opacity: 1 !important;
  font-size: 15.5px !important;
  line-height: 1.55 !important;
}

.tutor-registration-wrap p,
.tutor-registration-form p,
.tutor-student-registration-form p {
  color: #151515 !important;
  opacity: 1 !important;
}

.tutor-login-wrap label,
.tutor-login-form-wrapper label,
.tutor-forgot-password-form label,
.tutor-registration-wrap label,
.tutor-registration-form label,
.tutor-student-registration-form label {
  color: #151515 !important;
  font-weight: 800 !important;
  font-size: 14px !important;
}

.tutor-login-wrap input,
.tutor-login-form-wrapper input,
.tutor-forgot-password-form input,
.tutor-registration-wrap input,
.tutor-registration-form input,
.tutor-student-registration-form input,
.tutor-form-control {
  width: 100% !important;
  min-height: 56px !important;
  border-radius: 18px !important;
  border: 1px solid rgba(0,0,0,.12) !important;
  background: rgba(255,255,255,.94) !important;
  color: #151515 !important;
  padding: 0 16px !important;
  font-size: 16px !important;
  box-shadow: 0 10px 26px rgba(0,0,0,.035) !important;
}

.tutor-login-wrap input:focus,
.tutor-login-form-wrapper input:focus,
.tutor-forgot-password-form input:focus,
.tutor-registration-wrap input:focus,
.tutor-registration-form input:focus,
.tutor-student-registration-form input:focus,
.tutor-form-control:focus {
  outline: none !important;
  border-color: #ff7a16 !important;
  box-shadow: 0 0 0 4px rgba(255,122,22,.14), 0 14px 30px rgba(0,0,0,.05) !important;
}

.tutor-login-wrap input[type="checkbox"],
.tutor-login-form-wrapper input[type="checkbox"],
.tutor-registration-wrap input[type="checkbox"],
.tutor-registration-form input[type="checkbox"],
.tutor-student-registration-form input[type="checkbox"] {
  appearance: auto !important;
  -webkit-appearance: auto !important;
  width: 18px !important;
  min-width: 18px !important;
  max-width: 18px !important;
  height: 18px !important;
  min-height: 18px !important;
  max-height: 18px !important;
  padding: 0 !important;
  margin: 0 10px 0 0 !important;
  border-radius: 5px !important;
  box-shadow: none !important;
  accent-color: #ff7a16 !important;
  vertical-align: middle !important;
}

.tutor-login-wrap .tutor-d-flex,
.tutor-login-form-wrapper .tutor-d-flex {
  align-items: center !important;
  gap: 12px !important;
}

.tutor-login-wrap a,
.tutor-login-form-wrapper a,
.tutor-forgot-password-form a,
.tutor-registration-wrap a,
.tutor-registration-form a,
.tutor-student-registration-form a {
  color: #e85f00 !important;
  font-weight: 900 !important;
  text-decoration: none !important;
}

.tutor-login-wrap a:hover,
.tutor-login-form-wrapper a:hover,
.tutor-forgot-password-form a:hover,
.tutor-registration-wrap a:hover,
.tutor-registration-form a:hover,
.tutor-student-registration-form a:hover {
  color: #070707 !important;
}

.tutor-login-wrap button,
.tutor-login-form-wrapper button,
.tutor-forgot-password-form button,
.tutor-registration-wrap button,
.tutor-registration-form button,
.tutor-student-registration-form button {
  min-height: 58px !important;
  border-radius: 999px !important;
  font-weight: 950 !important;
}

.tutor-login-wrap button[type="submit"],
.tutor-login-form-wrapper button[type="submit"],
.tutor-forgot-password-form button[type="submit"],
.tutor-registration-wrap button[type="submit"],
.tutor-registration-form button[type="submit"],
.tutor-student-registration-form button[type="submit"],
.tutor-btn-primary {
  background: #ff7a16 !important;
  border-color: #ff7a16 !important;
  color: #fff !important;
  box-shadow: 0 18px 38px rgba(255,122,22,.28) !important;
}

.tutor-login-wrap button[type="submit"]:hover,
.tutor-login-form-wrapper button[type="submit"]:hover,
.tutor-forgot-password-form button[type="submit"]:hover,
.tutor-registration-wrap button[type="submit"]:hover,
.tutor-registration-form button[type="submit"]:hover,
.tutor-student-registration-form button[type="submit"]:hover,
.tutor-btn-primary:hover {
  background: #070707 !important;
  border-color: #070707 !important;
}


/* =========================================================
   7. KOKPIT — HEADER TUTORA OFF
   ========================================================= */

.tutor-frontend-dashboard-header {
  display: none !important;
}


/* =========================================================
   8. KOKPIT — LAYOUT
   ========================================================= */

.tutor-frontend-dashboard-maincontent {
  align-items: flex-start !important;
}

.tutor-dashboard-left-menu,
.tutor-dashboard-left-menu *,
.tutor-frontend-dashboard-maincontent,
.tutor-frontend-dashboard-maincontent *,
.tutor-dashboard-content,
.tutor-dashboard-content-inner {
  border-right: 0 !important;
  border-left: 0 !important;
}

.tutor-dashboard-left-menu {
  padding-right: 28px !important;
  box-shadow: none !important;
}

.tutor-dashboard-left-menu::before,
.tutor-dashboard-left-menu::after,
.tutor-frontend-dashboard-maincontent::before,
.tutor-frontend-dashboard-maincontent::after,
.tutor-dashboard-content::before,
.tutor-dashboard-content::after,
.tutor-col-12::before,
.tutor-col-12::after,
.tutor-col-md-4::before,
.tutor-col-md-4::after,
.tutor-col-lg-3::before,
.tutor-col-lg-3::after,
.tutor-col-md-8::before,
.tutor-col-md-8::after,
.tutor-col-lg-9::before,
.tutor-col-lg-9::after,
.tutor-dashboard-permalinks::before,
.tutor-dashboard-permalinks::after,
ul.tutor-dashboard-permalinks::before,
ul.tutor-dashboard-permalinks::after {
  display: none !important;
  content: none !important;
  width: 0 !important;
  height: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.tutor-dashboard-left-menu,
.tutor-col-12,
.tutor-col-md-4,
.tutor-col-lg-3,
.tutor-col-md-8,
.tutor-col-lg-9 {
  border: 0 !important;
  border-color: transparent !important;
  box-shadow: none !important;
}


/* =========================================================
   9. MENU BOCZNE DESKTOP
   ========================================================= */

.tutor-dashboard-permalinks {
  padding: 18px !important;
  border-radius: 28px !important;
  background: rgba(255,255,255,.86) !important;
  border: 1px solid rgba(0,0,0,.055) !important;
  box-shadow: 0 24px 70px rgba(0,0,0,.08) !important;
  backdrop-filter: blur(18px);
}

.tutor-dashboard-menu-item-link {
  border-radius: 16px !important;
  padding: 14px 16px !important;
  color: #151515 !important;
  font-weight: 850 !important;
  border: 0 !important;
}

.tutor-dashboard-menu-item-link span {
  color: inherit !important;
}

.tutor-dashboard-menu-item.active .tutor-dashboard-menu-item-link,
.tutor-dashboard-menu-item-link:hover {
  background: #ff7a16 !important;
  color: #fff !important;
}

.tutor-dashboard-menu-divider {
  border: 0 !important;
  height: 14px !important;
  margin: 12px 0 !important;
  background: transparent !important;
}

.tutor-dashboard-menu-divider::before,
.tutor-dashboard-menu-divider::after {
  display: none !important;
  content: none !important;
}

.tutor-dashboard-menu-divider-header {
  color: #e85f00 !important;
  font-size: 11px !important;
  font-weight: 950 !important;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 8px 16px 6px !important;
  border: 0 !important;
  background: transparent !important;
}


/* =========================================================
   10. KOKPIT CONTENT
   ========================================================= */

.tutor-dashboard-title {
  color: #151515 !important;
  font-size: 42px !important;
  font-weight: 950 !important;
  letter-spacing: -.045em !important;
}

.tutor-card,
.tutor-course-progress-item {
  border-radius: 28px !important;
  background: rgba(255,255,255,.86) !important;
  border: 1px solid rgba(0,0,0,.055) !important;
  box-shadow: 0 22px 65px rgba(0,0,0,.08) !important;
  overflow: hidden;
}

.tutor-round-box {
  background: rgba(255,122,22,.12) !important;
  color: #ff7a16 !important;
}

.tutor-progress-value {
  background: #ff7a16 !important;
}

.tutor-progress-bar {
  background: rgba(0,0,0,.08) !important;
}


/* =========================================================
   11. KURS W TOKU — POPRAWKI
   ========================================================= */

/* zmiana napisu "Kurs W Toku" na "Kurs w toku" */
.tutor-frontend-dashboard-course-progress > .tutor-fs-5 {
  font-size: 0 !important;
}

.tutor-frontend-dashboard-course-progress > .tutor-fs-5::before {
  content: "Kurs w toku";
  font-size: 24px !important;
  color: #151515 !important;
  font-weight: 500 !important;
  letter-spacing: 0 !important;
}

/* obrazek ma wypełniać całą wysokość karty */
.tutor-course-progress-item .tutor-row {
  align-items: stretch !important;
}

.tutor-course-progress-item .tutor-col-lg-4 {
  display: flex !important;
}

.tutor-course-progress-item .tutor-ratio {
  width: 100% !important;
  height: 100% !important;
  min-height: 190px !important;
}

.tutor-course-progress-item img,
.tutor-course-progress-item .tutor-card-image-left {
  width: 100% !important;
  height: 100% !important;
  min-height: 190px !important;
  object-fit: cover !important;
  object-position: center !important;
}

/* ocena — zostają same gwiazdki, bez 0.00 */
.tutor-course-progress-item .tutor-ratings-count {
  display: none !important;
}

.tutor-course-progress-item .tutor-ratings-stars,
.tutor-course-progress-item .tutor-ratings-stars i,
.tutor-course-progress-item .tutor-ratings-stars span {
  color: #ff9a1f !important;
}


/* =========================================================
   12. TABELKI
   ========================================================= */

.tutor-table-responsive {
  border: 0 !important;
  box-shadow: none !important;
  overflow: visible !important;
}

.tutor-table {
  border-collapse: separate !important;
  border-spacing: 0 !important;
  border-radius: 24px !important;
  overflow: hidden !important;
  background: rgba(255,255,255,.86) !important;
  border: 1px solid rgba(0,0,0,.07) !important;
  box-shadow: 0 18px 50px rgba(0,0,0,.07) !important;
}

.tutor-table,
.tutor-table thead,
.tutor-table tbody,
.tutor-table tr,
.tutor-table th,
.tutor-table td {
  border-color: rgba(0,0,0,.07) !important;
}

.tutor-table th {
  background: rgba(255,122,22,.08) !important;
  color: #151515 !important;
  font-weight: 900 !important;
}

.tutor-table td,
.tutor-table a {
  color: #151515 !important;
}


/* =========================================================
   13. MOBILE
   ========================================================= */

@media (max-width: 768px) {
  .tutor-wrap,
  .tutor-dashboard {
    padding: 96px 0 95px !important;
  }

  .tutor-container {
    width: calc(100% - 28px) !important;
  }

  .tutor-login-wrap,
  .tutor-login-form-wrapper,
  .tutor-forgot-password-form,
  .tutor-registration-wrap,
  .tutor-registration-form,
  .tutor-student-registration-form {
    width: calc(100% - 28px) !important;
    max-width: 420px !important;
    padding: 24px !important;
    border-radius: 26px !important;
  }

  body:has(.tutor-registration-wrap) #content,
  body:has(.tutor-registration-form) #content,
  body:has(.tutor-student-registration-form) #content,
  body:has(.tutor-registration-wrap) .site-content,
  body:has(.tutor-registration-form) .site-content,
  body:has(.tutor-student-registration-form) .site-content {
    padding-top: 115px !important;
  }

  .tutor-login-title,
  .tutor-login-wrap h1,
  .tutor-login-wrap h2,
  .tutor-login-wrap h3,
  .tutor-login-form-wrapper h1,
  .tutor-login-form-wrapper h2,
  .tutor-login-form-wrapper h3,
  .tutor-registration-wrap h1,
  .tutor-registration-wrap h2,
  .tutor-registration-wrap h3,
  .tutor-registration-form h1,
  .tutor-registration-form h2,
  .tutor-registration-form h3,
  .tutor-student-registration-form h1,
  .tutor-student-registration-form h2,
  .tutor-student-registration-form h3,
  .tutor-forgot-password-form h1,
  .tutor-forgot-password-form h2,
  .tutor-forgot-password-form h3 {
    font-size: 25px !important;
  }

  /* MOBILE MENU — napis UX bez pomarańczowej strzałki */
  .tutor-dashboard-left-menu {
    position: relative !important;
    display: block !important;
    width: calc(100% - 36px) !important;
    padding: 0 !important;
    margin: 26px auto 38px !important;
    overflow: visible !important;
    border: 0 !important;
  }

  .tutor-dashboard-left-menu::before {
    content: "Menu kokpitu — przesuń w bok →";
    display: inline-flex !important;
    align-items: center !important;
    margin: 0 0 12px 4px !important;
    padding: 8px 13px !important;
    border-radius: 999px !important;
    background: rgba(255,122,22,.10) !important;
    border: 1px solid rgba(255,122,22,.22) !important;
    color: #e85f00 !important;
    font-size: 11px !important;
    line-height: 1 !important;
    font-weight: 950 !important;
    letter-spacing: .07em !important;
    text-transform: uppercase !important;
  }

  .tutor-dashboard-left-menu::after {
    display: none !important;
    content: none !important;
  }

  .tutor-dashboard-permalinks {
    width: 100% !important;
    max-width: 100% !important;
    display: flex !important;
    gap: 12px !important;
    padding: 14px 18px !important;
    border-radius: 30px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    white-space: nowrap !important;
    scroll-snap-type: x mandatory !important;
    background:
      linear-gradient(90deg, rgba(255,255,255,.98), rgba(255,255,255,.86)) !important;
    border: 1px solid rgba(0,0,0,.055) !important;
    box-shadow: 0 18px 50px rgba(0,0,0,.08) !important;
  }

  .tutor-dashboard-permalinks::after {
    display: none !important;
    content: none !important;
  }

  .tutor-dashboard-permalinks::-webkit-scrollbar {
    display: none !important;
    height: 0 !important;
  }

  .tutor-dashboard-menu-item {
    flex: 0 0 auto !important;
    scroll-snap-align: start !important;
  }

  .tutor-dashboard-menu-item-link {
    min-height: 54px !important;
    padding: 0 20px !important;
    border-radius: 999px !important;
    font-size: 14px !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    background: rgba(255,255,255,.86) !important;
    border: 1px solid rgba(0,0,0,.06) !important;
  }

  .tutor-dashboard-menu-item.active .tutor-dashboard-menu-item-link {
    background: #ff7a16 !important;
    color: #fff !important;
    border-color: #ff7a16 !important;
  }

  .tutor-dashboard-menu-divider,
  .tutor-dashboard-menu-divider-header {
    display: none !important;
  }

  .tutor-dashboard-title {
    font-size: 38px !important;
    margin-bottom: 24px !important;
  }

  .tutor-dashboard-content-inner .tutor-card {
    border-radius: 999px !important;
  }

  .tutor-dashboard-content-inner .tutor-card .tutor-d-flex {
    min-height: 72px !important;
  }

  .tutor-course-progress-item {
    border-radius: 26px !important;
  }

  .tutor-course-progress-item .tutor-ratio,
  .tutor-course-progress-item img,
  .tutor-course-progress-item .tutor-card-image-left {
    min-height: 210px !important;
  }

  #tutor-dashboard-footer-mobile {
    display: none !important;
  }
}

/* =========================================================
   BOOST4AI — HOTFIX REJESTRACJA + MOBILE MENU
   WKLEJ NA SAM DÓŁ CSS
   ========================================================= */


/* REJESTRACJA — łapanie formularza po polach, bo Tutor nie daje sensownych klas */

body:has(input[placeholder="Imię"]):has(input[placeholder="Nazwisko"]) #content,
body:has(input[placeholder="Imię"]):has(input[placeholder="Nazwisko"]) .site-content {
  background:
    radial-gradient(circle at 14% 12%, rgba(255,122,22,.16), transparent 32%),
    radial-gradient(circle at 84% 18%, rgba(109,85,255,.14), transparent 32%),
    linear-gradient(180deg, #f7f4ef 0%, #ffffff 52%, #f4f1eb 100%) !important;
  padding-top: 135px !important;
  padding-bottom: 120px !important;
}

body:has(input[placeholder="Imię"]):has(input[placeholder="Nazwisko"]) .ast-container {
  max-width: 100% !important;
  padding: 0 !important;
  display: flex !important;
  justify-content: center !important;
}

body:has(input[placeholder="Imię"]):has(input[placeholder="Nazwisko"]) .entry-title,
body:has(input[placeholder="Imię"]):has(input[placeholder="Nazwisko"]) h1.entry-title {
  display: none !important;
}

body:has(input[placeholder="Imię"]):has(input[placeholder="Nazwisko"]) article,
body:has(input[placeholder="Imię"]):has(input[placeholder="Nazwisko"]) .ast-article-single,
body:has(input[placeholder="Imię"]):has(input[placeholder="Nazwisko"]) .entry-content,
body:has(input[placeholder="Imię"]):has(input[placeholder="Nazwisko"]) .entry-content > div {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

body:has(input[placeholder="Imię"]):has(input[placeholder="Nazwisko"]) form {
  width: min(560px, calc(100% - 32px)) !important;
  max-width: 560px !important;
  margin: 0 auto 90px !important;
  padding: 38px !important;
  border-radius: 34px !important;
  background:
    radial-gradient(circle at 92% 8%, rgba(255,122,22,.18), transparent 34%),
    radial-gradient(circle at 8% 92%, rgba(109,85,255,.08), transparent 32%),
    linear-gradient(180deg, rgba(255,255,255,.96), rgba(255,255,255,.84)) !important;
  border: 1px solid rgba(255,255,255,.88) !important;
  box-shadow: 0 34px 100px rgba(0,0,0,.13) !important;
  backdrop-filter: blur(24px) !important;
}

body:has(input[placeholder="Imię"]):has(input[placeholder="Nazwisko"]) form::before {
  content: "REJESTRACJA";
  display: inline-flex;
  margin-bottom: 22px;
  padding: 9px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255,122,22,.28);
  background: rgba(255,122,22,.08);
  color: #e85f00;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: .08em;
  text-transform: uppercase;
}

body:has(input[placeholder="Imię"]):has(input[placeholder="Nazwisko"]) form label {
  color: #151515 !important;
  font-size: 14px !important;
  font-weight: 850 !important;
}

body:has(input[placeholder="Imię"]):has(input[placeholder="Nazwisko"]) form input {
  width: 100% !important;
  min-height: 56px !important;
  border-radius: 18px !important;
  border: 1px solid rgba(0,0,0,.12) !important;
  background: rgba(255,255,255,.94) !important;
  color: #151515 !important;
  padding: 0 16px !important;
  font-size: 16px !important;
  box-shadow: 0 10px 26px rgba(0,0,0,.035) !important;
}

body:has(input[placeholder="Imię"]):has(input[placeholder="Nazwisko"]) form input:focus {
  outline: none !important;
  border-color: #ff7a16 !important;
  box-shadow: 0 0 0 4px rgba(255,122,22,.14), 0 14px 30px rgba(0,0,0,.05) !important;
}

body:has(input[placeholder="Imię"]):has(input[placeholder="Nazwisko"]) form p,
body:has(input[placeholder="Imię"]):has(input[placeholder="Nazwisko"]) form div {
  color: #151515 !important;
  opacity: 1 !important;
}

body:has(input[placeholder="Imię"]):has(input[placeholder="Nazwisko"]) form a {
  color: #e85f00 !important;
  font-weight: 950 !important;
  text-decoration: none !important;
}

body:has(input[placeholder="Imię"]):has(input[placeholder="Nazwisko"]) form button,
body:has(input[placeholder="Imię"]):has(input[placeholder="Nazwisko"]) form button[type="submit"] {
  width: 100% !important;
  min-height: 58px !important;
  border-radius: 999px !important;
  background: #ff7a16 !important;
  border-color: #ff7a16 !important;
  color: #fff !important;
  font-weight: 950 !important;
  box-shadow: 0 18px 38px rgba(255,122,22,.28) !important;
}


/* KOKPIT — kurs w toku */

.tutor-frontend-dashboard-course-progress > .tutor-fs-5 {
  font-size: 0 !important;
}

.tutor-frontend-dashboard-course-progress > .tutor-fs-5::before {
  content: "Kurs w toku";
  font-size: 24px !important;
  color: #151515 !important;
  font-weight: 500 !important;
}

.tutor-course-progress-item .tutor-ratings-count {
  display: none !important;
}

.tutor-course-progress-item .tutor-ratio,
.tutor-course-progress-item .tutor-ratio img,
.tutor-course-progress-item .tutor-card-image-left {
  height: 100% !important;
  min-height: 190px !important;
  object-fit: cover !important;
  object-position: center !important;
}


/* MOBILE — menu jak wcześniej, bez pomarańczowej strzałki */

@media (max-width: 768px) {

  .tutor-dashboard-left-menu {
    position: relative !important;
    display: block !important;
    width: calc(100% - 28px) !important;
    margin: 26px auto 36px !important;
    padding: 0 !important;
    overflow: visible !important;
    border: 0 !important;
  }

  .tutor-dashboard-left-menu::before {
    content: "Menu kokpitu — przesuń w bok →" !important;
    display: inline-flex !important;
    align-items: center !important;
    margin: 0 0 12px 4px !important;
    padding: 8px 13px !important;
    border-radius: 999px !important;
    background: rgba(255,122,22,.10) !important;
    border: 1px solid rgba(255,122,22,.22) !important;
    color: #e85f00 !important;
    font-size: 11px !important;
    line-height: 1 !important;
    font-weight: 950 !important;
    letter-spacing: .07em !important;
    text-transform: uppercase !important;
  }

  .tutor-dashboard-left-menu::after,
  .tutor-dashboard-permalinks::after {
    display: none !important;
    content: none !important;
  }

  .tutor-dashboard-permalinks {
    width: 100% !important;
    display: flex !important;
    gap: 12px !important;
    padding: 10px 18px !important;
    border-radius: 30px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    white-space: nowrap !important;
    scroll-snap-type: x mandatory !important;
    background: linear-gradient(90deg, rgba(255,255,255,.98), rgba(255,255,255,.86)) !important;
    border: 1px solid rgba(0,0,0,.055) !important;
    box-shadow: 0 18px 50px rgba(0,0,0,.08) !important;
  }

  .tutor-dashboard-permalinks::-webkit-scrollbar {
    display: none !important;
    height: 0 !important;
  }

  .tutor-dashboard-menu-item {
    flex: 0 0 auto !important;
    scroll-snap-align: start !important;
  }

  .tutor-dashboard-menu-item-link {
    min-height: 54px !important;
    padding: 0 22px !important;
    border-radius: 999px !important;
    font-size: 14px !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    background: rgba(255,255,255,.86) !important;
    color: #151515 !important;
    border: 1px solid rgba(0,0,0,.06) !important;
  }

  .tutor-dashboard-menu-item-link:hover {
    background: rgba(255,255,255,.86) !important;
    color: #151515 !important;
  }

  .tutor-dashboard-menu-item.active .tutor-dashboard-menu-item-link,
  .tutor-dashboard-menu-item.active .tutor-dashboard-menu-item-link:hover {
    background: #ff7a16 !important;
    color: #fff !important;
    border-color: #ff7a16 !important;
  }

  .tutor-dashboard-menu-divider,
  .tutor-dashboard-menu-divider-header {
    display: none !important;
  }

  .tutor-course-progress-item .tutor-ratio,
  .tutor-course-progress-item .tutor-ratio img,
  .tutor-course-progress-item .tutor-card-image-left {
    min-height: 210px !important;
  }
}
/* =========================================================
   BOOST4AI — HOTFIX GWIAZDKI + MOBILE RESPONSIVE
   WKLEJ NA SAM DÓŁ CSS
   ========================================================= */


/* GWIAZDKI — pełne zamiast pustych */

.tutor-ratings-stars,
.tutor-ratings-stars span,
.tutor-ratings-stars i,
.tutor-icon-star-line {
  color: #ff9a1f !important;
}

.tutor-ratings-stars .tutor-icon-star-line::before,
.tutor-ratings-stars i.tutor-icon-star-line::before,
.tutor-ratings-stars span.tutor-icon-star-line::before {
  content: "\2605" !important;
  font-family: Arial, sans-serif !important;
  color: #ff9a1f !important;
  font-size: 16px !important;
  line-height: 1 !important;
}

.tutor-ratings-count {
  display: none !important;
}


/* DESKTOP — kurs w toku obraz bez białego paska */

.tutor-course-progress-item .tutor-ratio,
.tutor-course-progress-item .tutor-ratio img,
.tutor-course-progress-item .tutor-card-image-left {
  height: 100% !important;
  min-height: 190px !important;
  object-fit: cover !important;
  object-position: center !important;
}

.tutor-course-progress-item .tutor-row {
  align-items: stretch !important;
}


/* MOBILE RESPONSIVE — naprawa rozjazdów */

@media (max-width: 768px) {

  .tutor-container {
    width: calc(100% - 28px) !important;
    overflow: visible !important;
  }

  .tutor-dashboard-left-menu {
    width: calc(100% - 28px) !important;
    margin: 18px auto 32px !important;
    padding: 0 !important;
  }

  .tutor-dashboard-left-menu::before {
    content: "Menu kokpitu — przesuń w bok →" !important;
    display: inline-flex !important;
    width: auto !important;
    max-width: calc(100% - 12px) !important;
    margin: 0 0 10px 6px !important;
    padding: 8px 12px !important;
    border-radius: 999px !important;
    background: rgba(255,122,22,.10) !important;
    border: 1px solid rgba(255,122,22,.22) !important;
    color: #e85f00 !important;
    font-size: 10px !important;
    line-height: 1 !important;
    font-weight: 950 !important;
    letter-spacing: .06em !important;
    text-transform: uppercase !important;
    white-space: nowrap !important;
  }

  .tutor-dashboard-left-menu::after,
  .tutor-dashboard-permalinks::after {
    display: none !important;
    content: none !important;
  }

  .tutor-dashboard-permalinks {
    width: 100% !important;
    max-width: 100% !important;
    display: flex !important;
    gap: 10px !important;
    padding: 10px 18px !important;
    border-radius: 28px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    white-space: nowrap !important;
    scroll-snap-type: x mandatory !important;
    -webkit-overflow-scrolling: touch !important;
  }

  .tutor-dashboard-permalinks::-webkit-scrollbar {
    display: none !important;
  }

  .tutor-dashboard-menu-item {
    flex: 0 0 auto !important;
    scroll-snap-align: start !important;
  }

  .tutor-dashboard-menu-item-link {
    min-height: 50px !important;
    padding: 0 18px !important;
    border-radius: 999px !important;
    font-size: 13px !important;
    line-height: 1 !important;
  }

  .tutor-dashboard-menu-item:not(.active) .tutor-dashboard-menu-item-link {
    background: rgba(255,255,255,.86) !important;
    color: #151515 !important;
    border: 1px solid rgba(0,0,0,.06) !important;
  }

  .tutor-dashboard-menu-item.active .tutor-dashboard-menu-item-link {
    background: #ff7a16 !important;
    color: #fff !important;
    border-color: #ff7a16 !important;
  }

  .tutor-dashboard-title {
    font-size: 42px !important;
    line-height: .95 !important;
    margin: 0 0 24px !important;
  }

  .tutor-dashboard-content-inner .tutor-row {
    gap: 14px !important;
  }

  .tutor-dashboard-content-inner .tutor-card {
    border-radius: 999px !important;
    min-height: 86px !important;
  }

  .tutor-dashboard-content-inner .tutor-card .tutor-d-flex {
    min-height: 86px !important;
    padding: 12px 18px !important;
  }

  .tutor-round-box {
    width: 58px !important;
    height: 58px !important;
    min-width: 58px !important;
  }

  .tutor-course-progress-item {
    border-radius: 28px !important;
    overflow: hidden !important;
  }

  .tutor-course-progress-item .tutor-row {
    display: block !important;
  }

  .tutor-course-progress-item .tutor-col-lg-4 {
    width: 100% !important;
    display: block !important;
  }

  .tutor-course-progress-item .tutor-ratio,
  .tutor-course-progress-item .tutor-ratio img,
  .tutor-course-progress-item .tutor-card-image-left {
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    aspect-ratio: 16 / 9 !important;
    object-fit: cover !important;
    object-position: center !important;
  }

  .tutor-course-progress-item .tutor-card-body {
    padding: 22px !important;
  }

  .tutor-course-progress-item-title {
    font-size: 18px !important;
    line-height: 1.25 !important;
  }

  .tutor-table-responsive {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
  }

  .tutor-table {
    min-width: 620px !important;
  }
}
/* =========================================================
   BOOST4AI — MOBILE SETTINGS FIX + MENU PADDING
   ========================================================= */

@media (max-width: 768px) {

  .tutor-dashboard-permalinks {
    padding: 12px 22px !important;
    gap: 12px !important;
  }

  .tutor-dashboard-menu-item-link {
    margin: 0 !important;
    min-height: 54px !important;
    padding: 0 22px !important;
  }

  .tutor-dashboard-menu-item.active .tutor-dashboard-menu-item-link {
    margin-left: 0 !important;
  }

  .tutor-dashboard-content {
    width: 100% !important;
    overflow: visible !important;
  }

  .tutor-dashboard-content-inner {
    width: 100% !important;
    max-width: 100% !important;
    overflow: visible !important;
  }

  .tutor-dashboard-content-inner form,
  .tutor-dashboard-setting-profile,
  .tutor-dashboard-settings,
  .tutor-profile-photo-upload,
  .tutor-cover-photo-upload {
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important;
    border-radius: 28px !important;
  }

  .tutor-dashboard-content-inner input,
  .tutor-dashboard-content-inner textarea,
  .tutor-dashboard-content-inner select,
  .tutor-form-control {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .tutor-dashboard-content-inner textarea {
    min-height: 160px !important;
  }

  .tutor-dashboard-setting-social,
  .tutor-dashboard-setting-withdraw,
  .tutor-dashboard-setting-reset-password,
  .tutor-dashboard-setting-profile {
    padding: 0 !important;
  }

  .tutor-dashboard-content-inner .tutor-row,
  .tutor-dashboard-content-inner .tutor-col,
  .tutor-dashboard-content-inner [class*="tutor-col"] {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  .tutor-dashboard-content-inner .tutor-card,
  .tutor-dashboard-content-inner form {
    padding: 22px !important;
    border-radius: 28px !important;
    background: rgba(255,255,255,.86) !important;
    border: 1px solid rgba(0,0,0,.055) !important;
    box-shadow: 0 22px 65px rgba(0,0,0,.08) !important;
  }

  .tutor-dashboard-content-inner .tutor-btn,
  .tutor-dashboard-content-inner button {
    width: 100% !important;
    max-width: 100% !important;
  }

  .tutor-profile-photo-upload,
  .tutor-cover-photo-upload {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  .tutor-cover-photo-preview,
  .tutor-profile-photo-preview {
    max-width: 100% !important;
  }

  .tutor-dashboard-content-inner img {
    max-width: 100% !important;
    height: auto !important;
  }
}
/* =========================================================
   BOOST4AI — MOBILE MENU CLEAN FIX
   ukrywa Ustawienia + poprawia padding przewijanego menu
   ========================================================= */

@media (max-width: 768px) {

  /* ukryj Ustawienia w kokpicie */
  .tutor-dashboard-menu-settings {
    display: none !important;
  }

  /* cały biały pasek menu */
  .tutor-dashboard-left-menu {
    width: calc(100% - 28px) !important;
    margin: 18px auto 34px !important;
    padding: 0 !important;
  }

  .tutor-dashboard-permalinks {
    box-sizing: border-box !important;
    width: 100% !important;
    padding: 8px !important;
    gap: 8px !important;
    border-radius: 999px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    white-space: nowrap !important;
    scroll-padding-left: 8px !important;
  }

  .tutor-dashboard-menu-item {
    flex: 0 0 auto !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .tutor-dashboard-menu-item-link {
    box-sizing: border-box !important;
    min-height: 54px !important;
    padding: 0 20px !important;
    margin: 0 !important;
    border-radius: 999px !important;
  }

  .tutor-dashboard-menu-item.active .tutor-dashboard-menu-item-link {
    background: #ff7a16 !important;
    color: #fff !important;
  }

  .tutor-dashboard-menu-divider,
  .tutor-dashboard-menu-divider-header {
    display: none !important;
  }
}
/* BOOST4AI — MOBILE KOKPIT CLEAN UX */

@media (max-width: 768px) {

  /* wywal statystyki z mobile */
  .tutor-dashboard-content > .tutor-dashboard-title,
  .tutor-dashboard-content > .tutor-dashboard-content-inner:first-of-type {
    display: none !important;
  }

  /* kurs w toku ma być pierwszą sekcją */
  .tutor-frontend-dashboard-course-progress {
    margin-top: 0 !important;
  }

  .tutor-frontend-dashboard-course-progress > .tutor-fs-5 {
    font-size: 26px !important;
    font-weight: 850 !important;
    color: #151515 !important;
    margin-bottom: 18px !important;
    text-transform: none !important;
  }

  /* karta kursu */
  .tutor-course-progress-item {
    border-radius: 26px !important;
    overflow: hidden !important;
    margin-bottom: 34px !important;
  }

  .tutor-course-progress-item .tutor-row {
    display: block !important;
  }

  .tutor-course-progress-item [class*="tutor-col"] {
    width: 100% !important;
    max-width: 100% !important;
  }

  .tutor-course-progress-item img {
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .tutor-course-progress-item .tutor-card-body {
    padding: 22px !important;
  }

  /* usuń oceny/gwiazdki w karcie kursu */
  .tutor-course-progress-item .tutor-ratings {
    display: none !important;
  }

  .tutor-course-progress-item-title {
    font-size: 20px !important;
    line-height: 1.25 !important;
    font-weight: 800 !important;
    margin-bottom: 10px !important;
  }

  /* moje kursy */
  .popular-courses-heading-dashboard {
    margin-top: 8px !important;
    margin-bottom: 16px !important;
  }

  .popular-courses-heading-dashboard span {
    font-size: 22px !important;
    font-weight: 850 !important;
    color: #151515 !important;
  }

  .popular-courses-heading-dashboard a {
    display: none !important;
  }

  /* tabela: tylko nazwa kursu */
  .table-popular-courses th:nth-child(2),
  .table-popular-courses th:nth-child(3),
  .table-popular-courses td:nth-child(2),
  .table-popular-courses td:nth-child(3) {
    display: none !important;
  }

  .table-popular-courses {
    width: 100% !important;
    border-radius: 22px !important;
    overflow: hidden !important;
  }

  .table-popular-courses th,
  .table-popular-courses td {
    padding: 18px 16px !important;
    font-size: 15px !important;
  }

  .table-popular-courses th {
    font-weight: 900 !important;
  }

  .table-popular-courses td a {
    font-weight: 750 !important;
    color: #151515 !important;
    text-decoration: none !important;
  }
}







/* BOOST4AI — MOBILE KOKPIT FINAL CLEAN */

@media (max-width: 768px) {

  /* usuń wszystkie kafelki statystyk z kokpitu */
  .tutor-dashboard-content-inner > .tutor-row.tutor-gx-lg-4,
  .tutor-dashboard-content-inner > .tutor-row.tutor-gx-lg-4 > div,
  .tutor-dashboard-content-inner > .tutor-row.tutor-gx-lg-4 .tutor-card {
    display: none !important;
  }

  /* usuń nagłówek "Kokpit", skoro nie ma pod nim kafli */
  .tutor-dashboard-title {
    display: none !important;
  }

  /* kurs w toku jako pierwsza sekcja */
  .tutor-frontend-dashboard-course-progress {
    margin-top: 0 !important;
    padding-top: 0 !important;
  }

  .tutor-frontend-dashboard-course-progress > .tutor-fs-5 {
    font-size: 26px !important;
    font-weight: 900 !important;
    color: #151515 !important;
    margin: 0 0 18px !important;
    text-transform: none !important;
  }

  .tutor-frontend-dashboard-course-progress > .tutor-fs-5::first-letter {
    text-transform: uppercase !important;
  }

  /* karta kursu */
  .tutor-course-progress-item {
    border-radius: 26px !important;
    overflow: hidden !important;
    margin-bottom: 34px !important;
  }

  .tutor-course-progress-item .tutor-row {
    display: block !important;
  }

  .tutor-course-progress-item [class*="tutor-col"] {
    width: 100% !important;
    max-width: 100% !important;
    flex: none !important;
  }

  .tutor-course-progress-item .tutor-ratio {
    border-radius: 0 !important;
  }

  .tutor-course-progress-item img {
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .tutor-course-progress-item .tutor-card-body {
    padding: 22px !important;
  }

  /* usuń oceny/gwiazdki z karty kursu */
  .tutor-course-progress-item .tutor-ratings {
    display: none !important;
  }

  .tutor-course-progress-item-title {
    font-size: 20px !important;
    line-height: 1.25 !important;
    font-weight: 850 !important;
    margin-bottom: 10px !important;
  }

  /* moje kursy */
  .popular-courses-heading-dashboard {
    margin: 8px 0 16px !important;
  }

  .popular-courses-heading-dashboard span {
    font-size: 22px !important;
    font-weight: 900 !important;
    color: #151515 !important;
  }

  .popular-courses-heading-dashboard a {
    display: none !important;
  }

  /* tabela bez scrolla */
  .tutor-table-responsive {
    overflow: visible !important;
    width: 100% !important;
  }

  .table-popular-courses {
    width: 100% !important;
    min-width: 0 !important;
    table-layout: fixed !important;
  }

  .table-popular-courses th:nth-child(2),
  .table-popular-courses th:nth-child(3),
  .table-popular-courses td:nth-child(2),
  .table-popular-courses td:nth-child(3) {
    display: none !important;
    width: 0 !important;
    max-width: 0 !important;
    padding: 0 !important;
    border: 0 !important;
  }

  .table-popular-courses th:first-child,
  .table-popular-courses td:first-child {
    width: 100% !important;
    max-width: 100% !important;
    display: table-cell !important;
  }

  .table-popular-courses th,
  .table-popular-courses td {
    padding: 18px 16px !important;
    font-size: 15px !important;
    white-space: normal !important;
    word-break: break-word !important;
  }

  .table-popular-courses td a {
    color: #151515 !important;
    font-weight: 800 !important;
    text-decoration: none !important;
  }
}

/* BOOST4AI — FIX mobile kurs w toku + login */

@media (max-width: 768px) {

  /* usuń podwójny/rozjechany nagłówek Kurs w toku */
  .tutor-frontend-dashboard-course-progress > .tutor-fs-5 {
    font-size: 0 !important;
    margin: 0 0 18px !important;
  }

  .tutor-frontend-dashboard-course-progress > .tutor-fs-5::before {
    content: "Kurs w toku";
    display: block;
    font-size: 34px !important;
    line-height: 1.05 !important;
    font-weight: 950 !important;
    letter-spacing: -.035em !important;
    color: #151515 !important;
  }

  /* karta kursu — lepszy układ tekstów */
  .tutor-course-progress-item .tutor-card-body {
    padding: 26px 22px 28px !important;
  }

  .tutor-course-progress-item .tutor-d-flex.tutor-fs-7 {
    display: block !important;
    margin-bottom: 22px !important;
    font-size: 15px !important;
    line-height: 1.45 !important;
  }

  .tutor-course-progress-item .tutor-d-flex.tutor-fs-7 span {
    display: inline !important;
    white-space: normal !important;
  }

  .tutor-course-progress-item .tutor-row.tutor-align-center {
    display: block !important;
  }

  .tutor-course-progress-item .tutor-row.tutor-align-center .tutor-col,
  .tutor-course-progress-item .tutor-row.tutor-align-center .tutor-col-auto {
    width: 100% !important;
    max-width: 100% !important;
    display: block !important;
  }

  .tutor-course-progress-item .tutor-progress-bar {
    width: 100% !important;
    margin: 0 0 10px !important;
  }

  .tutor-course-progress-item .progress-percentage {
    display: block !important;
    text-align: left !important;
    white-space: normal !important;
    font-size: 15px !important;
    color: #777 !important;
  }

  .tutor-course-progress-item .progress-percentage .tutor-fw-medium {
    color: #151515 !important;
  }

  /* login wylogowanego na mobile — wycentrowanie */
  body:has(.tutor-login-wrap) .tutor-container,
  body:has(.tutor-login-form-wrapper) .tutor-container,
  body:has(.tutor-login-wrap) .ast-container,
  body:has(.tutor-login-form-wrapper) .ast-container {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 14px !important;
    padding-right: 14px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  body:has(.tutor-login-wrap) .tutor-login-wrap,
  body:has(.tutor-login-form-wrapper) .tutor-login-form-wrapper {
    width: 100% !important;
    max-width: 420px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    transform: none !important;
  }
}

/* KOKPIT — desktop niżej względem headera */
@media (min-width: 981px) {
  body:has(.tutor-dashboard) .tutor-wrap,
  body:has(.tutor-dashboard) .tutor-dashboard {
    padding-top: 145px !important;
  }

  body:has(.tutor-dashboard) #content,
  body:has(.tutor-dashboard) .site-content {
    padding-top: 0 !important;
  }
}









































/* =========================================================
   BOOST4AI — FINAL CLEAN (TWOJE UI + NAPRAWA BUGÓW)
   ========================================================= */

:root {
  --b4ai-brand: #ff7a16;
  --b4ai-brand-soft: rgba(255,122,22,0.08);
  --b4ai-brand-border: rgba(255,122,22,0.25);

  --b4ai-black: #111827;
  --b4ai-bg: #f9fafb;
  --b4ai-border: #e5e7eb;
  --b4ai-gray-soft: #f3f4f6;
  --b4ai-success: #18a957;

  /* PLAYER = ZERO BRAND */
  --plyr-color-main: #ffffff !important;
}

/* GLOBAL */
body.single-lesson {
  background: var(--b4ai-bg) !important;
  color: var(--b4ai-black) !important;
}

/* HEADER */
.tutor-course-topic-single-header {
  background: #fff !important;
  border-bottom: 1px solid var(--b4ai-border) !important;
  min-height: 70px !important;
  padding: 0 24px !important;
}

.tutor-course-topic-single-header-title {
  font-weight: 800 !important;
  font-size: 15px !important;
}

/* IKONY */
.tutor-iconic-btn,
.tutor-course-topics-sidebar-toggler {
  background: var(--b4ai-gray-soft) !important;
  border: 1px solid var(--b4ai-border) !important;
  border-radius: 8px !important;
  width: 36px !important;
  height: 36px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

/* SIDEBAR */
.tutor-course-single-sidebar-wrapper {
  background: #fff !important;
  border-right: 1px solid var(--b4ai-border) !important;
}

/* MODUŁ */
.tutor-accordion-item-header {
  margin: 0 16px 8px !important;
  border-radius: 8px !important;
  border: 1px solid var(--b4ai-gray-soft) !important;
  padding: 14px 60px 14px 16px !important;
}

/* AKTYWNY MODUŁ (POMARAŃCZ — ZOSTAJE) */
.tutor-accordion-item-header.is-active {
  background: var(--b4ai-brand-soft) !important;
  border-color: var(--b4ai-brand-border) !important;
}

/* STRZAŁKA */
.tutor-accordion-item-header::after {
  right: 16px !important;
  transform: translateY(-50%) rotate(0deg) !important;
  transition: transform .2s ease !important;
  color: var(--b4ai-brand) !important;
}

.tutor-accordion-item-header.is-active::after {
  transform: translateY(-50%) rotate(90deg) !important;
}

/* LEKCJA */
.tutor-course-topic-item a {
  border-radius: 8px !important;
  padding: 10px 16px !important;
}

/* AKTYWNA LEKCJA (CZARNA — ZOSTAJE) */
.tutor-course-topic-item.is-active a {
  background: var(--b4ai-black) !important;
  color: #fff !important;
}

/* CHECKBOX (ZIELONY — ZOSTAJE) */
.tutor-form-check-circle:checked {
  background: var(--b4ai-success) !important;
  border-color: var(--b4ai-success) !important;
}

/* PLAYER */
.tutor-video-player-wrapper {
  max-width: 1180px !important;
  margin: 40px auto !important;
  border-radius: 20px !important;
  overflow: hidden !important;
  background: #000 !important;
}

/* USUWAMY POMARAŃCZ */
.plyr {
  --plyr-color-main: #ffffff !important;
}

/* PLAY BUTTON */
.plyr__control--overlaid {
  background: rgba(255,255,255,0.15) !important;
  border: 1px solid rgba(255,255,255,0.3) !important;
  border-radius: 14px !important;
  width: 70px !important;
  height: 70px !important;
}

/* KONTROLKI */
.plyr__controls {
  background: rgba(17,24,39,0.8) !important;
  border-radius: 999px !important;
}

/* VOLUME PIONOWY */
@media (min-width: 768px) {
  .plyr__volume input {
    transform: rotate(-90deg) !important;
  }
}

/* TABS */
.tutor-course-spotlight-wrapper {
  max-width: 1180px !important;
  margin: 0 auto 40px !important;
  background: #fff !important;
  border-radius: 20px !important;
  border: 1px solid var(--b4ai-border) !important;
}

/* DOLNY PASEK */
.tutor-spotlight-mobile-progress-complete {
  max-width: 1180px !important;
  margin: 0 auto 30px !important;
  background: #fff !important;
  border-radius: 20px !important;
  padding: 20px !important;
}

/* TEKST PROGRESU */
.tutor-spotlight-mobile-progress-left .tutor-fs-7 {
  font-size: 14px !important;
}

.tutor-spotlight-mobile-progress-left .tutor-fs-7::before {
  content: "Ukończono: ";
  font-weight: 700;
}

.tutor-spotlight-mobile-progress-left .tutor-fs-7 span {
  display: none !important;
}

/* RESPONSYWNOŚĆ */
@media (max-width: 768px) {
  .tutor-video-player-wrapper {
    margin: 15px !important;
  }

  .tutor-course-spotlight-wrapper,
  .tutor-spotlight-mobile-progress-complete {
    margin: 15px !important;
  }
}
/* =========================================================
   BOOST4AI — PATCH 8: FIXY UI PO TESTACH
   ========================================================= */

/* 1. SIDEBAR HEADER — “ZAWARTOŚĆ KURSU” */
.tutor-course-single-sidebar-title {
  height: 72px !important;
  padding: 0 18px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  border-bottom: 1px solid var(--b4ai-border) !important;
  background: #fff !important;
}

.tutor-course-single-sidebar-title span:first-child {
  font-size: 12px !important;
  font-weight: 900 !important;
  letter-spacing: .08em !important;
  text-transform: uppercase !important;
  color: #111827 !important;
}

/* 2. IKONY BELKI / X / WSTECZ / CHOWANIE PANELU — ZAWSZE CZARNE */
.tutor-course-topic-single-header .tutor-iconic-btn,
.tutor-course-topics-sidebar-toggler,
.tutor-course-single-sidebar-title .tutor-iconic-btn {
  background: #f3f4f6 !important;
  border: 1px solid #e5e7eb !important;
  color: #111827 !important;
  opacity: 1 !important;
}

.tutor-course-topic-single-header .tutor-iconic-btn *,
.tutor-course-topic-single-header .tutor-iconic-btn span::before,
.tutor-course-topic-single-header .tutor-iconic-btn i::before,
.tutor-course-topics-sidebar-toggler *,
.tutor-course-topics-sidebar-toggler span::before,
.tutor-course-single-sidebar-title .tutor-iconic-btn *,
.tutor-course-single-sidebar-title .tutor-iconic-btn span::before,
.tutor-icon-times::before,
.tutor-icon-angle-left::before,
.tutor-icon-previous::before,
.tutor-icon-left::before {
  color: #111827 !important;
  opacity: 1 !important;
  visibility: visible !important;
}

/* 3. MODUŁ — POMARAŃCZ TYLKO AKTYWNY / HOVER */
.tutor-accordion-item-header {
  background: #fff !important;
  border-color: #f3f4f6 !important;
}

.tutor-accordion-item-header:hover {
  background: rgba(255,122,22,.045) !important;
  border-color: rgba(255,122,22,.22) !important;
}

.tutor-accordion-item-header.is-active {
  background: rgba(255,122,22,.07) !important;
  border-color: rgba(255,122,22,.28) !important;
}

/* 4. STRZAŁKA MODUŁU */
.tutor-accordion-item-header::after {
  color: #ff7a16 !important;
  transition: transform .2s ease !important;
  transform: translateY(-50%) rotate(0deg) !important;
}

.tutor-accordion-item-header.is-active::after,
.tutor-course-topic:has(.tutor-accordion-item-body:not(.tutor-display-none)) .tutor-accordion-item-header::after {
  transform: translateY(-50%) rotate(90deg) !important;
}

/* 5. LEKCJE — SZEROKOŚĆ JAK MODUŁ, NIE SZERZEJ */
.tutor-course-topic-item {
  margin-left: 16px !important;
  margin-right: 16px !important;
  width: auto !important;
}

.tutor-course-topic-item a {
  width: 100% !important;
  box-sizing: border-box !important;
  border-radius: 8px !important;
  color: #111827 !important;
}

.tutor-course-topic-item a:hover {
  background: rgba(255,122,22,.07) !important;
  color: #111827 !important;
}

.tutor-course-topic-item a:hover * {
  color: #111827 !important;
}

/* 6. AKTYWNA LEKCJA — CZARNA, TEKST BIAŁY, NIE POMARAŃCZOWY */
.tutor-course-topic-item.is-active a {
  background: #111827 !important;
  color: #fff !important;
}

.tutor-course-topic-item.is-active a *,
.tutor-course-topic-item.is-active .tutor-course-topic-item-title,
.tutor-course-topic-item.is-active .tutor-course-topic-item-duration,
.tutor-course-topic-item.is-active .tutor-course-topic-item-icon {
  color: #fff !important;
}

/* 7. CHECKBOX — ZIELONY + PTASZEK */
.tutor-form-check-circle,
input[type="checkbox"].tutor-form-check-circle {
  position: relative !important;
  border: 1.5px solid #d1d5db !important;
  background: #fff !important;
}

.tutor-form-check-circle:checked,
input[type="checkbox"].tutor-form-check-circle:checked {
  background-color: #18a957 !important;
  border-color: #18a957 !important;
  background-image: none !important;
}

.tutor-form-check-circle:checked::after,
input[type="checkbox"].tutor-form-check-circle:checked::after {
  content: "✓" !important;
  position: absolute !important;
  inset: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: #fff !important;
  font-size: 11px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
}

/* 8. TAKE A NOTE / NOTATKI — WON */
#tutor-lesson-nav-take-note-btn,
#tutor-take-lesson-note-btn,
.tutor-lesson-note-form-wrapper,
.tutor-lesson-note-wrapper,
.tutor-course-spotlight-nav li:has([href*="note"]),
.tutor-course-spotlight-nav li:has([href*="notes"]),
.tutor-course-spotlight-nav li:has([data-tutor-nav-target*="note"]),
.tutor-course-spotlight-nav .tutor-nav-link:has(.tutor-icon-note),
.tutor-course-spotlight-nav button:has(.tutor-icon-note),
button[id*="note"],
a[href*="notes"] {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* 9. NAZWA KURSU / TYTUŁ GÓRNY — JEŚLI TUTOR GO RENDERUJE */
.tutor-course-topic-single-header-title,
.tutor-single-page-top-bar .tutor-course-topic-single-header-title {
  display: block !important;
  color: #111827 !important;
  font-weight: 900 !important;
  font-size: 15px !important;
}

/* 10. OZNACZ JAKO UKOŃCZONE — JEŚLI ELEMENT ISTNIEJE W HTML */
.tutor-topbar-complete-btn,
.tutor-topbar-complete-btn form,
.tutor-topbar-complete-btn button,
.tutor-spotlight-mobile-progress-right,
.tutor-spotlight-mobile-progress-right form,
.tutor-spotlight-mobile-progress-right button {
  display: flex !important;
  align-items: center !important;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}

button.tutor-topbar-mark-btn,
button[name="complete_lesson_btn"],
.tutor-topbar-complete-btn button[type="submit"],
.tutor-spotlight-mobile-progress-right button[type="submit"] {
  background: #111827 !important;
  color: #fff !important;
  border: 1px solid #111827 !important;
  border-radius: 10px !important;
  padding: 10px 22px !important;
  font-weight: 800 !important;
  font-size: 13px !important;
  box-shadow: none !important;
}

button.tutor-topbar-mark-btn:hover,
button[name="complete_lesson_btn"]:hover {
  background: #ff7a16 !important;
  border-color: #ff7a16 !important;
}

/* 11. PLAYER — MNIEJ TRAGICZNY, CZYSTY, KANCIATY */
.tutor-video-player-wrapper {
  width: min(100% - 48px, 1180px) !important;
  max-width: 1180px !important;
  margin: 34px auto 28px !important;
  border-radius: 18px !important;
  background: #050505 !important;
  border: 1px solid rgba(17,24,39,.14) !important;
  box-shadow: 0 18px 48px rgba(15,23,42,.18) !important;
  overflow: hidden !important;
}

.plyr,
.plyr__video-wrapper {
  border-radius: 18px !important;
  background: #050505 !important;
}

.plyr {
  --plyr-color-main: #ffffff !important;
  --plyr-video-control-color: #ffffff !important;
  --plyr-video-control-color-hover: #ffffff !important;
  --plyr-video-control-background-hover: rgba(255,255,255,.14) !important;
}

.plyr input[type="range"] {
  color: #ffffff !important;
}

.plyr__control--overlaid {
  width: 72px !important;
  height: 72px !important;
  border-radius: 16px !important;
  background: rgba(255,255,255,.13) !important;
  border: 1px solid rgba(255,255,255,.28) !important;
  color: #fff !important;
  backdrop-filter: blur(14px) !important;
  -webkit-backdrop-filter: blur(14px) !important;
  box-shadow: 0 20px 45px rgba(0,0,0,.25) !important;
  transform: translate(-50%, -50%) !important;
}

.plyr__control--overlaid:hover {
  background: rgba(255,255,255,.22) !important;
  transform: translate(-50%, -50%) !important;
}

.plyr__controls {
  left: 18px !important;
  right: 18px !important;
  bottom: 18px !important;
  padding: 10px 14px !important;
  border-radius: 14px !important;
  background: rgba(17,24,39,.82) !important;
  border: 1px solid rgba(255,255,255,.12) !important;
  backdrop-filter: blur(14px) !important;
  -webkit-backdrop-filter: blur(14px) !important;
}

/* 12. DOLNY PASEK POSTĘPU — ZIELONY */
.tutor-spotlight-mobile-progress-complete {
  width: min(100% - 48px, 1180px) !important;
  max-width: 1180px !important;
  margin: 0 auto 30px !important;
  background: #fff !important;
  border: 1px solid #e5e7eb !important;
  border-radius: 20px !important;
  padding: 20px 24px !important;
  box-shadow: 0 6px 24px rgba(15,23,42,.04) !important;
}

.tutor-spotlight-mobile-progress-left .tutor-fs-7 {
  font-size: 14px !important;
  font-weight: 800 !important;
  color: #111827 !important;
}

.tutor-spotlight-mobile-progress-left .tutor-fs-7::before {
  content: "Ukończono: " !important;
  font-weight: 900 !important;
  margin-right: 4px !important;
}

.tutor-spotlight-mobile-progress-left .tutor-fs-7 span {
  display: none !important;
}

.tutor-progress-bar,
.tutor-spotlight-mobile-progress-left .tutor-progress-bar {
  height: 8px !important;
  border-radius: 999px !important;
  background: #e5e7eb !important;
  overflow: hidden !important;
}

.tutor-progress-value,
.tutor-spotlight-mobile-progress-left .tutor-progress-value {
  background: #18a957 !important;
  border-radius: 999px !important;
}

/* 13. DÓŁ: POPRZEDNI / DALEJ — PASUJE DO RESZTY */
.tutor-course-topic-single-footer {
  background: transparent !important;
  border-top: none !important;
  padding: 0 20px 60px !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 14px !important;
}

.tutor-single-course-content-prev,
.tutor-single-course-content-next {
  margin: 0 !important;
}

.tutor-single-course-content-prev a.tutor-btn,
.tutor-single-course-content-next a.tutor-btn {
  border-radius: 999px !important;
  padding: 12px 30px !important;
  font-size: 14px !important;
  font-weight: 800 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  box-shadow: none !important;
  transform: none !important;
}

.tutor-single-course-content-prev a.tutor-btn {
  background: #fff !important;
  color: #111827 !important;
  border: 1px solid #d1d5db !important;
}

.tutor-single-course-content-prev a.tutor-btn:hover {
  background: #f3f4f6 !important;
  color: #111827 !important;
}

.tutor-single-course-content-next a.tutor-btn {
  background: #111827 !important;
  color: #fff !important;
  border: 1px solid #111827 !important;
}

.tutor-single-course-content-next a.tutor-btn:hover {
  background: #ff7a16 !important;
  border-color: #ff7a16 !important;
  color: #fff !important;
}

/* 14. MOBILE */
@media (max-width: 768px) {
  .tutor-video-player-wrapper,
  .tutor-course-spotlight-wrapper,
  .tutor-spotlight-mobile-progress-complete {
    width: calc(100% - 24px) !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .tutor-video-player-wrapper {
    margin-top: 14px !important;
    border-radius: 14px !important;
  }

  .plyr,
  .plyr__video-wrapper {
    border-radius: 14px !important;
  }

  .plyr__controls {
    left: 10px !important;
    right: 10px !important;
    bottom: 10px !important;
    border-radius: 12px !important;
    padding: 8px 10px !important;
  }

  .plyr__time,
  .plyr__menu {
    display: none !important;
  }

  .tutor-course-topic-single-footer {
    padding: 10px 14px 34px !important;
    gap: 10px !important;
  }

  .tutor-single-course-content-prev,
  .tutor-single-course-content-next {
    flex: 1 1 0 !important;
  }

  .tutor-single-course-content-prev a.tutor-btn,
  .tutor-single-course-content-next a.tutor-btn {
    width: 100% !important;
    padding: 12px 10px !important;
    font-size: 12px !important;
  }
}
/* =========================================================
   BOOST4AI — PATCH 9: PLAYER + CONTENT + NAV FIXES
   ========================================================= */

/* 1. Nagłówki w opisie lekcji — mają być widoczne */
.tutor-course-spotlight-tab,
.tutor-course-spotlight-tab * {
  color: #111827 !important;
}

.tutor-course-spotlight-tab h1,
.tutor-course-spotlight-tab h2,
.tutor-course-spotlight-tab h3,
.tutor-course-spotlight-tab h4,
.tutor-course-spotlight-tab h5,
.tutor-course-spotlight-tab h6,
.tutor-course-spotlight-tab strong {
  color: #111827 !important;
  font-weight: 900 !important;
}

/* 2. Usunięcie linii oddzielającej pod tabami */
.tutor-course-spotlight-nav {
  border-bottom: none !important;
}

/* 3. Ładne przyciski: Przegląd / Pliki ćwiczeń */
.tutor-course-spotlight-nav {
  padding: 22px 24px 6px !important;
  gap: 10px !important;
}

.tutor-course-spotlight-nav .tutor-nav-link {
  background: #f3f4f6 !important;
  color: #111827 !important;
  border: 1px solid #e5e7eb !important;
  border-radius: 999px !important;
  padding: 10px 22px !important;
  font-size: 13px !important;
  font-weight: 900 !important;
  box-shadow: none !important;
}

.tutor-course-spotlight-nav .tutor-nav-link:hover {
  background: rgba(255,122,22,.08) !important;
  border-color: rgba(255,122,22,.28) !important;
  color: #111827 !important;
}

.tutor-course-spotlight-nav .tutor-nav-link.is-active {
  background: #111827 !important;
  border-color: #111827 !important;
  color: #fff !important;
}

/* 4. Wywalenie notatek */
#tutor-lesson-nav-take-note-btn,
#tutor-take-lesson-note-btn,
.tutor-lesson-note-form-wrapper,
.tutor-lesson-note-wrapper,
.tutor-course-spotlight-nav li:has([href*="note"]),
.tutor-course-spotlight-nav li:has([href*="notes"]),
.tutor-course-spotlight-nav li:has([data-tutor-nav-target*="note"]),
.tutor-course-spotlight-nav .tutor-nav-link:has(.tutor-icon-note),
button[id*="note"],
a[href*="note"] {
  display: none !important;
}

/* 5. Header — równe czarne ikony i odstęp */
.tutor-course-topic-single-header {
  gap: 10px !important;
}

.tutor-course-topics-sidebar-toggler,
.tutor-course-topic-single-header .tutor-iconic-btn {
  margin-left: 0 !important;
  margin-right: 8px !important;
  width: 38px !important;
  height: 38px !important;
  min-width: 38px !important;
  border-radius: 10px !important;
  background: #f3f4f6 !important;
  border: 1px solid #e5e7eb !important;
  color: #111827 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.tutor-course-topic-single-header .tutor-iconic-btn:last-child {
  margin-left: 10px !important;
  margin-right: 0 !important;
}

.tutor-course-topics-sidebar-toggler *,
.tutor-course-topic-single-header .tutor-iconic-btn *,
.tutor-course-topics-sidebar-toggler span::before,
.tutor-course-topic-single-header .tutor-iconic-btn span::before,
.tutor-course-topic-single-header .tutor-iconic-btn i::before {
  color: #111827 !important;
  opacity: 1 !important;
  visibility: visible !important;
  font-weight: 900 !important;
}

/* 6. Przycisk ukończenia — jeśli Tutor go wyrenderował */
.tutor-topbar-complete-btn,
.tutor-topbar-complete-btn form,
.tutor-topbar-complete-btn button,
.tutor-spotlight-mobile-progress-right,
.tutor-spotlight-mobile-progress-right form,
.tutor-spotlight-mobile-progress-right button {
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  align-items: center !important;
}

button.tutor-topbar-mark-btn,
button[name="complete_lesson_btn"],
.tutor-topbar-complete-btn button[type="submit"],
.tutor-spotlight-mobile-progress-right button[type="submit"] {
  background: #111827 !important;
  color: #fff !important;
  border: 1px solid #111827 !important;
  border-radius: 10px !important;
  padding: 10px 22px !important;
  font-size: 13px !important;
  font-weight: 900 !important;
  box-shadow: none !important;
}

button.tutor-topbar-mark-btn:hover,
button[name="complete_lesson_btn"]:hover {
  background: #ff7a16 !important;
  border-color: #ff7a16 !important;
}

/* 7. Player wrapper */
.tutor-video-player-wrapper {
  border-radius: 22px !important;
  background: #050505 !important;
  box-shadow: 0 22px 60px rgba(15,23,42,.18) !important;
}

.plyr,
.plyr__video-wrapper {
  border-radius: 22px !important;
  background: #050505 !important;
}

/* 8. Centralny play — okrągły i ikona idealnie na środku */
.plyr__control--overlaid {
  width: 76px !important;
  height: 76px !important;
  border-radius: 999px !important;
  background: rgba(255,255,255,.16) !important;
  border: 1px solid rgba(255,255,255,.32) !important;
  backdrop-filter: blur(14px) !important;
  -webkit-backdrop-filter: blur(14px) !important;
  color: #fff !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
  transform: translate(-50%, -50%) !important;
}

.plyr__control--overlaid svg {
  width: 27px !important;
  height: 27px !important;
  margin: 0 !important;
  position: relative !important;
  left: 2px !important;
  top: 0 !important;
}

.plyr__control--overlaid:hover {
  background: rgba(255,255,255,.24) !important;
  transform: translate(-50%, -50%) !important;
}

/* 9. Pasek sterowania jak dwa pola */
.plyr__controls {
  left: 20px !important;
  right: 20px !important;
  bottom: 20px !important;
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  gap: 10px !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

/* Małe kwadratowe przyciski */
.plyr__controls .plyr__control {
  width: 42px !important;
  height: 42px !important;
  min-width: 42px !important;
  border-radius: 10px !important;
  background: rgba(5,5,5,.82) !important;
  border: 1px solid rgba(255,255,255,.12) !important;
  color: #fff !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.plyr__controls .plyr__control:hover {
  background: rgba(255,255,255,.14) !important;
}

/* Osobne pole dla progressu i reszty */
.plyr__progress__container,
.plyr__time,
.plyr__volume,
.plyr__menu {
  background: rgba(5,5,5,.82) !important;
  border-top: 1px solid rgba(255,255,255,.12) !important;
  border-bottom: 1px solid rgba(255,255,255,.12) !important;
}

.plyr__progress__container {
  height: 42px !important;
  display: flex !important;
  align-items: center !important;
  flex: 1 1 auto !important;
  padding: 0 14px !important;
  border-left: 1px solid rgba(255,255,255,.12) !important;
  border-radius: 10px 0 0 10px !important;
}

.plyr__time {
  height: 42px !important;
  display: flex !important;
  align-items: center !important;
  padding: 0 10px !important;
  font-size: 12px !important;
}

.plyr__menu {
  height: 42px !important;
  display: flex !important;
  align-items: center !important;
}

.plyr__controls > .plyr__control:last-child {
  border-radius: 0 10px 10px 0 !important;
}

/* 10. Duży wysuwany volume w górę */
@media (min-width: 769px) {
  .plyr__volume {
    position: relative !important;
    width: 42px !important;
    min-width: 42px !important;
    height: 42px !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .plyr__volume .plyr__control {
    width: 42px !important;
    height: 42px !important;
    background: transparent !important;
    border: none !important;
  }

  .plyr__volume input[data-plyr="volume"] {
    position: absolute !important;
    left: 50% !important;
    bottom: 54px !important;
    width: 150px !important;
    height: 34px !important;
    transform: translateX(-50%) rotate(-90deg) !important;
    transform-origin: center !important;
    opacity: 0 !important;
    pointer-events: none !important;
    background: rgba(5,5,5,.9) !important;
    border: 1px solid rgba(255,255,255,.16) !important;
    border-radius: 999px !important;
    padding: 10px !important;
    transition: opacity .15s ease !important;
  }

  .plyr__volume:hover input[data-plyr="volume"],
  .plyr__volume:focus-within input[data-plyr="volume"] {
    opacity: 1 !important;
    pointer-events: auto !important;
  }
}

/* 11. Mobile — schowaj custom controls, użyj systemowych gdy video ma controls */
@media (max-width: 768px) {
  .plyr__controls,
  .plyr__control--overlaid {
    display: none !important;
  }

  .tutor-video-player-wrapper,
  .plyr,
  .plyr__video-wrapper {
    border-radius: 14px !important;
  }

  .plyr video {
    controls: controls !important;
  }
}

/* 12. Dolny pasek progresu zielony */
.tutor-progress-value,
.tutor-spotlight-mobile-progress-left .tutor-progress-value {
  background: #18a957 !important;
}

/* 13. Dół: poprzedni / dalej spójne */
.tutor-course-topic-single-footer {
  background: transparent !important;
  border-top: none !important;
  padding: 0 20px 60px !important;
  gap: 16px !important;
}

.tutor-single-course-content-prev a.tutor-btn,
.tutor-single-course-content-next a.tutor-btn {
  min-height: 44px !important;
  border-radius: 999px !important;
  padding: 12px 30px !important;
  font-size: 14px !important;
  font-weight: 900 !important;
}

.tutor-single-course-content-prev a.tutor-btn {
  background: #fff !important;
  color: #111827 !important;
  border: 1px solid #d1d5db !important;
}

.tutor-single-course-content-next a.tutor-btn {
  background: #111827 !important;
  color: #fff !important;
  border: 1px solid #111827 !important;
}

.tutor-single-course-content-prev a.tutor-btn:hover,
.tutor-single-course-content-next a.tutor-btn:hover {
  background: #ff7a16 !important;
  border-color: #ff7a16 !important;
  color: #fff !important;
}
/* =========================================================
   BOOST4AI — PATCH 10: FINAL FIX AFTER SCREEN
   ========================================================= */

/* 1. Hover "Poprzedni" — strzałka też biała */
.tutor-single-course-content-prev a.tutor-btn:hover,
.tutor-single-course-content-prev a.tutor-btn:hover *,
.tutor-single-course-content-prev a.tutor-btn:hover span::before,
.tutor-single-course-content-prev a.tutor-btn:hover i::before {
  color: #fff !important;
}

/* 2. Pliki ćwiczeń — hover dla kart / linków / download */
.tutor-course-spotlight-tab a,
.tutor-course-spotlight-tab .tutor-attachment-card,
.tutor-course-spotlight-tab .tutor-lesson-attachment,
.tutor-course-spotlight-tab .tutor-download-attachment,
.tutor-course-spotlight-tab [class*="attachment"] {
  transition: all .18s ease !important;
}

.tutor-course-spotlight-tab .tutor-attachment-card:hover,
.tutor-course-spotlight-tab .tutor-lesson-attachment:hover,
.tutor-course-spotlight-tab [class*="attachment"]:hover {
  transform: translateY(-2px) !important;
  border-color: rgba(255,122,22,.35) !important;
  box-shadow: 0 16px 36px rgba(15,23,42,.10) !important;
  background: rgba(255,122,22,.035) !important;
}

.tutor-course-spotlight-tab a:hover {
  color: #ff7a16 !important;
}

/* 3. Player — przywrócenie ikonek sterujących */
.plyr__controls .plyr__control svg,
.plyr__controls .plyr__control use,
.plyr__control svg,
.plyr__control use {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  fill: currentColor !important;
  color: #fff !important;
}

.plyr__controls .plyr__control {
  color: #fff !important;
  font-size: 0 !important;
}

.plyr__controls .plyr__control svg {
  width: 18px !important;
  height: 18px !important;
}

/* 4. Player — progress filmu ma zajmować pełną dostępną szerokość */
.plyr__controls {
  display: flex !important;
  align-items: center !important;
  width: auto !important;
}

.plyr__progress__container {
  flex: 1 1 auto !important;
  min-width: 280px !important;
  width: auto !important;
}

.plyr__progress {
  width: 100% !important;
}

.plyr__progress input[type="range"] {
  width: 100% !important;
}

/* 5. Układ kontrolek — play osobno, reszta jako długi segment */
.plyr__controls > button[data-plyr="play"] {
  flex: 0 0 64px !important;
  width: 64px !important;
  height: 44px !important;
  border-radius: 12px !important;
}

.plyr__controls > .plyr__progress__container {
  margin-left: 4px !important;
}

/* 6. Volume — większy wysuwany suwak */
@media (min-width: 769px) {
  .plyr__volume input[data-plyr="volume"] {
    width: 170px !important;
    height: 36px !important;
    bottom: 64px !important;
    z-index: 9999 !important;
  }
}

/* 7. Oznacz jako ukończone — mocniejsze wymuszenie, JEŚLI element istnieje */
.tutor-topbar-complete-btn,
.tutor-topbar-complete-btn *,
.tutor-spotlight-mobile-progress-right,
.tutor-spotlight-mobile-progress-right * {
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}

.tutor-topbar-complete-btn,
.tutor-topbar-complete-btn form,
.tutor-spotlight-mobile-progress-right,
.tutor-spotlight-mobile-progress-right form {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

button.tutor-topbar-mark-btn,
button[name="complete_lesson_btn"],
.tutor-topbar-complete-btn button[type="submit"],
.tutor-spotlight-mobile-progress-right button[type="submit"] {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: #111827 !important;
  color: #fff !important;
  border: 1px solid #111827 !important;
  border-radius: 10px !important;
  padding: 10px 22px !important;
  font-weight: 900 !important;
  font-size: 13px !important;
  min-height: 40px !important;
  white-space: nowrap !important;
}

/* 8. Jeśli Tutor ukrywa prawą część topbara breakpointiem */
.tutor-course-topic-single-header .tutor-d-none.tutor-d-xl-flex {
  display: flex !important;
  align-items: center !important;
}

/* 9. Mobile — nie da się CSS-em dodać native controls, ale ukrywamy ulepa */
@media (max-width: 768px) {
  .plyr__controls,
  .plyr__control--overlaid {
    display: none !important;
  }
}
/* =========================================================
   BOOST4AI — PATCH 11: PLAYER CONTROLS + FILE HOVER FIX
   ========================================================= */

/* PLAYER — przywrócenie widocznych ikon */
.plyr__controls .plyr__control svg,
.plyr__controls .plyr__control use,
.plyr__control svg,
.plyr__control use {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  fill: currentColor !important;
  color: #ffffff !important;
}

.plyr__controls .plyr__control {
  color: #ffffff !important;
  font-size: 0 !important;
  line-height: 1 !important;
}

.plyr__controls .plyr__control svg {
  width: 18px !important;
  height: 18px !important;
}

/* PLAYER — pełna szerokość paska postępu */
.plyr__controls {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
}

.plyr__progress__container {
  flex: 1 1 auto !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
}

.plyr__progress {
  width: 100% !important;
  flex: 1 1 auto !important;
}

.plyr__progress input[type="range"] {
  width: 100% !important;
}

/* PLAYER — nie pozwól, żeby czas/volume/menu zabierały za dużo miejsca */
.plyr__time {
  flex: 0 0 auto !important;
  min-width: 58px !important;
}

.plyr__volume,
.plyr__menu,
.plyr__controls > .plyr__control {
  flex: 0 0 auto !important;
}

/* PLAYER — małe kwadratowe przyciski */
.plyr__controls > .plyr__control,
.plyr__volume .plyr__control,
.plyr__menu .plyr__control {
  width: 42px !important;
  height: 42px !important;
  min-width: 42px !important;
  border-radius: 10px !important;
  background: rgba(5,5,5,.86) !important;
  border: 1px solid rgba(255,255,255,.14) !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

/* PLAYER — play/pause trochę szerszy */
.plyr__controls > button[data-plyr="play"] {
  width: 64px !important;
  min-width: 64px !important;
}

/* PLAYER — środkowy play okrągły */
.plyr__control--overlaid {
  width: 76px !important;
  height: 76px !important;
  border-radius: 999px !important;
  padding: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.plyr__control--overlaid svg {
  width: 28px !important;
  height: 28px !important;
  margin: 0 !important;
  position: relative !important;
  left: 2px !important;
  top: 0 !important;
}

/* PLIK ĆWICZEŃ — usuń wielki hover-klocek */
.tutor-course-spotlight-tab [class*="attachment"]:hover,
.tutor-course-spotlight-tab .tutor-attachment-card:hover,
.tutor-course-spotlight-tab .tutor-lesson-attachment:hover {
  background: #ffffff !important;
  box-shadow: none !important;
  transform: none !important;
}

/* Hover tylko na właściwej karcie pliku */
.tutor-course-spotlight-tab .tutor-attachment-card,
.tutor-course-spotlight-tab .tutor-lesson-attachment {
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease !important;
}

.tutor-course-spotlight-tab .tutor-attachment-card:hover,
.tutor-course-spotlight-tab .tutor-lesson-attachment:hover {
  border-color: rgba(255,122,22,.35) !important;
  box-shadow: 0 14px 34px rgba(15,23,42,.10) !important;
  transform: translateY(-2px) !important;
}

/* Jeśli Tutor opakowuje plik linkiem */
.tutor-course-spotlight-tab a:hover .tutor-attachment-card,
.tutor-course-spotlight-tab a:hover .tutor-lesson-attachment {
  border-color: rgba(255,122,22,.35) !important;
  box-shadow: 0 14px 34px rgba(15,23,42,.10) !important;
  transform: translateY(-2px) !important;
}
/* =========================================================
   BOOST4AI — PATCH 12: UNIFIED HOVER + CHECKBOX TOGGLE + PLAYER
   ========================================================= */

/* Jeden spójny hover dla głównych akcji */
:root {
  --b4ai-action-bg: #111827;
  --b4ai-action-bg-hover: #ff7a16;
  --b4ai-action-text: #ffffff;
  --b4ai-action-border: #111827;
  --b4ai-action-border-hover: #ff7a16;
}

/* Przycisk ukończenia — topbar i dół */
.b4ai-complete-btn-wrap {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin-left: 14px !important;
  margin-right: 14px !important;
  flex: 0 0 auto !important;
}

.b4ai-complete-btn {
  min-height: 42px !important;
  padding: 0 22px !important;
  border-radius: 10px !important;
  background: var(--b4ai-action-bg) !important;
  color: var(--b4ai-action-text) !important;
  border: 1px solid var(--b4ai-action-border) !important;
  font-size: 13px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  white-space: nowrap !important;
  cursor: pointer !important;
  box-shadow: 0 6px 18px rgba(15,23,42,.14) !important;
  transition: background .18s ease, border-color .18s ease, color .18s ease, transform .18s ease, box-shadow .18s ease !important;
}

.b4ai-complete-btn:hover,
.b4ai-complete-btn-wrap.is-completed .b4ai-complete-btn:hover,
button.tutor-topbar-mark-btn:hover,
button[name="complete_lesson_btn"]:hover,
.tutor-topbar-complete-btn button[type="submit"]:hover,
.tutor-spotlight-mobile-progress-right button[type="submit"]:hover,
.tutor-single-course-content-next a.tutor-btn:hover,
.tutor-single-course-content-prev a.tutor-btn:hover {
  background: var(--b4ai-action-bg-hover) !important;
  border-color: var(--b4ai-action-border-hover) !important;
  color: #ffffff !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 10px 24px rgba(255,122,22,.22) !important;
}

.b4ai-complete-btn:hover *,
button.tutor-topbar-mark-btn:hover *,
button[name="complete_lesson_btn"]:hover *,
.tutor-single-course-content-prev a.tutor-btn:hover *,
.tutor-single-course-content-prev a.tutor-btn:hover span::before,
.tutor-single-course-content-prev a.tutor-btn:hover i::before,
.tutor-single-course-content-next a.tutor-btn:hover *,
.tutor-single-course-content-next a.tutor-btn:hover span::before,
.tutor-single-course-content-next a.tutor-btn:hover i::before {
  color: #ffffff !important;
}

/* Stan ukończony — zielony normalnie, pomarańcz na hover */
.b4ai-complete-btn-wrap.is-completed .b4ai-complete-btn {
  background: #18a957 !important;
  border-color: #18a957 !important;
  color: #ffffff !important;
}

/* Loading */
.b4ai-is-loading {
  opacity: .65 !important;
  cursor: wait !important;
}

/* Klikalny checkbox/ptaszek w sidebarze */
.tutor-course-topic-item input[type="checkbox"].tutor-form-check-circle.b4ai-clickable-check {
  cursor: pointer !important;
  pointer-events: auto !important;
  opacity: 1 !important;
  position: relative !important;
  width: 18px !important;
  height: 18px !important;
  min-width: 18px !important;
  border-radius: 999px !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  border: 1.5px solid #d1d5db !important;
  background: #ffffff !important;
  transition: background .15s ease, border-color .15s ease, transform .15s ease !important;
}

.tutor-course-topic-item input[type="checkbox"].tutor-form-check-circle.b4ai-clickable-check:hover {
  border-color: #ff7a16 !important;
  transform: scale(1.08) !important;
}

.tutor-course-topic-item input[type="checkbox"].tutor-form-check-circle.b4ai-clickable-check:checked {
  background: #18a957 !important;
  border-color: #18a957 !important;
}

.tutor-course-topic-item input[type="checkbox"].tutor-form-check-circle.b4ai-clickable-check:checked::after {
  content: "✓" !important;
  position: absolute !important;
  inset: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: #ffffff !important;
  font-size: 11px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
}

/* Aktywna lekcja — tekst biały, checkbox zostaje zielony */
.tutor-course-topic-item.is-active a,
.tutor-course-topic-item.is-active a *,
.tutor-course-topic-item.is-active .tutor-course-topic-item-title,
.tutor-course-topic-item.is-active .tutor-course-topic-item-duration,
.tutor-course-topic-item.is-active .tutor-course-topic-item-icon {
  color: #ffffff !important;
}

.tutor-course-topic-item.is-active input[type="checkbox"].tutor-form-check-circle.b4ai-clickable-check:checked::after {
  color: #ffffff !important;
}

/* =========================================================
   PLAYER — naprawa pustych boxów i brakujących ikon
   ========================================================= */

/* Cofamy głupie rzeczy, które mogły zabić ikony */
.plyr__controls .plyr__control {
  font-size: initial !important;
  text-indent: 0 !important;
  overflow: visible !important;
}

.plyr__controls .plyr__control svg,
.plyr__controls .plyr__control svg *,
.plyr__controls .plyr__control use,
.plyr__control svg,
.plyr__control svg *,
.plyr__control use {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  fill: currentColor !important;
  color: currentColor !important;
  stroke: none !important;
}

.plyr__controls .plyr__control svg {
  width: 18px !important;
  height: 18px !important;
  max-width: 18px !important;
  max-height: 18px !important;
}

/* Pasek sterowania: play osobno + długi progress + małe kwadraty */
.plyr__controls {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  left: 20px !important;
  right: 20px !important;
  bottom: 20px !important;
  padding: 0 !important;
  background: transparent !important;
  border: none !important;
  width: auto !important;
}

/* Przyciski */
.plyr__controls > .plyr__control,
.plyr__volume .plyr__control,
.plyr__menu .plyr__control {
  flex: 0 0 auto !important;
  width: 42px !important;
  height: 42px !important;
  min-width: 42px !important;
  padding: 0 !important;
  border-radius: 10px !important;
  background: rgba(5,5,5,.88) !important;
  border: 1px solid rgba(255,255,255,.16) !important;
  color: #ffffff !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

/* Play/pause na dole szerszy */
.plyr__controls > button[data-plyr="play"] {
  width: 64px !important;
  min-width: 64px !important;
}

/* Segment progressu ma wykorzystać całą dostępną szerokość */
.plyr__progress__container {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  width: auto !important;
  max-width: none !important;
  height: 42px !important;
  padding: 0 14px !important;
  border-radius: 10px !important;
  background: rgba(5,5,5,.88) !important;
  border: 1px solid rgba(255,255,255,.16) !important;
  display: flex !important;
  align-items: center !important;
}

.plyr__progress,
.plyr__progress input[type="range"] {
  width: 100% !important;
  max-width: none !important;
}

/* Elementy po prawej nie mogą rozpychać progressu */
.plyr__time,
.plyr__volume,
.plyr__menu {
  flex: 0 0 auto !important;
}

.plyr__time {
  min-width: 58px !important;
  color: #ffffff !important;
}

/* Hover player */
.plyr__controls > .plyr__control:hover,
.plyr__volume .plyr__control:hover,
.plyr__menu .plyr__control:hover {
  background: rgba(255,255,255,.14) !important;
  color: #ffffff !important;
}

/* Centralny play */
.plyr__control--overlaid {
  width: 76px !important;
  height: 76px !important;
  border-radius: 999px !important;
  padding: 0 !important;
  background: rgba(255,255,255,.16) !important;
  border: 1px solid rgba(255,255,255,.32) !important;
  color: #ffffff !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transform: translate(-50%, -50%) !important;
}

.plyr__control--overlaid svg {
  width: 28px !important;
  height: 28px !important;
  margin: 0 !important;
  position: relative !important;
  left: 2px !important;
  top: 0 !important;
}

/* Volume wysuwany */
@media (min-width: 769px) {
  .plyr__volume {
    position: relative !important;
    width: 42px !important;
    min-width: 42px !important;
    height: 42px !important;
  }

  .plyr__volume input[data-plyr="volume"] {
    position: absolute !important;
    left: 50% !important;
    bottom: 64px !important;
    width: 170px !important;
    height: 36px !important;
    transform: translateX(-50%) rotate(-90deg) !important;
    transform-origin: center !important;
    opacity: 0 !important;
    pointer-events: none !important;
    z-index: 9999 !important;
    transition: opacity .15s ease !important;
  }

  .plyr__volume:hover input[data-plyr="volume"],
  .plyr__volume:focus-within input[data-plyr="volume"] {
    opacity: 1 !important;
    pointer-events: auto !important;
  }
}
/* =========================================================
   BOOST4AI — PATCH 13: PLAYER ICONS + MENU CLEANUP + UNIFIED HOVER
   ========================================================= */

/* =========================================================
   1. Spójny hover przycisków
   ========================================================= */

:root {
  --b4ai-action-bg: #111827;
  --b4ai-action-hover: #ff7a16;
  --b4ai-action-text: #ffffff;
}

/* Ujednolicenie głównych buttonów */
.b4ai-complete-btn,
button.tutor-topbar-mark-btn,
button[name="complete_lesson_btn"],
.tutor-topbar-complete-btn button[type="submit"],
.tutor-spotlight-mobile-progress-right button[type="submit"],
.tutor-single-course-content-next a.tutor-btn,
.tutor-single-course-content-prev a.tutor-btn {
  transition: background .18s ease, border-color .18s ease, color .18s ease, transform .18s ease, box-shadow .18s ease !important;
}

.b4ai-complete-btn:hover,
.b4ai-complete-btn-wrap.is-completed .b4ai-complete-btn:hover,
button.tutor-topbar-mark-btn:hover,
button[name="complete_lesson_btn"]:hover,
.tutor-topbar-complete-btn button[type="submit"]:hover,
.tutor-spotlight-mobile-progress-right button[type="submit"]:hover,
.tutor-single-course-content-next a.tutor-btn:hover,
.tutor-single-course-content-prev a.tutor-btn:hover {
  background: var(--b4ai-action-hover) !important;
  border-color: var(--b4ai-action-hover) !important;
  color: #ffffff !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 10px 24px rgba(255,122,22,.22) !important;
}

.b4ai-complete-btn:hover *,
button.tutor-topbar-mark-btn:hover *,
button[name="complete_lesson_btn"]:hover *,
.tutor-single-course-content-next a.tutor-btn:hover *,
.tutor-single-course-content-prev a.tutor-btn:hover *,
.tutor-single-course-content-next a.tutor-btn:hover span::before,
.tutor-single-course-content-prev a.tutor-btn:hover span::before,
.tutor-single-course-content-next a.tutor-btn:hover i::before,
.tutor-single-course-content-prev a.tutor-btn:hover i::before {
  color: #ffffff !important;
}

/* Stan ukończony */
.b4ai-complete-btn-wrap.is-completed .b4ai-complete-btn {
  background: #18a957 !important;
  border-color: #18a957 !important;
  color: #ffffff !important;
}

/* Checkbox klikalny */
.tutor-course-topic-item input[type="checkbox"].tutor-form-check-circle.b4ai-clickable-check {
  cursor: pointer !important;
  pointer-events: auto !important;
}


/* =========================================================
   2. Player — naprawa ikon Plyr
   ========================================================= */

/*
  WAŻNE:
  Wcześniejsze reguły wymuszały display:block na wszystkich SVG.
  To było głupie, bo Plyr ma dwie ikony naraz:
  .icon--pressed i .icon--not-pressed.
  Trzeba pozwolić mu przełączać play/pause, mute/unmute itd.
*/

.plyr__control svg {
  width: 18px !important;
  height: 18px !important;
  max-width: 18px !important;
  max-height: 18px !important;
  fill: currentColor !important;
  color: currentColor !important;
  opacity: 1 !important;
  visibility: visible !important;
}

/* Domyślnie ukrywamy ikonę stanu "pressed" */
.plyr__control svg.icon--pressed {
  display: none !important;
}

/* Domyślnie pokazujemy ikonę normalną */
.plyr__control svg.icon--not-pressed {
  display: block !important;
}

/* Gdy przycisk jest aktywny, pokazujemy ikonę pressed */
.plyr__control[aria-pressed="true"] svg.icon--pressed,
.plyr--playing .plyr__control[data-plyr="play"] svg.icon--pressed,
.plyr--muted .plyr__control[data-plyr="mute"] svg.icon--pressed {
  display: block !important;
}

/* Gdy aktywny, chowamy ikonę normalną */
.plyr__control[aria-pressed="true"] svg.icon--not-pressed,
.plyr--playing .plyr__control[data-plyr="play"] svg.icon--not-pressed,
.plyr--muted .plyr__control[data-plyr="mute"] svg.icon--not-pressed {
  display: none !important;
}

/* Ikony wyśrodkowane */
.plyr__controls .plyr__control,
.plyr__volume .plyr__control,
.plyr__menu .plyr__control {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-indent: 0 !important;
  overflow: visible !important;
  color: #ffffff !important;
}


/* =========================================================
   3. Player — usunięcie napisów i udostępniania/PiP
   ========================================================= */

/* Napisy out */
.plyr__control[data-plyr="captions"] {
  display: none !important;
}

/* PiP / share / external — out */
.plyr__control[data-plyr="pip"],
.plyr__control[data-plyr="airplay"],
.plyr__control[data-plyr="download"],
.plyr__control[data-plyr="share"] {
  display: none !important;
}


/* =========================================================
   4. Player — layout kontrolek
   ========================================================= */

.plyr__controls {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  left: 20px !important;
  right: 20px !important;
  bottom: 20px !important;
  padding: 0 !important;
  background: transparent !important;
  border: none !important;
}

/* Kwadratowe przyciski */
.plyr__controls > .plyr__control,
.plyr__volume,
.plyr__menu,
.plyr__time {
  flex: 0 0 auto !important;
}

/* Play/pause */
.plyr__controls > button[data-plyr="play"] {
  width: 64px !important;
  min-width: 64px !important;
  height: 42px !important;
  border-radius: 10px !important;
  background: rgba(5,5,5,.88) !important;
  border: 1px solid rgba(255,255,255,.16) !important;
}

/* Pozostałe buttony */
.plyr__controls > .plyr__control:not([data-plyr="play"]),
.plyr__volume .plyr__control,
.plyr__menu .plyr__control {
  width: 42px !important;
  min-width: 42px !important;
  height: 42px !important;
  border-radius: 10px !important;
  background: rgba(5,5,5,.88) !important;
  border: 1px solid rgba(255,255,255,.16) !important;
  padding: 0 !important;
}

/* Pole czasu — zaokrąglone */
.plyr__time {
  height: 42px !important;
  min-width: 66px !important;
  padding: 0 12px !important;
  border-radius: 10px !important;
  background: rgba(5,5,5,.88) !important;
  border: 1px solid rgba(255,255,255,.16) !important;
  color: #ffffff !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 12px !important;
  font-weight: 700 !important;
}

/* Progress — ma dojść do końca dostępnego miejsca */
.plyr__progress__container {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  width: auto !important;
  max-width: none !important;
  height: 42px !important;
  padding: 0 14px !important;
  border-radius: 10px !important;
  background: rgba(5,5,5,.88) !important;
  border: 1px solid rgba(255,255,255,.16) !important;
  display: flex !important;
  align-items: center !important;
}

.plyr__progress {
  width: 100% !important;
  max-width: none !important;
  flex: 1 1 auto !important;
}

.plyr__progress input[type="range"] {
  width: 100% !important;
  max-width: none !important;
  cursor: pointer !important;
}

/* Hover kontrolek */
.plyr__controls > .plyr__control:hover,
.plyr__volume .plyr__control:hover,
.plyr__menu .plyr__control:hover {
  background: rgba(255,255,255,.14) !important;
}


/* =========================================================
   5. Player — settings tylko prędkość
   ========================================================= */

/* Menu Plyra czytelniejsze */
.plyr__menu__container {
  background: rgba(17,24,39,.96) !important;
  border-radius: 12px !important;
  color: #ffffff !important;
  border: 1px solid rgba(255,255,255,.12) !important;
  box-shadow: 0 16px 38px rgba(0,0,0,.25) !important;
}

.plyr__menu__container * {
  color: #ffffff !important;
}

/* Chowamy ustawienia jakości/napisów, zostawiamy speed */
.plyr__menu__container [data-plyr="settings"][value="captions"],
.plyr__menu__container [data-plyr="settings"][value="quality"],
.plyr__menu__container [data-plyr="settings"][value="loop"] {
  display: none !important;
}

/* Jeśli Tutor/Plyr wrzuca puste pozycje */
.plyr__menu__container button:empty {
  display: none !important;
}

/* Speed options */
.plyr__menu__container [role="menuitemradio"],
.plyr__menu__container button {
  font-size: 13px !important;
  font-weight: 700 !important;
  border-radius: 8px !important;
}

.plyr__menu__container button:hover {
  background: rgba(255,255,255,.12) !important;
}


/* =========================================================
   6. Volume slider wysuwany w górę
   ========================================================= */

@media (min-width: 769px) {
  .plyr__volume {
    position: relative !important;
    width: 42px !important;
    min-width: 42px !important;
    height: 42px !important;
  }

  .plyr__volume input[data-plyr="volume"] {
    position: absolute !important;
    left: 50% !important;
    bottom: 66px !important;
    width: 170px !important;
    height: 36px !important;
    transform: translateX(-50%) rotate(-90deg) !important;
    transform-origin: center !important;
    opacity: 0 !important;
    pointer-events: none !important;
    z-index: 9999 !important;
    transition: opacity .15s ease !important;
  }

  .plyr__volume:hover input[data-plyr="volume"],
  .plyr__volume:focus-within input[data-plyr="volume"] {
    opacity: 1 !important;
    pointer-events: auto !important;
  }
}


/* =========================================================
   7. Centralny play — zostaje okrągły i wyśrodkowany
   ========================================================= */

.plyr__control--overlaid {
  width: 76px !important;
  height: 76px !important;
  border-radius: 999px !important;
  padding: 0 !important;
  background: rgba(255,255,255,.16) !important;
  border: 1px solid rgba(255,255,255,.32) !important;
  color: #ffffff !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transform: translate(-50%, -50%) !important;
}

.plyr__control--overlaid svg {
  width: 28px !important;
  height: 28px !important;
  margin: 0 !important;
  position: relative !important;
  left: 2px !important;
  top: 0 !important;
}
/* =========================================================
   BOOST4AI — PATCH 14: CLEAN PLAYER + SPEED MENU + TOGGLE UX
   ========================================================= */

/* Klikalny checkbox */
.tutor-course-topic-item input[type="checkbox"].tutor-form-check-circle.b4ai-toggle-check {
  appearance: none !important;
  -webkit-appearance: none !important;
  width: 18px !important;
  height: 18px !important;
  min-width: 18px !important;
  border-radius: 999px !important;
  border: 1.5px solid #d1d5db !important;
  background: #ffffff !important;
  cursor: pointer !important;
  pointer-events: auto !important;
  position: relative !important;
  opacity: 1 !important;
  transition: border-color .15s ease, background .15s ease, transform .15s ease !important;
}

.tutor-course-topic-item input[type="checkbox"].tutor-form-check-circle.b4ai-toggle-check:hover {
  border-color: #ff7a16 !important;
  transform: scale(1.08) !important;
}

.tutor-course-topic-item input[type="checkbox"].tutor-form-check-circle.b4ai-toggle-check:checked {
  background: #18a957 !important;
  border-color: #18a957 !important;
}

.tutor-course-topic-item input[type="checkbox"].tutor-form-check-circle.b4ai-toggle-check:checked::after {
  content: "✓" !important;
  position: absolute !important;
  inset: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: #ffffff !important;
  font-size: 11px !important;
  font-weight: 900 !important;
}

/* Loading */
.b4ai-loading {
  opacity: .6 !important;
  cursor: wait !important;
}

/* Przycisk ukończenia */
.b4ai-complete-btn-wrap {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin-left: 14px !important;
  margin-right: 14px !important;
  flex: 0 0 auto !important;
}

.b4ai-complete-btn {
  min-height: 42px !important;
  padding: 0 22px !important;
  border-radius: 10px !important;
  background: #111827 !important;
  color: #ffffff !important;
  border: 1px solid #111827 !important;
  font-size: 13px !important;
  font-weight: 900 !important;
  cursor: pointer !important;
  transition: background .18s ease, border-color .18s ease, transform .18s ease, box-shadow .18s ease !important;
}

.b4ai-complete-btn-wrap.is-completed .b4ai-complete-btn {
  background: #18a957 !important;
  border-color: #18a957 !important;
}

.b4ai-complete-btn:hover,
.b4ai-complete-btn-wrap.is-completed .b4ai-complete-btn:hover,
.tutor-single-course-content-prev a.tutor-btn:hover,
.tutor-single-course-content-next a.tutor-btn:hover {
  background: #ff7a16 !important;
  border-color: #ff7a16 !important;
  color: #ffffff !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 10px 24px rgba(255,122,22,.22) !important;
}

.tutor-single-course-content-prev a.tutor-btn:hover *,
.tutor-single-course-content-next a.tutor-btn:hover *,
.tutor-single-course-content-prev a.tutor-btn:hover span::before,
.tutor-single-course-content-next a.tutor-btn:hover span::before {
  color: #ffffff !important;
}

/* =========================================================
   PLAYER CLEANUP
   ========================================================= */

/* Usuń stare pseudo-tła/kwadraty spod ikon */
.plyr__volume,
.plyr__menu,
.plyr__time,
.plyr__controls > .plyr__control,
.plyr__volume .plyr__control {
  box-shadow: none !important;
  outline: none !important;
}

.plyr__volume::before,
.plyr__volume::after,
.plyr__menu::before,
.plyr__menu::after,
.plyr__control::before,
.plyr__control::after {
  display: none !important;
  content: none !important;
}

/* Główny pasek kontrolek */
.plyr__controls {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  left: 20px !important;
  right: 20px !important;
  bottom: 20px !important;
  padding: 0 !important;
  background: transparent !important;
  border: none !important;
}

/* Ikony Plyra — NIE pokazuj dwóch naraz */
.plyr__control svg {
  width: 18px !important;
  height: 18px !important;
  fill: currentColor !important;
  color: currentColor !important;
}

.plyr__control svg.icon--pressed {
  display: none !important;
}

.plyr__control svg.icon--not-pressed {
  display: block !important;
}

.plyr__control[aria-pressed="true"] svg.icon--pressed,
.plyr--playing .plyr__control[data-plyr="play"] svg.icon--pressed,
.plyr--muted .plyr__control[data-plyr="mute"] svg.icon--pressed {
  display: block !important;
}

.plyr__control[aria-pressed="true"] svg.icon--not-pressed,
.plyr--playing .plyr__control[data-plyr="play"] svg.icon--not-pressed,
.plyr--muted .plyr__control[data-plyr="mute"] svg.icon--not-pressed {
  display: none !important;
}

/* Buttony playera */
.plyr__controls > .plyr__control,
.plyr__volume .plyr__control,
.b4ai-player-btn {
  width: 42px !important;
  min-width: 42px !important;
  height: 42px !important;
  border-radius: 10px !important;
  background: rgba(5,5,5,.88) !important;
  border: 1px solid rgba(255,255,255,.16) !important;
  color: #ffffff !important;
  padding: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

/* Play szerszy */
.plyr__controls > button[data-plyr="play"] {
  width: 64px !important;
  min-width: 64px !important;
}

/* Czas */
.plyr__time {
  height: 42px !important;
  min-width: 66px !important;
  padding: 0 12px !important;
  border-radius: 10px !important;
  background: rgba(5,5,5,.88) !important;
  border: 1px solid rgba(255,255,255,.16) !important;
  color: #ffffff !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 12px !important;
  font-weight: 800 !important;
}

/* Progress */
.plyr__progress__container {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  width: auto !important;
  height: 42px !important;
  padding: 0 14px !important;
  border-radius: 10px !important;
  background: rgba(5,5,5,.88) !important;
  border: 1px solid rgba(255,255,255,.16) !important;
  display: flex !important;
  align-items: center !important;
}

.plyr__progress,
.plyr__progress input[type="range"] {
  width: 100% !important;
  max-width: none !important;
}

/* Wywal oryginalne CC / PIP / share */
.plyr__control[data-plyr="captions"],
.plyr__control[data-plyr="pip"],
.plyr__control[data-plyr="airplay"],
.plyr__control[data-plyr="download"],
.plyr__control[data-plyr="share"] {
  display: none !important;
}

/* Hover player buttons */
.plyr__controls > .plyr__control:hover,
.plyr__volume .plyr__control:hover,
.b4ai-player-btn:hover {
  background: rgba(255,255,255,.14) !important;
}

/* Volume popup */
@media (min-width: 769px) {
  .plyr__volume {
    position: relative !important;
    width: 42px !important;
    min-width: 42px !important;
    height: 42px !important;
    background: transparent !important;
    border: none !important;
  }

  .plyr__volume input[data-plyr="volume"] {
    position: absolute !important;
    left: 50% !important;
    bottom: 66px !important;
    width: 170px !important;
    height: 36px !important;
    transform: translateX(-50%) rotate(-90deg) !important;
    transform-origin: center !important;
    opacity: 0 !important;
    pointer-events: none !important;
    z-index: 9999 !important;
    transition: opacity .15s ease !important;
  }

  .plyr__volume:hover input[data-plyr="volume"],
  .plyr__volume:focus-within input[data-plyr="volume"] {
    opacity: 1 !important;
    pointer-events: auto !important;
  }
}

/* =========================================================
   CUSTOM SPEED MENU
   ========================================================= */

.b4ai-speed-wrap {
  position: relative !important;
  flex: 0 0 auto !important;
}

.b4ai-speed-current {
  font-size: 12px !important;
  font-weight: 900 !important;
  color: #ffffff !important;
}

.b4ai-speed-popover {
  position: absolute !important;
  right: 0 !important;
  bottom: 54px !important;
  width: 250px !important;
  padding: 14px !important;
  border-radius: 14px !important;
  background: rgba(17,24,39,.96) !important;
  border: 1px solid rgba(255,255,255,.14) !important;
  box-shadow: 0 18px 44px rgba(0,0,0,.28) !important;
  z-index: 99999 !important;
}

.b4ai-speed-popover[hidden] {
  display: none !important;
}

.b4ai-speed-title {
  color: #ffffff !important;
  font-size: 13px !important;
  font-weight: 900 !important;
  margin-bottom: 10px !important;
}

.b4ai-speed-options {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 8px !important;
}

.b4ai-speed-options button {
  height: 34px !important;
  border-radius: 8px !important;
  border: 1px solid rgba(255,255,255,.14) !important;
  background: rgba(255,255,255,.06) !important;
  color: #ffffff !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  cursor: pointer !important;
}

.b4ai-speed-options button:hover,
.b4ai-speed-options button.is-active {
  background: #ff7a16 !important;
  border-color: #ff7a16 !important;
  color: #ffffff !important;
}

/* Centralny play */
.plyr__control--overlaid {
  width: 76px !important;
  height: 76px !important;
  border-radius: 999px !important;
  padding: 0 !important;
  background: rgba(255,255,255,.16) !important;
  border: 1px solid rgba(255,255,255,.32) !important;
  color: #ffffff !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transform: translate(-50%, -50%) !important;
}

.plyr__control--overlaid svg {
  width: 28px !important;
  height: 28px !important;
  margin: 0 !important;
  position: relative !important;
  left: 2px !important;
  top: 0 !important;
}
/* =========================================================
   BOOST4AI — PATCH 15: SETTINGS CLEAN + SPEED SLIDER
   ========================================================= */

/* Usuń oryginalne menu ustawień Plyra całkowicie */
.plyr__menu {
  display: none !important;
}

/* Usuń napisy/share/pip/download */
.plyr__control[data-plyr="captions"],
.plyr__control[data-plyr="pip"],
.plyr__control[data-plyr="airplay"],
.plyr__control[data-plyr="download"],
.plyr__control[data-plyr="share"] {
  display: none !important;
}

/* Fix dziwnych kwadratów pod ikonami */
.plyr__control,
.plyr__volume,
.b4ai-player-btn,
.b4ai-speed-wrap {
  box-shadow: none !important;
  outline: none !important;
}

.plyr__control::before,
.plyr__control::after,
.plyr__volume::before,
.plyr__volume::after,
.b4ai-player-btn::before,
.b4ai-player-btn::after,
.b4ai-speed-wrap::before,
.b4ai-speed-wrap::after {
  display: none !important;
  content: none !important;
}

/* Buttony playera */
.plyr__controls > .plyr__control,
.plyr__volume .plyr__control,
.b4ai-player-btn {
  width: 42px !important;
  min-width: 42px !important;
  height: 42px !important;
  border-radius: 10px !important;
  background: rgba(5,5,5,.88) !important;
  border: 1px solid rgba(255,255,255,.16) !important;
  color: #ffffff !important;
  padding: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

/* Speed button */
.b4ai-speed-wrap {
  position: relative !important;
  flex: 0 0 auto !important;
  width: 42px !important;
  height: 42px !important;
}

.b4ai-speed-current {
  color: #ffffff !important;
  font-size: 12px !important;
  font-weight: 900 !important;
}

/* Popover speed */
.b4ai-speed-popover {
  position: absolute !important;
  right: 0 !important;
  bottom: 56px !important;
  width: 360px !important;
  padding: 18px !important;
  border-radius: 16px !important;
  background: rgba(17,24,39,.97) !important;
  border: 1px solid rgba(255,255,255,.16) !important;
  box-shadow: 0 18px 44px rgba(0,0,0,.32) !important;
  z-index: 999999 !important;
}

.b4ai-speed-popover[hidden] {
  display: none !important;
}

.b4ai-speed-title {
  color: #ffffff !important;
  font-size: 14px !important;
  font-weight: 900 !important;
  margin-bottom: 14px !important;
}

.b4ai-speed-label {
  color: #ff7a16 !important;
}

/* Suwak speed */
.b4ai-speed-range {
  width: 100% !important;
  accent-color: #ff7a16 !important;
  cursor: pointer !important;
}

/* Skala wartości */
.b4ai-speed-scale {
  margin-top: 12px !important;
  display: grid !important;
  grid-template-columns: repeat(7, 1fr) !important;
  gap: 4px !important;
}

.b4ai-speed-scale span {
  color: rgba(255,255,255,.82) !important;
  font-size: 10px !important;
  font-weight: 800 !important;
  text-align: center !important;
  white-space: nowrap !important;
}

/* Hover player */
.plyr__controls > .plyr__control:hover,
.plyr__volume .plyr__control:hover,
.b4ai-player-btn:hover {
  background: rgba(255,255,255,.14) !important;
}

/* Ikony play/pause/mute — tylko jeden stan naraz */
.plyr__control svg.icon--pressed {
  display: none !important;
}

.plyr__control svg.icon--not-pressed {
  display: block !important;
}

.plyr__control[aria-pressed="true"] svg.icon--pressed,
.plyr--playing .plyr__control[data-plyr="play"] svg.icon--pressed,
.plyr--muted .plyr__control[data-plyr="mute"] svg.icon--pressed {
  display: block !important;
}

.plyr__control[aria-pressed="true"] svg.icon--not-pressed,
.plyr--playing .plyr__control[data-plyr="play"] svg.icon--not-pressed,
.plyr--muted .plyr__control[data-plyr="mute"] svg.icon--not-pressed {
  display: none !important;
}

/* Checkbox ukończenia */
.tutor-course-topic-item input[type="checkbox"].tutor-form-check-circle.b4ai-toggle-check {
  appearance: none !important;
  -webkit-appearance: none !important;
  width: 18px !important;
  height: 18px !important;
  min-width: 18px !important;
  border-radius: 999px !important;
  border: 1.5px solid #d1d5db !important;
  background: #ffffff !important;
  cursor: pointer !important;
  pointer-events: auto !important;
  position: relative !important;
}

.tutor-course-topic-item input[type="checkbox"].tutor-form-check-circle.b4ai-toggle-check:checked {
  background: #18a957 !important;
  border-color: #18a957 !important;
}

.tutor-course-topic-item input[type="checkbox"].tutor-form-check-circle.b4ai-toggle-check:checked::after {
  content: "✓" !important;
  position: absolute !important;
  inset: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: #ffffff !important;
  font-size: 11px !important;
  font-weight: 900 !important;
}
/* =========================================================
   BOOST4AI — REMOVE SPEED FROM PLAYER
   ========================================================= */

/* Usuń własny speed button/menu */
.b4ai-speed-wrap,
.b4ai-speed-btn,
.b4ai-speed-popover {
  display: none !important;
}

/* Usuń oryginalne menu ustawień Plyr */
.plyr__menu,
.plyr__control[data-plyr="settings"] {
  display: none !important;
}

/* Usuń napisy / udostępnianie / PiP / AirPlay / download */
.plyr__control[data-plyr="captions"],
.plyr__control[data-plyr="pip"],
.plyr__control[data-plyr="airplay"],
.plyr__control[data-plyr="download"],
.plyr__control[data-plyr="share"] {
  display: none !important;
}
/* =========================================================
   BOOST4AI — REMOVE PLAYER TOP DARK OVERLAY / GRADIENT
   ========================================================= */

/* Usuwa przyciemnienie / gradient nakładany przez Plyr */
.plyr::before,
.plyr::after,
.plyr__video-wrapper::before,
.plyr__video-wrapper::after,
.tutor-video-player-wrapper::before,
.tutor-video-player-wrapper::after {
  display: none !important;
  content: none !important;
  background: transparent !important;
  opacity: 0 !important;
}

/* Plyr czasem przyciemnia video przez overlay przy hover/pauzie */
.plyr--video.plyr--stopped .plyr__poster,
.plyr--video.plyr--paused .plyr__poster,
.plyr--video .plyr__poster {
  opacity: 0 !important;
  background: transparent !important;
}

/* Wymuszenie braku filtra na samym video */
.plyr video,
.tutor-video-player-wrapper video {
  filter: none !important;
  opacity: 1 !important;
  mix-blend-mode: normal !important;
}

/* Jeżeli Tutor dorzuca własną warstwę nad video */
.tutor-video-player-overlay,
.tutor-video-fixed-design-inner-overlay,
.tutor-video-player-wrapper .tutor-video-overlay,
.tutor-video-player-wrapper [class*="overlay"] {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}
/* =========================================================
   BOOST4AI — HARD REMOVE VIDEO DIM / POSTER / PAUSE OVERLAY
   ========================================================= */

/* Sam obraz video — bez żadnego przyciemnienia */
.tutor-video-player-wrapper video,
.plyr video,
.plyr__video-wrapper video {
  opacity: 1 !important;
  filter: none !important;
  -webkit-filter: none !important;
  mix-blend-mode: normal !important;
  background: transparent !important;
}

/* Poster Plyra potrafi leżeć NAD video i robić szary/ciemny filtr */
.plyr__poster {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  background-image: none !important;
  background: transparent !important;
  pointer-events: none !important;
}

/* Overlay używany przez Plyr przy stanie stopped/paused */
.plyr--video.plyr--stopped .plyr__video-wrapper::after,
.plyr--video.plyr--paused .plyr__video-wrapper::after,
.plyr--video.plyr--stopped .plyr__video-wrapper::before,
.plyr--video.plyr--paused .plyr__video-wrapper::before,
.plyr--video .plyr__video-wrapper::after,
.plyr--video .plyr__video-wrapper::before {
  display: none !important;
  content: none !important;
  opacity: 0 !important;
  background: transparent !important;
}

/* Czasem ciemna warstwa siedzi na samym kontenerze */
.plyr--video::before,
.plyr--video::after,
.plyr::before,
.plyr::after,
.tutor-video-player-wrapper::before,
.tutor-video-player-wrapper::after {
  display: none !important;
  content: none !important;
  opacity: 0 !important;
  background: transparent !important;
}

/* Tutor LMS overlay */
.tutor-video-player-overlay,
.tutor-video-fixed-design-inner-overlay,
.tutor-video-player-wrapper [class*="overlay"],
.tutor-video-player-wrapper [class*="Overlay"],
.plyr [class*="overlay"],
.plyr [class*="Overlay"] {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  background: transparent !important;
  pointer-events: none !important;
}

/* Wyłącz potencjalne filtry na wrapperach */
.tutor-video-player-wrapper,
.plyr,
.plyr__video-wrapper {
  filter: none !important;
  -webkit-filter: none !important;
  mix-blend-mode: normal !important;
  background-color: #000 !important;
}

/* Ale NIE ukrywaj centralnego przycisku play */
.plyr__control--overlaid {
  display: flex !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}
/* =========================================================
   BOOST4AI — FIX PLAYER OVERLAY + CENTER PLAY VISIBILITY
   ========================================================= */

/* 1. Usuń przyciemnienie / zasłonę gdy player jest bezczynny */
.plyr--video.plyr--hide-controls::before,
.plyr--video.plyr--hide-controls::after,
.plyr--video.plyr--hide-controls .plyr__video-wrapper::before,
.plyr--video.plyr--hide-controls .plyr__video-wrapper::after,
.plyr--video.plyr--hide-controls .plyr__controls::before,
.plyr--video.plyr--hide-controls .plyr__controls::after {
  display: none !important;
  content: none !important;
  opacity: 0 !important;
  background: transparent !important;
}

/* 2. Nie przyciemniaj video po ukryciu kontrolek */
.plyr--hide-controls video,
.plyr--hide-controls .plyr__video-wrapper,
.plyr--hide-controls .plyr__poster {
  opacity: 1 !important;
  filter: none !important;
  -webkit-filter: none !important;
  background: transparent !important;
}

/* 3. Główna zasada: środkowy play widoczny tylko gdy video NIE gra */
.plyr__control--overlaid {
  display: flex !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

/* 4. Gdy video gra — środkowy play ma zniknąć */
.plyr--playing .plyr__control--overlaid {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* 5. Gdy player ukrywa kontrolki podczas grania — też bez środkowego play */
.plyr--playing.plyr--hide-controls .plyr__control--overlaid {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* 6. Gdy pauza / stop — środkowy play wraca */
.plyr--paused .plyr__control--overlaid,
.plyr--stopped .plyr__control--overlaid {
  display: flex !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

/* 7. Usuń gradient / cień z kontrolek, który zostaje jako ciemna plama */
.plyr__controls {
  background-image: none !important;
  box-shadow: none !important;
}

/* 8. Jeśli Plyr dodaje klasę pełnego overlayu przy video */
.plyr--video.plyr--hide-controls .plyr__controls {
  opacity: 0 !important;
  transform: translateY(10px) !important;
  background: transparent !important;
}
/* =========================================================
   BOOST4AI — MOBILE RESPONSIVE FIX
   ========================================================= */

@media (max-width: 768px) {

  /* =========================
     1. TOPBAR MOBILE
     ========================= */

  .tutor-course-topic-single-header,
  .tutor-single-page-top-bar {
    min-height: 72px !important;
    height: auto !important;
    padding: 8px 10px !important;
    display: grid !important;
    grid-template-columns: auto auto 1fr auto !important;
    align-items: center !important;
    gap: 8px !important;
    background: #fff !important;
    border-bottom: 1px solid #e5e7eb !important;
  }

  /* Menu lekcji + wstecz */
  .tutor-course-topics-sidebar-toggler,
  .tutor-course-topic-single-header .tutor-iconic-btn,
  .tutor-single-page-top-bar .tutor-iconic-btn {
    display: inline-flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
    border-radius: 10px !important;
    background: #f3f4f6 !important;
    border: 1px solid #e5e7eb !important;
    color: #111827 !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .tutor-course-topics-sidebar-toggler *,
  .tutor-course-topic-single-header .tutor-iconic-btn *,
  .tutor-single-page-top-bar .tutor-iconic-btn *,
  .tutor-course-topics-sidebar-toggler span::before,
  .tutor-course-topic-single-header .tutor-iconic-btn span::before,
  .tutor-single-page-top-bar .tutor-iconic-btn span::before {
    color: #111827 !important;
    opacity: 1 !important;
    visibility: visible !important;
  }

  /* Tytuł kursu/lekcji */
  .tutor-course-topic-single-header-title,
  .tutor-single-page-top-bar .tutor-course-topic-single-header-title {
    font-size: 13px !important;
    line-height: 1.25 !important;
    font-weight: 900 !important;
    color: #111827 !important;
    max-width: none !important;
    width: auto !important;
    white-space: normal !important;
    overflow: hidden !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    text-overflow: ellipsis !important;
    margin: 0 !important;
  }

  /* Przycisk ukończenia na mobile */
  .b4ai-complete-btn-wrap {
    margin: 0 !important;
    justify-self: end !important;
    max-width: 138px !important;
    overflow: hidden !important;
  }

  .b4ai-complete-btn {
    min-height: 42px !important;
    height: 42px !important;
    padding: 0 12px !important;
    border-radius: 10px !important;
    font-size: 11px !important;
    font-weight: 900 !important;
    max-width: 138px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  /* Krzyżyk po prawej — jeśli zabiera miejsce, zostaje mały */
  .tutor-course-topic-single-header > .tutor-iconic-btn:last-child,
  .tutor-single-page-top-bar > .tutor-iconic-btn:last-child {
    width: 38px !important;
    height: 38px !important;
    min-width: 38px !important;
  }


  /* =========================
     2. SIDEBAR / MENU LEKCJI MOBILE
     ========================= */

  .tutor-course-single-sidebar-wrapper {
    width: 86vw !important;
    max-width: 360px !important;
    min-width: 0 !important;
    background: #fff !important;
    z-index: 99999 !important;
  }

  .tutor-course-single-sidebar-title {
    min-height: 64px !important;
    padding: 0 16px !important;
  }

  .tutor-course-single-sidebar-title span:first-child {
    font-size: 12px !important;
    font-weight: 900 !important;
    letter-spacing: .06em !important;
  }

  .tutor-course-topic-title {
    font-size: 13px !important;
    line-height: 1.25 !important;
  }

  .tutor-course-topic-summary {
    font-size: 11px !important;
  }

  .tutor-course-topic-item-title {
    font-size: 12px !important;
    line-height: 1.3 !important;
  }

  .tutor-course-topic-item-duration {
    font-size: 11px !important;
  }


  /* =========================
     3. PLAYER MOBILE — SYSTEMOWY
     ========================= */

  .tutor-video-player-wrapper {
    width: calc(100% - 24px) !important;
    max-width: none !important;
    margin: 16px auto 20px !important;
    border-radius: 14px !important;
    overflow: hidden !important;
    background: #000 !important;
    box-shadow: 0 10px 28px rgba(15,23,42,.12) !important;
    border: 1px solid rgba(17,24,39,.16) !important;
  }

  .plyr,
  .plyr__video-wrapper {
    border-radius: 14px !important;
    overflow: hidden !important;
    background: #000 !important;
  }

  .plyr video,
  .plyr__video-wrapper video,
  .tutor-video-player-wrapper video {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    max-height: 62vh !important;
    object-fit: contain !important;
    background: #000 !important;
    opacity: 1 !important;
    filter: none !important;
  }

  /* Wywalamy custom player UI na mobile */
  .plyr__controls,
  .plyr__control--overlaid,
  .plyr__poster,
  .b4ai-speed-wrap,
  .plyr__menu,
  .plyr__control[data-plyr="captions"],
  .plyr__control[data-plyr="pip"],
  .plyr__control[data-plyr="airplay"],
  .plyr__control[data-plyr="download"],
  .plyr__control[data-plyr="share"] {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }

  /* Niech video łapie klik, nie wrapper Plyra */
  .plyr.b4ai-mobile-native-video video {
    pointer-events: auto !important;
  }


  /* =========================
     4. CONTENT CARD MOBILE
     ========================= */

  .tutor-course-spotlight-wrapper {
    width: calc(100% - 24px) !important;
    max-width: none !important;
    margin: 0 auto 24px !important;
    border-radius: 18px !important;
  }

  .tutor-course-spotlight-nav {
    padding: 18px 14px 4px !important;
    display: flex !important;
    justify-content: center !important;
    gap: 8px !important;
    overflow-x: auto !important;
  }

  .tutor-course-spotlight-nav .tutor-nav-link {
    padding: 10px 18px !important;
    font-size: 12px !important;
    border-radius: 999px !important;
    white-space: nowrap !important;
  }

  .tutor-course-spotlight-tab {
    padding: 28px 24px !important;
  }

  .tutor-course-spotlight-tab h1,
  .tutor-course-spotlight-tab h2 {
    font-size: 34px !important;
    line-height: 1.08 !important;
    letter-spacing: -0.04em !important;
  }

  .tutor-course-spotlight-tab h3 {
    font-size: 26px !important;
    line-height: 1.12 !important;
  }

  .tutor-course-spotlight-tab p,
  .tutor-course-spotlight-tab li {
    font-size: 16px !important;
    line-height: 1.65 !important;
  }


  /* =========================
     5. DOLNY PASEK PROGRESU MOBILE
     ========================= */

  .tutor-spotlight-mobile-progress-complete {
    width: calc(100% - 24px) !important;
    max-width: none !important;
    margin: 0 auto 24px !important;
    padding: 16px !important;
    border-radius: 16px !important;
  }

  .tutor-spotlight-mobile-progress-complete .b4ai-complete-btn-wrap {
    margin-top: 14px !important;
    max-width: none !important;
    width: 100% !important;
  }

  .tutor-spotlight-mobile-progress-complete .b4ai-complete-btn {
    width: 100% !important;
    max-width: none !important;
  }


  /* =========================
     6. PREV / NEXT MOBILE
     ========================= */

  .tutor-course-topic-single-footer {
    width: calc(100% - 24px) !important;
    margin: 0 auto !important;
    padding: 0 0 32px !important;
    display: flex !important;
    gap: 10px !important;
  }

  .tutor-single-course-content-prev,
  .tutor-single-course-content-next {
    flex: 1 1 0 !important;
  }

  .tutor-single-course-content-prev a.tutor-btn,
  .tutor-single-course-content-next a.tutor-btn {
    width: 100% !important;
    min-height: 44px !important;
    padding: 0 12px !important;
    font-size: 12px !important;
    border-radius: 999px !important;
    justify-content: center !important;
  }
}
/* =========================================================
   BOOST4AI — MOBILE HARD RESET / FIX
   ========================================================= */

@media (max-width: 768px) {

  html,
  body {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
  }

  body.single-lesson,
  #tutor-page-wrap,
  .tutor-course-single-content-wrapper,
  .tutor-course-single-content-wrapper * {
    box-sizing: border-box !important;
  }

  .tutor-course-single-content-wrapper {
    width: 100% !important;
    max-width: 100vw !important;
    overflow-x: hidden !important;
  }

  /* =========================
     TOPBAR MOBILE — BEZ DWÓCH LEWYCH IKON
     ========================= */

  .tutor-course-topic-single-header,
  .tutor-single-page-top-bar {
    width: 100% !important;
    max-width: 100vw !important;
    min-height: auto !important;
    padding: 10px 12px !important;
    display: grid !important;
    grid-template-columns: 42px 1fr 42px !important;
    grid-template-rows: auto auto !important;
    gap: 8px !important;
    align-items: center !important;
    background: #fff !important;
    border-bottom: 1px solid #e5e7eb !important;
    overflow: hidden !important;
  }

  /* Zostaje przycisk menu lekcji */
  .tutor-course-topics-sidebar-toggler {
    grid-column: 1 !important;
    grid-row: 1 !important;
    display: inline-flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
    border-radius: 10px !important;
    background: #f3f4f6 !important;
    border: 1px solid #e5e7eb !important;
    color: #111827 !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
    z-index: 10 !important;
  }

  /* Chowamy nadmiarowy przycisk "wstecz" na mobile */
  .tutor-course-topic-single-header > .tutor-iconic-btn:not(:last-child),
  .tutor-single-page-top-bar > .tutor-iconic-btn:not(:last-child) {
    display: none !important;
  }

  /* X po prawej */
  .tutor-course-topic-single-header > .tutor-iconic-btn:last-child,
  .tutor-single-page-top-bar > .tutor-iconic-btn:last-child {
    grid-column: 3 !important;
    grid-row: 1 !important;
    display: inline-flex !important;
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
    border-radius: 10px !important;
    background: #f3f4f6 !important;
    border: 1px solid #e5e7eb !important;
    color: #111827 !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
  }

  .tutor-course-topic-single-header-title,
  .tutor-single-page-top-bar .tutor-course-topic-single-header-title {
    grid-column: 2 !important;
    grid-row: 1 !important;
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    color: #111827 !important;
    font-size: 13px !important;
    line-height: 1.25 !important;
    font-weight: 900 !important;
    white-space: normal !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  /* Przycisk ukończenia idzie w drugi rząd, żeby się mieścił */
  .b4ai-complete-btn-wrap {
    grid-column: 1 / -1 !important;
    grid-row: 2 !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
  }

  .b4ai-complete-btn {
    width: 100% !important;
    max-width: none !important;
    min-height: 42px !important;
    height: 42px !important;
    padding: 0 14px !important;
    border-radius: 10px !important;
    font-size: 12px !important;
    white-space: nowrap !important;
  }

  /* =========================
     MENU LEKCJI / SIDEBAR MOBILE
     ========================= */

  .tutor-course-single-sidebar-wrapper {
    width: 88vw !important;
    max-width: 360px !important;
    min-width: 0 !important;
    z-index: 999999 !important;
    background: #fff !important;
    overflow-x: hidden !important;
  }

  .tutor-course-single-sidebar-title {
    min-height: 64px !important;
    padding: 0 16px !important;
  }

  .tutor-course-single-sidebar-title .tutor-iconic-btn {
    display: inline-flex !important;
    pointer-events: auto !important;
  }

  .tutor-course-topic,
  .tutor-accordion-item-header,
  .tutor-course-topic-item,
  .tutor-course-topic-item a {
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .tutor-course-topic-title {
    font-size: 13px !important;
    line-height: 1.25 !important;
  }

  .tutor-course-topic-item-title {
    font-size: 12px !important;
    line-height: 1.3 !important;
  }

  /* =========================
     PLAYER MOBILE — PROSTY PLYR, NIE SYSTEMOWY
     ========================= */

  .tutor-video-player-wrapper {
    width: calc(100vw - 24px) !important;
    max-width: calc(100vw - 24px) !important;
    margin: 14px auto 20px !important;
    border-radius: 14px !important;
    overflow: hidden !important;
    background: #000 !important;
    border: 1px solid rgba(17,24,39,.14) !important;
    box-shadow: 0 10px 28px rgba(15,23,42,.12) !important;
  }

  .plyr,
  .plyr__video-wrapper {
    width: 100% !important;
    max-width: 100% !important;
    border-radius: 14px !important;
    overflow: hidden !important;
    background: #000 !important;
  }

  .plyr video,
  .plyr__video-wrapper video,
  .tutor-video-player-wrapper video {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
    object-fit: contain !important;
    background: #000 !important;
    pointer-events: auto !important;
  }

  /* Odkręcenie poprzedniego złego native hacka */
  .plyr.b4ai-mobile-native-video .plyr__controls {
    display: flex !important;
  }

  /* Mobilne kontrolki — tylko najważniejsze */
  .plyr__controls {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    left: 8px !important;
    right: 8px !important;
    bottom: 8px !important;
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transform: none !important;
  }

  .plyr__controls > .plyr__control,
  .plyr__volume .plyr__control {
    width: 38px !important;
    min-width: 38px !important;
    height: 38px !important;
    border-radius: 9px !important;
    background: rgba(5,5,5,.88) !important;
    border: 1px solid rgba(255,255,255,.16) !important;
    color: #fff !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
  }

  .plyr__controls > button[data-plyr="play"] {
    width: 48px !important;
    min-width: 48px !important;
  }

  .plyr__progress__container {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    height: 38px !important;
    padding: 0 10px !important;
    border-radius: 9px !important;
    background: rgba(5,5,5,.88) !important;
    border: 1px solid rgba(255,255,255,.16) !important;
    display: flex !important;
    align-items: center !important;
  }

  .plyr__progress,
  .plyr__progress input[type="range"] {
    width: 100% !important;
    max-width: none !important;
  }

  .plyr__time {
    display: none !important;
  }

  .plyr__volume input[data-plyr="volume"] {
    display: none !important;
  }

  .plyr__menu,
  .b4ai-speed-wrap,
  .plyr__control[data-plyr="settings"],
  .plyr__control[data-plyr="captions"],
  .plyr__control[data-plyr="pip"],
  .plyr__control[data-plyr="airplay"],
  .plyr__control[data-plyr="download"],
  .plyr__control[data-plyr="share"] {
    display: none !important;
  }

  .plyr__control--overlaid {
    width: 64px !important;
    height: 64px !important;
    border-radius: 999px !important;
    display: flex !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
  }

  .plyr--playing .plyr__control--overlaid {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }

  /* =========================
     TABS / PLIKI ĆWICZEŃ — NAPRAWA KLIKANIA
     ========================= */

  .tutor-course-spotlight-wrapper {
    width: calc(100vw - 24px) !important;
    max-width: calc(100vw - 24px) !important;
    margin: 0 auto 24px !important;
    border-radius: 18px !important;
    overflow: hidden !important;
  }

  .tutor-course-spotlight-nav {
    padding: 18px 14px 4px !important;
    display: flex !important;
    justify-content: center !important;
    gap: 8px !important;
    overflow-x: auto !important;
  }

  .tutor-course-spotlight-nav .tutor-nav-link {
    position: relative !important;
    z-index: 5 !important;
    pointer-events: auto !important;
    padding: 10px 18px !important;
    font-size: 12px !important;
    white-space: nowrap !important;
  }

  .tutor-course-spotlight-tab {
    padding: 28px 24px !important;
    overflow: hidden !important;
  }

  /* Usunięcie wielkiego klikalnego/hover kwadratu */
  .tutor-course-spotlight-tab [class*="attachment"],
  .tutor-course-spotlight-tab [class*="Attachment"] {
    max-width: 100% !important;
  }

  .tutor-course-spotlight-tab [class*="attachment"]::before,
  .tutor-course-spotlight-tab [class*="attachment"]::after,
  .tutor-course-spotlight-tab [class*="Attachment"]::before,
  .tutor-course-spotlight-tab [class*="Attachment"]::after {
    display: none !important;
    content: none !important;
    pointer-events: none !important;
  }

  .tutor-course-spotlight-tab a {
    pointer-events: auto !important;
  }

  /* =========================
     CONTENT MOBILE
     ========================= */

  .tutor-course-spotlight-tab h1,
  .tutor-course-spotlight-tab h2 {
    font-size: 34px !important;
    line-height: 1.08 !important;
    letter-spacing: -0.04em !important;
  }

  .tutor-course-spotlight-tab h3 {
    font-size: 26px !important;
    line-height: 1.12 !important;
  }

  .tutor-course-spotlight-tab p,
  .tutor-course-spotlight-tab li {
    font-size: 16px !important;
    line-height: 1.65 !important;
  }

  /* =========================
     FOOTER MOBILE
     ========================= */

  .tutor-spotlight-mobile-progress-complete,
  .tutor-course-topic-single-footer {
    width: calc(100vw - 24px) !important;
    max-width: calc(100vw - 24px) !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
}
/* =========================================================
   BOOST4AI — MOBILE PATCH: PLAYER / SIDEBAR / TABS / HEADER
   ========================================================= */

@media (max-width: 768px) {

  html,
  body {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
  }

  body.single-lesson,
  #tutor-page-wrap,
  .tutor-course-single-content-wrapper {
    width: 100% !important;
    max-width: 100vw !important;
    overflow-x: hidden !important;
  }

  /* =========================
     HEADER MOBILE
     ========================= */

  .tutor-course-topic-single-header,
  .tutor-single-page-top-bar {
    width: 100% !important;
    max-width: 100vw !important;
    min-height: 62px !important;
    padding: 8px 12px !important;
    display: grid !important;
    grid-template-columns: 42px 1fr 42px !important;
    align-items: center !important;
    gap: 8px !important;
    overflow: hidden !important;
    background: #fff !important;
  }

  /* Zostaje tylko burger/menu lekcji po lewej */
  .tutor-course-topics-sidebar-toggler {
    grid-column: 1 !important;
    display: inline-flex !important;
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
    border-radius: 10px !important;
    background: #f3f4f6 !important;
    border: 1px solid #e5e7eb !important;
    color: #111827 !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
    z-index: 20 !important;
  }

  /* Ukryj dodatkową strzałkę wstecz na mobile */
  .tutor-course-topic-single-header > .tutor-iconic-btn:not(:last-child),
  .tutor-single-page-top-bar > .tutor-iconic-btn:not(:last-child) {
    display: none !important;
  }

  /* X po prawej */
  .tutor-course-topic-single-header > .tutor-iconic-btn:last-child,
  .tutor-single-page-top-bar > .tutor-iconic-btn:last-child {
    grid-column: 3 !important;
    display: inline-flex !important;
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
    border-radius: 10px !important;
    background: #f3f4f6 !important;
    border: 1px solid #e5e7eb !important;
    color: #111827 !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
    z-index: 20 !important;
  }

  /* Tytuł nie może nachodzić na X */
  .tutor-course-topic-single-header-title,
  .tutor-single-page-top-bar .tutor-course-topic-single-header-title {
    grid-column: 2 !important;
    min-width: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
    font-size: 13px !important;
    line-height: 1.25 !important;
    font-weight: 900 !important;
    color: #111827 !important;
    white-space: normal !important;
    overflow: hidden !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    text-overflow: ellipsis !important;
    margin: 0 !important;
  }

  /* Na mobile przycisk ukończenia tylko na dole */
  .tutor-course-topic-single-header .b4ai-complete-btn-wrap,
  .tutor-single-page-top-bar .b4ai-complete-btn-wrap,
  .tutor-topbar-complete-btn {
    display: none !important;
  }


  /* =========================
     SIDEBAR FULLSCREEN MOBILE
     ========================= */

  .tutor-course-single-sidebar-wrapper {
    position: fixed !important;
    inset: 0 !important;
    width: 100vw !important;
    max-width: 100vw !important;
    height: 100vh !important;
    max-height: 100vh !important;
    background: #fff !important;
    z-index: 999999 !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    border-right: none !important;
    box-shadow: none !important;
  }

  .tutor-course-single-sidebar-title {
    position: sticky !important;
    top: 0 !important;
    z-index: 2 !important;
    min-height: 64px !important;
    padding: 0 16px !important;
    background: #fff !important;
    border-bottom: 1px solid #e5e7eb !important;
  }

  .tutor-course-single-sidebar-title span:first-child {
    font-size: 12px !important;
    font-weight: 900 !important;
    letter-spacing: .08em !important;
  }

  .tutor-course-single-sidebar-title .tutor-iconic-btn {
    display: inline-flex !important;
    pointer-events: auto !important;
  }


  /* =========================
     PLAYER MOBILE — DZIAŁAJĄCY, PROSTY
     ========================= */

  .tutor-video-player-wrapper {
    width: calc(100vw - 24px) !important;
    max-width: calc(100vw - 24px) !important;
    margin: 14px auto 20px !important;
    border-radius: 14px !important;
    overflow: hidden !important;
    background: #000 !important;
    position: relative !important;
    z-index: 1 !important;
  }

  .plyr,
  .plyr__video-wrapper {
    width: 100% !important;
    max-width: 100% !important;
    border-radius: 14px !important;
    overflow: hidden !important;
    background: #000 !important;
    position: relative !important;
  }

  .plyr video,
  .plyr__video-wrapper video {
    width: 100% !important;
    height: auto !important;
    display: block !important;
    object-fit: contain !important;
    background: #000 !important;
  }

  /* Usuń wszystkie overlaye, które blokują klikanie */
  .plyr::before,
  .plyr::after,
  .plyr__video-wrapper::before,
  .plyr__video-wrapper::after,
  .tutor-video-player-wrapper::before,
  .tutor-video-player-wrapper::after,
  .tutor-video-player-overlay,
  .tutor-video-fixed-design-inner-overlay,
  .tutor-video-player-wrapper [class*="overlay"],
  .tutor-video-player-wrapper [class*="Overlay"] {
    display: none !important;
    content: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }

  /* Kontrolki muszą być nad video i klikalne */
  .plyr__controls {
    display: flex !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    position: absolute !important;
    z-index: 20 !important;
    left: 8px !important;
    right: 8px !important;
    bottom: 8px !important;
    gap: 6px !important;
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    transform: none !important;
  }

  .plyr__controls * {
    pointer-events: auto !important;
  }

  .plyr__controls > .plyr__control,
  .plyr__controls > button[data-plyr="play"],
  .plyr__control[data-plyr="fullscreen"] {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    border-radius: 10px !important;
    background: rgba(5,5,5,.88) !important;
    border: 1px solid rgba(255,255,255,.16) !important;
    color: #fff !important;
    padding: 0 !important;
  }

  .plyr__controls > button[data-plyr="play"] {
    width: 48px !important;
    min-width: 48px !important;
  }

  .plyr__progress__container {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    height: 40px !important;
    padding: 0 10px !important;
    border-radius: 10px !important;
    background: rgba(5,5,5,.88) !important;
    border: 1px solid rgba(255,255,255,.16) !important;
    display: flex !important;
    align-items: center !important;
    pointer-events: auto !important;
  }

  .plyr__progress,
  .plyr__progress input[type="range"] {
    width: 100% !important;
    max-width: none !important;
    pointer-events: auto !important;
  }

  /* Na mobile wywalamy volume — telefon ma własne przyciski */
  .plyr__volume,
  .plyr__volume .plyr__control,
  .plyr__volume input[data-plyr="volume"] {
    display: none !important;
  }

  .plyr__time,
  .plyr__menu,
  .b4ai-speed-wrap,
  .plyr__control[data-plyr="settings"],
  .plyr__control[data-plyr="captions"],
  .plyr__control[data-plyr="pip"],
  .plyr__control[data-plyr="airplay"],
  .plyr__control[data-plyr="download"],
  .plyr__control[data-plyr="share"] {
    display: none !important;
  }

  /* Centralny play */
  .plyr__control--overlaid {
    display: flex !important;
    width: 64px !important;
    height: 64px !important;
    border-radius: 999px !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    z-index: 21 !important;
  }

  .plyr--playing .plyr__control--overlaid {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }


  /* =========================
     TABS / PLIKI ĆWICZEŃ — NAPRAWA KLIKANIA
     ========================= */

  .tutor-course-spotlight-wrapper {
    width: calc(100vw - 24px) !important;
    max-width: calc(100vw - 24px) !important;
    margin: 0 auto 24px !important;
    border-radius: 18px !important;
    overflow: hidden !important;
    position: relative !important;
    z-index: 1 !important;
  }

  .tutor-course-spotlight-nav {
    position: relative !important;
    z-index: 5 !important;
    padding: 18px 14px 4px !important;
    display: flex !important;
    justify-content: center !important;
    gap: 8px !important;
    overflow-x: auto !important;
    pointer-events: auto !important;
  }

  .tutor-course-spotlight-nav .tutor-nav-link {
    pointer-events: auto !important;
    position: relative !important;
    z-index: 6 !important;
  }

  .tutor-course-spotlight-tab {
    position: relative !important;
    z-index: 1 !important;
    padding: 28px 24px !important;
    overflow: hidden !important;
    pointer-events: auto !important;
  }

  /* Zabij duży niewidzialny klocek z hover/click */
  .tutor-course-spotlight-tab [class*="attachment"]::before,
  .tutor-course-spotlight-tab [class*="attachment"]::after,
  .tutor-course-spotlight-tab [class*="Attachment"]::before,
  .tutor-course-spotlight-tab [class*="Attachment"]::after,
  .tutor-course-spotlight-wrapper::before,
  .tutor-course-spotlight-wrapper::after,
  .tutor-course-spotlight-tab::before,
  .tutor-course-spotlight-tab::after {
    display: none !important;
    content: none !important;
    pointer-events: none !important;
  }

  .tutor-course-spotlight-tab a,
  .tutor-course-spotlight-tab button {
    position: relative !important;
    z-index: 3 !important;
    pointer-events: auto !important;
  }


  /* =========================
     CONTENT / FOOTER MOBILE
     ========================= */

  .tutor-course-spotlight-tab h1,
  .tutor-course-spotlight-tab h2 {
    font-size: 34px !important;
    line-height: 1.08 !important;
    letter-spacing: -0.04em !important;
  }

  .tutor-course-spotlight-tab p,
  .tutor-course-spotlight-tab li {
    font-size: 16px !important;
    line-height: 1.65 !important;
  }

  .tutor-spotlight-mobile-progress-complete {
    width: calc(100vw - 24px) !important;
    max-width: calc(100vw - 24px) !important;
    margin: 0 auto 24px !important;
  }

  .tutor-spotlight-mobile-progress-complete .b4ai-complete-btn-wrap {
    display: flex !important;
    width: 100% !important;
    max-width: none !important;
    margin: 14px 0 0 !important;
  }

  .tutor-spotlight-mobile-progress-complete .b4ai-complete-btn {
    width: 100% !important;
    max-width: none !important;
  }
}
/* =========================================================
   BOOST4AI — MOBILE RESCUE: ODBLOKOWANIE KLIKANIA
   ========================================================= */

@media (max-width: 768px) {

  html,
  body {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
  }

  #tutor-page-wrap,
  .tutor-course-single-content-wrapper,
  #tutor-single-entry-content {
    width: 100% !important;
    max-width: 100vw !important;
    overflow-x: hidden !important;
    position: relative !important;
  }

  /* =====================================================
     1. NAJWAŻNIEJSZE: SIDEBAR NIE MOŻE BLOKOWAĆ STRONY
     ===================================================== */

  .tutor-course-single-sidebar-wrapper {
    position: fixed !important;
    inset: 0 !important;
    width: 100vw !important;
    max-width: 100vw !important;
    height: 100vh !important;
    background: #fff !important;
    z-index: 999999 !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;

    /* domyślnie schowany i NIEKLIKALNY */
    transform: translateX(-105%) !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;

    transition: transform .22s ease, opacity .22s ease, visibility .22s ease !important;
  }

  /*
    Tutor różnie dodaje klasy w zależności od wersji.
    Obsługujemy kilka możliwych stanów otwarcia.
  */
  body.tutor-course-single-sidebar-open .tutor-course-single-sidebar-wrapper,
  body.tutor-course-topic-sidebar-open .tutor-course-single-sidebar-wrapper,
  body.tutor-sidebar-open .tutor-course-single-sidebar-wrapper,
  .tutor-course-single-sidebar-wrapper.is-active,
  .tutor-course-single-sidebar-wrapper.active,
  .tutor-course-single-sidebar-wrapper.tutor-active,
  .tutor-course-single-sidebar-wrapper[style*="translateX(0"],
  .tutor-course-single-sidebar-wrapper[style*="display: block"] {
    transform: translateX(0) !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
  }

  /* Jeżeli Tutor sam ustawia display:block, ale bez klasy, JS poniżej doda body class */
  body.b4ai-sidebar-open .tutor-course-single-sidebar-wrapper {
    transform: translateX(0) !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
  }

  body.b4ai-sidebar-open {
    overflow: hidden !important;
  }

  .tutor-course-single-sidebar-title {
    position: sticky !important;
    top: 0 !important;
    z-index: 2 !important;
    min-height: 64px !important;
    padding: 0 16px !important;
    background: #fff !important;
    border-bottom: 1px solid #e5e7eb !important;
  }

  .tutor-course-single-sidebar-title .tutor-iconic-btn {
    display: inline-flex !important;
    pointer-events: auto !important;
  }

  /* =====================================================
     2. HEADER MOBILE — UŻYWAMY HAMBURGERA TUTORA
     ===================================================== */

  .tutor-course-topic-single-header,
  .tutor-single-page-top-bar {
    width: 100% !important;
    max-width: 100vw !important;
    min-height: 62px !important;
    padding: 8px 12px !important;
    display: grid !important;
    grid-template-columns: 1fr 42px !important;
    gap: 8px !important;
    align-items: center !important;
    background: #fff !important;
    border-bottom: 1px solid #e5e7eb !important;
    overflow: hidden !important;
  }

  /* Ukryj desktopowy lewy toggler i link wstecz, bo miesza */
  .tutor-course-topic-single-header > .tutor-course-topics-sidebar-toggler,
  .tutor-single-page-top-bar > .tutor-course-topics-sidebar-toggler,
  .tutor-course-topic-single-header > a.tutor-iconic-btn[href*="/kursy/"],
  .tutor-single-page-top-bar > a.tutor-iconic-btn[href*="/kursy/"] {
    display: none !important;
  }

  .tutor-course-topic-single-header-title,
  .tutor-single-page-top-bar .tutor-course-topic-single-header-title {
    grid-column: 1 !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    margin: 0 !important;
    color: #111827 !important;
    font-size: 13px !important;
    line-height: 1.25 !important;
    font-weight: 900 !important;
    white-space: normal !important;
    overflow: hidden !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
  }

  /* Hamburger mobilny Tutora */
  .tutor-single-page-top-bar .tutor-d-block.tutor-d-xl-none,
  .tutor-course-topic-single-header .tutor-d-block.tutor-d-xl-none {
    grid-column: 2 !important;
    display: flex !important;
    justify-content: flex-end !important;
    margin: 0 !important;
  }

  .tutor-single-page-top-bar [tutor-course-topics-sidebar-offcanvas-toggler],
  .tutor-course-topic-single-header [tutor-course-topics-sidebar-offcanvas-toggler] {
    display: inline-flex !important;
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
    border-radius: 10px !important;
    background: #f3f4f6 !important;
    border: 1px solid #e5e7eb !important;
    color: #111827 !important;
    align-items: center !important;
    justify-content: center !important;
    pointer-events: auto !important;
    position: relative !important;
    z-index: 20 !important;
  }

  /* Na mobile przycisk ukończenia tylko na dole */
  .tutor-course-topic-single-header .b4ai-complete-btn-wrap,
  .tutor-single-page-top-bar .b4ai-complete-btn-wrap,
  .tutor-topbar-complete-btn {
    display: none !important;
  }

  /* =====================================================
     3. PLAYER — ODBLOKOWANIE KLIKANIA
     ===================================================== */

  .tutor-video-player-wrapper {
    width: calc(100vw - 24px) !important;
    max-width: calc(100vw - 24px) !important;
    margin: 14px auto 20px !important;
    border-radius: 14px !important;
    overflow: hidden !important;
    background: #000 !important;
    position: relative !important;
    z-index: 1 !important;
    pointer-events: auto !important;
  }

  .tutor-video-player,
  .plyr,
  .plyr__video-wrapper,
  .plyr iframe,
  .plyr video {
    pointer-events: auto !important;
  }

  .plyr,
  .plyr__video-wrapper {
    width: 100% !important;
    max-width: 100% !important;
    border-radius: 14px !important;
    overflow: hidden !important;
    background: #000 !important;
    position: relative !important;
  }

  .plyr__controls {
    display: flex !important;
    pointer-events: auto !important;
    z-index: 30 !important;
    left: 8px !important;
    right: 8px !important;
    bottom: 8px !important;
    gap: 6px !important;
    background: transparent !important;
    border: 0 !important;
    padding: 0 !important;
  }

  .plyr__controls * {
    pointer-events: auto !important;
  }

  .plyr__controls > .plyr__control,
  .plyr__control[data-plyr="fullscreen"],
  .plyr__controls > button[data-plyr="play"] {
    display: inline-flex !important;
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    border-radius: 10px !important;
    background: rgba(5,5,5,.88) !important;
    border: 1px solid rgba(255,255,255,.16) !important;
    color: #fff !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
  }

  .plyr__controls > button[data-plyr="play"] {
    width: 48px !important;
    min-width: 48px !important;
  }

  .plyr__progress__container {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    height: 40px !important;
    padding: 0 10px !important;
    border-radius: 10px !important;
    background: rgba(5,5,5,.88) !important;
    border: 1px solid rgba(255,255,255,.16) !important;
    display: flex !important;
    align-items: center !important;
    pointer-events: auto !important;
  }

  .plyr__progress,
  .plyr__progress input[type="range"] {
    width: 100% !important;
    max-width: none !important;
    pointer-events: auto !important;
  }

  .plyr__volume,
  .plyr__time,
  .plyr__menu,
  .b4ai-speed-wrap,
  .plyr__control[data-plyr="settings"],
  .plyr__control[data-plyr="captions"],
  .plyr__control[data-plyr="pip"],
  .plyr__control[data-plyr="airplay"],
  .plyr__control[data-plyr="download"],
  .plyr__control[data-plyr="share"] {
    display: none !important;
  }

  .plyr__control--overlaid {
    z-index: 31 !important;
    pointer-events: auto !important;
  }

  .plyr--playing .plyr__control--overlaid {
    display: none !important;
  }

  /* =====================================================
     4. TABS / PLIKI — USUNIĘCIE NIEWIDZIALNEGO BLOKERA
     ===================================================== */

  .tutor-course-spotlight-wrapper {
    width: calc(100vw - 24px) !important;
    max-width: calc(100vw - 24px) !important;
    margin: 0 auto 24px !important;
    border-radius: 18px !important;
    overflow: hidden !important;
    position: relative !important;
    z-index: 1 !important;
    pointer-events: auto !important;
  }

  .tutor-course-spotlight-wrapper::before,
  .tutor-course-spotlight-wrapper::after,
  .tutor-course-spotlight-tab::before,
  .tutor-course-spotlight-tab::after,
  .tutor-course-spotlight-nav::before,
  .tutor-course-spotlight-nav::after {
    display: none !important;
    content: none !important;
    pointer-events: none !important;
  }

  .tutor-course-spotlight-nav,
  .tutor-course-spotlight-nav *,
  .tutor-course-spotlight-tab,
  .tutor-course-spotlight-tab *,
  .tutor-nav-link {
    pointer-events: auto !important;
  }

  .tutor-course-spotlight-nav {
    position: relative !important;
    z-index: 10 !important;
    padding: 18px 14px 4px !important;
    display: flex !important;
    justify-content: center !important;
    gap: 8px !important;
    overflow-x: auto !important;
  }

  .tutor-course-spotlight-tab {
    position: relative !important;
    z-index: 2 !important;
    padding: 28px 24px !important;
  }

  /* =====================================================
     5. INLINE MIN-WIDTH 420px — TO ROZWALA MOBILE
     ===================================================== */

  .tutor-spotlight-mobile-progress-complete,
  .tutor-course-topic-single-footer {
    width: calc(100vw - 24px) !important;
    max-width: calc(100vw - 24px) !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .tutor-spotlight-mobile-progress-left {
    min-width: 0 !important;
    width: 100% !important;
    flex: 1 1 auto !important;
  }

  .tutor-spotlight-mobile-progress-complete .tutor-row {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
  }

  .tutor-spotlight-mobile-progress-complete .b4ai-complete-btn-wrap,
  .tutor-spotlight-mobile-progress-complete .b4ai-complete-btn {
    width: 100% !important;
    max-width: none !important;
  }
}
/* =========================================================
   BOOST4AI — MOBILE CLICK RESCUE / SIDEBAR FIX
   ========================================================= */

@media (max-width: 768px) {

  html,
  body {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
  }

  #tutor-page-wrap,
  .tutor-course-single-content-wrapper,
  #tutor-single-entry-content,
  .tutor-course-topic-single-body {
    width: 100% !important;
    max-width: 100vw !important;
    overflow-x: hidden !important;
    position: relative !important;
  }

  /* =====================================================
     SIDEBAR — DOMYŚLNIE NIE MOŻE PRZYKRYWAĆ STRONY
     ===================================================== */

  .tutor-course-single-sidebar-wrapper {
    position: fixed !important;
    inset: 0 !important;
    width: 100vw !important;
    max-width: 100vw !important;
    height: 100dvh !important;
    background: #fff !important;
    z-index: 999999 !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;

    transform: translateX(-110%) !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;

    transition: transform .22s ease, opacity .22s ease, visibility .22s ease !important;
  }

  body.b4ai-mobile-sidebar-open .tutor-course-single-sidebar-wrapper {
    transform: translateX(0) !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
  }

  body.b4ai-mobile-sidebar-open {
    overflow: hidden !important;
  }

  .tutor-course-single-sidebar-title {
    position: sticky !important;
    top: 0 !important;
    z-index: 2 !important;
    background: #fff !important;
    border-bottom: 1px solid #e5e7eb !important;
  }

  /* =====================================================
     HEADER — tytuł + hamburger, bez blokowania
     ===================================================== */

  .tutor-course-topic-single-header,
  .tutor-single-page-top-bar {
    width: 100% !important;
    max-width: 100vw !important;
    display: grid !important;
    grid-template-columns: 1fr 56px !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 20px 22px !important;
    min-height: 96px !important;
    background: #fff !important;
    border-bottom: 1px solid #e5e7eb !important;
    overflow: hidden !important;
    position: relative !important;
    z-index: 20 !important;
  }

  .tutor-course-topic-single-header-title,
  .tutor-single-page-top-bar .tutor-course-topic-single-header-title {
    grid-column: 1 !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    margin: 0 !important;
    font-size: 18px !important;
    line-height: 1.25 !important;
    font-weight: 900 !important;
    color: #111827 !important;
    white-space: normal !important;
  }

  /* Schowaj desktopowe/wsteczne ikonki, zostaw tylko hamburger */
  .tutor-course-topic-single-header > .tutor-course-topics-sidebar-toggler,
  .tutor-single-page-top-bar > .tutor-course-topics-sidebar-toggler,
  .tutor-course-topic-single-header > a.tutor-iconic-btn[href*="/kursy/"],
  .tutor-single-page-top-bar > a.tutor-iconic-btn[href*="/kursy/"] {
    display: none !important;
  }

  .tutor-course-topic-single-header .tutor-d-block.tutor-d-xl-none,
  .tutor-single-page-top-bar .tutor-d-block.tutor-d-xl-none {
    grid-column: 2 !important;
    display: flex !important;
    justify-content: flex-end !important;
    align-items: center !important;
    margin: 0 !important;
    pointer-events: auto !important;
    z-index: 30 !important;
  }

  [tutor-course-topics-sidebar-offcanvas-toggler] {
    display: inline-flex !important;
    width: 56px !important;
    height: 56px !important;
    min-width: 56px !important;
    border-radius: 14px !important;
    background: #f3f4f6 !important;
    border: 1px solid #d1d5db !important;
    color: #111827 !important;
    align-items: center !important;
    justify-content: center !important;
    pointer-events: auto !important;
    position: relative !important;
    z-index: 40 !important;
  }

  /* Przycisk ukończenia tylko na dole */
  .tutor-course-topic-single-header .b4ai-complete-btn-wrap,
  .tutor-single-page-top-bar .b4ai-complete-btn-wrap,
  .tutor-topbar-complete-btn {
    display: none !important;
  }

  /* =====================================================
     PLAYER / CONTENT — wymuszenie klikalności
     ===================================================== */

  .tutor-video-player-wrapper,
  .tutor-video-player,
  .plyr,
  .plyr__video-wrapper,
  .plyr__controls,
  .plyr__controls *,
  .tutor-course-spotlight-wrapper,
  .tutor-course-spotlight-nav,
  .tutor-course-spotlight-nav *,
  .tutor-course-spotlight-tab,
  .tutor-course-spotlight-tab * {
    pointer-events: auto !important;
  }

  .tutor-video-player-wrapper,
  .tutor-course-spotlight-wrapper,
  .tutor-spotlight-mobile-progress-complete,
  .tutor-course-topic-single-footer {
    width: calc(100vw - 24px) !important;
    max-width: calc(100vw - 24px) !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .tutor-video-player-wrapper {
    position: relative !important;
    z-index: 1 !important;
    margin-top: 14px !important;
    margin-bottom: 20px !important;
    border-radius: 14px !important;
    overflow: hidden !important;
  }

  .plyr,
  .plyr__video-wrapper {
    border-radius: 14px !important;
    overflow: hidden !important;
  }

  .plyr__controls {
    z-index: 50 !important;
  }

  .plyr__control--overlaid {
    z-index: 55 !important;
    pointer-events: auto !important;
  }

  .plyr--playing .plyr__control--overlaid {
    display: none !important;
  }

  /* Usuń rzeczy, które mogą robić wielkie niewidzialne warstwy */
  .tutor-video-player-wrapper::before,
  .tutor-video-player-wrapper::after,
  .tutor-course-spotlight-wrapper::before,
  .tutor-course-spotlight-wrapper::after,
  .tutor-course-spotlight-tab::before,
  .tutor-course-spotlight-tab::after,
  .tutor-course-spotlight-nav::before,
  .tutor-course-spotlight-nav::after,
  .plyr::before,
  .plyr::after,
  .plyr__video-wrapper::before,
  .plyr__video-wrapper::after {
    display: none !important;
    content: none !important;
    pointer-events: none !important;
  }

  /* Mobile progress: nadpisuje inline min-width 420px z HTML */
  .tutor-spotlight-mobile-progress-left {
    min-width: 0 !important;
    width: 100% !important;
    flex: 1 1 auto !important;
  }

  .tutor-spotlight-mobile-progress-complete .tutor-row {
    flex-direction: column !important;
    gap: 14px !important;
  }

  .tutor-spotlight-mobile-progress-complete .b4ai-complete-btn-wrap,
  .tutor-spotlight-mobile-progress-complete .b4ai-complete-btn {
    width: 100% !important;
    max-width: none !important;
  }
}
/* =========================================================
   BOOST4AI — MOBILE HEADER X + TITLE + BOTTOM COMPLETE
   ========================================================= */

@media (max-width: 768px) {

  /* HEADER: tytuł + burger + X */
  .tutor-course-topic-single-header,
  .tutor-single-page-top-bar {
    min-height: 118px !important;
    padding: 28px 22px 22px !important;
    display: grid !important;
    grid-template-columns: 1fr 58px 58px !important;
    grid-template-areas: "title burger close" !important;
    gap: 10px !important;
    align-items: center !important;
    background: #fff !important;
    border-bottom: 1px solid #e5e7eb !important;
  }

  .tutor-course-topic-single-header-title,
  .tutor-single-page-top-bar .tutor-course-topic-single-header-title {
    grid-area: title !important;
    font-size: 22px !important;
    line-height: 1.18 !important;
    font-weight: 900 !important;
    color: #111827 !important;
    margin: 0 !important;
    max-width: 100% !important;
    min-width: 0 !important;
    white-space: normal !important;
    overflow: visible !important;
    display: block !important;
  }

  /* ukryj mobilną strzałkę powrotu, bo zastępujemy ją X */
  .tutor-course-topic-single-header > a.tutor-iconic-btn[href*="/kursy/"],
  .tutor-single-page-top-bar > a.tutor-iconic-btn[href*="/kursy/"] {
    display: none !important;
  }

  /* hamburger */
  .tutor-course-topic-single-header .tutor-d-block.tutor-d-xl-none,
  .tutor-single-page-top-bar .tutor-d-block.tutor-d-xl-none {
    grid-area: burger !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
  }

  [tutor-course-topics-sidebar-offcanvas-toggler] {
    width: 56px !important;
    height: 56px !important;
    min-width: 56px !important;
    border-radius: 16px !important;
    background: #f3f4f6 !important;
    border: 1px solid #d1d5db !important;
    color: #111827 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    pointer-events: auto !important;
  }

  [tutor-course-topics-sidebar-offcanvas-toggler] span::before {
    color: #111827 !important;
    font-size: 22px !important;
  }

  /* X zamykający kurs */
  .b4ai-mobile-exit-course {
    grid-area: close !important;
    width: 56px !important;
    height: 56px !important;
    min-width: 56px !important;
    border-radius: 16px !important;
    background: #f3f4f6 !important;
    border: 1px solid #d1d5db !important;
    color: #111827 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-decoration: none !important;
    font-size: 34px !important;
    font-weight: 500 !important;
    line-height: 1 !important;
    pointer-events: auto !important;
  }

  .b4ai-mobile-exit-course:hover {
    background: #111827 !important;
    color: #fff !important;
    border-color: #111827 !important;
  }

  /* zero przycisku ukończenia w topbarze */
  .tutor-course-topic-single-header .b4ai-complete-btn-wrap,
  .tutor-single-page-top-bar .b4ai-complete-btn-wrap,
  .tutor-topbar-complete-btn {
    display: none !important;
  }

  /* dolny pasek progresu */
  .tutor-spotlight-mobile-progress-complete {
    width: calc(100vw - 24px) !important;
    max-width: calc(100vw - 24px) !important;
    margin: 18px auto 24px !important;
    padding: 18px !important;
    border-radius: 18px !important;
    background: #fff !important;
    border: 1px solid #e5e7eb !important;
  }

  .tutor-spotlight-mobile-progress-complete .tutor-row {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 14px !important;
  }

  .tutor-spotlight-mobile-progress-left {
    width: 100% !important;
    min-width: 0 !important;
    flex: 1 1 auto !important;
  }

  .tutor-spotlight-mobile-progress-right {
    width: 100% !important;
    display: flex !important;
    justify-content: center !important;
  }

  .b4ai-mobile-bottom-complete {
    display: flex !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
  }

  .b4ai-mobile-bottom-complete .b4ai-complete-btn {
    width: 100% !important;
    max-width: none !important;
    height: 46px !important;
    min-height: 46px !important;
    border-radius: 12px !important;
    background: #111827 !important;
    border: 1px solid #111827 !important;
    color: #fff !important;
    font-size: 13px !important;
    font-weight: 900 !important;
  }

  .b4ai-mobile-bottom-complete.is-completed .b4ai-complete-btn {
    background: #18a957 !important;
    border-color: #18a957 !important;
  }

  .b4ai-mobile-bottom-complete .b4ai-complete-btn:hover {
    background: #ff7a16 !important;
    border-color: #ff7a16 !important;
    color: #fff !important;
  }
}
/* =========================================================
   BOOST4AI — MOBILE HEADER FINAL: X LEFT / TITLE CENTER / BURGER RIGHT
   ========================================================= */

@media (max-width: 768px) {

  .tutor-course-topic-single-header,
  .tutor-single-page-top-bar {
    min-height: 104px !important;
    padding: 22px 16px !important;
    display: grid !important;
    grid-template-columns: 52px 1fr 52px !important;
    grid-template-areas: "close title burger" !important;
    gap: 10px !important;
    align-items: center !important;
    background: #fff !important;
    border-bottom: 1px solid #e5e7eb !important;
  }

  /* Ukryj oryginalne X/strzałki Tutora w headerze, żeby nie było dubli */
  .tutor-course-topic-single-header > a.tutor-iconic-btn,
  .tutor-single-page-top-bar > a.tutor-iconic-btn,
  .tutor-course-topic-single-header > .tutor-iconic-btn,
  .tutor-single-page-top-bar > .tutor-iconic-btn {
    display: none !important;
  }

  .b4ai-mobile-exit-course {
    grid-area: close !important;
    width: 52px !important;
    height: 52px !important;
    min-width: 52px !important;
    border-radius: 14px !important;
    background: #f3f4f6 !important;
    border: 1px solid #d1d5db !important;
    color: #111827 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-decoration: none !important;
    font-size: 30px !important;
    font-weight: 600 !important;
    line-height: 1 !important;
    pointer-events: auto !important;
  }

  .b4ai-mobile-exit-course:hover {
    background: #111827 !important;
    color: #fff !important;
    border-color: #111827 !important;
  }

  .tutor-course-topic-single-header-title,
  .tutor-single-page-top-bar .tutor-course-topic-single-header-title {
    grid-area: title !important;
    text-align: center !important;
    font-size: 16px !important;
    line-height: 1.25 !important;
    font-weight: 900 !important;
    color: #111827 !important;
    margin: 0 !important;
    min-width: 0 !important;
    max-width: 100% !important;
    white-space: normal !important;
    overflow: hidden !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
  }

  .tutor-course-topic-single-header .tutor-d-block.tutor-d-xl-none,
  .tutor-single-page-top-bar .tutor-d-block.tutor-d-xl-none {
    grid-area: burger !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    margin: 0 !important;
  }

  [tutor-course-topics-sidebar-offcanvas-toggler] {
    width: 52px !important;
    height: 52px !important;
    min-width: 52px !important;
    border-radius: 14px !important;
    background: #f3f4f6 !important;
    border: 1px solid #d1d5db !important;
    color: #111827 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    pointer-events: auto !important;
  }

  [tutor-course-topics-sidebar-offcanvas-toggler] span::before {
    color: #111827 !important;
    font-size: 22px !important;
  }

  /* Topbar: zero ukończenia na mobile */
  .tutor-course-topic-single-header .b4ai-complete-btn-wrap,
  .tutor-single-page-top-bar .b4ai-complete-btn-wrap,
  .tutor-topbar-complete-btn {
    display: none !important;
  }

  /* Dolny przycisk tylko mobile */
  .b4ai-mobile-bottom-complete {
    display: flex !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
  }

  .b4ai-mobile-bottom-complete .b4ai-complete-btn {
    width: 100% !important;
    max-width: none !important;
    height: 46px !important;
    min-height: 46px !important;
    border-radius: 12px !important;
    background: #111827 !important;
    border: 1px solid #111827 !important;
    color: #fff !important;
    font-size: 13px !important;
    font-weight: 900 !important;
  }

  .b4ai-mobile-bottom-complete.is-completed .b4ai-complete-btn {
    background: #18a957 !important;
    border-color: #18a957 !important;
  }
}

/* Desktop: usuń mobile buttony, żeby nie było dubli */
@media (min-width: 769px) {
  .b4ai-mobile-exit-course,
  .b4ai-mobile-bottom-complete {
    display: none !important;
  }
}
/* =========================================================
   BOOST4AI — MOBILE FINAL FIX: X / HOVER / FULLSCREEN BUTTON
   ========================================================= */

@media (max-width: 768px) {

  /* Ukryj oryginalny dodatkowy X/ikonę Tutora w headerze */
  .tutor-course-topic-single-header > a.tutor-iconic-btn,
  .tutor-single-page-top-bar > a.tutor-iconic-btn,
  .tutor-course-topic-single-header > .tutor-iconic-btn,
  .tutor-single-page-top-bar > .tutor-iconic-btn {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }

  /* Nasz X — mniejszy */
  .b4ai-mobile-exit-course {
    width: 46px !important;
    height: 46px !important;
    min-width: 46px !important;
    border-radius: 13px !important;
    font-size: 28px !important;
    font-weight: 600 !important;
  }

  [tutor-course-topics-sidebar-offcanvas-toggler] {
    width: 46px !important;
    height: 46px !important;
    min-width: 46px !important;
    border-radius: 13px !important;
  }

  .tutor-course-topic-single-header,
  .tutor-single-page-top-bar {
    grid-template-columns: 46px 1fr 46px !important;
    min-height: 92px !important;
    padding: 18px 16px !important;
  }

  .tutor-course-topic-single-header-title,
  .tutor-single-page-top-bar .tutor-course-topic-single-header-title {
    font-size: 15px !important;
    line-height: 1.25 !important;
  }

  /* Na telefonie hover nie może zostawać pomarańczowy */
  .b4ai-complete-btn:hover,
  .b4ai-complete-btn:focus,
  .b4ai-complete-btn:active {
    transform: none !important;
    box-shadow: none !important;
  }

  .b4ai-complete-btn-wrap.is-completed .b4ai-complete-btn,
  .b4ai-complete-btn-wrap.is-completed .b4ai-complete-btn:hover,
  .b4ai-complete-btn-wrap.is-completed .b4ai-complete-btn:focus,
  .b4ai-complete-btn-wrap.is-completed .b4ai-complete-btn:active {
    background: #18a957 !important;
    border-color: #18a957 !important;
    color: #fff !important;
  }

  .b4ai-complete-btn-wrap:not(.is-completed) .b4ai-complete-btn,
  .b4ai-complete-btn-wrap:not(.is-completed) .b4ai-complete-btn:hover,
  .b4ai-complete-btn-wrap:not(.is-completed) .b4ai-complete-btn:focus,
  .b4ai-complete-btn-wrap:not(.is-completed) .b4ai-complete-btn:active {
    background: #111827 !important;
    border-color: #111827 !important;
    color: #fff !important;
  }

  /* Fullscreen button nad wszystkim i klikalny */
  .plyr__control[data-plyr="fullscreen"] {
    display: inline-flex !important;
    pointer-events: auto !important;
    z-index: 80 !important;
    touch-action: manipulation !important;
  }
}
/* =========================================================
   BOOST4AI — MOBILE X + FULLSCREEN FINAL FIX
   ========================================================= */

@media (max-width: 768px) {

  /* Ukryj cały desktopowy prawy blok: postęp + tutorowy przycisk + tutorowy X */
  .tutor-course-topic-single-header .tutor-d-none.tutor-d-xl-flex,
  .tutor-single-page-top-bar .tutor-d-none.tutor-d-xl-flex {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }

  /* Header: X lewo, tytuł środek, burger prawo */
  .tutor-course-topic-single-header,
  .tutor-single-page-top-bar {
    display: grid !important;
    grid-template-columns: 44px 1fr 44px !important;
    grid-template-areas: "close title burger" !important;
    align-items: center !important;
    gap: 10px !important;
    min-height: 82px !important;
    padding: 16px 14px !important;
  }

  .b4ai-mobile-exit-course {
    grid-area: close !important;
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    border-radius: 12px !important;
    background: #f3f4f6 !important;
    border: 1px solid #d1d5db !important;
    color: #111827 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-decoration: none !important;
    font-size: 0 !important;
    line-height: 1 !important;
    font-weight: 400 !important;
  }

  /* Lżejszy X zamiast ciężkiego znaku × */
  .b4ai-mobile-exit-course span {
    display: none !important;
  }

  .b4ai-mobile-exit-course::before,
  .b4ai-mobile-exit-course::after {
    content: "" !important;
    position: absolute !important;
    width: 18px !important;
    height: 2px !important;
    border-radius: 99px !important;
    background: #111827 !important;
    display: block !important;
  }

  .b4ai-mobile-exit-course::before {
    transform: rotate(45deg) !important;
  }

  .b4ai-mobile-exit-course::after {
    transform: rotate(-45deg) !important;
  }

  .tutor-course-topic-single-header-title,
  .tutor-single-page-top-bar .tutor-course-topic-single-header-title {
    grid-area: title !important;
    text-align: center !important;
    font-size: 15px !important;
    line-height: 1.25 !important;
    font-weight: 900 !important;
    margin: 0 !important;
    min-width: 0 !important;
    max-width: 100% !important;
  }

  .tutor-course-topic-single-header .tutor-d-block.tutor-d-xl-none,
  .tutor-single-page-top-bar .tutor-d-block.tutor-d-xl-none {
    grid-area: burger !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
  }

  [tutor-course-topics-sidebar-offcanvas-toggler] {
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    border-radius: 12px !important;
  }

  /* Fullscreen button musi być realnie klikalny */
  .plyr__control[data-plyr="fullscreen"] {
    display: inline-flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    touch-action: manipulation !important;
    position: relative !important;
    z-index: 999 !important;
  }
}


@media (max-width: 768px) {
  .plyr__control[data-plyr="fullscreen"] {
    display: none !important;
  }
}