:root, [data-bs-theme=dark] {
  --cyber-bg: #07080d;
  --cyber-surface: rgba(16, 20, 34, 0.75);
  --cyber-surface-hover: rgba(22, 28, 46, 0.88);
  --cyber-border: rgba(255, 255, 255, 0.1);
  --cyber-border-glow: rgba(184, 41, 234, 0.3);
  --neon-purple: #b829ea;
  --neon-blue: #3d43dc;
  --neon-cyan: #00f0ff;
  --neon-amber: #ff9f1c;
  --bs-body-color: #f8fafc;
  --bs-body-color-rgb: 248, 250, 252;
  --bs-secondary-color: #cbd5e1;
  --bs-secondary-color-rgb: 203, 213, 225;
}

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

::selection {
  background-color: #b718b7;
}

body {
  background-color: var(--cyber-bg);
  color: #f8fafc;
  font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  overflow-x: hidden;
  position: relative;
  background-image: radial-gradient(circle at 15% 15%, rgba(184, 41, 234, 0.12) 0%, transparent 45%), radial-gradient(circle at 85% 25%, rgba(61, 67, 220, 0.12) 0%, transparent 50%), radial-gradient(circle at 50% 65%, rgba(255, 159, 28, 0.07) 0%, transparent 50%), radial-gradient(circle at 80% 85%, rgba(0, 240, 255, 0.08) 0%, transparent 45%), linear-gradient(to bottom, rgba(7, 8, 13, 0.96), rgba(7, 8, 13, 1));
  background-attachment: fixed;
}

.content-relative {
  position: relative;
  z-index: 1;
}

/* Linki */

a {
  color: #00f0ff;
  transition: color 0.25s ease, text-shadow 0.25s ease;
}

/* Linki Cyber Glow po najechaniu */

a:hover {
  color: #ffffff;
  text-shadow: 0 0 8px rgba(0, 240, 255, 0.8), 0 0 16px rgba(0, 240, 255, 0.4);
}

/* Cyber Link */

.cyber-link-cyan {
  color: #00f0ff !important;
  border-color: rgba(0, 240, 255, 0.35);
  background: rgba(0, 240, 255, 0.05);
}

.cyber-link-cyan:hover {
  background: rgba(0, 240, 255, 0.14);
  border-color: #00f0ff;
  box-shadow: 0 0 18px rgba(0, 240, 255, 0.35);
  transform: translateY(-1px);
}

.cyber-link-purple {
  color: #f0abfc !important;
  border-color: rgba(184, 41, 234, 0.35);
  background: rgba(184, 41, 234, 0.06);
}

.cyber-link-purple:hover {
  background: rgba(184, 41, 234, 0.16);
  border-color: #b829ea;
  box-shadow: 0 0 18px rgba(184, 41, 234, 0.35);
  transform: translateY(-1px);
}

.cyber-link-amber {
  color: #ffb703 !important;
  border-color: rgba(255, 159, 28, 0.35);
  background: rgba(255, 159, 28, 0.05);
}

.cyber-link-amber:hover {
  background: rgba(255, 159, 28, 0.15);
  border-color: #ff9f1c;
  box-shadow: 0 0 18px rgba(255, 159, 28, 0.35);
  transform: translateY(-1px);
}

/* Navbar */

.navbar-cyber {
  background: rgba(7, 8, 13, 0.88) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.3s ease;
}

.navbar-cyber .nav-link {
  color: #cbd5e1 !important;
  font-weight: 500;
  font-size: 1.05rem;
  letter-spacing: 0.03em;
  padding: 0.5rem 1rem !important;
  transition: all 0.25s ease;
  position: relative;
}

.navbar-cyber .nav-link:hover, .navbar-cyber .nav-link.active {
  color: #ffffff !important;
  text-shadow: 0 0 10px rgba(0, 240, 255, 0.5);
}

.navbar-cyber .nav-link::after {
  content: "";
  position: absolute;
  bottom: 0px;
  left: 50%;
  width: 0;
  height: 1px;
  background: linear-gradient(90deg, #b829ea, #1f68d6);
  transition: all 0.25s ease;
  transform: translateX(-50%);
}

.navbar-cyber .nav-link:hover::after, .navbar-cyber .nav-link.active::after {
  width: 60%;
}

/* Buttons */

.btn-cyber-primary {
  background: linear-gradient(135deg, #b829ea 0%, #7928ca 100%);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff !important;
  font-weight: 600;
  letter-spacing: 0.03em;
  padding: 0.75rem 1.75rem;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(184, 41, 234, 0.35);
  transition: all 0.3s ease;
  display: inline-block;
  text-decoration: none;
}

.btn-cyber-primary:hover {
  background: linear-gradient(135deg, #c745f4 0%, #8937de 100%);
  box-shadow: 0 6px 25px rgba(184, 41, 234, 0.55);
  transform: translateY(-2px);
}

.btn-cyber-cyan {
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.18) 0%, rgba(61, 67, 220, 0.3) 100%);
  border: 1px solid rgba(0, 240, 255, 0.5);
  color: #00f0ff !important;
  font-weight: 600;
  letter-spacing: 0.03em;
  padding: 0.75rem 1.75rem;
  border-radius: 10px;
  transition: all 0.3s ease;
  display: inline-block;
  text-decoration: none;
}

.btn-cyber-cyan:hover {
  background: #00f0ff;
  color: #07080d !important;
  box-shadow: 0 0 25px rgba(0, 240, 255, 0.5);
  transform: translateY(-2px);
}

.btn-cyber-amber {
  background: linear-gradient(135deg, rgba(255, 159, 28, 0.18) 0%, rgba(230, 81, 0, 0.3) 100%);
  border: 1px solid rgba(255, 159, 28, 0.5);
  color: #ffb703 !important;
  font-weight: 600;
  letter-spacing: 0.03em;
  padding: 0.75rem 1.75rem;
  border-radius: 10px;
  transition: all 0.3s ease;
  display: inline-block;
  text-decoration: none;
}

.btn-cyber-amber:hover {
  background: #ff9f1c;
  color: #07080d !important;
  box-shadow: 0 0 25px rgba(255, 159, 28, 0.5);
  transform: translateY(-2px);
}

/* Hero Book Glow */

.book-glow-wrapper {
  position: relative;
  display: inline-block;
}

.book-glow-wrapper::before {
  content: "";
  position: absolute;
  top: 10%;
  left: 10%;
  width: 80%;
  height: 80%;
  background: radial-gradient(circle, rgba(184, 41, 234, 0.35) 0%, rgba(255, 159, 28, 0.25) 50%, transparent 70%);
  filter: blur(40px);
  z-index: -1;
  transition: all 0.5s ease;
}


.book-image-hover {
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), filter 0.5s ease;
  filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.8));
}


/* Okładka w bloku zakupu pod ofertą */

.buy-cover {
  max-width: 320px;
}

@media (max-width: 767.98px) {
  .buy-cover {
    max-width: 220px;
  }
}

/* Karty w Hero */

.modality-pill {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 1.25rem 1rem;
  transition: all 0.3s ease;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  position: relative;
  overflow: hidden;
}

.modality-pill::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 2px;
  border-radius: 9999px;
  transition: width 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease;
  opacity: 0.6;
}

.modality-pill:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-4px);
}

/* Cały kafelek jest linkiem */

.modality-pill,
.modality-pill:hover,
.modality-pill:focus {
  color: inherit;
}

.modality-pill:focus-visible {
  outline: 2px solid #00f0ff;
  outline-offset: 3px;
  background: rgba(255, 255, 255, 0.08);
}

/* Modality 1: Posłuchaj (Cyan) */

.modality-pill:nth-child(1)::before, .modality-pill[href="#audiobook"]::before {
  background: #00f0ff;
  box-shadow: 0 0 8px rgba(0, 240, 255, 0.4);
}

.modality-pill:nth-child(1):hover, .modality-pill[href="#audiobook"]:hover {
  border-color: rgba(0, 240, 255, 0.45);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.6), 0 0 22px rgba(0, 240, 255, 0.25);
}

.modality-pill:nth-child(1):hover::before, .modality-pill[href="#audiobook"]:hover::before {
  width: 100%;
  opacity: 1;
  box-shadow: 0 0 14px rgba(0, 240, 255, 0.7);
}

/* Modality 2: Zobacz (Purple) */

.modality-pill:nth-child(2)::before, .modality-pill[href="#album"]::before {
  background: #b829ea;
  box-shadow: 0 0 8px rgba(184, 41, 234, 0.4);
}

.modality-pill:nth-child(2):hover, .modality-pill[href="#album"]:hover {
  border-color: rgba(184, 41, 234, 0.5);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.6), 0 0 22px rgba(184, 41, 234, 0.25);
}

.modality-pill:nth-child(2):hover::before, .modality-pill[href="#album"]:hover::before {
  width: 100%;
  opacity: 1;
  box-shadow: 0 0 14px rgba(184, 41, 234, 0.7);
}

/* Modality 3: Przeczytaj (Amber) */

.modality-pill:nth-child(3)::before, .modality-pill[href="#ksiazka"]::before {
  background: #ff9f1c;
  box-shadow: 0 0 8px rgba(255, 159, 28, 0.4);
}

.modality-pill:nth-child(3):hover, .modality-pill[href="#ksiazka"]:hover {
  border-color: rgba(255, 159, 28, 0.5);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.6), 0 0 22px rgba(255, 159, 28, 0.25);
}

.modality-pill:nth-child(3):hover::before, .modality-pill[href="#ksiazka"]:hover::before {
  width: 100%;
  opacity: 1;
  box-shadow: 0 0 14px rgba(255, 159, 28, 0.7);
}

.modality-icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
  transition: all 0.3s ease;
}

/* Cyber typografia */

.text-gradient-neon {
  background: linear-gradient(135deg, #ffffff 20%, #e0aaff 60%, #ff9f1c 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-cyan {
  background: linear-gradient(135deg, #00f0ff 0%, #a855f7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-amber {
  background: linear-gradient(135deg, #ffbe0b 0%, #ff006e 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.cyber-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 700;
  border-radius: 9999px;
  border: 1px solid rgba(184, 41, 234, 0.4);
  background: rgba(184, 41, 234, 0.12);
  color: #f0abfc;
  box-shadow: 0 0 15px rgba(184, 41, 234, 0.2);
}

.cyber-badge-purple {
  border-color: rgba(184, 41, 234, 0.4);
  background: rgba(184, 41, 234, 0.12);
  color: #f0abfc;
  box-shadow: 0 0 15px rgba(184, 41, 234, 0.2);
}

.cyber-badge-cyan {
  border-color: rgba(0, 240, 255, 0.4);
  background: rgba(0, 240, 255, 0.1);
  color: #00f0ff;
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.2);
}

.cyber-badge-amber {
  border-color: rgba(255, 159, 28, 0.4);
  background: rgba(255, 159, 28, 0.1);
  color: #ffb703;
  box-shadow: 0 0 15px rgba(255, 159, 28, 0.2);
}

/* Glassmorphism Cyber karty */

.cyber-card {
  background: var(--cyber-surface);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--cyber-border);
  border-radius: 16px;
  padding: 2.25rem;
  position: relative;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.cyber-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
}


/* Karty z ofertą */

.offer-row-card {
  background: var(--cyber-surface);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--cyber-border);
  border-radius: 16px;
  padding: 2.25rem;
  position: relative;
  transition: all 0.3s ease;
  margin-bottom: 2rem;
}


.offer-row-card-audio {
  border-left: 3px solid #00f0ff;
}

.offer-row-card-album {
  border-left: 3px solid #b829ea;
}

.offer-row-card-text {
  border-left: 3px solid #ff9f1c;
}

/* Akcent narożników */

.tech-corners {
  position: relative;
}

.tech-corners::after {
  content: "";
  position: absolute;
  top: -1px;
  right: -1px;
  width: 14px;
  height: 14px;
  border-top: 2px solid var(--neon-cyan);
  border-right: 2px solid var(--neon-cyan);
  pointer-events: none;
}

/* Galeria obrazków */

.gallery-card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #0f1320;
  transition: all 0.4s ease;
}

.gallery-card img {
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), filter 0.4s ease;
}

.gallery-card:hover {
  border-color: var(--neon-purple);
  box-shadow: 0 10px 30px rgba(199,69,244,0.33);
  transform: translateY(-4px);
}

.gallery-card:hover img {
  transform: scale(1.04);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(7, 8, 13, 0.9) 0%, transparent 60%);
  opacity: 0;
  display: flex;
  align-items: flex-end;
  padding: 1.5rem;
  transition: opacity 0.3s ease;
}

.gallery-card:hover .gallery-overlay {
  opacity: 1;
}

/* Sekcja z autorem */

.author-avatar-wrapper {
  position: relative;
}

.author-avatar-wrapper::before {
  content: "";
  position: absolute;
  top: 15%;
  left: 15%;
  width: 70%;
  height: 70%;
  background: radial-gradient(circle, rgba(184, 41, 234, 0.4) 0%, rgba(61, 67, 220, 0.2) 60%, transparent 75%);
  filter: blur(45px);
  z-index: 0;
}

.author-avatar-wrapper img {
  position: relative;
  z-index: 1;
  mask-image: linear-gradient(to bottom, black 85%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, black 85%, transparent 100%);
}

.author-stat-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 1rem 1.25rem;
}

/* Autor - Collapse Button */

.btn-collapse-author {
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn-collapse-author .collapse-icon {
  transition: transform 0.3s ease;
}

.btn-collapse-author[aria-expanded="true"] .collapse-icon {
  transform: rotate(180deg);
}

/* Cytat */

.cyber-quote {
  border-left: 3px solid var(--neon-purple);
  padding-left: 1.5rem;
  position: relative;
}

.cyber-quote::before {
  content: "“";
  position: absolute;
  top: -20px;
  left: 10px;
  font-size: 5rem;
  color: rgba(184,41,234,0.42);
  font-family: serif;
  line-height: 1;
  pointer-events: none;
}

/* Sekcja Dla kogo */

.cyber-audience-card {
  background: var(--cyber-surface);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--cyber-border);
  border-radius: 14px;
  padding: 2rem;
  height: 100%;
  position: relative;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}


/* ==== Cyber Footer === */

.footer-cyber {
  background: rgba(4, 5, 8, 0.98) !important;
  position: relative;
  border-top: none !important;
}

/* Pkt 2.1: Neon gradient top border with HUD tech tag */

.footer-cyber::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, #00f0ff 30%, #b829ea 70%, transparent 100%);
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.35);
}

.footer-hud-tag {
  position: absolute;
  top: -11px;
  left: 50%;
  transform: translateX(-50%);
  background: #040508;
  border: 1px solid rgba(0, 240, 255, 0.4);
  padding: 0.15rem 0.65rem;
  border-radius: 4px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: #00f0ff;
  text-transform: uppercase;
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.25);
  user-select: none;
}

/* Pkt 1: Monospace typography for footer text, data and links */

.footer-mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace !important;
  letter-spacing: -0.01em;
}

/* Pkt 3.2: Social icon cyber hover with neon glow and lift */

.footer-social-btn {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #ffffff !important;
  text-decoration: none;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.footer-social-btn:hover {
  background: rgba(0, 240, 255, 0.12);
  border-color: #00f0ff;
  color: #00f0ff !important;
  box-shadow: 0 0 18px rgba(0, 240, 255, 0.45);
  transform: translateY(-2px);
}

/* Pkt 4.3: "Więcej o Securitum ->" micro cyberlink */

.footer-more-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #00f0ff !important;
  text-decoration: none;
  padding: 0.3rem 0.75rem;
  border-radius: 6px;
  background: rgba(0, 240, 255, 0.05);
  border: 1px solid rgba(0, 240, 255, 0.25);
  transition: all 0.25s ease;
}

.footer-more-link .footer-arrow {
  transition: transform 0.25s ease;
}

.footer-more-link:hover {
  background: rgba(0, 240, 255, 0.15);
  border-color: #00f0ff;
  box-shadow: 0 0 14px rgba(0, 240, 255, 0.35);
  transform: translateY(-1px);
}

.footer-more-link:hover .footer-arrow {
  transform: translateX(4px);
}

/* Pkt 5: Pulsing status indicator dot */

.status-indicator {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: #94a3b8;
  margin-top: 0.5rem;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: #10b981;
  box-shadow: 0 0 8px #10b981;
  animation: pulse-glow 2s infinite ease-in-out;
}

@keyframes pulse-glow {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
    box-shadow: 0 0 8px #10b981;
  }
  50% {
    opacity: 0.45;
    transform: scale(0.85);
    box-shadow: 0 0 3px #10b981;
  }
}

/* Cyber Player */

.cyber-audio-player {
  background: rgba(16, 20, 34, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 1rem 1.25rem;
  margin-top: 1rem;
  position: relative;
  transition: all 0.3s ease;
}



.cyber-player-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
  gap: 0.5rem;
}

.cyber-player-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.cyber-player-tag {
  font-family: ui-monospace, SFMono-Regular, monospace;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #00f0ff;
  background: rgba(0, 240, 255, 0.1);
  border: 1px solid rgba(0, 240, 255, 0.3);
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  white-space: nowrap;
}

.cyber-audio-player-purple .cyber-player-tag {
  color: #f0abfc;
  background: rgba(184, 41, 234, 0.12);
  border-color: rgba(184, 41, 234, 0.35);
}

.cyber-player-controls {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.cyber-play-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid #00f0ff;
  background: rgba(0, 240, 255, 0.12);
  color: #00f0ff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.25s ease;
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.25);
  padding: 0;
}

.cyber-play-btn:hover {
  background: #00f0ff;
  color: #07080d;
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.6);
  transform: scale(1.05);
}

.cyber-audio-player-purple .cyber-play-btn {
  border-color: #b829ea;
  background: rgba(184, 41, 234, 0.15);
  color: #f0abfc;
  box-shadow: 0 0 12px rgba(184, 41, 234, 0.25);
}

.cyber-audio-player-purple .cyber-play-btn:hover {
  background: #b829ea;
  color: #ffffff;
  box-shadow: 0 0 20px rgba(184, 41, 234, 0.6);
}

.cyber-player-body {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  min-width: 0;
}

/* Waveform sound bars */

.cyber-waveform {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 22px;
}

.cyber-wave-bar {
  width: 3px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 2px;
  transition: height 0.2s ease, background-color 0.2s ease;
  height: 6px;
}

.cyber-wave-bar.active {
  background: #00f0ff;
}

.cyber-audio-player-purple .cyber-wave-bar.active {
  background: #d946ef;
}

/* Pulsing wave when playing */

.cyber-waveform.is-playing .cyber-wave-bar {
  animation: wavePulse 1.2s infinite ease-in-out;
}

@keyframes wavePulse {
  0%, 100% {
    height: 5px;
  }
  50% {
    height: 20px;
  }
}

.cyber-waveform.is-playing .cyber-wave-bar:nth-child(1) {
  animation-delay: 0.1s;
}

.cyber-waveform.is-playing .cyber-wave-bar:nth-child(2) {
  animation-delay: 0.4s;
}

.cyber-waveform.is-playing .cyber-wave-bar:nth-child(3) {
  animation-delay: 0.2s;
}

.cyber-waveform.is-playing .cyber-wave-bar:nth-child(4) {
  animation-delay: 0.6s;
}

.cyber-waveform.is-playing .cyber-wave-bar:nth-child(5) {
  animation-delay: 0.3s;
}

.cyber-waveform.is-playing .cyber-wave-bar:nth-child(6) {
  animation-delay: 0.8s;
}

.cyber-waveform.is-playing .cyber-wave-bar:nth-child(7) {
  animation-delay: 0.5s;
}

.cyber-waveform.is-playing .cyber-wave-bar:nth-child(8) {
  animation-delay: 0.2s;
}

.cyber-waveform.is-playing .cyber-wave-bar:nth-child(9) {
  animation-delay: 0.7s;
}

.cyber-waveform.is-playing .cyber-wave-bar:nth-child(10) {
  animation-delay: 0.4s;
}

.cyber-waveform.is-playing .cyber-wave-bar:nth-child(11) {
  animation-delay: 0.9s;
}

.cyber-waveform.is-playing .cyber-wave-bar:nth-child(12) {
  animation-delay: 0.3s;
}

.cyber-waveform.is-playing .cyber-wave-bar:nth-child(13) {
  animation-delay: 0.5s;
}

.cyber-waveform.is-playing .cyber-wave-bar:nth-child(14) {
  animation-delay: 0.2s;
}

.cyber-waveform.is-playing .cyber-wave-bar:nth-child(15) {
  animation-delay: 0.6s;
}

.cyber-waveform.is-playing .cyber-wave-bar:nth-child(16) {
  animation-delay: 0.4s;
}

/* Progress Scrubber Track */

.cyber-progress-track {
  width: 100%;
  height: 5px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.cyber-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #3d43dc, #00f0ff);
  border-radius: 999px;
  transition: width 0.1s linear;
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.5);
}

.cyber-audio-player-purple .cyber-progress-bar {
  background: linear-gradient(90deg, #7928ca, #d946ef);
  box-shadow: 0 0 10px rgba(217, 70, 239, 0.5);
}

.cyber-player-time {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.75rem;
  color: #94a3b8;
  letter-spacing: 0.05em;
  white-space: nowrap;
}


/* Klasy zastępujące dawne atrybuty style="" (wymóg CSP style-src 'self') */

.modality-icon-cyan {
  background: rgba(0, 240, 255, 0.15);
  color: #00f0ff;
}

.modality-icon-purple {
  background: rgba(184, 41, 234, 0.2);
  color: #d946ef;
}

.modality-icon-amber {
  background: rgba(255, 159, 28, 0.2);
  color: #ff9f1c;
}

.modality-icon.modality-icon-sm {
  width: 44px;
  height: 44px;
  margin-bottom: 0;
}

.navbar-logo {
  width: 160px;
}

.footer-logo {
  width: 220px;
}

.author-photo {
  width: 400px;
}

.btn-hero-buy {
  min-width: 120px;
}

/* Przyciski "Zamów" na telefonie zajmują całą szerokość */

@media (max-width: 575.98px) {
  .btn-order {
    width: 100%;
  }
}

.btn-hero-projects {
  margin-top: -24px;
}

.icon-play-offset {
  margin-left: 2px;
}

.author-role {
  letter-spacing: 0.2em;
  color: #00f0ff;
}

.footer-dot {
  color: rgba(255, 255, 255, 0.5);
}

.footer-copyright {
  color: #f8fafc;
}

/* Dostępność */

.skip-link:focus {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 2000;
  padding: 0.5rem 1rem;
  background: var(--cyber-bg);
  color: #fff;
  border: 1px solid var(--neon-cyan);
  border-radius: 8px;
}

.cyber-progress-track:focus-visible {
  outline: 2px solid var(--neon-cyan);
  outline-offset: 3px;
}

/* Reveal przy pierwszym pokazaniu.
   Klasy dodaje assets/js/app.js tylko elementom poniżej pierwszego ekranu
   i zdejmuje je po zakończeniu animacji, żeby nie kolidowały z hoverem. */

.reveal {
  opacity: 0;
  transform: translate3d(0, 28px, 0) scale(0.98);
  transition:
    opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1) var(--reveal-delay, 0s),
    transform 1s cubic-bezier(0.16, 1, 0.3, 1) var(--reveal-delay, 0s),
    clip-path 1s cubic-bezier(0.16, 1, 0.3, 1) var(--reveal-delay, 0s);
}

.reveal.reveal-wipe {
  transform: translate3d(-14px, 0, 0);
  clip-path: inset(0 100% 0 0);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
  clip-path: inset(0 0 0 0);
}

.reveal-card.is-visible {
  animation: reveal-glow 1.6s ease-out var(--reveal-delay, 0s);
}

@keyframes reveal-glow {
  0%, 25% {
    box-shadow: 0 0 0 1px rgba(184, 41, 234, 0.55), 0 0 32px rgba(184, 41, 234, 0.28);
  }
  100% {
    box-shadow: 0 0 0 1px rgba(184, 41, 234, 0), 0 0 32px rgba(184, 41, 234, 0);
  }
}

/* Wejście hero po załadowaniu strony (bez JS) */

@keyframes hero-in {
  from {
    opacity: 0;
    transform: translate3d(0, 22px, 0);
  }
}

@keyframes hero-cover-in {
  from {
    opacity: 0;
    transform: translate3d(0, 30px, 0) scale(0.94);
  }
}

@media (prefers-reduced-motion: no-preference) {
  header .cyber-badge,
  header h1,
  header h2,
  header .modality-pill,
  header .btn-hero-buy {
    animation: hero-in 0.9s cubic-bezier(0.16, 1, 0.3, 1) backwards;
  }

  header .cyber-badge { animation-delay: 0.05s; }
  header h1 { animation-delay: 0.15s; }
  header h2 { animation-delay: 0.25s; }
  header .modality-pill:nth-child(1) { animation-delay: 0.35s; }
  header .modality-pill:nth-child(2) { animation-delay: 0.43s; }
  header .modality-pill:nth-child(3) { animation-delay: 0.51s; }
  header .btn-hero-buy { animation-delay: 0.6s; }

  header .book-glow-wrapper {
    animation: hero-cover-in 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.2s backwards;
  }
}
