/*
Theme Name: MYBZZ Blog
Theme URI: https://mybzz.com/blog
Author: MYBZZ
Description: Custom WordPress theme cloning the MYBZZ Next.js blog design (Tailwind-based). Blog list + single article templates are hand-coded for 1:1 fidelity and git versioning; Elementor is used only for marketing pages.
Version: 3.1.2
Requires at least: 6.0
Requires PHP: 8.1
Text Domain: mybzz-blog
*/

/*
  Utility/component styles that are NOT generated by Tailwind.
  Tailwind output is compiled to /assets/css/main.css and enqueued in functions.php.
  Ported verbatim from the Next.js app (src/styles/index.css).
*/

/* ===== Inter self-hosted (latin + latin-ext dla polskich znaków) =====
   Przeglądarka pobiera tylko pliki pasujące do unicode-range na stronie. */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("https://mybzz.com/blog/wp-content/themes/mybzz-blog/assets/fonts/inter-latin-400.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("https://mybzz.com/blog/wp-content/themes/mybzz-blog/assets/fonts/inter-latin-ext-400.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1EFF, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("https://mybzz.com/blog/wp-content/themes/mybzz-blog/assets/fonts/inter-latin-500.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("https://mybzz.com/blog/wp-content/themes/mybzz-blog/assets/fonts/inter-latin-ext-500.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1EFF, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("https://mybzz.com/blog/wp-content/themes/mybzz-blog/assets/fonts/inter-latin-600.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("https://mybzz.com/blog/wp-content/themes/mybzz-blog/assets/fonts/inter-latin-ext-600.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1EFF, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("https://mybzz.com/blog/wp-content/themes/mybzz-blog/assets/fonts/inter-latin-700.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("https://mybzz.com/blog/wp-content/themes/mybzz-blog/assets/fonts/inter-latin-ext-700.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1EFF, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ===== Tło bloga: "czysty glow" (wybór Kate) + karta artykułu ===== */
/* Mobile dostaje płaskie tło: glow i tak niewidoczny pod kartą full-width,
   a background-attachment: fixed wymusza repaint przy każdym scrollu. */
body.mybzz-body {
  background: #f6f9fc;
}

@media (min-width: 992px) {
  body.mybzz-body {
    background:
      radial-gradient(60% 40% at 15% 0%, rgba(1, 170, 233, 0.10) 0%, rgba(1, 170, 233, 0) 60%),
      radial-gradient(50% 35% at 90% 25%, rgba(168, 231, 255, 0.14) 0%, rgba(168, 231, 255, 0) 60%),
      radial-gradient(55% 40% at 40% 100%, rgba(1, 170, 233, 0.07) 0%, rgba(1, 170, 233, 0) 60%),
      #f6f9fc;
    background-attachment: fixed;
  }
}

.mybzz-article-card {
  background: #fff;
  border-radius: 20px;
  border: 1px solid rgba(1, 170, 233, 0.14);
  box-shadow: 0 18px 50px -20px rgba(12, 20, 31, 0.14), 0 2px 8px rgba(12, 20, 31, 0.04);
  padding: 48px 44px;
}

@media (max-width: 991px) {
  .mybzz-article-card { padding: 32px 24px; }
}

@media (max-width: 575px) {
  /* Mobile: karta na całą szerokość, bez bocznych ramek */
  .mybzz-article-card {
    margin-left: -1rem;
    margin-right: -1rem;
    width: auto;
    border-radius: 0;
    border-left: 0;
    border-right: 0;
    padding: 28px 16px;
  }
}

/* ===== Typografia globalna ===== */
/* Wygładzanie fontu na całym blogu — Inter renderuje się miękko zamiast
   "ostro" (standard: Stripe, Medium, Linear). */
body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Nagłówki bez sieroty w ostatniej linii; akapity z ładnym łamaniem. */
h1, h2, h3 { text-wrap: balance; }
#content p, .mybzz-lead p { text-wrap: pretty; }

/* ===== Article body typography — narrow, readable, MYBZZ palette ===== */
#content {
  font-size: 17.5px;
  line-height: 1.8;
  color: #334155;
}

@media (max-width: 575px) {
  #content { font-size: 16.5px; }
}

#content h1,
#content h2,
#content h3,
#content h4,
#content h5,
#content h6 {
  color: #0c141f;
  font-weight: 700;
  line-height: 1.3;
  scroll-margin-top: 110px;
}

#content h2 {
  font-size: 1.75rem;
  margin: 1.7em 0 0.55em;
  padding-bottom: 0.4rem;
  border-bottom: 2px solid #eaf7fd;
}

#content h3 {
  font-size: 1.375rem;
  margin: 1.4em 0 0.45em;
}

#content h4,
#content h5,
#content h6 {
  font-size: 1.125rem;
  margin: 1.2em 0 0.4em;
}

#content p {
  margin-bottom: 1.1rem;
}

#content strong { color: #0c141f; }

#content img {
  max-width: 100%;
  height: auto;
  border-radius: 0.75rem;
  margin: 1.75rem 0;
  box-shadow: 0 5px 15px rgba(6, 8, 15, 0.08);
}

#content ul,
#content ol {
  margin: 0 0 1.1rem 1.5rem;
}

#content li { margin-bottom: 0.3rem; }
#content li::marker { color: #01aae9; }

#content ul { list-style: disc; }
#content ol { list-style: decimal; }

#content a {
  color: #01aae9;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(1, 170, 233, 0.4);
}

#content a:hover { text-decoration-color: #01aae9; }

#content blockquote {
  margin: 1.75rem 0;
  padding: 1rem 1.5rem;
  border-left: 3px solid #01aae9;
  border-radius: 0 0.75rem 0.75rem 0;
  background: #f5fdff;
  color: #2c3543;
  font-style: italic;
}

#content blockquote p:last-child { margin-bottom: 0; }

#content code {
  background: #f0f2f9;
  border-radius: 0.3rem;
  padding: 0.15rem 0.4rem;
  font-size: 0.9em;
  color: #0c141f;
}

#content pre {
  background: #0e1116;
  color: #e7eef7;
  border-radius: 0.75rem;
  padding: 1.25rem 1.5rem;
  margin: 1.75rem 0;
  overflow-x: auto;
  font-size: 0.9rem;
  line-height: 1.6;
}

#content pre code {
  background: none;
  padding: 0;
  color: inherit;
}

#content table {
  width: 100%;
  margin: 1.75rem 0;
  border-collapse: collapse;
  font-size: 0.95rem;
}

#content th,
#content td {
  border: 1px solid #e3e8ef;
  padding: 0.6rem 0.9rem;
  text-align: left;
}

#content th {
  background: #f5fdff;
  color: #0c141f;
  font-weight: 700;
}

#content hr {
  border: 0;
  border-top: 1px solid #e3e8ef;
  margin: 2.5rem 0;
}

/* Lead / excerpt pod tytułem — świadoma hierarchia: większy od treści
   (wzorzec edytorski), ten sam atrament co treść. */
.mybzz-lead p {
  font-size: 19.5px;
  line-height: 1.6;
  color: #334155;
  font-weight: 400;
  margin: 0;
}

@media (max-width: 575px) {
  .mybzz-lead p { font-size: 18.5px; }
}

/* Easy Table of Contents — card look in MYBZZ colors */
#ez-toc-container,
div#ez-toc-container {
  width: 100%;
  margin: 1.5rem 0 1.75rem;
  padding: 1.25rem 1.5rem;
  background: #f5fdff;
  border: 1px solid rgba(1, 170, 233, 0.25);
  border-radius: 0.75rem;
  box-shadow: none;
}

#ez-toc-container .ez-toc-title {
  color: #0c141f;
  font-weight: 700;
  font-size: 1rem;
}

#ez-toc-container a,
#ez-toc-container a:visited {
  color: #334155;
  font-size: 0.95rem;
  text-decoration: none;
}

#ez-toc-container a:hover {
  color: #01aae9;
  text-decoration: none;
}

#ez-toc-container nav li {
  margin: 0.35rem 0;
}

/* Spis treści: czysta lista H2 (standard blogowy); kotwice H3 dodaje
   motyw bezpośrednio w nagłówkach (id) — bez linków w spisie. */
#ez-toc-container .ez-toc-list-level-3,
#ez-toc-container .ez-toc-list-level-4 {
  display: none;
}

/* Płynne przewijanie do kotwic — czysty CSS, bez JS wtyczki */
html { scroll-behavior: smooth; }

/* Szary przycisk zwijania wtyczki nie pasuje do karty — chowamy. */
#ez-toc-container .ez-toc-title-toggle {
  display: none;
}

/* Kotwice ToC to puste spany w nagłówkach — offset pod sticky header. */
#content .ez-toc-section {
  scroll-margin-top: 110px;
}

/* Szerokie tabele na mobile: przewijaj zamiast przycinać. */
@media (max-width: 767px) {
  #content table {
    display: block;
    overflow-x: auto;
  }
}

/* ===== CTA — sticky sidebar card + wide banner (dark + blue glow) ===== */
.mybzz-cta-card,
.mybzz-cta-banner,
.mybzz-cta-inline {
  position: relative;
  overflow: hidden;
  color: #fff;
  border: 1px solid rgba(1, 170, 233, 0.35);
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(1, 170, 233, 0.35) 0%, rgba(1, 170, 233, 0) 55%),
    radial-gradient(100% 80% at 0% 100%, rgba(168, 231, 255, 0.16) 0%, rgba(168, 231, 255, 0) 50%),
    linear-gradient(160deg, #14181f 0%, #0b0f14 100%);
  box-shadow: 0 20px 50px -18px rgba(1, 170, 233, 0.45);
}

.mybzz-cta-card {
  border-radius: 1.25rem;
  padding: 1.75rem 1.5rem;
}

.mybzz-cta-banner {
  border-radius: 1.25rem;
  padding: 2.75rem 1.75rem;
}

/* Inline CTA w środku artykułu — kompaktowy, poziomy */
.mybzz-cta-inline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  margin: 2.5rem 0;
  padding: 1.5rem 1.75rem;
  border-radius: 1rem;
}

#content .mybzz-cta-inline__title {
  margin: 0 0 0.25rem;
  color: #fff;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.4;
}

#content .mybzz-cta-inline__sub {
  margin: 0;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.9rem;
  line-height: 1.5;
}

#content .mybzz-cta-inline__btn {
  flex-shrink: 0;
  display: inline-block;
  padding: 0.7rem 1.6rem;
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}

.mybzz-cta-inline__text {
  flex: 1 1 280px;
  min-width: 0;
}

.mybzz-cta-card::before,
.mybzz-cta-banner::before,
.mybzz-cta-inline::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, rgba(1, 170, 233, 0) 0%, rgba(168, 231, 255, 0.7) 50%, rgba(1, 170, 233, 0) 100%);
}

.mybzz-cta-card__badge {
  display: inline-block;
  margin-bottom: 0.9rem;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  border: 1px solid rgba(1, 170, 233, 0.45);
  background: rgba(1, 170, 233, 0.12);
  color: #5bd0ff;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.mybzz-btn-gradient {
  display: block;
  text-align: center;
  border-radius: 9999px;
  padding: 0.8rem 1.5rem;
  font-weight: 600;
  font-size: 1rem;
  color: #fff;
  background: linear-gradient(90deg, #01aae9 0%, #38c6ff 100%);
  box-shadow: 0 8px 24px -6px rgba(1, 170, 233, 0.6);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.mybzz-btn-gradient:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 12px 28px -6px rgba(1, 170, 233, 0.75);
}

/* Mniejszy wariant (header) */
.mybzz-btn-gradient--sm {
  display: inline-block;
  padding: 0.45rem 1.75rem;
  font-size: 1.125rem;
}

/* ===== Footer — ciemny, w palecie MYBZZ ===== */
.mybzz-footer {
  position: relative;
  background:
    radial-gradient(90% 70% at 50% 0%, rgba(1, 170, 233, 0.12) 0%, rgba(1, 170, 233, 0) 55%),
    linear-gradient(180deg, #0b0f14 0%, #080b10 100%);
}

.mybzz-footer::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, rgba(1, 170, 233, 0) 0%, rgba(1, 170, 233, 0.5) 50%, rgba(1, 170, 233, 0) 100%);
}

.mybzz-footer__social {
  display: flex;
  height: 2.25rem;
  width: 2.25rem;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.65);
  transition: border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.mybzz-footer__social:hover {
  border-color: rgba(1, 170, 233, 0.6);
  color: #01aae9;
  transform: translateY(-2px);
}

/* Reading progress bar (top of viewport) */
#mybzz-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, #01aae9, #a8e7ff);
  pointer-events: none;
}

/* Table of Contents — ported from src/styles/index.css */
.toc ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.toc-item {
  margin: 5px 0;
  position: relative;
}

.toc-item a {
  color: inherit;
  text-decoration: none;
}

.toc-item a:hover {
  color: #01AAE9;
}

.toc-item-3 { margin-left: 20px; }
.toc-item-4 { margin-left: 40px; }

/* Sticky header (mirrors the Next.js sticky state: gray-dark, blurred, fixed) */
.mybzz-header.is-sticky {
  background-color: rgba(28, 30, 36, 0.8); /* A1: między granatem #1E232E a neutralną czernią */
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  box-shadow: inset 0 -1px 0 0 rgba(255, 255, 255, 0.1);
  transition: background-color 0.3s ease;
}

/* Logo SVG ma proporcje z taglinem (viewBox wyższy niż 30px) — bez twardej
   wysokości rozdyma header do ~88px. */
.header-logo img {
  height: 56px;
  width: auto;
}

/* Wysokość paska stała w obu stanach — zmienia się tylko tło (płynnie). */
.mybzz-header {
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

/* Mobile menu open state */
.mybzz-navbar.navbar-open {
  visibility: visible;
  top: 100%;
}

/* Hamburger -> X when open */
#mybzz-menu-toggle.is-open .bar:nth-child(1) { transform: translateY(6px) rotate(45deg); }
#mybzz-menu-toggle.is-open .bar:nth-child(2) { opacity: 0; }
#mybzz-menu-toggle.is-open .bar:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Language dropdown (jak seoapp.ai: flaga + kod, mały dropdown pod spodem) */
/* ===== Przełącznik języka — rozwijana lista (dropdown) z grupami + szukajka ===== */
.mybzz-lang-dd { position: relative; }

.mybzz-lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  cursor: pointer;
  border-radius: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  padding: 0.5rem 0.7rem;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 500;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.mybzz-lang-btn:hover { border-color: rgba(1, 170, 233, 0.6); background: rgba(255, 255, 255, 0.1); }
.mybzz-lang-btn__fl { font-size: 1.05rem; line-height: 1; }
.mybzz-lang-btn__chev { opacity: 0.8; }

/* Dropdown: panel zakotwiczony pod przyciskiem (nie popup) */
/* Atrybut hidden musi wygrać z display:flex poniżej (inaczej menu jest zawsze otwarte). */
.mybzz-lang-menu[hidden] { display: none !important; }
.mybzz-lang-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 0.5rem);
  z-index: 9999;
  width: 19rem;
  max-width: calc(100vw - 2rem);
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 0.85rem;
  border: 1px solid #eef0f4;
  box-shadow: 0 18px 50px -16px rgba(6, 8, 15, 0.32);
  overflow: hidden;
  animation: mybzzPop 0.15s ease-out;
}
.mybzz-lang-menu__title {
  padding: 0.7rem 0.85rem 0.1rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #64748b;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
.mybzz-lang-menu__search {
  margin: 0.45rem 0.6rem 0.35rem;
  padding: 0.55rem 0.8rem;
  border: 1px solid #e3e8ef;
  border-radius: 0.6rem;
  font-size: 0.92rem;
  color: #0c141f;
  outline: none;
  background: #f8fafc;
}
.mybzz-lang-menu__search:focus {
  border-color: #01aae9;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(1, 170, 233, 0.12);
}
.mybzz-lang-menu__scroll {
  overflow-y: auto;
  max-height: 28rem;
  padding: 0.15rem 0.5rem 0.6rem;
  scrollbar-width: thin;
}
.mybzz-lang-head {
  padding: 0.6rem 0.5rem 0.3rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #94a3b8;
}
.mybzz-lang-all { border-top: 1px solid #f1f5f9; margin-top: 0.35rem; }
.mybzz-lang-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.55rem 0.6rem;
  border-radius: 0.55rem;
  color: #0c141f;
  font-size: 0.95rem;
  text-decoration: none;
  transition: background 0.12s ease, color 0.12s ease;
}
.mybzz-lang-row:hover { background: #f5fdff; color: #01aae9; }
.mybzz-lang-row.is-current { font-weight: 700; background: #f0fbff; }
.mybzz-lang-row__fl { font-size: 1.15rem; line-height: 1; }
.mybzz-lang-row__nm { flex: 1; }
.mybzz-lang-row__ck { flex-shrink: 0; }
.mybzz-lang-row.is-hidden { display: none; }
.mybzz-lang-nores { padding: 1rem; text-align: center; color: #94a3b8; font-size: 0.9rem; }

@keyframes mybzzFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes mybzzPop {
  from { opacity: 0; transform: translateY(-8px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Hero — czysty ciemny gradient z niebieską poświatą (bez zdjęć) */
.mybzz-hero {
  box-shadow: inset 0 -1px 0 rgba(91, 208, 255, 0.22);
  background:
    radial-gradient(80% 120% at 50% -20%, rgba(1, 170, 233, 0.25) 0%, rgba(1, 170, 233, 0) 60%),
    linear-gradient(180deg, #0b0f14 0%, #10151c 100%);
}

.mybzz-hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(1, 170, 233, 0) 0%, rgba(1, 170, 233, 0.5) 50%, rgba(1, 170, 233, 0) 100%);
}

/* Widget "Oceń ten artykuł" — klikalne gwiazdki */
.mybzz-rate {
  margin-top: 3rem;
  padding: 1.5rem 1.75rem;
  border: 1px solid #eef0f4;
  border-radius: 1rem;
  background: #f5fdff;
  text-align: center;
}

.mybzz-rate__title {
  margin: 0 0 0.5rem;
  font-weight: 700;
  color: #0c141f;
}

.mybzz-rate__stars {
  display: flex;
  justify-content: center;
  gap: 0.25rem;
}

.mybzz-rate__star {
  background: none;
  border: 0;
  padding: 0 0.15rem;
  font-size: 1.9rem;
  line-height: 1;
  color: #d4dbe5;
  cursor: pointer;
  transition: color 0.15s ease, transform 0.15s ease;
}

.mybzz-rate__star.is-active { color: #fbb040; }
.mybzz-rate__star:hover { transform: scale(1.15); }

.mybzz-rate.is-done .mybzz-rate__star {
  cursor: default;
  pointer-events: none;
}

.mybzz-rate__info {
  margin: 0.5rem 0 0;
  font-size: 0.875rem;
  color: #788293;
}

/* Zachęta po doczytaniu: pulsująca poświata wokół widgetu ocen */
.mybzz-rate.is-nudge {
  border-color: rgba(1, 170, 233, 0.5);
  animation: mybzzNudge 1.2s ease 2;
}

@keyframes mybzzNudge {
  0%, 100% { box-shadow: none; }
  50% { box-shadow: 0 0 0 8px rgba(1, 170, 233, 0.15); }
}

/* ===== FAQ-akordeon (auto z sekcji H2 "FAQ" + pytania H3) ===== */
#content .mybzz-faq {
  margin: 0 0 0.75rem;
  border: 1px solid #eef0f4;
  border-radius: 0.75rem;
  background: #fff;
  overflow: hidden;
  transition: border-color 0.2s ease;
}

#content .mybzz-faq:hover { border-color: rgba(1, 170, 233, 0.4); }

#content .mybzz-faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  cursor: pointer;
  list-style: none;
  font-weight: 600;
  color: #0c141f;
}

#content .mybzz-faq summary::-webkit-details-marker { display: none; }

#content .mybzz-faq summary::after {
  content: "+";
  flex-shrink: 0;
  color: #01aae9;
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1;
  transition: transform 0.2s ease;
}

#content .mybzz-faq[open] summary::after { transform: rotate(45deg); }
#content .mybzz-faq[open] summary { border-bottom: 1px solid #eef0f4; }

#content .mybzz-faq__a { padding: 0.9rem 1.25rem 0.25rem; }
#content .mybzz-faq__a > p:last-child { margin-bottom: 0.9rem; }

/* Cookie consent banner (współdzieli zgodę z appką: mybzz_cookie_consent) */
.mybzz-cc {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 99999;
  display: flex;
  justify-content: center;
  padding: 1rem;
}
.mybzz-cc__card {
  background: #fff;
  color: #0c141f;
  width: 100%;
  max-width: 560px;
  border-radius: 0.75rem;
  padding: 1.25rem 1.5rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
}
.mybzz-cc__title { font-size: 1.1rem; font-weight: 700; margin: 0 0 0.5rem; }
.mybzz-cc__desc { font-size: 0.875rem; color: #4b5563; margin: 0 0 1rem; line-height: 1.5; }
.mybzz-cc__desc a { color: #01aae9; text-decoration: underline; }
.mybzz-cc__details { display: none; margin: 0 0 1rem; }
.mybzz-cc.is-open .mybzz-cc__details { display: block; }
.mybzz-cc__row {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  padding: 0.5rem 0;
  border-top: 1px solid #eef0f4;
  cursor: pointer;
}
.mybzz-cc__row input { margin-top: 0.2rem; }
.mybzz-cc__row strong { display: block; font-size: 0.875rem; }
.mybzz-cc__row span { display: block; font-size: 0.8rem; color: #788293; }
.mybzz-cc__actions { display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: flex-end; }
.mybzz-cc__btn {
  border: 0;
  border-radius: 9999px;
  padding: 0.5rem 1.1rem;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
}
.mybzz-cc__btn--ghost { background: #f0f2f9; color: #0c141f; }
.mybzz-cc__btn--ghost:hover { background: #e3e8ef; }
.mybzz-cc__btn--primary {
  color: #fff;
  background: linear-gradient(355.35deg, #01aae9 -249.48%, #a8e7ff 322.28%);
}
.mybzz-cc__btn--primary:hover { opacity: 0.85; }

/* ===== 404 — "connection not found" (1:1 z aplikacji MYBZZ) ===== */
.mybzz-404 {
  min-height: 100vh;
  background:
    radial-gradient(55% 45% at 50% 30%, rgba(1, 170, 233, 0.14) 0%, rgba(1, 170, 233, 0) 65%),
    #0b0f14;
}

.mybzz-404__match {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 2rem;
}

.mybzz-404__avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  font-size: 28px;
}

.mybzz-404__avatar--you {
  background: rgba(1, 170, 233, 0.16);
  border: 1px solid rgba(1, 170, 233, 0.55);
  box-shadow: 0 0 28px rgba(1, 170, 233, 0.35);
}

.mybzz-404__avatar--ghost {
  background: rgba(255, 255, 255, 0.05);
  border: 1px dashed rgba(255, 255, 255, 0.25);
}

.mybzz-404__dash {
  width: 26px;
  border-top: 2px dashed rgba(255, 255, 255, 0.3);
}

.mybzz-404__zap { font-size: 20px; }

.mybzz-404__badge {
  display: inline-block;
  margin-bottom: 1.25rem;
  padding: 6px 16px;
  border: 1px solid rgba(1, 170, 233, 0.5);
  border-radius: 999px;
  background: rgba(1, 170, 233, 0.10);
  color: #5bd0ff;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.mybzz-404__code {
  margin-bottom: 0.5rem;
  font-size: clamp(88px, 16vw, 132px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  background: linear-gradient(120deg, #01aae9 20%, #a8e7ff 80%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.mybzz-404__btn-primary {
  display: inline-flex;
  align-items: center;
  padding: 12px 28px;
  border-radius: 999px;
  background: linear-gradient(90deg, #01aae9 0%, #38c6ff 100%);
  color: #fff;
  font-weight: 600;
  box-shadow: 0 12px 30px -8px rgba(1, 170, 233, 0.55);
  transition: transform 0.2s, box-shadow 0.2s;
}

.mybzz-404__btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 36px -8px rgba(1, 170, 233, 0.65);
}

.mybzz-404__btn-outline {
  display: inline-flex;
  align-items: center;
  padding: 12px 28px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff;
  font-weight: 600;
  transition: border-color 0.2s, background 0.2s;
}

.mybzz-404__btn-outline:hover {
  border-color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.06);
}

/* ===== RTL (ar, he, fa, ur) — treść i FAQ czytane od prawej ===== */
html[dir="rtl"] #content,
html[dir="rtl"] .mybzz-lead,
html[dir="rtl"] .mybzz-faq { text-align: right; }
html[dir="rtl"] #content ul,
html[dir="rtl"] #content ol { margin-right: 1.5rem; margin-left: 0; }
html[dir="rtl"] .mybzz-faq summary { padding-right: 0; padding-left: 1.5rem; }
