:root {
  --bg-primary: #0b0b12;
  --bg-secondary: #131325;
  --text-main: #f3f4ff;
  --text-muted: #b3b7d6;
  --accent-a: #7a2cff;
  --accent-b: #2894ff;
  --card-border: rgba(255, 255, 255, 0.12);
  --card-glow: rgba(122, 44, 255, 0.35);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  margin: 0;
  padding: 0;
  /* Jednolite tło — przy scrollu nie przelicza się duży gradient na całym viewportcie */
  background-color: var(--bg-primary);
  scroll-behavior: auto;
  overflow-x: clip;
}

body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--text-main);
  background-color: var(--bg-primary);
  overflow-x: clip;
  /* Płynniejszy scroll na iOS (momentum); bez wpływu na desktop */
  -webkit-overflow-scrolling: touch;
}

/* ── Lewy pasek nawigacji (tylko layout strony głównej z klasą .site-nav-layout) ── */
body.site-nav-layout {
  --site-nav-expanded-w: 272px;
  --site-nav-collapsed-w: 72px;
  --site-nav-current-w: var(--site-nav-expanded-w);
}

body.site-nav-layout.site-nav--collapsed {
  --site-nav-current-w: var(--site-nav-collapsed-w);
}

#siteNavDrawer.site-nav-drawer {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 120;
  display: flex;
  flex-direction: column;
  width: var(--site-nav-current-w);
  background: linear-gradient(180deg, #14142a 0%, #0d0e18 55%, #0a0a12 100%);
  border-right: 1px solid var(--card-border);
  box-shadow: 4px 0 24px rgba(0, 0, 0, 0.35);
  overflow: hidden;
  transition:
    width 0.22s ease,
    border-color 0.2s ease;
}

@media (prefers-reduced-motion: reduce) {
  #siteNavDrawer.site-nav-drawer {
    transition: none;
  }
}

/* Kolumna z nagłówkiem i menu (+ opcjonalny pasek z prawej tylko na telefonie) */
.site-nav-drawer__shell {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  min-width: 0;
  overflow: hidden;
}

/* Dodatkowy „zwiń” na całej wysokości prawej krawędzi — włącza się tylko w @media mobilnym przy rozwiniętym panelu */
.site-nav-drawer__collapse-edge {
  display: none;
  align-self: stretch;
  align-items: center;
  justify-content: center;
  width: 44px;
  margin: 0;
  padding: 0;
  border: none;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.05) 0%,
    rgba(8, 8, 14, 0.45) 100%
  );
  color: rgba(255, 255, 255, 0.88);
  cursor: pointer;
  flex-shrink: 0;
  font: inherit;
  transition:
    background 0.15s ease,
    color 0.15s ease;
}

.site-nav-drawer__collapse-edge:hover {
  background: rgba(122, 44, 255, 0.14);
}

.site-nav-drawer__collapse-edge:focus-visible {
  outline: none;
  box-shadow: inset 0 0 0 2px rgba(122, 44, 255, 0.55);
}

.site-nav-drawer__collapse-edge-icon {
  display: flex;
}

@media (prefers-reduced-motion: reduce) {
  .site-nav-drawer__collapse-edge {
    transition: none;
  }
}

/* Kontener na dzwonek powiadomień (mobile: dolna część drawera); countdown Premium pozostaje w .hero */
#siteNavAlertsHost.site-nav-drawer__alerts:empty {
  display: none !important;
}

@media (max-width: 767px) {
  #siteNavAlertsHost.site-nav-drawer__alerts {
    display: none;
  }

  #siteNavAlertsHost.site-nav-drawer__alerts:has(.creator-notif-wrap:not([hidden])) {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex-shrink: 0;
    margin-top: auto;
    padding: 10px 12px max(12px, env(safe-area-inset-bottom, 0px));
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(0, 0, 0, 0.22);
  }

  #siteNavAlertsHost .creator-notif-wrap {
    width: 100%;
  }

  /* Jak .site-nav__item--row (np. Support): prostokąt, bez obramowania pilulki */
  #siteNavAlertsHost .creator-notif__toggle.btn-o-nas {
    display: flex;
    width: 100%;
    box-sizing: border-box;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    padding: 12px 14px;
    padding-right: 32px;
    margin: 0;
    border: none;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
    font: inherit;
    font-weight: 650;
    font-size: 0.93rem;
    white-space: normal;
    text-align: left;
    transition:
      background 0.12s ease,
      filter 0.12s ease,
      box-shadow 0.12s ease;
  }

  #siteNavAlertsHost .creator-notif__toggle.btn-o-nas:hover {
    filter: brightness(1.06);
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.08);
    border-color: transparent;
  }

  #siteNavAlertsHost .creator-notif__toggle.btn-o-nas:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(122, 44, 255, 0.45);
  }

  #siteNavAlertsHost .creator-notif__bell {
    font-size: 1.15rem;
    line-height: 1;
  }

  /* Lista nad przyciskiem — na dole drawera panel nie ucieka poza dolną krawędź ekranu */
  #siteNavAlertsHost .creator-notif-panel {
    left: 0;
    right: 0;
    width: auto;
    max-width: none;
    top: auto;
    bottom: calc(100% + 8px);
  }

  /* Baner wygaśnięcia Premium: na górze karty treści strony głównej (poza drawerem) */
  #screenMain .hero > .hero-premium-countdown {
    width: 100%;
    max-width: none;
    margin-top: -2px;
    margin-bottom: 6px;
  }

  #screenMain .hero > .hero-premium-countdown .hero-premium-countdown__inner {
    padding: 12px 14px;
  }
}

.site-nav-drawer__header {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 12px 10px 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.site-nav-drawer__toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-main);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.site-nav-drawer__toggle:hover {
  border-color: rgba(168, 120, 255, 0.45);
  background: rgba(122, 44, 255, 0.14);
}

.site-nav-drawer__toggle:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(122, 44, 255, 0.45);
}

.site-nav-drawer__toggle-icon {
  display: flex;
  transition: transform 0.2s ease;
}

body.site-nav--collapsed .site-nav-drawer__toggle-icon {
  transform: rotate(180deg);
}

body.site-nav-layout.site-nav--collapsed .site-nav-drawer__header {
  justify-content: center;
  padding-inline: 8px;
}

.site-nav-drawer__nav {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  padding: 8px 12px 20px;
}

body.site-nav-layout.site-nav--collapsed .site-nav-drawer__nav {
  padding-inline: 8px;
}

.site-nav-drawer__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.site-nav__item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  margin: 0;
  padding: 12px 14px;
  border: none;
  border-radius: 12px;
  position: relative;
  font: inherit;
  font-weight: 650;
  font-size: 0.93rem;
  text-align: left;
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.05);
  cursor: pointer;
  transition:
    background 0.12s ease,
    border-color 0.12s ease,
    box-shadow 0.12s ease;
}

a.site-nav__item.site-nav__item--link {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

a.site-nav__item.site-nav__item--link:visited {
  color: inherit;
}

.site-nav__icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.88);
}

.site-nav__pill-icon {
  flex-shrink: 0;
  font-size: 1.15rem;
  line-height: 1;
}

.site-nav__item--pill {
  border-radius: 999px;
  justify-content: flex-start;
}

.site-nav__icon--discord {
  color: #5865f2;
}

.site-nav__icon--discord svg {
  display: block;
}

.site-nav__item--logout {
  border: 1px solid rgba(248, 113, 113, 0.22);
  color: rgba(255, 245, 245, 0.94);
}

.site-nav__item--logout:hover {
  filter: none;
  background: rgba(248, 113, 113, 0.12);
  border-color: rgba(248, 113, 113, 0.4);
}

.site-nav__item--logout:focus-visible {
  box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.35);
}

.site-nav__item--logout .site-nav__icon {
  color: rgba(255, 186, 186, 0.95);
}

.site-nav__item--creator {
  background: linear-gradient(145deg, rgba(122, 44, 255, 0.2), rgba(40, 60, 90, 0.45));
  border: 1px solid rgba(122, 44, 255, 0.55);
  box-shadow: 0 0 20px rgba(122, 44, 255, 0.25);
}

.site-nav__item--premium {
  background: linear-gradient(145deg, rgba(255, 196, 0, 0.12), rgba(90, 50, 20, 0.45));
  border: 1px solid rgba(255, 204, 102, 0.55);
  color: #ffe8b8;
  font-weight: 800;
  box-shadow: 0 0 22px rgba(255, 196, 0, 0.18);
}

.site-nav__item--register {
  background: linear-gradient(145deg, rgba(26, 32, 48, 0.95), rgba(55, 40, 72, 0.35));
  border: 1px solid rgba(100, 130, 200, 0.45);
  color: rgba(235, 240, 255, 0.98);
  box-shadow: 0 0 18px rgba(80, 100, 200, 0.2);
}

.site-nav__item--row:hover,
.site-nav__item--pill:hover {
  filter: brightness(1.06);
}

.site-nav__item:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(122, 44, 255, 0.45);
}

body.site-nav-layout #screenMain.screen--main {
  padding-left: calc(16px + var(--site-nav-current-w));
  transition: padding-left 0.22s ease;
}

@media (prefers-reduced-motion: reduce) {
  body.site-nav-layout #screenMain.screen--main {
    transition: none;
  }
}

body.detail-screen-open #siteNavDrawer.site-nav-drawer {
  display: none;
}

body.detail-screen-open.site-nav-layout #screenMain.screen--main {
  padding-left: 16px;
}

.site-nav-drawer .site-nav__label {
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition:
    opacity 0.18s ease,
    max-width 0.18s ease;
}

body.site-nav--collapsed #siteNavDrawer .site-nav__label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
  opacity: 0;
}

body.site-nav--collapsed .site-nav__item {
  justify-content: center;
  padding-inline: 10px;
  gap: 0;
}

body.site-nav--collapsed .site-nav__item--pill {
  justify-content: center;
}

body.site-nav--collapsed .site-nav__icon--register {
  margin: 0;
}

@media (max-width: 767px) {
  /* Rozwinięty pasek (strona główna): treść bez extra offsetu — panel fixed nachodzi zamiast ściskać viewport */
  body.site-nav-layout:not(.detail-screen-open):not(.site-nav--collapsed) #screenMain.screen--main {
    padding-left: max(14px, env(safe-area-inset-left, 0px));
    padding-right: max(14px, env(safe-area-inset-right, 0px));
  }

  body.site-nav-layout:not(.detail-screen-open).site-nav--collapsed #screenMain.screen--main {
    padding-left: calc(max(14px, env(safe-area-inset-left, 0px)) + var(--site-nav-collapsed-w));
    padding-right: max(14px, env(safe-area-inset-right, 0px));
  }

  body.site-nav-layout #screenMain.screen--main {
    transition: none;
  }

  /* Rozwinięty + krawędź z przyciskiem: szerokość całego panelu = menu + pas 44px (nie ściska treści nav) */
  body.site-nav-layout:not(.detail-screen-open):not(.site-nav--collapsed) {
    --site-nav-current-w: calc(var(--site-nav-expanded-w) + 44px);
  }

  body.site-nav-layout:not(.detail-screen-open):not(.site-nav--collapsed) #siteNavDrawer.site-nav-drawer {
    flex-direction: row;
    align-items: stretch;
    /* Nad top chrome (np. CTA twórcy z-index 250), pod nakładką konta/popupami auth */
    z-index: 328;
    box-shadow:
      6px 0 32px rgba(0, 0, 0, 0.55),
      0 0 0 1px rgba(255, 255, 255, 0.06);
  }

  body.site-nav-layout:not(.detail-screen-open):not(.site-nav--collapsed)
    #siteNavDrawer.site-nav-drawer
    .site-nav-drawer__shell {
    flex: 1 1 auto;
    min-width: 0;
  }

  body.site-nav-layout:not(.detail-screen-open):not(.site-nav--collapsed) .site-nav-drawer__collapse-edge {
    display: flex;
  }
}

.page-shell {
  width: min(100%, 1200px);
  margin-inline: auto;
  background: #0f1022;
  border: 1px solid var(--card-border);
  border-radius: 24px;
  /* Lżejszy cień = mniej kosztowne malowanie przy przewijaniu */
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.35), 0 6px 18px rgba(0, 0, 0, 0.14);
  padding: 18px 20px;
  opacity: 0;
  animation: pageFadeIn 0.4s ease forwards;
  /* Tylko layout — contain:style/paint potrafi drogo kosztować przy scrollu */
  contain: layout;
}

.hero {
  position: relative;
  text-align: center;
  margin-bottom: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  contain: layout;
}

.hero-premium-countdown {
  width: 100%;
  max-width: 520px;
  margin-bottom: 4px;
}
.hero-premium-countdown__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 14px 18px;
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(255, 196, 0, 0.08), rgba(122, 44, 255, 0.12));
  border: 1px solid rgba(255, 196, 0, 0.35);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
}
.hero-premium-countdown__label {
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 220, 160, 0.9);
}
.hero-premium-countdown__time {
  font-size: clamp(1.25rem, 3vw, 1.65rem);
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  color: #ffd966;
  line-height: 1.2;
}
.hero-premium-countdown__hint {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.6);
  max-width: 28rem;
}
.hero-premium-countdown__extend {
  margin-top: 4px;
  padding: 10px 20px;
  border-radius: 12px;
  border: 1px solid rgba(255, 196, 0, 0.5);
  background: linear-gradient(135deg, rgba(255, 196, 0, 0.2), rgba(255, 140, 0, 0.15));
  color: #ffe8a8;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.2s;
}
.hero-premium-countdown__extend:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(255, 196, 0, 0.2);
}

.hero-badge {
  display: inline-block;
  background: linear-gradient(135deg, rgba(122,44,255,0.25), rgba(40,148,255,0.25));
  border: 1px solid rgba(122,44,255,0.45);
  border-radius: 50px;
  padding: 4px 12px;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  color: #d4aaff;
}

.hero-title {
  margin: 0 auto;
  width: 100%;
  font-size: clamp(1.05rem, 1.85vw + 0.32rem, 1.68rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: 0.1em;
  max-width: min(96vw, 40rem);
  box-sizing: border-box;
}

/* Jedna linia: Premium | POLSKA STRONA INTERNETOWA | Discord */
.hero-polska-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: clamp(6px, 2vw, 14px);
  width: 100%;
  max-width: min(96vw, 40rem);
  margin: 0 auto;
  box-sizing: border-box;
}

.hero-polska-row .hero-premium-corner,
.hero-polska-row .hero-discord-corner {
  flex-shrink: 0;
}

.hero-polska-tagline {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  width: auto;
  font-size: clamp(0.75rem, 2.95vw + 0.38rem, 1.76rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: 0.1em;
  max-width: none;
  white-space: nowrap;
  box-sizing: border-box;
  text-align: center;
}

@media (max-width: 767px) {
  .hero-polska-tagline {
    white-space: normal;
    letter-spacing: 0.07em;
    line-height: 1.22;
    max-width: 100%;
    padding-inline: 4px;
    box-sizing: border-box;
    font-size: clamp(0.62rem, 3.4vw + 0.22rem, 1.42rem);
  }
}

@media (max-width: 359px) {
  .hero-polska-tagline {
    letter-spacing: 0.06em;
    font-size: clamp(0.58rem, 3.2vw + 0.18rem, 1.15rem);
  }
}

.gradient-text {
  background: linear-gradient(135deg, #c084ff 0%, #60b0ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  /* Izolacja malowania tekstu z gradientem przy scrollu */
  contain: paint;
}

.hero-tone-w {
  color: #ffffff;
}

.hero-tone-m {
  color: #b197fc;
}

.hero-tone-a {
  color: #74c0fc;
}

.hero-brand {
  margin: 0 auto;
  width: 100%;
  font-size: clamp(1.45rem, 3.75vw + 0.32rem, 2.55rem);
  font-weight: 900;
  line-height: 1.04;
  letter-spacing: 0.12em;
  max-width: min(96vw, 40rem);
  box-sizing: border-box;
}

.hero-sub {
  margin: 0;
  color: var(--text-muted);
  font-size: clamp(0.8rem, 1.35vw, 0.92rem);
  max-width: min(560px, 96vw);
  line-height: 1.35;
  letter-spacing: 0.04em;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin-top: 0;
}

.hero-stats span,
.hero-stats .hero-stats__premium-btn {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 50px;
  padding: 4px 10px;
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 600;
}

.hero-stats .hero-stats__premium-btn {
  font: inherit;
  font-family: inherit;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition:
    border-color 0.2s ease,
    background 0.2s ease,
    color 0.15s ease;
}

.hero-stats .hero-stats__premium-btn:hover {
  border-color: rgba(167, 139, 250, 0.45);
  background: rgba(139, 92, 246, 0.12);
  color: var(--text-main);
}

.hero-stats .hero-stats__premium-btn:focus-visible {
  outline: 2px solid rgba(167, 139, 250, 0.85);
  outline-offset: 2px;
}

.hero-stats .hero-stats__premium-btn:active {
  transform: scale(0.98);
}

.hero-callout {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 12px;
  padding: 10px 14px;
  text-align: left;
  max-width: min(640px, 100%);
  width: 100%;
  box-sizing: border-box;
}

.hero-callout p {
  margin: 0;
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* Większe ekrany: krótki blok obok siebie → mniej wysokości nad listą, bez zmian wysokości kart */
@media (min-width: 720px) {
  .hero-callout {
    flex-direction: row;
    align-items: flex-start;
    gap: 14px;
  }

  .hero-callout p {
    flex: 1 1 0;
    min-width: 0;
  }
}

.hero-callout strong {
  color: var(--text-main);
}

.hero-callout-premium-upsell {
  margin-top: 4px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-callout-premium-upsell__text {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.hero-premium-rgb-link {
  display: inline;
  padding: 0;
  margin: 0;
  border: none;
  background: transparent;
  font: inherit;
  font-weight: 700;
  font-size: inherit;
  line-height: inherit;
  cursor: pointer;
  vertical-align: baseline;
  color: transparent;
  background-image: linear-gradient(
    110deg,
    #ff6b9d 0%,
    #ffd54f 18%,
    #69f0ae 36%,
    #4fc3f7 55%,
    #b388ff 74%,
    #ff6b9d 100%
  );
  background-size: 220% auto;
  background-position: 0% 50%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: rgb-tease-gradient 3s linear infinite;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  text-decoration-color: rgba(200, 200, 255, 0.35);
}

.hero-premium-rgb-link:hover {
  filter: brightness(1.08) saturate(1.05);
}

.hero-premium-rgb-link:focus-visible {
  outline: 2px solid rgba(167, 139, 250, 0.85);
  outline-offset: 2px;
  border-radius: 2px;
}

.hero-premium-rgb-link:active {
  transform: scale(0.98);
}

.hero-callout-premium-upsell__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid rgba(139, 92, 246, 0.45);
  background: linear-gradient(
    135deg,
    rgba(139, 92, 246, 0.18),
    rgba(59, 130, 246, 0.12)
  );
  color: var(--text-main);
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.15s ease;
}

.hero-callout-premium-upsell__btn:hover {
  border-color: rgba(167, 139, 250, 0.65);
  background: linear-gradient(
    135deg,
    rgba(139, 92, 246, 0.28),
    rgba(59, 130, 246, 0.2)
  );
}

.hero-callout-premium-upsell__btn:focus-visible {
  outline: 2px solid rgba(167, 139, 250, 0.8);
  outline-offset: 2px;
}

.hero-callout-premium-upsell__btn:active {
  transform: scale(0.98);
}

.search-toolbar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.search-wrapper {
  display: flex;
  justify-content: center;
  width: 100%;
}

.search-input {
  width: min(100%, 520px);
  padding: 9px 16px;
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-main);
  font-family: inherit;
  font-size: 0.92rem;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.search-input::placeholder {
  color: var(--text-muted);
}

.search-input:focus {
  border-color: var(--accent-a);
  background: rgba(255, 255, 255, 0.1);
  /* outline zamiast box-shadow — tańsze przy przewijaniu / focusie */
  box-shadow: none;
  outline: 2px solid rgba(122, 44, 255, 0.45);
  outline-offset: 0;
}

.list-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 16px;
  width: 100%;
  max-width: 640px;
}

.list-toolbar__group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
}

.list-toolbar__label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.segmented {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.segmented__btn {
  margin: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.25;
  cursor: pointer;
  outline: none;
  transition:
    color 0.15s ease,
    background 0.15s ease,
    box-shadow 0.15s ease,
    transform 0.12s ease;
}

.segmented__btn:hover:not(.is-active) {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.07);
}

.segmented__btn:active:not(:focus-visible) {
  transform: scale(0.98);
}

.segmented__btn.is-active {
  color: #f8f8ff;
  background: linear-gradient(
    135deg,
    rgba(122, 44, 255, 0.42),
    rgba(40, 148, 255, 0.28)
  );
  box-shadow:
    0 0 0 1px rgba(168, 120, 255, 0.45),
    0 4px 16px rgba(122, 44, 255, 0.22);
}

.segmented__btn:focus-visible {
  box-shadow:
    0 0 0 2px rgba(122, 44, 255, 0.55),
    0 0 0 4px rgba(10, 10, 24, 0.9);
}

@keyframes rgb-tease-gradient {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 200% 50%;
  }
}

@keyframes rgb-tease-pulse {
  0%,
  100% {
    box-shadow:
      0 0 10px rgba(255, 80, 120, 0.28),
      0 0 10px rgba(90, 160, 255, 0.28),
      inset 0 0 0 1px rgba(255, 255, 255, 0.06);
  }
  33% {
    box-shadow:
      0 0 12px rgba(80, 220, 140, 0.32),
      0 0 12px rgba(160, 100, 255, 0.22),
      inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  }
  66% {
    box-shadow:
      0 0 12px rgba(90, 160, 255, 0.38),
      0 0 12px rgba(255, 90, 130, 0.22),
      inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  }
}

.segmented__btn.segmented__btn--rgb-tease:not(.is-active) {
  position: relative;
  align-items: center;
  justify-content: center;
  color: transparent;
  background-color: rgba(255, 255, 255, 0.04);
  background-image: linear-gradient(
    110deg,
    #ff6b9d 0%,
    #ffd54f 18%,
    #69f0ae 36%,
    #4fc3f7 55%,
    #b388ff 74%,
    #ff6b9d 100%
  );
  background-size: 220% auto;
  background-position: 0% 50%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation:
    rgb-tease-gradient 3.2s linear infinite,
    rgb-tease-pulse 4s ease-in-out infinite;
}

.segmented__btn.segmented__btn--rgb-tease:not(.is-active):hover {
  transform: scale(1.03);
  color: transparent;
  -webkit-text-fill-color: transparent;
  background-color: rgba(255, 255, 255, 0.08);
  background-image: linear-gradient(
    110deg,
    #ff6b9d 0%,
    #ffd54f 18%,
    #69f0ae 36%,
    #4fc3f7 55%,
    #b388ff 74%,
    #ff6b9d 100%
  );
  background-size: 220% auto;
  -webkit-background-clip: text;
  background-clip: text;
}

.segmented__btn.segmented__btn--rgb-tease:not(.is-active):active {
  transform: scale(0.98);
}

.segmented__btn.segmented__btn--rgb-tease.is-active {
  color: #f8f8ff;
  -webkit-text-fill-color: #f8f8ff;
  background-image: linear-gradient(
    135deg,
    rgba(122, 44, 255, 0.42),
    rgba(40, 148, 255, 0.28)
  );
  background-size: 100% 100%;
  background-position: 50% 50%;
  -webkit-background-clip: border-box;
  background-clip: border-box;
  animation: none;
  box-shadow:
    0 0 0 1px rgba(168, 120, 255, 0.45),
    0 4px 16px rgba(122, 44, 255, 0.22);
}

.segmented__btn.segmented__btn--rgb-tease:focus-visible:not(.is-active) {
  box-shadow:
    0 0 0 2px rgba(122, 44, 255, 0.45),
    0 0 16px rgba(100, 200, 255, 0.25),
    0 0 0 4px rgba(10, 10, 24, 0.9);
}

.segmented__btn--with-new-badge {
  position: relative;
  padding: 8px 18px;
}

.segmented__label-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
}

.sort-new-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  z-index: 2;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: #e74c3c;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 800;
  line-height: 18px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
  pointer-events: none;
  -webkit-text-fill-color: #fff;
  background-clip: border-box;
  -webkit-background-clip: border-box;
}

.sort-new-badge[hidden] {
  display: none !important;
}

@media (prefers-reduced-motion: reduce) {
  .sort-new-badge {
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
  }
}

.quick-return-strip {
  width: 100%;
  max-width: 900px;
  margin: 0 auto 18px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.quick-return-block__label {
  display: block;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}

.quick-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.quick-chip {
  padding: 6px 12px;
  border-radius: 50px;
  border: 1px solid rgba(122, 44, 255, 0.4);
  background: rgba(122, 44, 255, 0.12);
  color: #e4dcff;
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.quick-chip:hover {
  background: rgba(122, 44, 255, 0.22);
  border-color: rgba(168, 120, 255, 0.55);
}

.option-fav-btn {
  position: absolute;
  top: 6px;
  left: 6px;
  z-index: 6;
  width: 32px;
  height: 32px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, transform 0.12s ease;
}

.option-fav-btn:hover {
  background: rgba(122, 44, 255, 0.45);
  transform: scale(1.06);
}

.option-fav-btn--on {
  color: #ffd700;
}

.empty-msg {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-top: 32px;
}

.empty-msg--rich {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.empty-msg__line {
  font-size: 0.92rem;
}

.empty-msg__clear {
  padding: 10px 20px;
  border-radius: 50px;
  border: 1px solid rgba(122, 44, 255, 0.45);
  background: rgba(122, 44, 255, 0.15);
  color: #e8e0ff;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
}

.empty-msg__clear:hover {
  background: rgba(122, 44, 255, 0.28);
}

.links-section {
  contain: layout;
}

.links-grid-shell {
  position: relative;
  width: 100%;
}

/* Do czasu Firestore: szkielet zamiast migającej statycznej listy */
.links-grid-shell--loading #linksContainer {
  display: none !important;
}

/*
  Po załadowaniu: szkielet musi zniknąć. Sam atrybut [hidden] nie wystarcza — klasa
  .links-grid ustawia display:grid i nadpisuje domyślne ukrywanie [hidden] w CSS.
*/
.links-grid-shell:not(.links-grid-shell--loading) #linksGridPlaceholder {
  display: none !important;
}

#linksGridPlaceholder[hidden] {
  display: none !important;
}

.links-grid--placeholder .links-skeleton-card {
  min-height: 200px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(
    110deg,
    rgba(255, 255, 255, 0.04) 0%,
    rgba(255, 255, 255, 0.09) 42%,
    rgba(255, 255, 255, 0.04) 86%
  );
  background-size: 200% 100%;
  animation: links-skeleton-shimmer 1.15s ease-in-out infinite;
  contain: layout;
}

@keyframes links-skeleton-shimmer {
  0% {
    background-position: 120% 0;
  }
  100% {
    background-position: -120% 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .links-grid--placeholder .links-skeleton-card {
    animation: none;
    background: rgba(255, 255, 255, 0.05);
  }
}

.links-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  contain: layout;
}

.option-link {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  width: 100%;
  min-height: 200px;
  padding: 0;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  text-decoration: none;
  color: #ffffff;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.3px;
  overflow: hidden;
  position: relative;
  background: #000;
  box-shadow: none;
  contain: layout;
  /* Tylko obramowanie — brak animacji transform/cienia = mniej pracy GPU przy scrollu */
  transition: border-color 0.1s ease;
}

.option-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  pointer-events: none;
  user-select: none;
}

/* Statyczne karty (20 opcji): jeden span z tytułem */
.option-link > span {
  position: relative;
  z-index: 1;
  width: 100%;
  text-align: center;
  padding: 24px 8px 10px;
  font-size: 0.95rem;
  font-weight: 700;
  text-shadow: none;
  /* Jednolity pasek zamiast gradientu — tańsze malowanie przy przewijaniu */
  background: rgba(0, 0, 0, 0.7);
}

/* Karty twórców: tytuł + pseudonim */
.option-link__meta {
  position: relative;
  z-index: 1;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 20px 8px 10px;
  text-align: center;
  background: rgba(0, 0, 0, 0.7);
}

.option-link__title {
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.25;
  text-shadow: none;
  color: #fff;
}

.option-creator-badge {
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.2;
  color: rgba(255, 255, 255, 0.92);
  text-shadow: none;
  padding: 3px 10px;
  border-radius: 50px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.12);
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.option-premium-pill {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1.2;
  color: #1a1200;
  padding: 4px 10px;
  border-radius: 50px;
  background: linear-gradient(135deg, #ffd700, #e6ac00);
  border: 1px solid rgba(255, 236, 140, 0.95);
  box-shadow: none;
  text-shadow: none;
  max-width: 100%;
}

.option-link:hover,
.option-link:focus-visible {
  border-color: rgba(168, 120, 255, 0.55);
}

.option-link:focus-visible {
  outline: none;
}

/* Filtrowanie listy — wymuszone ukrycie (display:flex na karcie potrafi wygrywać z samym atrybutem hidden w siatce) */
.links-grid > a.option-link.option-link--search-hidden {
  display: none !important;
}

.links-grid > a.option-link.option-link--page-hidden {
  display: none !important;
}

/* Paginacja listy opcji — pod siatką */
.links-pagination {
  margin-top: 20px;
  width: 100%;
}

.links-pagination__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px 16px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.25);
}

.links-pagination__btn {
  font: inherit;
  font-weight: 650;
  font-size: 0.9rem;
  padding: 8px 16px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(122, 44, 255, 0.2);
  color: #fff;
  cursor: pointer;
  transition: border-color 0.12s ease, background 0.12s ease;
}

.links-pagination__btn:hover:not(:disabled) {
  border-color: rgba(168, 120, 255, 0.55);
  background: rgba(122, 44, 255, 0.32);
}

.links-pagination__btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(168, 120, 255, 0.45);
}

.links-pagination__btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.links-pagination__status {
  font-size: 0.92rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.88);
  white-space: nowrap;
}

.links-pagination__jump {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.links-pagination__jump-label {
  font-size: 0.88rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8);
  cursor: pointer;
}

.links-pagination__input {
  width: 4rem;
  font: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 6px 8px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(0, 0, 0, 0.4);
  color: #fff;
  text-align: center;
}

.links-pagination__input:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(168, 120, 255, 0.45);
}

.links-pagination__btn--go {
  padding-inline: 14px;
}

@media (prefers-reduced-motion: reduce) {
  .option-link,
  .option-link:hover,
  .option-link:focus-visible {
    transition: none;
  }
}

/* ── Ekrany ── */
.screen {
  min-height: 100vh;
  width: 100%;
}

.screen[hidden] {
  display: none !important;
}

/* Ekran główny: blok zamiast grid — cały widok nie jest jednym wielkim gridem layoutu przy scrollu */
.screen--main {
  display: block;
  padding: 10px 10px;
  background: transparent;
  contain: layout;
}

/* Ekran szczegółów – pełna strona z własnym tłem */
.screen--detail {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  background: linear-gradient(160deg, var(--bg-primary), var(--bg-secondary));
  position: relative;
  animation: pageFadeIn 0.25s ease forwards;
}

.detail-home {
  position: absolute;
  top: 22px;
  left: 22px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50px;
  color: var(--text-main);
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 9px 18px 9px 14px;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.detail-home:hover {
  background: rgba(255, 255, 255, 0.13);
  transform: translateX(-2px);
}

.detail-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  width: min(100%, 480px);
  background: #0f1022;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  padding: 32px 26px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.4);
  text-align: center;
}

.detail-img {
  width: 180px;
  height: 180px;
  object-fit: cover;
  object-position: top center;
  border-radius: 20px;
  border: 2px solid rgba(122, 44, 255, 0.5);
  box-shadow: 0 0 14px rgba(122, 44, 255, 0.22);
}

.detail-title {
  margin: 0;
  font-size: 1.7rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: capitalize;
  background: linear-gradient(135deg, #c084ff, #60b0ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  contain: paint;
}

.detail-creator-label {
  margin: -12px 0 0;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
  max-width: 100%;
}

.detail-creator-label[hidden] {
  display: none !important;
}

.detail-free-badge {
  display: inline-block;
  background: linear-gradient(135deg, #16a34a, #15803d);
  border-radius: 50px;
  padding: 4px 16px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 1px;
  color: #fff;
  box-shadow: 0 0 10px rgba(22, 163, 74, 0.28);
}

.detail-card--premium {
  border-color: rgba(212, 175, 55, 0.45);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.42), 0 0 0 1px rgba(212, 175, 55, 0.12);
}

.detail-card--premium .detail-free-badge {
  background: linear-gradient(135deg, #b8860b, #d4af37);
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
}

.detail-card--premium .detail-img {
  border-color: rgba(212, 175, 55, 0.65);
  box-shadow: 0 0 14px rgba(212, 175, 55, 0.18);
}

.detail-promo {
  margin: 0;
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.detail-promo strong {
  color: var(--text-main);
}

.detail-perks {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.detail-perks span {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 50px;
  padding: 4px 12px;
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 600;
}

.detail-hint {
  margin: 0;
  font-size: 0.78rem;
  color: var(--text-muted);
  opacity: 0.7;
}

.detail-instructions {
  list-style: none;
  margin: 0;
  padding: 16px 20px;
  background: rgba(122, 44, 255, 0.12);
  border: 1px solid rgba(122, 44, 255, 0.35);
  border-radius: 14px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

.detail-instructions[hidden] {
  display: none !important;
}

.detail-instructions li {
  font-size: 0.95rem;
  color: var(--text-main);
  line-height: 1.5;
}

.detail-instructions strong {
  color: #c084ff;
}

.detail-instructions--safe {
  background: rgba(40, 148, 255, 0.1);
  border-color: rgba(40, 148, 255, 0.35);
}

.detail-instructions--safe a {
  color: #60b0ff;
  word-break: break-all;
}

.detail-copy-share-btn {
  display: block;
  width: fit-content;
  max-width: 100%;
  margin: 2px auto 0;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid rgba(192, 132, 255, 0.45);
  font-family: inherit;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.03em;
  color: #fff;
  cursor: pointer;
  background: linear-gradient(
    145deg,
    rgba(91, 33, 182, 0.95) 0%,
    rgba(122, 44, 255, 0.85) 40%,
    rgba(40, 148, 255, 0.75) 100%
  );
  box-shadow: 0 4px 14px rgba(91, 33, 182, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.detail-copy-share-btn:hover:not(:disabled) {
  transform: translateY(-1px) scale(1.008);
  border-color: rgba(220, 190, 255, 0.7);
  box-shadow: 0 6px 18px rgba(122, 44, 255, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.detail-copy-share-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px rgba(122, 44, 255, 0.4), 0 4px 14px rgba(91, 33, 182, 0.28);
}

.detail-copy-share-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

.detail-copy-share-btn[hidden] {
  display: none !important;
}

.detail-btn {
  display: inline-block;
  padding: 15px 40px;
  border-radius: 50px;
  text-decoration: none;
  font-family: inherit;
  font-weight: 800;
  font-size: 1.05rem;
  color: #fff;
  background: linear-gradient(135deg, #7a2cff, #2894ff);
  box-shadow: 0 4px 16px rgba(122, 44, 255, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.detail-btn:hover {
  transform: scale(1.06);
  box-shadow: 0 8px 22px rgba(122, 44, 255, 0.45);
}

.detail-premium-upsell {
  width: 100%;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(212, 175, 55, 0.08);
  border: 1px solid rgba(212, 175, 55, 0.28);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}

.detail-premium-upsell[hidden] {
  display: none !important;
}

.detail-card--premium .detail-premium-upsell {
  display: none !important;
}

.detail-premium-upsell__text {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.55;
  color: var(--text-muted);
}

.detail-premium-upsell__text strong {
  color: #e8d5a3;
  font-weight: 700;
}

.detail-premium-upsell__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 18px;
  border-radius: 50px;
  border: 1px solid rgba(255, 196, 0, 0.45);
  background: linear-gradient(135deg, rgba(255, 196, 0, 0.22), rgba(184, 134, 11, 0.2));
  color: #ffd966;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 2px 12px rgba(255, 196, 0, 0.12);
}

.detail-premium-upsell__btn:hover {
  opacity: 0.95;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(255, 196, 0, 0.2);
}

/* Widok szczegółów — mniej przewijania w pionie na telefonie (ciaśniejsze odstępy) */
@media (max-width: 640px) {
  .screen--detail {
    padding: 52px 12px 18px;
    justify-content: flex-start;
  }

  .detail-home {
    top: 10px;
    left: 10px;
    font-size: 0.8rem;
    padding: 7px 12px 7px 10px;
    gap: 6px;
  }

  .detail-home svg {
    width: 18px;
    height: 18px;
  }

  .detail-card {
    gap: 10px;
    padding: 18px 14px;
    border-radius: 20px;
  }

  .detail-img {
    width: 120px;
    height: 120px;
    border-radius: 14px;
  }

  .detail-card--premium .detail-img {
    width: 120px;
    height: 120px;
  }

  .detail-free-badge {
    padding: 3px 11px;
    font-size: 0.72rem;
    letter-spacing: 0.06em;
  }

  .detail-title {
    font-size: 1.35rem;
    letter-spacing: 0.3px;
    line-height: 1.15;
  }

  .detail-creator-label {
    margin: -4px 0 0;
    font-size: 0.8rem;
  }

  .detail-promo {
    font-size: 0.9rem;
    line-height: 1.42;
  }

  .detail-perks {
    gap: 6px;
  }

  .detail-perks span {
    padding: 3px 9px;
    font-size: 0.74rem;
  }

  .detail-premium-upsell {
    padding: 10px 11px;
    gap: 8px;
    border-radius: 12px;
  }

  .detail-premium-upsell__text {
    font-size: 0.78rem;
    line-height: 1.42;
  }

  .detail-premium-upsell__btn {
    padding: 6px 14px;
    font-size: 0.76rem;
  }

  .detail-btn {
    padding: 11px 22px;
    font-size: 0.92rem;
  }

  .detail-hint {
    font-size: 0.72rem;
    line-height: 1.35;
    margin-top: -2px;
  }

  .detail-instructions {
    padding: 9px 11px;
    gap: 6px;
    border-radius: 12px;
  }

  .detail-instructions li {
    font-size: 0.84rem;
    line-height: 1.38;
  }

  .detail-copy-share-btn {
    margin-top: 0;
    padding: 6px 11px;
    font-size: 0.76rem;
  }
}

/* ── Baner dysku ── */
.disk-banner {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 200;
  width: min(calc(100% - 32px), 480px);
  background: linear-gradient(135deg, #1a0a33, #0d1a33);
  border: 1px solid rgba(122, 44, 255, 0.5);
  border-radius: 18px;
  padding: 20px 48px 20px 22px;
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.05);
  display: flex;
  flex-direction: column;
  gap: 12px;
  animation: bannerSlideUp 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.disk-banner[hidden] {
  display: none !important;
}

.disk-banner__close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 50%;
  color: var(--text-muted);
  font-size: 0.85rem;
  width: 28px;
  height: 28px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, color 0.2s ease;
}

.disk-banner__close:hover {
  background: rgba(255,255,255,0.16);
  color: var(--text-main);
}

.disk-banner__label {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
}

.disk-banner__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 50px;
  background: linear-gradient(135deg, #7a2cff, #2894ff);
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(122, 44, 255, 0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  align-self: flex-start;
}

.disk-banner__link:hover {
  transform: scale(1.04);
  box-shadow: 0 6px 18px rgba(122, 44, 255, 0.4);
}

@keyframes bannerSlideUp {
  from { opacity: 0; transform: translateX(-50%) translateY(20px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

footer {
  margin-top: 24px;
  text-align: center;
}

footer small {
  color: var(--text-muted);
  font-size: 0.78rem;
}

.footer-regulamin {
  color: #c9b8ff;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(201, 184, 255, 0.35);
  transition: color 0.2s, border-color 0.2s;
}

.footer-regulamin:hover {
  color: #e4d4ff;
  border-bottom-color: rgba(228, 212, 255, 0.6);
}

@keyframes pageFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-shell,
  .screen--detail,
  .disk-banner,
  .auth-modal__box,
  .onas-modal__box,
  .del-confirm-modal__box,
  .auth-step.active,
  .creator-toast {
    animation: none !important;
  }

  .page-shell,
  .screen--detail,
  .auth-modal__box,
  .onas-modal__box,
  .del-confirm-modal__box,
  .auth-step.active {
    opacity: 1 !important;
    transform: none !important;
  }

  .disk-banner {
    opacity: 1 !important;
    transform: translateX(-50%) !important;
  }

  .option-link,
  .option-img,
  .search-input,
  .detail-home,
  .detail-btn,
  .detail-copy-share-btn {
    transition: none !important;
  }

  .creator-toast--visible {
    transform: translateX(-50%) translateY(0) !important;
    opacity: 1 !important;
  }
}

@media (max-width: 520px) {
  .list-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .list-toolbar__group {
    flex-direction: column;
    align-items: stretch;
  }

  .segmented {
    justify-content: center;
    width: 100%;
  }
}

@media (max-width: 480px) {
  .page-shell {
    padding: 14px 12px;
    border-radius: 18px;
  }

  .option-link {
    min-height: 64px;
    font-size: 0.95rem;
  }

}

@media (max-width: 900px) {
  .links-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .links-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ══════════════════════════════════════════
   SITE TOP CHROME (mobile: kolumna; desktop: contents)
══════════════════════════════════════════ */
.site-top-chrome {
  display: contents;
}

/* ══════════════════════════════════════════
   AUTH CORNER (fixed top-left)
══════════════════════════════════════════ */
.auth-corner {
  position: fixed;
  top: 22px;
  left: 22px;
  z-index: 300;
  width: min(280px, calc(100vw - 44px));
  max-width: 320px;
}

/* ── Telefon: karta konta tylko po „Twoje konto” (popover + backdrop) ── */
.auth-corner-mobile-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 348;
  margin: 0;
  padding: 0;
  border: none;
  background: rgba(6, 8, 18, 0.78);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
  cursor: pointer;
}

.auth-corner-mobile-backdrop[hidden] {
  display: none !important;
}

@media (max-width: 700px) {
  body.auth-corner-mobile-popup-open.site-nav-layout {
    overflow: hidden;
  }

  body.auth-corner-mobile-popup-open.site-nav-layout .auth-corner-mobile-backdrop:not([hidden]) {
    display: block !important;
  }

  /* Ukryj zalogowaną kartę w górnej kolumnie; pokaż dopiero z klasą .auth-corner--popover-open */
  body.site-nav-layout #authCorner:has(.auth-bar--logged):not(.auth-corner--popover-open) {
    display: none !important;
  }

  body.auth-corner-mobile-popup-open.site-nav-layout #authCorner.auth-corner--popover-open:has(.auth-bar--logged) {
    display: block !important;
    position: fixed !important;
    left: 50% !important;
    top: max(24px, calc(env(safe-area-inset-top, 0px) + 14px)) !important;
    bottom: auto !important;
    right: auto !important;
    transform: translateX(-50%) !important;
    width: min(320px, calc(100vw - 28px)) !important;
    max-width: none !important;
    z-index: 360 !important;
    box-sizing: border-box;
    box-shadow:
      0 20px 56px rgba(0, 0, 0, 0.55),
      0 0 0 1px rgba(255, 255, 255, 0.1);
  }
}

@media (min-width: 701px) {
  body.auth-corner-mobile-popup-open.site-nav-layout .auth-corner-mobile-backdrop {
    display: none !important;
  }
}

.auth-corner__stack {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 7px;
  width: 100%;
}

/* Jednakowa szerokość trzech przycisków w rogu (Zostań twórcą, Premium, Utwórz konto) */
.auth-corner__stack > .btn-zostan-tworca,
.auth-corner__stack > .btn-premium-corner,
.auth-corner__stack > .btn-auth-account {
  width: 100%;
  box-sizing: border-box;
  justify-content: center;
}

/* Desktop: chmurka logowania/podglądu konta — poza szerokością lewego paska (--site-nav-current-w). */
@media (min-width: 701px) {
  body.site-nav-layout .auth-corner {
    left: calc(var(--site-nav-current-w) + 16px);
    width: min(280px, calc(100vw - var(--site-nav-current-w) - 32px));
  }

  body.site-nav-layout.detail-screen-open .auth-corner {
    left: max(180px, calc(var(--site-nav-current-w) + 16px));
    width: min(280px, calc(100vw - var(--site-nav-current-w) - 32px));
  }
}

.btn-auth-account {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(122, 44, 255, 0.45);
  border-radius: 10px;
  color: var(--text-main);
  cursor: pointer;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 9px 14px;
  transition: background 0.2s, transform 0.15s, border-color 0.2s;
}

.btn-auth-account:hover {
  background: rgba(122, 44, 255, 0.18);
  border-color: rgba(122, 44, 255, 0.65);
  transform: translateY(-1px);
}

/* Na ekranie dysku — przesuń auth corner w prawo od przycisku "Strona główna" */
body.detail-screen-open .auth-corner {
  left: 180px;
}

.btn-zostan-tworca {
  display: flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, rgba(122,44,255,0.25), rgba(40,148,255,0.25));
  border: 1px solid rgba(122, 44, 255, 0.55);
  border-radius: 12px;
  color: var(--text-main);
  cursor: pointer;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.2px;
  padding: 10px 16px;
  transition: transform 0.15s, box-shadow 0.2s ease, border-color 0.2s ease;
  box-shadow: 0 0 0 1px rgba(122, 44, 255, 0.2), 0 4px 14px rgba(122, 44, 255, 0.22);
}

.btn-zostan-tworca:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 0 1px rgba(40, 148, 255, 0.35), 0 6px 20px rgba(40, 148, 255, 0.28);
  border-color: rgba(40, 148, 255, 0.65);
}

/* ══════════════════════════════════════════
   MODAL AUTH
══════════════════════════════════════════ */
.auth-modal {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-modal[hidden] {
  display: none !important;
}

.auth-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.82);
}

.auth-modal__box {
  position: relative;
  z-index: 1;
  width: min(calc(100% - 28px), 460px);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  animation: pageFadeIn 0.25s ease forwards;
  opacity: 0;
}

.auth-modal__topbar {
  display: flex;
  justify-content: flex-end;
  flex-shrink: 0;
}

.auth-modal__scroll {
  min-width: 0;
}

/* Krok 1 „Zostań twórcą” — scroll tylko pod przyciskiem zamknięcia */
.auth-modal__box:has(#stepRegister1.active) {
  max-height: calc(100vh - 28px);
}

.auth-modal__box:has(#stepRegister1.active) .auth-modal__scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
}

.auth-modal__box:has(#stepRegister1.active) .auth-bar {
  padding: 14px 16px 12px;
}

.auth-modal__box:has(#stepRegister1.active) .auth-tabs {
  margin-bottom: 8px;
}

#stepRegister1 .auth-step-indicator {
  margin: 0 0 6px;
  font-size: 0.68rem;
}

#stepRegister1 .auth-form {
  gap: 5px;
}

#stepRegister1 .auth-input,
#stepRegister1 .auth-textarea {
  padding: 6px 10px;
  font-size: 0.82rem;
}

#stepRegister1 .auth-textarea {
  min-height: 52px;
  line-height: 1.35;
}

#stepRegister1 .auth-btn {
  padding: 7px 12px;
  margin-top: 2px;
}

#stepRegister1 .creator-niche-legend {
  margin: 0 0 3px;
  font-size: 0.72rem;
}

#stepRegister1 .creator-niche-list {
  gap: 2px;
}

#stepRegister1 .creator-niche-row {
  padding: 2px 6px;
  gap: 6px;
  border-radius: 6px;
}

#stepRegister1 .creator-niche-row__main {
  font-size: 0.78rem;
}

#stepRegister1 .creator-niche-row__emoji {
  margin-right: 4px;
}

#stepRegister1 .creator-niche-help__btn {
  width: 24px;
  height: 24px;
  font-size: 0.72rem;
}

#stepRegister1 .creator-niche-other-label,
#stepRegister1 .creator-exp-label {
  margin: 4px 0 2px;
  font-size: 0.72rem;
}

#stepRegister1 .creator-niche-other-wrap {
  margin-top: 0;
}

#stepRegister1 .auth-accelerate-note {
  margin: 6px 0 0;
  font-size: 0.68rem;
  line-height: 1.3;
}

.auth-modal__close {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  background: linear-gradient(145deg, #2d2d48, #1e1e32);
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 4px 16px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(122, 44, 255, 0.25);
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.15s, box-shadow 0.2s;
  z-index: 2;
}

.auth-modal__close:hover {
  background: linear-gradient(145deg, rgba(122, 44, 255, 0.45), rgba(40, 148, 255, 0.35));
  border-color: rgba(255, 255, 255, 0.55);
  color: #fff;
  transform: scale(1.05);
  box-shadow:
    0 6px 20px rgba(122, 44, 255, 0.35),
    0 0 0 1px rgba(255, 255, 255, 0.2);
}

.auth-modal__close:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 3px rgba(122, 44, 255, 0.65),
    0 4px 16px rgba(0, 0, 0, 0.55);
}

/* ══════════════════════════════════════════
   PANEL AUTH (logowanie / rejestracja)
══════════════════════════════════════════ */
#authUI {
  width: 100%;
}

.auth-bar {
  background: #131325;
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 24px 24px 20px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.55);
}

.auth-bar--logged {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.auth-bar__email {
  font-size: 0.82rem;
  color: var(--text-muted);
  word-break: break-all;
}

.auth-bar__role {
  font-size: 0.8rem;
  font-weight: 700;
  color: #c084ff;
}

.auth-tabs {
  display: flex;
  align-items: stretch;
  gap: 8px;
  margin-bottom: 16px;
}

.auth-tabs--triple .auth-tab {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.25;
  padding: 12px 14px;
  min-height: 46px;
  border-radius: 12px;
}

.auth-premium-hint {
  font-size: 0.76rem;
  line-height: 1.45;
  color: #c4b5fd;
  background: rgba(122, 44, 255, 0.12);
  border: 1px solid rgba(122, 44, 255, 0.35);
  border-radius: 10px;
  padding: 10px 12px;
  margin: 0 0 12px;
  text-align: center;
}

.auth-tab {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.82rem;
  font-family: inherit;
  font-weight: 600;
  letter-spacing: 0.015em;
  padding: 10px 12px;
  min-height: 42px;
  text-align: center;
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease,
    box-shadow 0.2s ease;
}

.auth-tab.active,
.auth-tab:hover {
  background: linear-gradient(135deg, rgba(122,44,255,0.28), rgba(40,148,255,0.22));
  border-color: rgba(155,120,255,0.55);
  color: var(--text-main);
}

.auth-tab.active {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 2px 14px rgba(122, 44, 255, 0.2);
}

.auth-tab:hover:not(.active) {
  border-color: rgba(255, 255, 255, 0.18);
}

.auth-tab:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px rgba(122, 44, 255, 0.5);
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.auth-input {
  background: #0b0b12;
  border: 1px solid var(--card-border);
  border-radius: 8px;
  color: var(--text-main);
  font-family: inherit;
  font-size: 0.85rem;
  padding: 8px 12px;
  outline: none;
  transition: border-color 0.2s;
}

.auth-input:focus {
  border-color: var(--accent-a);
}

.auth-btn,
.auth-bar__btn {
  background: linear-gradient(135deg, var(--accent-a), var(--accent-b));
  border: none;
  border-radius: 8px;
  color: #fff;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 9px 14px;
  text-align: center;
  text-decoration: none;
  transition: opacity 0.2s;
  display: block;
  width: 100%;
}

.auth-btn:hover,
.auth-bar__btn:hover {
  opacity: 0.85;
}

.auth-bar__btn--logout {
  background: rgba(255,60,60,0.25);
  border: 1px solid rgba(255,60,60,0.4);
}

.auth-bar__btn--panel {
  background: linear-gradient(135deg, rgba(122,44,255,0.35), rgba(40,148,255,0.35));
  border: 1px solid rgba(122,44,255,0.5);
  margin-bottom: 4px;
}

.auth-error {
  color: #ff6b6b;
  font-size: 0.8rem;
  margin: 4px 0 0;
  text-align: center;
}

/* ── Kroki formularza rejestracji ── */
.auth-step {
  display: none;
}
.auth-step.active {
  display: block;
  animation: pageFadeIn 0.22s ease forwards;
  opacity: 0;
}

.auth-step-indicator {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent-a);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0 0 14px;
  text-align: center;
}

.auth-back-link {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  display: block;
  font-family: inherit;
  font-size: 0.8rem;
  margin: 10px auto 0;
  padding: 4px 0;
  text-align: center;
  transition: color 0.2s;
}
.auth-back-link:hover {
  color: var(--text-main);
}

.auth-forgot-link {
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  border: none;
  border-radius: 8px;
  color: #a8b0d6;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  margin: 14px 0 0;
  padding: 6px 4px 6px 0;
  text-align: left;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  text-decoration-color: rgba(168, 158, 216, 0.5);
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
  width: auto;
  max-width: 100%;
  box-shadow: none;
}

.auth-forgot-link:hover {
  color: #e8e9ff;
  text-decoration-color: rgba(216, 218, 255, 0.75);
}

.auth-forgot-link:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px rgba(122, 44, 255, 0.55);
}

.creator-discord-guidance {
  padding: 2px 0 6px;
}

.creator-discord-guidance__text {
  margin: 0 0 18px;
  font-size: 0.92rem;
  line-height: 1.65;
  color: rgba(210, 214, 240, 0.92);
  text-align: left;
}

.creator-discord-guidance__handle {
  color: #eceaff;
}

.creator-discord-guidance__sep {
  display: inline-block;
  margin-inline: 0.2em;
  color: var(--text-muted);
  font-weight: 600;
}

a.auth-discord-invite-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px 18px;
  border-radius: 12px;
  border: 1px solid rgba(88, 101, 242, 0.55);
  background: linear-gradient(145deg, rgba(88, 101, 242, 0.26), rgba(122, 44, 255, 0.14));
  color: var(--text-main);
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.12s ease;
  box-sizing: border-box;
}

a.auth-discord-invite-btn:hover {
  border-color: rgba(150, 160, 255, 0.75);
  background: linear-gradient(145deg, rgba(88, 101, 242, 0.38), rgba(122, 44, 255, 0.22));
}

a.auth-discord-invite-btn:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 2px rgba(88, 101, 242, 0.65),
    0 4px 20px rgba(0, 0, 0, 0.35);
}

.auth-textarea {
  resize: vertical;
  min-height: 88px;
  line-height: 1.4;
}

/* ── Formularz twórcy: nisze + dymki ── */
.creator-niche-fieldset {
  border: none;
  margin: 0;
  padding: 0;
  min-width: 0;
}

.creator-niche-legend {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
  padding: 0;
  margin: 0 0 8px;
}

.creator-niche-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.creator-niche-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  cursor: pointer;
  padding: 6px 8px;
  border-radius: 8px;
  border: 1px solid transparent;
  transition: background 0.15s, border-color 0.15s;
}

.creator-niche-row:has(input:checked) {
  border-color: rgba(122, 44, 255, 0.5);
  background: rgba(122, 44, 255, 0.08);
}

.creator-niche-row__main {
  flex: 1;
  min-width: 0;
  font-size: 0.84rem;
  font-weight: 600;
}

.creator-niche-row__emoji {
  margin-right: 6px;
}

.creator-niche-help {
  position: relative;
  flex-shrink: 0;
}

.creator-niche-help__btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--card-border);
  background: rgba(255, 255, 255, 0.06);
  color: var(--accent-a);
  cursor: pointer;
  font-size: 0.85rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  font-family: inherit;
}

.creator-niche-help__btn:hover {
  background: rgba(122, 44, 255, 0.2);
}

.creator-niche-help__bubble {
  position: absolute;
  right: 0;
  top: 100%;
  margin-top: 6px;
  z-index: 60;
  width: min(280px, calc(100vw - 80px));
  padding: 10px 12px;
  font-size: 0.72rem;
  font-weight: 500;
  line-height: 1.45;
  color: var(--text-main);
  background: #12121c;
  border: 1px solid rgba(122, 44, 255, 0.45);
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.15s, visibility 0.15s;
}

.creator-niche-help:hover .creator-niche-help__bubble,
.creator-niche-help:focus-within .creator-niche-help__bubble,
.creator-niche-help.is-open .creator-niche-help__bubble {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.creator-niche-other-wrap {
  margin-top: 4px;
}

.creator-niche-other-label,
.creator-exp-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
  margin: 8px 0 4px;
  display: block;
}

/* ── Toast: powiadomienie o akceptacji twórcy ── */
.creator-toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(120px);
  z-index: 900;
  display: flex;
  align-items: center;
  gap: 14px;
  background: linear-gradient(135deg, #1a1a35, #16162e);
  border: 1px solid rgba(122, 44, 255, 0.5);
  border-radius: 16px;
  box-shadow: 0 8px 40px rgba(122, 44, 255, 0.35), 0 2px 12px rgba(0,0,0,0.6);
  padding: 16px 20px;
  min-width: 320px;
  max-width: calc(100vw - 40px);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease;
}
.creator-toast--visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}
.creator-toast__icon {
  font-size: 2rem;
  flex-shrink: 0;
}
.creator-toast__body {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
}
.creator-toast__title {
  font-size: 0.95rem;
  font-weight: 900;
  background: linear-gradient(135deg, #c084ff, #60b0ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.creator-toast__msg {
  font-size: 0.78rem;
  color: var(--text-muted);
}
.creator-toast__close {
  background: rgba(255,255,255,0.08);
  border: 1px solid var(--card-border);
  border-radius: 50%;
  color: var(--text-muted);
  cursor: pointer;
  flex-shrink: 0;
  font-size: 0.75rem;
  height: 26px;
  width: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.creator-toast__close:hover {
  background: rgba(255,255,255,0.15);
  color: var(--text-main);
}

/* ── Pending / rejected role w auth corner ── */
.auth-bar__role--pending {
  color: #f0a500 !important;
}
.auth-bar__role--rejected {
  color: #ff6b6b !important;
}
.auth-bar__pending-info {
  font-size: 0.75rem;
  color: var(--text-muted);
  display: block;
  max-width: 200px;
  line-height: 1.4;
}
.auth-bar__pending-info--rejected {
  color: #ff8080;
}

.auth-accelerate-note {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: center;
  margin: 14px 0 0;
  line-height: 1.5;
  user-select: none;
  pointer-events: none;
}
.auth-accelerate-note strong {
  color: var(--accent-a);
  pointer-events: none;
  user-select: none;
}

/* ══════════════════════════════════════════
   OPCJA TWÓRCY / PREMIUM (ikony na karcie)
   Premium: 👑 zawsze gdy .option-link--premium (także bez --creator, np. wpis od admina)
══════════════════════════════════════════ */
.option-link--premium::after {
  content: "👑";
  position: absolute;
  top: 6px;
  right: 8px;
  font-size: 1.05rem;
  line-height: 1;
  z-index: 2;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.85);
}

.option-link--creator:not(.option-link--premium)::after {
  content: "🎨";
  position: absolute;
  top: 6px;
  right: 8px;
  font-size: 0.9rem;
  line-height: 1;
  z-index: 2;
}

/* ══════════════════════════════════════════
   PRZYCISK USUNIĘCIA DLA ADMINA / TWÓRCY
══════════════════════════════════════════ */
.admin-del-btn {
  position: absolute;
  bottom: 8px;
  right: 8px;
  z-index: 10;
  background: rgba(180, 20, 20, 0.95);
  border: 1px solid rgba(255, 80, 80, 0.4);
  border-radius: 8px;
  color: #fff;
  cursor: pointer;
  font-size: 0.95rem;
  line-height: 1;
  padding: 5px 8px;
  transition: background 0.2s, transform 0.15s;
}
.admin-del-btn:hover {
  background: rgba(220, 20, 20, 1);
  transform: scale(1.1);
}

/* ══════════════════════════════════════════
   MODAL POTWIERDZENIA USUNIĘCIA
══════════════════════════════════════════ */
.del-confirm-modal {
  position: fixed;
  inset: 0;
  z-index: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.del-confirm-modal[hidden] { display: none !important; }
.del-confirm-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
}
.del-confirm-modal__box {
  position: relative;
  z-index: 1;
  width: min(calc(100% - 32px), 380px);
  background: #0f1022;
  border: 1px solid rgba(255, 80, 80, 0.3);
  border-radius: 20px;
  padding: 32px 28px;
  text-align: center;
  animation: pageFadeIn 0.2s ease forwards;
  opacity: 0;
}
.del-confirm-modal__icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
}
.del-confirm-modal__title {
  font-size: 1.2rem;
  font-weight: 900;
  margin: 0 0 8px;
  color: #ff8080;
}
.del-confirm-modal__desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0 0 24px;
}
.del-confirm-modal__btns {
  display: flex;
  gap: 10px;
}
.del-confirm-modal__btn {
  flex: 1;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 800;
  padding: 12px;
  transition: opacity 0.2s, transform 0.15s;
}
.del-confirm-modal__btn:hover { opacity: 0.88; transform: scale(1.03); }
.del-confirm-modal__btn--yes {
  background: linear-gradient(135deg, #c0392b, #e74c3c);
  color: #fff;
}
.del-confirm-modal__btn--no {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--card-border);
  color: var(--text-main);
}

/* Przycisk edycji opcji (obok kosza) */
.option-edit-btn {
  position: absolute;
  bottom: 8px;
  right: 48px;
  z-index: 10;
  background: rgba(40, 120, 200, 0.95);
  border: 1px solid rgba(120, 180, 255, 0.45);
  border-radius: 8px;
  color: #fff;
  cursor: pointer;
  font-size: 0.95rem;
  line-height: 1;
  padding: 5px 8px;
  transition: background 0.2s, transform 0.15s;
}
.option-edit-btn:hover {
  background: rgba(60, 150, 230, 1);
  transform: scale(1.1);
}

/* Modal edycji linku (index) */
.link-edit-modal {
  position: fixed;
  inset: 0;
  z-index: 720;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-sizing: border-box;
}
.link-edit-modal[hidden] {
  display: none !important;
}
.link-edit-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
}
.link-edit-modal__box {
  position: relative;
  z-index: 1;
  width: min(calc(100% - 24px), 420px);
  max-height: min(90vh, 640px);
  overflow: auto;
  background: #0f1022;
  border: 1px solid rgba(100, 140, 220, 0.35);
  border-radius: 20px;
  padding: 24px 22px 20px;
  text-align: left;
  animation: pageFadeIn 0.2s ease forwards;
  opacity: 0;
}
.link-edit-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  border: none;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
  width: 36px;
  height: 36px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
}
.link-edit-modal__close:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--text-main);
}
.link-edit-modal__title {
  font-size: 1.15rem;
  font-weight: 900;
  margin: 0 0 16px;
  padding-right: 40px;
  color: #8ec5ff;
}
.link-edit-modal__fields {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.link-edit-modal__label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
}
.link-edit-modal__input {
  font-family: inherit;
  font-size: 0.9rem;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--card-border);
  background: rgba(0, 0, 0, 0.35);
  color: var(--text-main);
  width: 100%;
  box-sizing: border-box;
}
.link-edit-modal__input:focus {
  outline: none;
  border-color: rgba(100, 160, 255, 0.6);
}
.link-edit-modal__check {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-main);
  cursor: pointer;
}
.link-edit-modal__check input {
  width: 1.1rem;
  height: 1.1rem;
  accent-color: #4a9eff;
}
.link-edit-modal__affiliate-wrap[hidden] {
  display: none !important;
}
.link-edit-modal__file {
  font-size: 0.85rem;
  color: var(--text-muted);
}
.link-edit-modal__error {
  margin: 10px 0 0;
  font-size: 0.85rem;
  color: #ff8080;
}
.link-edit-modal__btns {
  display: flex;
  gap: 10px;
  margin-top: 18px;
  flex-wrap: wrap;
}
.link-edit-modal__btn {
  flex: 1;
  min-width: 120px;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 800;
  padding: 12px 14px;
  transition: opacity 0.2s, transform 0.15s;
}
.link-edit-modal__btn:hover {
  opacity: 0.92;
  transform: scale(1.02);
}
.link-edit-modal__btn--primary {
  background: linear-gradient(135deg, #2980b9, #3498db);
  color: #fff;
}
.link-edit-modal__btn--ghost {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--card-border);
  color: var(--text-main);
}

/* ══════════════════════════════════════════
   CTA TWÓRCY — góra, środek (index)
══════════════════════════════════════════ */
.creator-top-cta {
  position: fixed;
  top: 22px;
  left: 50%;
  transform: translateX(-50%) translateZ(0);
  z-index: 250;
  max-width: min(420px, calc(100vw - 48px));
  display: flex;
  justify-content: center;
  pointer-events: none;
  backface-visibility: hidden;
}

.creator-top-cta__btn {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 20px;
  border-radius: 50px;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.2px;
  text-decoration: none;
  color: #fff;
  text-align: center;
  line-height: 1.25;
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.45), rgba(40, 148, 255, 0.5));
  border: 1px solid rgba(74, 222, 128, 0.6);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(74, 222, 128, 0.25);
  transition: opacity 0.2s, transform 0.15s, box-shadow 0.2s ease;
  white-space: nowrap;
}

.creator-top-cta__btn:hover {
  opacity: 0.95;
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(40, 148, 255, 0.35);
}

@media (max-width: 620px) {
  .creator-top-cta {
    top: 18px;
    max-width: min(340px, calc(100vw - 24px));
  }
  .creator-top-cta__btn {
    font-size: 0.78rem;
    padding: 9px 14px;
    white-space: normal;
  }
}

/* ══════════════════════════════════════════
   PRZYCISKI TOP-RIGHT
══════════════════════════════════════════ */
.top-right-btns {
  position: fixed;
  top: 22px;
  right: 22px;
  z-index: 200;
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 8px;
  transform: translateZ(0);
  backface-visibility: hidden;
}

/* Dwie kolumny: Powiadomienia+Twórca | O nas+Discord — ta sama szerokość kolumn */
.top-right-leading,
.top-right-trailing {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  gap: 6px;
  flex: 0 0 auto;
  width: clamp(10.75rem, 34vw, 14rem);
  min-width: 0;
  box-sizing: border-box;
}

.top-right-leading .creator-notif-wrap {
  width: 100%;
}

.top-right-leading .creator-notif__toggle {
  width: 100%;
  box-sizing: border-box;
  justify-content: center;
}

.top-right-leading #btnDlaczegoTworca {
  width: 100%;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.top-right-trailing .btn-o-nas {
  width: 100%;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

a.top-right-discord.btn-o-nas {
  text-decoration: none;
}

.hero-premium-fab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 46px;
  height: 46px;
  margin: 0;
  padding: 0;
  border-radius: 14px;
  font: inherit;
  cursor: pointer;
  color: #ffd966;
  background: linear-gradient(145deg, rgba(255, 196, 0, 0.14), rgba(90, 50, 20, 0.35));
  border: 1px solid rgba(255, 204, 102, 0.5);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.22),
    0 4px 16px rgba(0, 0, 0, 0.25),
    0 0 26px rgba(255, 196, 0, 0.14);
  transition:
    background 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease;
}

.hero-premium-fab__emoji {
  display: block;
  font-size: 1.35rem;
  line-height: 1;
}

.hero-premium-fab:hover {
  color: #fff3c4;
  background: linear-gradient(145deg, rgba(255, 196, 0, 0.24), rgba(120, 70, 30, 0.4));
  border-color: rgba(255, 214, 120, 0.75);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.22),
    0 8px 24px rgba(0, 0, 0, 0.3),
    0 0 36px rgba(255, 196, 0, 0.22);
  transform: translateY(-1px);
}

.hero-premium-fab:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 196, 0, 0.45);
}

@media (prefers-reduced-motion: reduce) {
  .hero-premium-fab,
  .hero-premium-fab:hover {
    transition: none;
    transform: none;
  }
}

/* Ikona Discord (link) w wierszu .hero-polska-row */
.hero-discord-fab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  color: #5865f2;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(88, 101, 242, 0.42);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.22),
    0 4px 16px rgba(0, 0, 0, 0.25),
    0 0 28px rgba(88, 101, 242, 0.16);
  text-decoration: none;
  cursor: pointer;
  transition:
    background 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease;
}

.hero-discord-fab:hover {
  color: #a6b6ff;
  background: rgba(88, 101, 242, 0.16);
  border-color: rgba(88, 101, 242, 0.65);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.22),
    0 8px 24px rgba(0, 0, 0, 0.3),
    0 0 36px rgba(88, 101, 242, 0.28);
  transform: translateY(-1px);
}

.hero-discord-fab:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(88, 101, 242, 0.45);
}

.hero-discord-fab svg {
  display: block;
}

/* Telefon — wyższy hero: mniej pustki, ikony obok „POLSKA…”, szybciej widać kartę z dyskami */
@media (max-width: 700px) {
  .hero {
    gap: 2px;
    margin-bottom: 4px;
  }

  .page-shell {
    padding-top: 12px;
    padding-bottom: 14px;
  }

  .hero-badge {
    padding: 3px 10px;
    font-size: 0.72rem;
  }

  .hero-title {
    line-height: 1.06;
    margin-block: 0 1px;
  }

  .hero-polska-row {
    gap: 4px;
    max-width: 100%;
  }

  .hero-premium-fab,
  .hero-discord-fab {
    width: 36px;
    height: 36px;
  }

  .hero-premium-fab__emoji {
    font-size: 1.05rem;
  }

  .hero-discord-fab svg {
    width: 17px;
    height: 17px;
  }

  .hero-brand {
    line-height: 1.02;
  }

  .hero-sub {
    line-height: 1.28;
    margin-top: 2px;
  }

  .hero-stats {
    gap: 4px;
    margin-top: 2px;
  }

  .hero-callout {
    padding: 7px 10px;
    gap: 4px;
    margin-top: 2px;
  }

  .hero-callout p {
    font-size: 0.77rem;
    line-height: 1.38;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-discord-fab,
  .hero-discord-fab:hover {
    transition: none;
    transform: none;
  }
}

/* Powiadomienia twórcy (dzwonek, tylko rola creator) */
.creator-notif-wrap {
  position: relative;
}

.creator-notif__toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding-right: 20px;
}

.creator-notif__bell-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.creator-notif__bell {
  font-size: 1rem;
  line-height: 1;
}

.creator-notif__dot {
  position: absolute;
  top: -3px;
  right: -4px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ff3b3b;
  border: 2px solid #12121f;
  box-shadow: 0 0 10px rgba(255, 59, 59, 0.75);
}

.creator-notif__dot[hidden] {
  display: none !important;
}

.creator-notif__badge {
  position: absolute;
  top: -5px;
  right: 2px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: #e74c3c;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 800;
  line-height: 18px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
}

.creator-notif-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: min(380px, calc(100vw - 40px));
  max-height: min(440px, 72vh);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: #14142a;
  border: 1px solid var(--card-border);
  border-radius: 16px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.55);
  z-index: 400;
}

.creator-notif-panel[hidden] {
  display: none !important;
}

.creator-notif-list {
  overflow-y: auto;
  padding: 8px;
  max-height: min(420px, 68vh);
  -webkit-overflow-scrolling: touch;
}

.creator-notif__empty {
  margin: 0;
  padding: 20px 16px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.creator-notif__item {
  padding: 12px 14px;
  border-radius: 12px;
  margin-bottom: 6px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid transparent;
}

.creator-notif__item:last-child {
  margin-bottom: 0;
}

.creator-notif__item--unread {
  border-color: rgba(122, 44, 255, 0.45);
  background: rgba(122, 44, 255, 0.1);
}

.creator-notif__item-title {
  font-weight: 700;
  font-size: 0.86rem;
  color: var(--text-main);
  margin-bottom: 6px;
  line-height: 1.3;
}

.creator-notif__item-body {
  font-size: 0.8rem;
  line-height: 1.45;
  color: var(--text-muted);
}

.creator-notif__item-meta {
  margin-top: 8px;
  font-size: 0.72rem;
  color: var(--text-muted);
  opacity: 0.9;
}

.btn-o-nas {
  background: rgba(22, 22, 40, 0.92);
  border: 1px solid var(--card-border);
  border-radius: 50px;
  color: var(--text-muted);
  cursor: pointer;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 8px 16px;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  white-space: nowrap;
}
.btn-o-nas:hover {
  background: rgba(255, 255, 255, 0.13);
  color: var(--text-main);
}
.btn-o-nas--creator {
  background: linear-gradient(135deg, rgba(122,44,255,0.25), rgba(40,148,255,0.2));
  border-color: rgba(122, 44, 255, 0.45);
  color: #c084ff;
}
.btn-o-nas--creator:hover {
  background: linear-gradient(135deg, rgba(122,44,255,0.4), rgba(40,148,255,0.35));
  color: #fff;
  border-color: rgba(122, 44, 255, 0.7);
}

/* ══════════════════════════════════════════
   MODAL O NAS
══════════════════════════════════════════ */
.onas-modal {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
}
.onas-modal[hidden] { display: none !important; }

.onas-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.82);
}
.onas-modal__box {
  position: relative;
  z-index: 1;
  width: min(calc(100% - 32px), 560px);
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  background: #0f1022;
  border: 1px solid var(--card-border);
  border-radius: 20px;
  padding: 36px 32px 32px;
  animation: pageFadeIn 0.22s ease forwards;
  opacity: 0;
  scrollbar-width: thin;
  scrollbar-color: rgba(122,44,255,0.4) transparent;
}
.onas-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 30px;
  height: 30px;
  background: rgba(255,255,255,0.07);
  border: 1px solid var(--card-border);
  border-radius: 50%;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  transition: background 0.2s;
}
.onas-modal__close:hover {
  background: rgba(255,255,255,0.14);
  color: var(--text-main);
}

.onas-content {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

/* Nagłówek */
.onas-header { display: flex; flex-direction: column; gap: 10px; }
.onas-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(46, 204, 113, 0.15);
  border: 1px solid rgba(46, 204, 113, 0.35);
  border-radius: 50px;
  color: #2ecc71;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 4px 12px;
  width: fit-content;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.onas-title {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 900;
  line-height: 1.3;
  background: linear-gradient(135deg, #fff 40%, #c084ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Bloki treści */
.onas-block {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 14px;
  padding: 16px;
}
.onas-block--warn {
  background: rgba(255, 200, 50, 0.06);
  border-color: rgba(255, 200, 50, 0.2);
}
.onas-block__icon {
  font-size: 1.5rem;
  flex-shrink: 0;
  margin-top: 2px;
}
.onas-block strong {
  display: block;
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 5px;
}
.onas-block p {
  margin: 0;
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.65;
}
.onas-block p strong {
  display: inline;
  color: #c084ff;
  font-weight: 700;
}

/* Divider */
.onas-divider {
  height: 1px;
  background: var(--card-border);
}

/* Kontakt */
.onas-contact {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
}
.onas-contact__label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.onas-contact__email {
  font-size: 1rem;
  font-weight: 800;
  color: #c084ff;
  text-decoration: none;
  transition: color 0.2s;
}
.onas-contact__email:hover { color: #fff; }
.onas-contact__hint {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ── Wariant złoty badge (twórcy) ── */
.onas-badge--gold {
  background: rgba(255, 196, 0, 0.15);
  border-color: rgba(255, 196, 0, 0.35);
  color: #ffc400;
}

/* ── Podtytuł modala ── */
.onas-subtitle {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ── Modal FAQ (accordion w .onas-content) ── */
.onas-modal__box--faq {
  width: min(calc(100% - 32px), 600px);
  background:
    radial-gradient(120% 70% at 100% -20%, rgba(122, 44, 255, 0.16), transparent 55%),
    radial-gradient(80% 50% at 0% 100%, rgba(40, 148, 255, 0.08), transparent 50%),
    linear-gradient(180deg, #14152a 0%, #0f1020 52%, #0b0c16 100%);
  border: 1px solid rgba(122, 44, 255, 0.28);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.35),
    0 20px 50px rgba(0, 0, 0, 0.55),
    0 0 64px rgba(122, 44, 255, 0.1);
}

.onas-modal__box--faq::-webkit-scrollbar-thumb {
  background: linear-gradient(
    180deg,
    rgba(122, 44, 255, 0.45),
    rgba(40, 148, 255, 0.35)
  );
  border-radius: 8px;
}

.onas-modal__box--faq .onas-modal__close {
  border-color: rgba(122, 44, 255, 0.28);
  color: rgba(243, 244, 255, 0.85);
}

.onas-modal__box--faq .onas-modal__close:hover {
  background: rgba(122, 44, 255, 0.18);
  border-color: rgba(122, 44, 255, 0.55);
  color: var(--text-main);
}

.onas-modal__box--faq .onas-modal__close:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(122, 44, 255, 0.45);
}

.onas-modal__box--faq .onas-badge--faq {
  background: linear-gradient(135deg, rgba(122, 44, 255, 0.22), rgba(40, 148, 255, 0.1));
  border-color: rgba(122, 44, 255, 0.45);
  color: #d4bcff;
  box-shadow: 0 0 20px rgba(122, 44, 255, 0.12);
}

.onas-modal__box--faq .faq-modal-content {
  gap: 0;
}

.onas-modal__box--faq .onas-header {
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.onas-modal__box--faq .faq-topic {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 22px 0 12px;
  font-size: 0.67rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(179, 183, 214, 0.72);
}

.onas-modal__box--faq .faq-topic:first-of-type {
  margin-top: 12px;
}

.onas-modal__box--faq .faq-topic::before {
  content: "";
  flex: 0 0 3px;
  height: 14px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--accent-b), var(--accent-a));
  box-shadow: 0 0 10px rgba(122, 44, 255, 0.45);
}

.onas-modal__box--faq .faq-item {
  margin-top: 0;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition:
    border-color 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease;
}

.onas-modal__box--faq .faq-item:hover {
  border-color: rgba(122, 44, 255, 0.28);
  background: rgba(122, 44, 255, 0.05);
}

.onas-modal__box--faq .faq-item + .faq-item {
  margin-top: 8px;
}

.onas-modal__box--faq .faq-item[open] {
  border-color: rgba(122, 44, 255, 0.38);
  background: rgba(122, 44, 255, 0.07);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 0 0 1px rgba(122, 44, 255, 0.12);
}

.onas-modal__box--faq .faq-item__q {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.42;
  color: rgba(243, 244, 255, 0.96);
  list-style: none;
  outline: none;
}

.onas-modal__box--faq .faq-item__q::-webkit-details-marker {
  display: none;
}

.onas-modal__box--faq .faq-item__q::marker {
  content: "";
}

.onas-modal__box--faq .faq-item__q::after {
  content: "\203A";
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  border-radius: 8px;
  font-size: 1.06rem;
  font-weight: 800;
  line-height: 1;
  padding-bottom: 2px;
  color: rgba(255, 255, 255, 0.92);
  background:
    radial-gradient(circle at 50% 42%, rgba(255, 255, 255, 0.07), transparent 72%),
    linear-gradient(
      155deg,
      rgba(122, 44, 255, 0.34),
      rgba(40, 148, 255, 0.16)
    );
  border: 1px solid rgba(122, 44, 255, 0.4);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.09),
    0 2px 10px rgba(0, 0, 0, 0.22);
  transition: transform 0.22s cubic-bezier(0.34, 1.2, 0.64, 1);
}

.onas-modal__box--faq .faq-item[open] > .faq-item__q::after {
  transform: rotate(90deg);
}

@media (prefers-reduced-motion: reduce) {
  .onas-modal__box--faq .faq-item__q::after {
    transition: none;
  }
}

.onas-modal__box--faq .faq-item__q:focus-visible {
  border-radius: 11px;
  box-shadow: 0 0 0 2px rgba(122, 44, 255, 0.45);
}

.onas-modal__box--faq .faq-item__body {
  padding: 0 16px 14px;
  border-top: 1px solid rgba(122, 44, 255, 0.15);
}

.onas-modal__box--faq .faq-item__body p {
  margin: 11px 0 0;
  padding-left: 10px;
  border-left: 2px solid rgba(40, 148, 255, 0.35);
  font-size: 0.842rem;
  line-height: 1.68;
  color: rgba(179, 183, 214, 0.95);
}

.onas-modal__box--faq .faq-item__body p:first-child {
  margin-top: 0;
}

.onas-modal__box--faq .faq-modal-content > .onas-divider {
  margin-top: 22px;
  height: 1px;
  border: none;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(122, 44, 255, 0.35) 50%,
    transparent 100%
  );
}

.onas-modal__box--faq .faq-modal-content .onas-contact {
  margin-top: 4px;
  padding: 14px 16px 2px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

/* ── Tabela zarobków ── */
.onas-earnings-box {
  background: linear-gradient(135deg, rgba(122,44,255,0.12), rgba(40,148,255,0.08));
  border: 1px solid rgba(122,44,255,0.35);
  border-radius: 16px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.onas-earnings-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  gap: 12px;
}
.onas-earnings-num {
  font-size: 1.5rem;
  font-weight: 900;
  background: linear-gradient(135deg, #ffd700, #ffaa00);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  white-space: nowrap;
}
.onas-earnings-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: right;
}
.onas-earnings-divider {
  height: 1px;
  background: rgba(122,44,255,0.2);
}
.onas-earnings-note {
  margin: 12px 0 0;
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.5;
  font-style: italic;
}

/* ── Premium / płatności (auth-corner + modal) ── */
.btn-premium-corner {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: linear-gradient(135deg, rgba(255,196,0,0.18), rgba(255,140,0,0.18));
  border: 1px solid rgba(255,196,0,0.4);
  border-radius: 50px;
  color: #ffd700;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 8px 16px;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  white-space: nowrap;
}
.btn-premium-corner:hover {
  background: linear-gradient(135deg, rgba(255,196,0,0.3), rgba(255,140,0,0.3));
  box-shadow: 0 2px 12px rgba(255,196,0,0.2);
  transform: translateY(-1px);
}
.auth-bar__btn--premium {
  background: linear-gradient(135deg, rgba(255,196,0,0.2), rgba(255,140,0,0.2));
  border: 1px solid rgba(255,196,0,0.45);
  color: #ffd700;
  font-weight: 800;
}
.auth-bar__btn--premium:hover {
  background: linear-gradient(135deg, rgba(255,196,0,0.35), rgba(255,140,0,0.35));
  box-shadow: 0 2px 10px rgba(255,196,0,0.25);
}
.auth-bar__role--premium {
  color: #ffd700 !important;
}
.premium-modal-buy-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 8px;
}
.premium-modal-buy-row .premium-modal-buy-btn {
  margin-top: 0;
}
.premium-modal-buy-btn {
  display: block;
  width: 100%;
  padding: 15px;
  margin-top: 8px;
  background: linear-gradient(135deg, #b8860b, #ffd700);
  border: none;
  border-radius: 14px;
  color: #1a1000;
  cursor: pointer;
  font-family: inherit;
  font-size: 1.05rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  transition: opacity 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 4px 24px rgba(255,196,0,0.35);
  text-align: center;
}
.premium-modal-buy-btn:hover:not(:disabled) {
  opacity: 0.92;
  transform: translateY(-2px);
  box-shadow: 0 6px 32px rgba(255,196,0,0.5);
}
.premium-modal-buy-btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}
.premium-modal-buy-btn--crypto {
  background: linear-gradient(135deg, #2a1f45, #5b4a9e);
  color: #f4f0ff;
  box-shadow: 0 4px 24px rgba(90, 70, 180, 0.35);
}
.premium-modal-buy-btn--crypto:hover:not(:disabled) {
  box-shadow: 0 6px 32px rgba(120, 90, 220, 0.45);
}
.premium-modal-buy-btn--discord {
  text-decoration: none;
  background: linear-gradient(135deg, #4752c4, #5865f2);
  color: #fff;
  box-shadow: 0 4px 24px rgba(88, 101, 242, 0.4);
}
.premium-modal-buy-btn--discord:hover:not(:disabled) {
  box-shadow: 0 6px 32px rgba(88, 101, 242, 0.55);
}
.premium-buy-status {
  font-size: 0.85rem;
  color: #ff6b6b;
  margin-top: 10px;
  text-align: center;
}
.premium-buy-status--fs {
  margin-top: 18px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

/* Pełny ekran — wybór planu krypto (#premiumPlanFullscreen) */
.premium-plan-fullscreen {
  position: fixed;
  inset: 0;
  z-index: 2;
  background: linear-gradient(165deg, #070815 0%, #0f1022 45%, #14182e 100%);
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  padding: 16px 16px max(24px, env(safe-area-inset-bottom, 0px));
  box-sizing: border-box;
}
.premium-plan-fullscreen[hidden] {
  display: none !important;
}
.premium-plan-fullscreen__inner {
  max-width: 1180px;
  margin: 0 auto;
  padding-top: 8px;
}
.premium-plan-fullscreen__back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 16px;
  padding: 8px 14px;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  color: rgba(200, 210, 255, 0.95);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(120, 130, 200, 0.35);
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}
.premium-plan-fullscreen__back:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(160, 170, 240, 0.5);
}
.premium-plan-fullscreen__title {
  margin: 0 0 10px;
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  font-weight: 900;
  color: #ffe8b0;
  letter-spacing: 0.02em;
}
.premium-plan-fullscreen__lead {
  margin: 0 0 22px;
  font-size: 0.9rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.62);
  max-width: 52rem;
}

/* Kompaktowy pasek oferty (jak promka w sklepie) */
.premium-fs-offer-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 8px 12px;
  margin: 0 0 18px;
  padding: 8px 12px 10px;
  max-width: min(52rem, 100%);
  border-radius: 10px;
  border: 1px solid rgba(220, 60, 70, 0.4);
  background: linear-gradient(90deg, rgba(130, 20, 32, 0.55) 0%, rgba(85, 16, 28, 0.45) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.premium-fs-offer-strip__tag {
  flex-shrink: 0;
  margin-top: 1px;
  padding: 2px 8px;
  font-size: 0.6rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #1a0a0c;
  background: linear-gradient(135deg, #ffb020, #ff8a00);
  border-radius: 5px;
  border: 1px solid rgba(255, 220, 160, 0.45);
}
.premium-fs-offer-strip__text {
  margin: 0;
  flex: 1;
  min-width: 200px;
  font-size: 0.78rem;
  line-height: 1.4;
  font-weight: 500;
  color: rgba(255, 245, 245, 0.95);
}
.premium-fs-offer-strip__text strong {
  font-weight: 800;
  color: #fff;
}

/* Pasek na wyraźnym czerwonym tle (ostrzeżenie + rekomendacja „na zawsze”) */
.premium-fs-offer-strip--alert {
  padding: 10px 14px 12px;
  border: 1px solid rgba(255, 90, 100, 0.65);
  background: linear-gradient(135deg, #7a1018 0%, #a01828 45%, #7d1220 100%);
  box-shadow:
    0 4px 20px rgba(160, 30, 45, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.07);
}
.premium-fs-offer-strip--alert .premium-fs-offer-strip__tag {
  background: linear-gradient(135deg, #ff4444, #c91828);
  color: #fff;
  border-color: rgba(255, 180, 180, 0.5);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}
.premium-fs-offer-strip--alert .premium-fs-offer-strip__text {
  font-size: 0.84rem;
  line-height: 1.45;
  color: #ffd0d2;
}
.premium-fs-offer-strip--alert .premium-fs-offer-strip__text strong {
  color: #ffffff;
}

/* Nagłówki okresu na kartach (fullscreen) — wyśrodkowane, wyraziste */
.premium-plan-card__period--fs {
  display: block;
  width: 100%;
  text-align: center;
  font-size: clamp(1.2rem, 3.8vw, 1.85rem);
  font-weight: 900;
  letter-spacing: 0.1em;
  line-height: 1.2;
  margin: 0 0 10px;
  color: rgba(255, 236, 200, 0.98);
  text-transform: uppercase;
  text-wrap: balance;
}
/* Jednakowa wysokość wiersza z nagłówkiem okresu we wszystkich kartach (wyrównanie kolumn) */
.premium-plan-card--best .premium-plan-card__period--fs {
  font-size: clamp(1.2rem, 3.8vw, 1.85rem);
  letter-spacing: 0.1em;
}

/* Niewidoczny „placeholder” wstążki — ta sama zajętość co .premium-plan-card__ribbon */
.premium-plan-card__ribbon-slot {
  display: inline-block;
  align-self: center;
  margin: 0 0 10px;
  padding: 5px 16px;
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  line-height: 1.2;
  text-transform: uppercase;
  color: transparent;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 7px;
  visibility: hidden;
  pointer-events: none;
  user-select: none;
}

/* Ceny promocyjne (katalog / promo / oszczędność) */
.premium-plan-card__price-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  margin: 2px 0 6px;
  width: 100%;
}
.premium-plan-card__promo-label {
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 180, 120, 0.95);
}
.premium-plan-card__price-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: 8px 10px;
}
.premium-plan-card__price-old {
  font-size: 0.95rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.38);
  text-decoration: line-through;
  text-decoration-thickness: 1px;
}
.premium-plan-card__price-current {
  font-size: 1.45rem;
  font-weight: 900;
  color: #ffe8a8;
  letter-spacing: -0.02em;
}
.premium-plan-card__save-pill {
  display: inline-block;
  margin-top: 2px;
  padding: 3px 10px;
  font-size: 0.68rem;
  font-weight: 700;
  color: #e8fff0;
  background: rgba(40, 160, 90, 0.35);
  border: 1px solid rgba(100, 220, 150, 0.35);
  border-radius: 999px;
}
.premium-plan-card__save-pill--hot {
  background: rgba(200, 60, 40, 0.4);
  border-color: rgba(255, 140, 120, 0.4);
  color: #fff5f0;
}

.premium-plan-fullscreen__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}

.premium-plan-card--fs {
  position: relative;
  padding: 18px 16px 16px;
}
.premium-plan-card--fs .premium-plan-card__body {
  font-size: 0.82rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.68);
  margin: 0 0 12px;
  flex: 1;
}
.premium-plan-card--fs .premium-plan-card__body p {
  margin: 0 0 10px;
}
.premium-plan-card--fs .premium-plan-card__body p:last-child {
  margin-bottom: 0;
}

.premium-plan-card--best {
  border-color: rgba(255, 196, 60, 0.55);
  box-shadow:
    0 0 0 1px rgba(255, 180, 40, 0.15),
    0 8px 32px rgba(90, 60, 20, 0.35);
  background: linear-gradient(180deg, rgba(255, 200, 80, 0.06), rgba(255, 255, 255, 0.03));
}
.premium-plan-card__ribbon {
  display: inline-block;
  align-self: center;
  margin: 0 0 10px;
  padding: 5px 16px;
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #221800;
  background: linear-gradient(135deg, #ffd54a, #ffb020);
  border-radius: 7px;
  border: 1px solid rgba(255, 230, 160, 0.55);
  box-shadow: 0 2px 14px rgba(255, 196, 60, 0.4);
}
.premium-plan-card__best-sub {
  font-size: 0.76rem;
  font-weight: 700;
  color: rgba(255, 215, 150, 0.92);
  margin: -4px 0 10px;
  text-align: center;
  letter-spacing: 0.02em;
}

.premium-crypto-intro {
  margin-top: 4px;
}
.premium-crypto-intro .premium-modal-buy-btn {
  margin-top: 0;
}
.premium-plan-step {
  margin-top: 14px;
}
.premium-plan-step__title {
  margin: 0 0 12px;
  font-size: 0.95rem;
  font-weight: 800;
  color: rgba(255, 230, 200, 0.95);
  text-align: center;
}
.premium-plan-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 4px;
  align-items: stretch;
}
.premium-plan-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  padding: 14px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 215, 0, 0.15);
}
.premium-plan-card--featured {
  border-color: rgba(255, 196, 0, 0.45);
  box-shadow: 0 0 0 1px rgba(255, 196, 0, 0.12);
}
.premium-plan-card__period {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255, 230, 180, 0.85);
}
.premium-plan-card__price {
  font-size: 1.35rem;
  font-weight: 900;
  color: #ffe8a8;
}
.premium-plan-card__hint {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.55);
  margin: 0 0 4px;
  line-height: 1.35;
  flex: 1;
}

/* Fullscreen: tagline „Tygodniowy / Miesięczny / Na zawsze” — większy, panel RGB */
@keyframes premium-hint-rgb-glow {
  0%,
  100% {
    border-color: rgba(255, 110, 180, 0.42);
    box-shadow:
      0 0 22px rgba(255, 90, 170, 0.32),
      0 0 42px rgba(255, 90, 170, 0.12),
      inset 0 1px 0 rgba(255, 255, 255, 0.06),
      inset 0 -12px 36px rgba(255, 80, 160, 0.06);
  }
  33% {
    border-color: rgba(90, 210, 255, 0.48);
    box-shadow:
      0 0 22px rgba(80, 200, 255, 0.34),
      0 0 44px rgba(80, 200, 255, 0.14),
      inset 0 1px 0 rgba(255, 255, 255, 0.06),
      inset 0 -12px 36px rgba(70, 190, 255, 0.07);
  }
  66% {
    border-color: rgba(170, 255, 150, 0.4);
    box-shadow:
      0 0 22px rgba(130, 240, 160, 0.3),
      0 0 42px rgba(130, 240, 160, 0.11),
      inset 0 1px 0 rgba(255, 255, 255, 0.06),
      inset 0 -12px 36px rgba(120, 230, 150, 0.06);
  }
}

.premium-plan-card--fs .premium-plan-card__hint--fs-glow {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin: 10px 0 10px;
  padding: clamp(14px, 2vw, 18px) 14px;
  flex: 2 1 0;
  /* Ta sama wysokość panelu we wszystkich trzech kartach (jedna lub dwie linie) */
  min-height: 6.5rem;
  font-size: clamp(0.92rem, 2vw, 1.12rem);
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: none;
  color: rgba(230, 240, 255, 0.96);
  line-height: 1.35;
  background: linear-gradient(165deg, rgba(12, 18, 40, 0.92), rgba(6, 10, 28, 0.78));
  border-radius: 14px;
  border: 1px solid rgba(255, 140, 200, 0.35);
  text-shadow:
    0 0 20px rgba(180, 210, 255, 0.25),
    0 1px 2px rgba(0, 0, 0, 0.45);
  animation: premium-hint-rgb-glow 7s ease-in-out infinite;
}

.premium-plan-card--fs .premium-plan-card__hint--fs-glow--dual {
  flex-direction: column;
  gap: 8px;
}

.premium-plan-card__hint-glow-line {
  display: block;
}

.premium-plan-card__hint-glow-sub {
  display: block;
  font-size: 0.78em;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: rgba(255, 218, 175, 0.92);
  text-shadow: 0 1px 12px rgba(255, 200, 120, 0.2);
}

.premium-plan-card--fs:has(.premium-plan-card__hint--fs-glow) .premium-plan-card__body {
  flex: 1 1 0;
}

@media (prefers-reduced-motion: reduce) {
  .premium-plan-card--fs .premium-plan-card__hint--fs-glow {
    animation: none;
    border-color: rgba(140, 170, 240, 0.35);
    box-shadow:
      0 0 18px rgba(100, 150, 220, 0.22),
      inset 0 1px 0 rgba(255, 255, 255, 0.05);
  }
}

.premium-plan-card .premium-modal-buy-btn {
  font-size: 0.88rem;
  padding: 12px 10px;
}
.premium-plan-card .premium-modal-buy-btn--crypto {
  margin-top: auto;
}

/* Discord pod przyciskiem krypto (te same karty fullscreen) */
.premium-plan-card__discord-cta {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  text-align: center;
  line-height: 1.28;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 12px 8px;
  letter-spacing: 0.01em;
  box-shadow:
    0 4px 22px rgba(88, 101, 242, 0.42),
    0 0 26px rgba(88, 101, 242, 0.2);
  transition: box-shadow 0.2s, opacity 0.2s, transform 0.15s;
}
.premium-plan-card__discord-cta:hover {
  opacity: 0.95;
  transform: translateY(-1px);
  box-shadow:
    0 6px 28px rgba(88, 101, 242, 0.5),
    0 0 34px rgba(88, 101, 242, 0.28);
}
.premium-plan-card__discord-cta-line {
  display: block;
}

.premium-modal-buy-row--discord {
  margin-top: 14px;
}

@media (max-width: 720px) {
  .premium-plan-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 980px) {
  .premium-plan-fullscreen__grid {
    grid-template-columns: 1fr;
  }
}

/* ── Mobile: brak nakładania fixed auth / CTA / top-right ── */
@media (max-width: 700px) {
  .site-top-chrome {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 12px 12px 0;
    width: 100%;
    box-sizing: border-box;
  }

  .site-top-chrome .auth-corner,
  .site-top-chrome .creator-top-cta,
  .site-top-chrome .top-right-btns {
    position: static !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    transform: none !important;
    width: 100%;
    max-width: none;
  }

  .creator-top-cta__btn {
    width: 100%;
    justify-content: center;
  }

  /* CTA twórcy: wyśrodkowany w obszarze nad treścią, z tym samym wcięciem co #screenMain — bez nachodzenia na pasek */
  body.site-nav-layout:not(.detail-screen-open) .site-top-chrome .creator-top-cta {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: none;
    padding-left: calc(max(14px, env(safe-area-inset-left, 0px)) + var(--site-nav-collapsed-w));
    padding-right: max(14px, env(safe-area-inset-right, 0px));
    box-sizing: border-box;
  }

  body.site-nav-layout:not(.detail-screen-open) .site-top-chrome .creator-top-cta .creator-top-cta__btn {
    width: auto;
    max-width: 100%;
    justify-content: center;
    text-align: center;
    box-sizing: border-box;
  }

  .top-right-btns {
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: stretch;
    gap: 8px;
  }

  .top-right-leading,
  .top-right-trailing {
    flex: 1 1 calc(50% - 4px);
    width: auto;
    min-width: 140px;
    max-width: none;
    align-self: stretch;
  }

  .top-right-btns .btn-o-nas {
    white-space: normal;
    justify-content: center;
    text-align: center;
  }

  .top-right-trailing .btn-o-nas {
    flex: none;
    width: 100%;
  }

  .creator-notif__toggle {
    width: 100%;
    justify-content: center;
  }

  .creator-notif-panel {
    left: 0;
    right: 0;
    width: auto;
    max-width: none;
  }

  body.detail-screen-open .auth-corner {
    left: auto;
  }

  .screen--main {
    padding-top: 8px;
  }
}

/* ── MyLead / BestLocker — pełnoekranowa nakładka ── */
.content-locker-overlay {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: stretch;
  padding: 0;
  margin: 0;
  border: none;
  background: rgba(6, 8, 18, 0.92);
  backdrop-filter: blur(8px);
}

.content-locker-overlay[hidden] {
  display: none !important;
}

body.content-locker-open {
  overflow: hidden;
}

.content-locker-overlay__panel {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  width: 100%;
  max-height: 100vh;
}

.content-locker-overlay__toolbar {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  background: linear-gradient(180deg, rgba(15, 16, 34, 0.98), rgba(15, 16, 34, 0.92));
  border-bottom: 1px solid var(--card-border);
}

.content-locker-overlay__title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
}

.content-locker-overlay__close {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--card-border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-main);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s, transform 0.12s;
}

.content-locker-overlay__close:hover {
  background: rgba(255, 255, 255, 0.12);
}

.content-locker-overlay__close:focus-visible {
  outline: 2px solid var(--accent-a);
  outline-offset: 2px;
}

/* Jak „Sample Iframe embed code” z panelu MyLead (iframe na całą warstwę pod paskiem zamknięcia) */
.content-locker-overlay__iframe {
  flex: 1;
  width: 100vw;
  min-height: 100%;
  border: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background: #0f1022;
}
