﻿@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Space+Grotesk:wght@500;600;700&display=swap');

/* ========== 01. Motyw globalny i tokeny kolorystyczne ==========
  Definiuje zmienne kolorow, cieni, promieni i szerokosci kontenera. */
:root {
  --bg: #eef3ff;
  --bg-accent: #e2eaff;
  --surface: #ffffff;
  --surface-2: #f7f9ff;
  --text: #1d2433;
  --text-soft: #4f5b73;
  --primary: #2f5ef7;
  --primary-2: #1f43c7;
  --primary-3: #17339a;
  --success: #159947;
  --danger: #d03131;
  --ring: rgba(47, 94, 247, 0.25);
  --ring-strong: rgba(47, 94, 247, 0.4);
  --shadow-1: 0 10px 30px rgba(21, 39, 98, 0.12);
  --shadow-2: 0 18px 45px rgba(21, 39, 98, 0.18);
  --radius: 16px;
  --content-max: 1160px;
}

/* ========== 02. Reset i bazowe ustawienia dokumentu ==========
  Ujednolica box model, marginesy i zachowanie scrolla. */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

/* ========== 03. Tlo strony i warstwy dekoracyjne ==========
  Buduje glowne tlo oraz subtelne nakladki w pseudo-elementach body. */
body {
  font-family: "Manrope", "Segoe UI", "Noto Sans", Tahoma, sans-serif;
  color: var(--text);
  min-height: 100vh;
  position: relative;
  z-index: 0;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  background:
    radial-gradient(circle at 20% 18%, rgba(169, 202, 255, 0.26), transparent 34%),
    radial-gradient(circle at 72% 76%, rgba(188, 214, 255, 0.22), transparent 38%),
    radial-gradient(circle at 8% 4%, rgba(47,94,247,0.14), transparent 36%),
    radial-gradient(circle at 88% 10%, rgba(31,67,199,0.11), transparent 34%),
    radial-gradient(circle at 86% 92%, rgba(56,124,255,0.10), transparent 30%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-accent) 58%, #dbe5ff 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: -20%;
  z-index: -1;
  pointer-events: none;
  opacity: 0.58;
  background:
    radial-gradient(circle at 12% 24%, rgba(255,255,255,0.78) 0 12px, rgba(220,232,255,0.52) 13px 18px, transparent 20px),
    radial-gradient(circle at 28% 72%, rgba(255,255,255,0.72) 0 10px, rgba(210,225,255,0.45) 11px 16px, transparent 18px),
    radial-gradient(circle at 48% 36%, rgba(255,255,255,0.82) 0 14px, rgba(214,228,255,0.5) 15px 21px, transparent 23px),
    radial-gradient(circle at 66% 64%, rgba(255,255,255,0.74) 0 11px, rgba(211,226,255,0.46) 12px 17px, transparent 19px),
    radial-gradient(circle at 82% 22%, rgba(255,255,255,0.79) 0 13px, rgba(214,228,255,0.48) 14px 20px, transparent 22px),
    radial-gradient(circle at 90% 78%, rgba(255,255,255,0.68) 0 9px, rgba(206,221,255,0.42) 10px 15px, transparent 17px);
  filter: blur(0.2px) saturate(1.08);
  animation: none;
}

body::after {
  content: "";
  position: fixed;
  inset: -16%;
  z-index: -1;
  pointer-events: none;
  opacity: 0.52;
  background:
    radial-gradient(circle at 14% 14%, rgba(130, 175, 255, 0.28), transparent 34%),
    radial-gradient(circle at 78% 20%, rgba(170, 205, 255, 0.22), transparent 36%),
    radial-gradient(circle at 26% 82%, rgba(199, 224, 255, 0.2), transparent 38%),
    radial-gradient(circle at 84% 72%, rgba(126, 171, 255, 0.24), transparent 34%),
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.22), transparent 42%);
  filter: blur(14px) saturate(1.1);
  animation: none;
}

/* ========== 04. Animacje bazowe ==========
  Definicje keyframes wykorzystywane przez elementy dekoracyjne. */
@keyframes pearlDrift {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(0.6%, -0.8%, 0) scale(1.015);
  }
  100% {
    transform: translate3d(-0.7%, 0.9%, 0) scale(1.02);
  }
}

@keyframes azureGlow {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 0.46;
  }
  50% {
    transform: translate3d(-0.8%, 0.6%, 0) scale(1.03);
    opacity: 0.58;
  }
  100% {
    transform: translate3d(0.7%, -0.7%, 0) scale(1.05);
    opacity: 0.5;
  }
}

/* ========== 05. Globalne linki i podstawy a11y ==========
  Bazowy wyglad linkow, focus i link "przejdz do tresci". */
a { color: inherit; }

a,
button,
.btn,
.btn-ghost,
.forum-tab-btn,
.forum-offer-link {
  -webkit-tap-highlight-color: transparent;
}

.skip-link {
  position: absolute;
  left: 10px;
  top: -44px;
  z-index: 2500;
  padding: 10px 12px;
  border-radius: 10px;
  background: #0f255d;
  color: #ffffff;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 10px 22px rgba(10, 24, 66, 0.35);
  transition: top .2s ease;
}

.skip-link:focus {
  top: 10px;
}

h1, h2, h3, h4 {
  font-family: "Space Grotesk", "Manrope", sans-serif;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

/* ========== 06. Nawigacja gorna ==========
  Sticky navbar, logo, linki i przycisk menu mobilnego. */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px max(18px, env(safe-area-inset-right)) 10px max(18px, env(safe-area-inset-left));
  background: linear-gradient(120deg, rgba(10, 24, 66, 0.9) 0%, rgba(23, 44, 104, 0.86) 100%);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: 1px solid rgba(255,255,255,0.09);
  box-shadow: 0 10px 25px rgba(13, 22, 53, 0.22);
  backface-visibility: hidden;
}

.site-launch-banner {
  width: min(var(--content-max), calc(100% - 24px));
  margin: 12px auto 0;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid #c7d6ff;
  background: linear-gradient(120deg, #f7faff 0%, #e8f0ff 100%);
  color: #1b326f;
  font-weight: 800;
  font-size: 0.95rem;
  line-height: 1.35;
  text-align: center;
  box-shadow: 0 8px 20px rgba(21, 39, 98, 0.1);
}

.site-launch-banner strong {
  color: #17339a;
}

nav a,
.login-btn,
nav .login-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-decoration: none;
  color: #fff !important;
  min-height: 44px;
  padding: 10px 14px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.15;
  transition: transform .18s ease, background-color .18s ease, box-shadow .18s ease;
}

nav a:hover,
.login-btn:hover,
nav .login-btn:hover {
  background: rgba(106, 144, 245, 0.26) !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(0,0,0,0.15);
}

nav a.is-active {
  background: #fff !important;
  color: #1f43c7 !important;
  box-shadow: 0 6px 14px rgba(0,0,0,0.12);
}

nav a:focus-visible,
nav .login-btn:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.55);
  outline-offset: 1px;
}

.nav-left,
.nav-right,
.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links {
  width: min(var(--content-max), 100%);
  margin-inline: auto;
  justify-content: space-between;
}

.nav-toggle {
  display: none;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.08);
  color: #fff;
  border-radius: 10px;
  padding: 8px 12px;
}

.nav-logo-link,
.nav-logo-link:hover,
nav .nav-logo-link,
nav .nav-logo-link:hover {
  padding: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  transform: none !important;
  border-radius: 0 !important;
}

.nav-logo-img {
  height: 90px;
  width: auto;
  display: block;
  filter: none;
}

/* ========== 07. Kontener strony, hero i sekcje naglowkowe ==========
  Uklad glownego kontenera, hero oraz naglowkow sekcji. */
.container {
  width: min(var(--content-max), calc(100% - 24px));
  margin: clamp(16px, 2.3vw, 24px) auto 40px;
}

.hero,
.card,
.faq-card,
.auth-card,
.panel,
.table-wrap {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-1);
}

.hero {
  padding: clamp(18px, 3vw, 34px);
  margin-bottom: 20px;
  border: 1px solid #e5ebff;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: -60% auto auto -90%;
  width: 72%;
  height: 220%;
  background: linear-gradient(110deg, transparent 0%, rgba(255,255,255,0.42) 42%, transparent 78%);
  transform: rotate(13deg) translateX(-15%);
  opacity: 0;
  pointer-events: none;
  transition: transform .65s cubic-bezier(.22,.61,.36,1), opacity .48s ease;
}

.hero > * {
  position: relative;
  z-index: 1;
}

.hero p {
  max-width: 72ch;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  margin-bottom: 14px;
  border-radius: 999px;
  border: 1px solid #cad8ff;
  background: linear-gradient(180deg, #f8fbff 0%, #edf3ff 100%);
  color: #24418a;
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.hero-subtitle {
  font-size: clamp(1rem, 1.5vw, 1.08rem);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.hero-stat {
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid #d8e4ff;
  background: linear-gradient(180deg, rgba(255,255,255,0.92) 0%, rgba(242,247,255,0.92) 100%);
}

.hero-stat strong,
.section-heading strong {
  display: block;
  color: #17339a;
  font-size: 1.05rem;
  font-family: "Space Grotesk", "Manrope", sans-serif;
}

.hero-stat span,
.section-heading span {
  display: block;
  margin-top: 4px;
  color: #4a5977;
  font-size: 0.88rem;
  line-height: 1.4;
}

.section-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 14px;
}

.section-heading p {
  margin: 0;
  max-width: 68ch;
}

.section-heading-badge {
  flex: 0 0 auto;
  padding: 8px 12px;
  border-radius: 999px;
  background: #edf3ff;
  color: #27407d;
  border: 1px solid #d2ddff;
  font-weight: 800;
  font-size: 0.84rem;
}

.section-heading-badge-business {
  margin-top: 2px;
  align-self: flex-start;
}

/* ── Bankier.pl API – blok parametrów produktu ── */
.bankier-params {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 10px;
  margin: 8px 0 10px;
  padding: 8px 10px;
  background: #f0f5ff;
  border-radius: 8px;
  border-left: 3px solid #2f5ef7;
}
.bankier-params .bankier-param {
  font-size: 0.78rem;
  color: #334;
  white-space: nowrap;
}
.bankier-params .bankier-param strong {
  color: #2f5ef7;
  margin-right: 2px;
}

.home-layout {
  display: grid;
  gap: 18px;
}

.home-hero h1 {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  margin-bottom: 10px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.section-heading[aria-label="Oferty kont firmowych"] {
  margin-bottom: 16px;
}
.section-heading[aria-label="Oferty kont firmowych"] .section-heading-badge-business {
  margin-top: 6px;
}
.hero::after {
  content: "";
  position: absolute;
  width: 340px;
  height: 340px;
  right: -120px;
  top: -150px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(47, 94, 247, 0.18) 0%, rgba(47, 94, 247, 0) 68%);
  pointer-events: none;
}

.hero h1,
.hero h2,
h1, h2, h3 { margin-top: 0; color: #1b2a52; }

.hero h1 {
  line-height: 1.1;
  letter-spacing: -0.025em;
}

.hero h2 {
  line-height: 1.15;
}

p { color: var(--text-soft); line-height: 1.6; }

/* ========== 08. Siatki kart i responsywnosc strony glownej ==========
  Definiuje gridy dla ofert/FAQ i breakpoints dla home-grid. */

.products,
.faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: clamp(14px, 1.6vw, 18px);
  align-items: stretch;
}

.home-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

@media (max-width: 1350px) {
  .home-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 1200px) {
  .home-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1100px) {
  .home-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .home-grid {
    grid-template-columns: 1fr;
  }
}

/* ========== 09. Karty ofert i elementy kart ==========
  Styl kart, animacja wejscia i elementy pomocnicze kart. */
.offers-hero {
  margin-bottom: 20px;
}

.offers-grid .card {
  min-height: 260px;
}

.offers-grid .card .btn {
  margin-top: auto;
  width: 100%;
}

.home-grid .card {
  min-height: 240px;
}

.card,
.forum-offer-card,
.faq-item {
  content-visibility: auto;
  contain-intrinsic-size: 280px;
}

.card,
.faq-card,
.contact-card {
  padding: clamp(16px, 2vw, 20px);
  border: 1px solid #e8eeff;
  display: flex;
  flex-direction: column;
  gap: 11px;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  transform: translateY(0) scale(1);
  will-change: transform, box-shadow;
  transition: transform .36s cubic-bezier(.22,.61,.36,1), box-shadow .36s cubic-bezier(.22,.61,.36,1), border-color .28s ease;
  animation: cardEnter .4s ease both;
}

.card > *,
.faq-card > *,
.contact-card > * {
  position: relative;
  z-index: 1;
}

.card::after,
.faq-card::after,
.contact-card::after {
  content: "";
  position: absolute;
  z-index: 0;
  inset: -60% auto auto -90%;
  width: 72%;
  height: 220%;
  background: linear-gradient(110deg, transparent 0%, rgba(255,255,255,0.42) 42%, transparent 78%);
  transform: rotate(13deg) translateX(-15%);
  opacity: 0;
  pointer-events: none;
  transition: transform .65s cubic-bezier(.22,.61,.36,1), opacity .48s ease;
}

.products .card:nth-child(1) { animation-delay: .02s; }
.products .card:nth-child(2) { animation-delay: .05s; }
.products .card:nth-child(3) { animation-delay: .08s; }
.products .card:nth-child(4) { animation-delay: .11s; }
.products .card:nth-child(5) { animation-delay: .14s; }

.card h3,
.faq-card h3,
.contact-card h3 {
  margin: 0;
}

.card p,
.faq-card p,
.contact-card p {
  margin: 0;
}

.card-kicker {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  padding: 6px 10px;
  border-radius: 999px;
  background: #edf3ff;
  color: #24418a;
  border: 1px solid #d4e0ff;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 2px;
}

.card-meta span {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: #f5f8ff;
  color: #425375;
  border: 1px solid #dce6ff;
  font-size: 0.8rem;
  font-weight: 700;
}

.card-feature-list {
  margin: 2px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.card-feature-list li {
  position: relative;
  padding-left: 18px;
  color: #4f5b73;
  line-height: 1.45;
}

.card-feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.58em;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(135deg, #2f5ef7 0%, #1f43c7 100%);
  box-shadow: 0 0 0 4px rgba(47, 94, 247, 0.12);
}

.card:hover,
.faq-card:hover,
.contact-card:hover {
  transform: translateY(-5px) scale(1.012);
  box-shadow: var(--shadow-2);
  border-color: #c7d6ff;
}

.card:hover::after,
.faq-card:hover::after,
.contact-card:hover::after {
  opacity: 0;
  transform: none;
}

.home-grid .card-markets::after {
  inset: -62% auto auto -92%;
  width: 66%;
  height: 145%;
  transform: rotate(11deg) translateX(-20%);
  transition: transform .55s cubic-bezier(.22,.61,.36,1), opacity .4s ease;
}

.home-grid .card-markets:hover::after {
  transform: rotate(11deg) translateX(188%);
}

.home-grid .card-markets .btn {
  position: relative;
  z-index: 3;
}

@keyframes cardEnter {
  from {
    transform: translateY(8px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.card img {
  width: 82px !important;
  height: 82px !important;
  object-fit: contain;
  align-self: center;
}

.card-logo {
  width: 82px;
  height: 82px;
  object-fit: contain;
  margin-bottom: 12px;
  align-self: center;
}

/* ========== 10. Przyciski i stany interakcji ==========
  Styl glownego przycisku, wariantu ghost i focus states. */
.btn,
button,
input[type='submit'] {
  font: inherit;
}

.btn,
button[type='submit'],
button {
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-2) 62%, var(--primary-3) 100%);
  color: #fff;
  padding: 10px 14px;
  cursor: pointer;
  font-weight: 700;
  box-shadow: 0 8px 20px rgba(31, 67, 199, 0.26);
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease, background-position .2s ease;
  background-size: 130% 130%;
  background-position: 50% 50%;
}

/* Keep nav login button on nav palette; avoid white flash from mixed button styles. */
nav .login-btn {
  background: rgba(255,255,255,0.1);
  box-shadow: 0 6px 14px rgba(0,0,0,0.15);
}

.btn:hover,
button[type='submit']:hover,
button:hover {
  transform: translateY(-1px) scale(1.01);
  box-shadow: 0 12px 26px rgba(31, 67, 199, 0.32);
  filter: none;
  background-position: 50% 50%;
}

/* Keep ghost buttons truly ghost even when combined with .btn. */
.btn-ghost,
.btn.btn-ghost,
button.btn-ghost,
button.btn.btn-ghost {
  background: transparent;
  background-image: none;
  color: #1f43c7;
  border: 1px solid #b9caff;
  box-shadow: none;
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease, border-color .2s ease;
}

.btn-ghost:hover,
.btn.btn-ghost:hover,
button.btn-ghost:hover,
button.btn.btn-ghost:hover {
  background: #edf2ff;
  border-color: #9eb8ff;
  box-shadow: 0 8px 18px rgba(31, 67, 199, 0.12);
  filter: none;
}

.btn { text-decoration: none; display: inline-flex; align-items: center; justify-content: center; }

body.modal-open,
body.chat-open {
  overflow: hidden;
}

/* ========== 11. Stopka serwisu ==========
  Uklad kolumn, linkow i metryk w footerze. */
.site-footer {
  width: min(var(--content-max), calc(100% - 24px));
  margin: 28px auto 96px;
  padding: 14px 18px;
  border: 1px solid rgba(194, 211, 248, 0.9);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255,255,255,0.84) 0%, rgba(243,248,255,0.92) 100%);
  box-shadow: 0 12px 28px rgba(21, 39, 98, 0.12);
  backdrop-filter: blur(10px);
}

.site-footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.site-footer-grid {
  display: grid;
  grid-template-columns: minmax(220px, 1.4fr) minmax(180px, 1fr) minmax(240px, 1.2fr);
  gap: 18px;
  width: 100%;
}

.site-footer-column {
  display: grid;
  gap: 10px;
}

.site-footer-metrics {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
  flex-wrap: wrap;
}

.site-footer-brand,
.site-footer-stats {
  margin: 0;
}

.site-footer-brand {
  font-family: "Space Grotesk", "Manrope", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: #18306f;
  letter-spacing: -0.02em;
}

.site-footer-copy,
.site-footer-note {
  margin: 0;
  color: #4f5b73;
  font-size: 0.93rem;
  line-height: 1.55;
}

.site-footer-title {
  margin: 0;
  color: #18306f;
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.site-footer-links {
  display: grid;
  gap: 8px;
}

.site-footer-links a {
  color: #294696;
  text-decoration: none;
  font-weight: 700;
}

.site-footer-links a:hover {
  text-decoration: underline;
}

.site-footer-stats {
  color: #425375;
  font-size: 0.95rem;
  font-weight: 600;
}

.site-footer-stats strong {
  color: #1f43c7;
}

.admin-stats-grid {
  margin-bottom: 16px;
}

.admin-stat-value {
  font-family: "Space Grotesk", "Manrope", sans-serif;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  line-height: 1;
  color: #1f43c7;
  font-weight: 700;
}

.admin-protected-label {
  display: inline-block;
  color: #64748b;
  font-size: 0.9rem;
  font-weight: 700;
}

/* ========== 12. Baner cookies ==========
  Pasek zgody cookies wraz z przyciskami akcji. */
.cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 1400;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid #cfe0ff;
  background: linear-gradient(180deg, #ffffff 0%, #f4f8ff 100%);
  box-shadow: 0 14px 30px rgba(21, 39, 98, 0.2);
}

.cookie-banner a {
  color: #24418a;
  font-weight: 800;
}

.cookie-banner.is-hidden {
  display: none;
}

.cookie-banner-text {
  margin: 0;
  color: #2d3d5f;
  line-height: 1.45;
  font-size: 0.93rem;
}

.cookie-banner-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.cookie-btn {
  border: 1px solid transparent;
  border-radius: 10px;
  min-height: 38px;
  padding: 8px 12px;
  font-weight: 700;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.cookie-btn-accept {
  background: linear-gradient(135deg, #2f5ef7 0%, #1f43c7 100%);
  color: #fff;
  box-shadow: 0 8px 18px rgba(31, 67, 199, 0.26);
}

.cookie-btn-decline {
  background: #eef3ff;
  border-color: #cad8fb;
  color: #2a3d70;
}

.cookie-btn:hover {
  transform: translateY(-1px);
}

@media (max-width: 760px) {
  .hero-actions .btn {
    width: 100%;
    min-width: 0;
  }

  .hero-stats,
  .site-footer-grid {
    grid-template-columns: 1fr;
  }

  .site-launch-banner {
    width: calc(100% - 20px);
    margin-top: 10px;
    padding: 10px 12px;
    font-size: 0.9rem;
  }

  .section-heading {
    flex-direction: column;
  }

  .site-footer {
    width: calc(100% - 20px);
    margin: 20px auto 88px;
    padding: 12px 14px;
  }

  .site-footer-inner {
    align-items: flex-start;
  }

  .site-footer-metrics {
    justify-content: flex-start;
    align-items: flex-start;
    flex-direction: column;
    gap: 8px 14px;
  }

  .cookie-banner {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    left: 10px;
    right: 10px;
    bottom: 10px;
  }

  .cookie-banner-actions {
    justify-content: stretch;
  }

  .cookie-btn {
    width: 100%;
  }
}

/* ========== 13. Mobile performance i ograniczenie migotania ==========
  Uproszczenia efektow na urzadzeniach dotykowych. */
/* Prevent intermittent repaint flicker on mobile during scroll/slide gestures. */
@media (hover: none) and (pointer: coarse) {
  html {
    scroll-behavior: auto;
  }

  body {
    background: linear-gradient(180deg, var(--bg) 0%, var(--bg-accent) 58%, #dbe5ff 100%);
  }

  body::before,
  body::after {
    animation: none;
    display: none;
  }

  nav {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  /* Stabilize fixed profile badge/avatar layer during scroll on mobile. */
  .profile-dropdown,
  .profile-btn,
  .profile-btn .user-badge-icon.has-avatar,
  .profile-btn .user-badge-avatar {
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    transform: translateZ(0);
  }

  .hero,
  .bank-offer,
  .kraken-offer,
  .offer-extra-card,
  .panel,
  .table-wrap,
  .admin-container,
  .contact-card,
  .faq-item,
  .features li,
  .offer-extra-list li,
  .offer-more-roll summary,
  .auth-card,
  article:not(.card):not(.faq-card):not(.contact-card),
  nav a,
  .login-btn,
  .btn,
  .btn-ghost,
  .cookie-btn,
  .chat-toggle,
  .profile-btn,
  .profile-btn:hover,
  .profile-dropdown .user-badge-arrow,
  .profile-dropdown:hover .user-badge-arrow,
  .profile-dropdown:focus-within .user-badge-arrow,
  .profile-dropdown.is-open .user-badge-arrow {
    transition: none !important;
    animation: none !important;
    filter: none !important;
  }

  .hero:hover,
  .bank-offer:hover,
  .kraken-offer:hover,
  .offer-extra-card:hover,
  .panel:hover,
  .table-wrap:hover,
  .admin-container:hover,
  .contact-card:hover,
  .faq-item:hover,
  .features li:hover,
  .offer-extra-list li:hover,
  .offer-more-roll summary:hover,
  .auth-card:hover,
  article:not(.card):not(.faq-card):not(.contact-card):hover,
  nav a:hover,
  .login-btn:hover,
  .btn:hover,
  .btn-ghost:hover,
  .cookie-btn:hover,
  .chat-toggle:hover,
  .profile-btn:hover {
    transform: none !important;
    box-shadow: none !important;
  }

  .forum-offer-card,
  .forum-offer-card:hover {
    will-change: auto !important;
    transform: none !important;
  }

  .hero::before,
  .bank-offer::after,
  .kraken-offer::after,
  .offer-extra-card::after,
  article:not(.card):not(.faq-card):not(.contact-card)::after {
    display: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* ========== 14. Focus states i kontrolki formularzy ==========
  Wyrazne focusy, inputy i podstawy formularzy. */
.btn:focus-visible,
button:focus-visible,
input[type='submit']:focus-visible,
.login-btn:focus-visible,
.nav-toggle:focus-visible {
  outline: 3px solid var(--ring-strong);
  outline-offset: 2px;
}

a:focus-visible,
textarea:focus-visible,
select:focus-visible,
input:focus-visible {
  outline: 3px solid var(--ring-strong);
  outline-offset: 2px;
}

.card .btn {
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  line-height: 1.2;
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  text-align: center;
  margin-top: auto;
}

.home-grid .card .btn {
  width: 100%;
}

.hero-actions .btn {
  min-width: 220px;
}

input[type='text'],
input[type='email'],
input[type='password'],
textarea,
select {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #cdd8f6;
  background: #fff;
  outline: none;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--ring);
}

/* ========== 15. Modal logowania/rejestracji ==========
  Okno auth, zakladki, przycisk zamkniecia i formularze. */
#auth-modal {
  display: none;
  align-items: center;
  justify-content: center;
  position: fixed;
  z-index: 500;
  inset: 0;
  background: rgba(16, 24, 48, 0.55);
  backdrop-filter: blur(4px);
}

.auth-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: #f3f6ff;
  border: none;
  color: #3f5ed2;
  font-size: 0;
  cursor: pointer;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(47, 94, 247, 0.14);
  z-index: 2;
}

.auth-close::before {
  content: "×";
  font-size: 24px;
  line-height: 1;
}

.auth-tabs {
  display: flex;
  gap: 8px;
  margin: 0 52px 18px 0;
}

.auth-tab {
  flex: 1;
  padding: 10px 0;
  border: none;
  border-radius: 8px 8px 0 0;
  font-weight: 700;
  cursor: pointer;
}

.auth-tab-login {
  background: #2f5ef7;
  color: #fff;
}

.auth-tab-register {
  background: #e6ebfb;
  color: #2a375d;
}

.auth-input {
  width: 100%;
  padding: 10px;
  margin-bottom: 10px;
  border-radius: 8px;
  border: 1px solid #d1d9f1;
}

#register-form::before {
  content: "Po rejestracji wyślemy link aktywacyjny na Twój e-mail.";
  display: block;
  margin-bottom: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: linear-gradient(180deg, #edf3ff 0%, #e6eeff 100%);
  border: 1px solid #c9d8ff;
  color: #27407d;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.45;
}

.auth-submit {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 8px;
  background: linear-gradient(135deg, #2f5ef7, #1f43c7);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

.auth-forgot-link {
  display: inline-block;
  margin-top: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #2b4ecf;
  text-decoration: none;
}

.auth-forgot-link:hover {
  text-decoration: underline;
}

/* ========== 16. Profil uzytkownika i dropdown ==========
  Badge profilu, avatar i menu rozwijane w nawigacji. */
.user-badge {
  position: fixed;
  top: 16px;
  right: 28px;
  z-index: 1200;
  display: flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg,#2647bc,#5d2ea5);
  color: #fff;
  padding: 8px 16px;
  border-radius: 999px;
  box-shadow: var(--shadow-1);
}

.user-badge-icon { font-size: 1.25em; }
.user-badge-label { opacity: .85; }
.user-badge-name { font-weight: 700; letter-spacing: .4px; }
.user-badge-arrow {
  margin-left: 6px;
  font-size: 0.78rem;
  line-height: 1;
  opacity: 0.9;
  transition: transform .22s ease;
}
.logout-link { color: #d03131 !important; }

#auth-modal > div,
.auth-modal-card {
  background: #fff;
  width: min(420px, calc(100% - 18px));
  padding: 58px 24px 24px;
  border-radius: 16px;
  box-shadow: var(--shadow-2);
  position: relative;
}

#auth-modal [id^='tab-'] { font-weight: 700; }

.profile-dropdown {
  position: absolute;
  top: 50%;
  right: max(14px, calc((100vw - var(--content-max)) / 2 + 12px));
  transform: translateY(-50%);
  z-index: 220;
  display: inline-flex;
  padding-bottom: 0;
}

body > div[style*='position:fixed'][style*='top:16px'][style*='right:28px'] {
  position: fixed !important;
  top: 8px !important;
  right: max(14px, calc((100vw - var(--content-max)) / 2 + 12px)) !important;
}

.profile-dropdown::after {
  content: "";
  position: absolute;
  right: 0;
  top: 100%;
  width: 100%;
  height: 12px;
}

.profile-btn,
body > div[style*='position:fixed'][style*='top:16px'][style*='right:28px'] {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  position: relative;
  backface-visibility: hidden;
  background: linear-gradient(130deg, #1d326f 0%, #27499d 55%, #1f3f89 100%) !important;
  color: #fff;
  border-radius: 999px;
  padding: 7px 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 8px 20px rgba(19, 33, 82, 0.22);
  cursor: pointer;
  user-select: none;
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}

@media (min-width: 901px) {
  .profile-dropdown {
    z-index: 240;
    padding-bottom: 0;
    margin-left: 4px;
  }

  nav .nav-right {
    position: relative;
    display: flex;
    align-items: center;
  }

  .profile-dropdown::after {
    height: 8px;
  }

  .profile-dropdown .dropdown-content {
    z-index: 260;
  }
}

.profile-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 11px 24px rgba(19, 33, 82, 0.30);
  filter: saturate(1.03);
}

.profile-btn .user-badge-icon {
  font-size: 1.06rem;
}

.profile-btn .user-badge-icon.has-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.2);
  font-size: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.profile-btn .user-badge-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.profile-btn .user-badge-label,
.profile-btn .user-badge-name {
  font-size: 0.9rem;
}

.dropdown-content {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  border-radius: 12px;
  border: 1px solid #cfe0ff;
  box-shadow: 0 12px 24px rgba(21, 39, 98, 0.16);
  min-width: 178px;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px) scale(0.98);
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
}

.dropdown-content a {
  display: block;
  padding: 9px 11px;
  color: var(--text) !important;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  border-bottom: 1px solid #edf2ff;
}

.dropdown-content a:last-child {
  border-bottom: none;
}

.dropdown-content a:hover {
  background: #edf3ff;
}

.profile-dropdown:hover .dropdown-content,
.profile-dropdown:focus-within .dropdown-content,
.profile-dropdown.is-open .dropdown-content {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.profile-dropdown:hover .user-badge-arrow,
.profile-dropdown:focus-within .user-badge-arrow,
.profile-dropdown.is-open .user-badge-arrow {
  transform: rotate(180deg);
}

.dropdown-content .logout-link {
  color: #c62828 !important;
  background: linear-gradient(180deg, #fff 0%, #fff6f6 100%);
}

.dropdown-content a[data-profile-link='1'] {
  position: relative;
  padding-right: 28px;
  color: #1f43c7 !important;
  background: linear-gradient(180deg, #ffffff 0%, #f2f7ff 100%);
}

.profile-dropdown.has-unread-messages:not(.is-open) .profile-btn::after,
.profile-dropdown.is-open .dropdown-content a[data-profile-link='1'].has-unread-messages::after {
  content: "";
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #e53935;
}

.profile-dropdown.has-unread-messages:not(.is-open) .profile-btn::after {
  top: 6px;
  right: 7px;
  box-shadow: 0 0 0 2px rgba(29, 50, 111, 0.95);
}

.profile-dropdown.is-open .dropdown-content a[data-profile-link='1'].has-unread-messages::after {
  top: 50%;
  right: 11px;
  transform: translateY(-50%);
  box-shadow: 0 0 0 2px #f2f7ff;
}

.profile-tabs {
  display: flex;
  gap: 8px;
  margin: 0 0 12px;
  flex-wrap: wrap;
}

.profile-tab-btn {
  min-height: 38px;
  padding: 8px 12px;
}

.profile-panel {
  display: none;
}

.profile-panel.is-active {
  display: block;
}

.profile-avatar {
  width: 96px;
  height: 96px;
  border-radius: 999px;
  object-fit: cover;
  border: 2px solid #d7e3ff;
  background: #f0f5ff;
}

.dropdown-content .logout-link:hover {
  background: #ffecec;
}

#chat-widget,
#chat-toggle {
  box-shadow: var(--shadow-2) !important;
}

/* ========== 17. Tabele, statusy loyalty i DM ==========
  Tabele panelu, statusy postepu oraz wiadomosci direct. */
table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 12px;
}

th, td {
  border-bottom: 1px solid #e8eeff;
  padding: 10px;
  text-align: left;
  color: var(--text);
}

.loyalty-status {
  filter: saturate(1.06);
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.1;
  border: 1px solid transparent;
  white-space: nowrap;
}

.loyalty-status--in-progress {
  background: #eaf2ff;
  color: #1f43c7;
  border-color: #cfe0ff;
}

.loyalty-status--done {
  background: #e8f9ef;
  color: #14763d;
  border-color: #bfeacf;
}

.loyalty-status--rejected {
  background: #ffefef;
  color: #b42323;
  border-color: #ffd0d0;
}

.loyalty-progress {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 120px;
}

.loyalty-progress-bar {
  position: relative;
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: #e5ecff;
  overflow: hidden;
}

.loyalty-progress-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, #2f5ef7 0%, #1f43c7 100%);
}

.loyalty-progress-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: #2f3d5b;
}

.dm-thread {
  display: grid;
  gap: 10px;
  padding: 10px;
  border: 1px solid #dce6ff;
  border-radius: 12px;
  background: #f7faff;
  max-height: 360px;
  overflow-y: auto;
}

.dm-bubble {
  max-width: 90%;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid transparent;
  box-shadow: 0 4px 10px rgba(21, 39, 98, 0.08);
}

.dm-bubble-user {
  margin-left: auto;
  background: #e7f0ff;
  border-color: #cddcff;
}

.dm-bubble-admin {
  margin-right: auto;
  background: #ffffff;
  border-color: #d7e3ff;
}

.dm-meta {
  margin: 0 0 5px;
  color: #5f6f8f;
  font-size: 0.78rem;
  font-weight: 700;
}

.dm-text {
  margin: 0;
  color: #2a3858;
  line-height: 1.45;
}

th { background: #eef3ff; color: #233566; }

.flash-error {
  color: var(--danger);
  margin-bottom: 10px;
  font-weight: 600;
}

.flash-success {
  color: var(--success);
  margin-bottom: 10px;
  font-weight: 600;
}

/* ========== 18. Komunikaty i utility klasy ==========
  Flashe, drobne utility i elementy pomocnicze widokow. */
.home-register-notice {
  margin: 0 0 14px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #bfeacf;
  background: linear-gradient(180deg, #effcf4 0%, #e7f8ee 100%);
  color: #1d6b3d;
  font-weight: 700;
  box-shadow: 0 8px 18px rgba(21, 153, 71, 0.14);
}

.is-hidden { display: none; }

.faq-article { padding: 30px; }

.logout-btn {
  background: #d03131 !important;
  color: #fff !important;
}

.msg-cell {
  max-width: 180px;
  word-break: break-word;
}

.inline-reply {
  margin: 0;
  display: flex;
  gap: 8px;
  align-items: center;
}

/* ========== 19. Widget czatu ==========
  Okno czatu, wiadomosci, input i mobilne breakpoints. */
.chat-widget {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: min(356px, calc(100vw - 24px));
  height: min(66vh, 480px);
  max-height: 480px;
  background: linear-gradient(180deg, #ffffff 0%, #f7faff 100%);
  border: 1px solid #d7e4ff;
  border-radius: 18px;
  z-index: 1000;
  visibility: hidden;
  opacity: 0;
  transform: translateY(14px) scale(0.98);
  pointer-events: none;
  transition: opacity .28s ease, transform .28s ease, box-shadow .28s ease;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.chat-widget.is-open {
  visibility: visible;
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.chat-head {
  background: linear-gradient(105deg, #1f43c7 0%, #2f5ef7 58%, #3f75ff 100%);
  color: #fff;
  padding: 16px 18px;
  border-radius: 18px 18px 0 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.1em;
  font-weight: 700;
}

.chat-close {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #fff;
  font-size: 0;
  cursor: pointer;
  font-weight: 700;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  transition: transform .2s ease, background-color .2s ease;
}

.chat-close:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.05);
}

.chat-close::before {
  content: "×";
  font-size: 24px;
  line-height: 1;
}

.chat-messages {
  flex: 1;
  padding: 16px 12px 8px;
  height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  background:
    radial-gradient(circle at 8% 6%, rgba(47, 94, 247, 0.08), transparent 34%),
    #f6f9ff;
  font-size: 15px;
}

.chat-input-row {
  padding: 12px 14px 14px;
  background: #eef4ff;
  border-top: 1px solid #d8e4ff;
  border-radius: 0 0 18px 18px;
  display: flex;
  gap: 8px;
  align-items: center;
}

.chat-input {
  flex: 1;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid #c8d8fb;
  font-size: 15px;
  outline: none;
  background: #fff;
}

.chat-input:focus {
  border-color: #2f5ef7;
  box-shadow: 0 0 0 3px rgba(47, 94, 247, 0.16);
}

.chat-send {
  padding: 10px 18px;
  background: linear-gradient(120deg, #2f5ef7 0%, #1f43c7 100%);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(31, 67, 199, 0.25);
}

.chat-send:hover {
  filter: saturate(1.06);
  transform: translateY(-1px);
}

.chat-toggle {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: linear-gradient(135deg, #2f5ef7 0%, #1f43c7 100%);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 56px;
  height: 56px;
  z-index: 1001;
  transition: box-shadow .25s ease, bottom .25s ease, transform .25s ease, opacity .2s ease;
  font-size: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.chat-toggle:hover {
  transform: translateY(-1px) scale(1.03);
  filter: saturate(1.06);
}

.chat-toggle.is-hidden {
  opacity: 0;
  pointer-events: none;
  transform: scale(0.92);
}

.chat-toggle::before {
  content: "💬";
  font-size: 24px;
  line-height: 1;
}

@media (max-width: 760px) {
  .chat-widget {
    width: min(400px, calc(100% - 20px));
    right: 10px;
    bottom: 12px;
    height: min(70vh, 480px);
  }

  .chat-toggle {
    right: 12px;
    bottom: 16px;
  }
}

@media (max-width: 560px) {
  body.chat-open {
    overflow: hidden;
  }

  .chat-widget {
    left: auto;
    right: 8px;
    width: min(348px, calc(100vw - 16px));
    bottom: 10px;
    height: min(68svh, 460px);
    max-height: 460px;
    border-radius: 14px;
  }

  .chat-head {
    border-radius: 14px 14px 0 0;
    padding: 12px 14px;
    font-size: 1rem;
  }

  .chat-input-row {
    display: flex;
    gap: 8px;
    padding: 10px 12px 12px;
  }

  .chat-send {
    width: auto;
    min-height: 42px;
    padding: 9px 14px;
    flex: 0 0 auto;
  }

  .chat-input {
    min-height: 42px;
    font-size: 16px;
  }

  .chat-bubble-admin {
    margin-left: 18px;
  }

  .chat-bubble-user {
    margin-right: 18px;
  }
}

@media (max-width: 390px) {
  .chat-widget {
    width: calc(100vw - 12px);
    right: 6px;
    bottom: 8px;
    height: min(70svh, 450px);
  }

  .chat-input-row {
    display: grid;
    grid-template-columns: 1fr;
  }

  .chat-send {
    width: 100%;
  }
}

.chat-bubble {
  display: inline-block;
  padding: 8px 13px;
  max-width: 80%;
  font-weight: 600;
  line-height: 1.35;
  border: 1px solid transparent;
}

.chat-bubble-admin {
  align-self: flex-end;
  background: linear-gradient(120deg, #2f5ef7, #1f43c7);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
  border-radius: 14px 14px 2px 14px;
  margin-left: 40px;
}

.chat-bubble-user {
  align-self: flex-start;
  background: #eaf1ff;
  color: #24324f;
  border-color: #d0defd;
  border-radius: 14px 14px 14px 2px;
  margin-right: 40px;
}

/* ========== 20. Strony ofert (bank/krypto) ==========
  Glowny layout strony oferty, lista benefitow i CTA. */
.bank-offer,
.kraken-offer {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  border: 1px solid #dbe7ff;
  border-radius: 22px;
  padding: clamp(20px, 3vw, 34px);
  box-shadow: var(--shadow-1);
  overflow: hidden;
  isolation: isolate;
}

.bank-offer::after,
.kraken-offer::after {
  content: "";
  position: absolute;
  z-index: 1;
  inset: -60% auto auto -90%;
  width: 72%;
  height: 220%;
  background: linear-gradient(110deg, transparent 0%, rgba(255,255,255,0.42) 42%, transparent 78%);
  transform: rotate(13deg) translateX(-15%);
  opacity: 0;
  pointer-events: none;
  transition: transform .65s cubic-bezier(.22,.61,.36,1), opacity .48s ease;
}

.bank-offer::before,
.kraken-offer::before {
  content: "";
  position: absolute;
  width: 280px;
  height: 280px;
  right: -120px;
  top: -120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(47, 94, 247, 0.15) 0%, rgba(47, 94, 247, 0) 70%);
  pointer-events: none;
}

.bank-offer img,
.kraken-offer img {
  display: block;
  width: 84px;
  height: 84px;
  object-fit: contain;
  border-radius: 14px;
  margin-bottom: 10px;
}

.bank-offer h1,
.kraken-offer h1 {
  font-size: clamp(1.45rem, 2.5vw, 2rem);
  margin-bottom: 8px;
}

.lead {
  font-size: 1.06rem;
  color: #34425f;
  margin-top: -2px;
  margin-bottom: 12px;
}

.features {
  list-style: none;
  padding: 0;
  margin: 14px 0 26px;
  display: grid;
  gap: 12px;
}

.features li {
  position: relative;
  background: #eef3ff;
  border: 1px solid #d7e2ff;
  padding: 10px 12px 10px 38px;
  border-radius: 10px;
  color: #2f3d5b;
}

.features li::before {
  content: "✓";
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #dce8ff;
  color: #2f5ef7;
  font-size: 12px;
  font-weight: 800;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  border-radius: 12px;
  font-weight: 700;
  font-size: clamp(0.95rem, 1.2vw, 1rem);
  line-height: 1.1;
  min-height: 48px;
  padding: 12px 20px;
  background: linear-gradient(135deg, #2f5ef7 0%, #1f43c7 62%, #17339a 100%);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 10px 24px rgba(31, 67, 199, 0.28);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}

.cta-button::after {
  content: "→";
  font-size: 0.95em;
  opacity: 0.95;
  transform: translateX(0);
  transition: transform .2s ease;
}

.cta-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(31, 67, 199, 0.34);
  filter: saturate(1.06);
}

.cta-button:hover::after {
  transform: translateX(2px);
}

.cta-button:active {
  transform: translateY(0);
}

.cta-button:focus-visible {
  outline: 3px solid rgba(47, 94, 247, 0.28);
  outline-offset: 2px;
}

.offer-extra-card {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  max-width: 900px;
  margin: 16px auto 0;
  background: linear-gradient(180deg, #ffffff 0%, #f3f8ff 100%);
  border: 1px solid #d8e5ff;
  border-radius: 18px;
  padding: 20px;
  box-shadow: var(--shadow-1);
}

.offer-extra-card::after {
  content: "";
  position: absolute;
  z-index: 1;
  inset: -60% auto auto -90%;
  width: 72%;
  height: 220%;
  background: linear-gradient(110deg, transparent 0%, rgba(255,255,255,0.42) 42%, transparent 78%);
  transform: rotate(13deg) translateX(-15%);
  opacity: 0;
  pointer-events: none;
  transition: transform .65s cubic-bezier(.22,.61,.36,1), opacity .48s ease;
}

.offer-extra-card::before {
  content: "?";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 84px;
  height: 84px;
  border-radius: 14px;
  margin-bottom: 10px;
  background: linear-gradient(135deg, #e8f0ff 0%, #dce8ff 100%);
  border: 1px solid #c9d9ff;
  color: #2f5ef7;
  font-size: 42px;
  font-weight: 800;
  line-height: 1;
}

.offer-extra-card h2 {
  margin: 0 0 10px;
  font-size: 1.15rem;
  color: #1f2f58;
}

.offer-extra-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}

.offer-more-roll {
  margin-top: 4px;
}

.offer-more-roll summary {
  list-style: none;
  cursor: pointer;
  user-select: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #c9dcff;
  background: linear-gradient(180deg, #f4f8ff 0%, #ebf2ff 100%);
  color: #1f3f89;
  font-weight: 700;
}

.offer-more-roll summary::-webkit-details-marker {
  display: none;
}

.offer-more-roll summary::before {
  content: "+";
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #d8e6ff;
  color: #2f5ef7;
  font-size: 0.95rem;
  font-weight: 800;
}

.offer-more-roll[open] summary::before {
  content: "-";
}

.offer-more-roll .offer-extra-list {
  margin-top: 10px;
}

.offer-extra-list li {
  background: #ebf2ff;
  border: 1px solid #d3e0ff;
  border-radius: 10px;
  padding: 9px 11px;
  color: #314364;
}

.offer-page-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}

.offer-page-columns .bank-offer,
.offer-page-columns .kraken-offer,
.offer-page-columns .offer-extra-card {
  max-width: none;
  margin: 0;
  height: 100%;
  padding: clamp(20px, 3vw, 30px);
}

.offer-page-columns .bank-offer,
.offer-page-columns .kraken-offer {
  display: flex;
  flex-direction: column;
}

.offer-page-columns .bank-offer img,
.offer-page-columns .kraken-offer img,
.offer-page-columns .offer-extra-card::before {
  margin: 0 0 12px;
}

.offer-page-columns .bank-offer h1,
.offer-page-columns .kraken-offer h1,
.offer-page-columns .offer-extra-card h2 {
  margin: 0 0 10px;
  font-size: clamp(1.35rem, 2.2vw, 1.85rem);
  color: #1f2f58;
}

.offer-page-columns .bank-offer .cta-button,
.offer-page-columns .kraken-offer .cta-button {
  margin-top: auto;
  align-self: flex-start;
  min-height: 44px;
  padding: 10px 16px;
}

.offer-page-columns .offer-extra-card {
  display: flex;
  flex-direction: column;
}

.offer-page-columns .offer-extra-card .cta-button {
  margin-top: auto;
  align-self: flex-start;
  min-height: 44px;
  padding: 10px 16px;
}

.offer-page-columns .offer-more-roll {
  margin-bottom: 14px;
}

@media (max-width: 1050px) {
  .offer-page-columns {
    grid-template-columns: 1fr;
  }
  .offer-more-roll summary {
    width: 100%;
    justify-content: flex-start;
  }
}

@media (max-width: 680px) {
  .cta-button {
    width: 100%;
    justify-content: center;
    white-space: normal;
    text-align: center;
    padding: 12px 14px;
  }
  .offer-page-columns .bank-offer .cta-button,
  .offer-page-columns .kraken-offer .cta-button,
  .offer-page-columns .offer-extra-card .cta-button {
    align-self: stretch;
  }
}

/* ========== 21. Panel admin, kontakt, auth standalone, FAQ ==========
  Sekcje aplikacyjne poza strona glowna. */
.admin-container {
  width: min(1180px, calc(100% - 24px));
  margin: 24px auto;
  background: #fff;
  border: 1px solid #dce6ff;
  border-radius: 18px;
  box-shadow: var(--shadow-1);
  padding: 20px;
}

.admin-section {
  padding: 16px;
}

.admin-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 0 0 12px;
}

.admin-filter-btn {
  min-height: 36px;
  padding: 8px 12px;
}

.admin-actions-cell {
  min-width: 220px;
}

.admin-container .table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.admin-container table {
  min-width: 880px;
}

.admin-container .inline-reply input[type='text'],
.admin-container .inline-reply input[type='number'],
.admin-container .inline-reply select {
  max-width: 100%;
}

@media (max-width: 820px) {
  .admin-container {
    width: calc(100% - 14px);
    margin: 12px auto 20px;
    padding: 12px;
    border-radius: 14px;
  }

  .admin-section {
    padding: 12px;
  }

  .admin-filters .admin-filter-btn {
    width: 100%;
    justify-content: center;
  }

  .admin-container table,
  .admin-container thead,
  .admin-container tbody,
  .admin-container th,
  .admin-container td,
  .admin-container tr {
    display: block;
  }

  .admin-container thead {
    display: none;
  }

  .admin-container table {
    min-width: 0;
    border-radius: 10px;
  }

  .admin-container tbody tr {
    border: 1px solid #dce6ff;
    border-radius: 12px;
    padding: 8px;
    margin-bottom: 10px;
    background: #fbfdff;
  }

  .admin-container td {
    border: 0;
    padding: 8px 6px;
  }

  .admin-container td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 4px;
    font-size: 0.77rem;
    font-weight: 800;
    color: #27499d;
    text-transform: uppercase;
    letter-spacing: 0.02em;
  }

  .admin-actions-cell {
    min-width: 0;
  }

  .admin-container .inline-reply {
    flex-direction: column;
    align-items: stretch;
  }

  .admin-container .inline-reply button,
  .admin-container .inline-reply input[type='text'],
  .admin-container .inline-reply input[type='number'],
  .admin-container .inline-reply select {
    width: 100%;
  }
}

.back-link {
  display: inline-flex;
  margin-top: 14px;
  text-decoration: none;
  color: #1f43c7;
  font-weight: 700;
}

.contact-wrap {
  max-width: 760px;
  margin: 0 auto;
}

.contact-card {
  padding: 24px;
}

.contact-form {
  display: grid;
  gap: 10px;
}

.contact-form-help {
  margin: 0 0 6px;
  color: #4c5d80;
  font-size: 0.92rem;
}

.field-help {
  margin: -4px 0 4px;
  color: #607093;
  font-size: 0.82rem;
  line-height: 1.4;
}

.required-dot {
  color: #c12626;
  font-weight: 800;
}

.cta-strip {
  border: 1px solid #ceddff;
  background: linear-gradient(135deg, #f2f7ff 0%, #e8f0ff 58%, #f8fbff 100%);
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  align-items: center;
  gap: 14px;
}

.cta-strip h2 {
  margin: 0;
  font-size: clamp(1.2rem, 2.5vw, 1.65rem);
}

.cta-strip p {
  margin: 0;
}

.cta-strip .btn {
  min-width: 200px;
  justify-self: end;
}

.auth-standalone {
  max-width: 980px;
  margin: 0 auto;
  display: grid;
  gap: 16px;
}

.auth-standalone-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.auth-card {
  background: var(--surface);
  border: 1px solid #dce6ff;
  border-radius: 16px;
  box-shadow: var(--shadow-1);
  padding: 18px;
}

.auth-card h2 {
  margin: 0 0 10px;
}

.auth-form {
  display: grid;
  gap: 8px;
}

.auth-form .auth-input {
  margin: 0;
}

.contact-form label {
  font-weight: 600;
  color: #2f3d5b;
}

.faq-accordion {
  display: grid;
  gap: 10px;
}

.faq-item {
  border: 1px solid #dbe6ff;
  border-radius: 12px;
  background: #f7faff;
  overflow: hidden;
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  font-weight: 700;
  color: #1f2f58;
  padding: 12px 14px;
  position: relative;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #2f5ef7;
  font-size: 1.1rem;
}

.faq-item[open] summary::after {
  content: "-";
}

.faq-item p {
  margin: 0;
  padding: 0 14px 14px;
}

/* ========== 22. Responsywnosc globalna (nawigacja i mobile UI) ==========
  Kluczowe zmiany ukladu dla tabletow i telefonow. */
@media (max-width: 900px) {
  nav { flex-wrap: wrap; gap: 8px; }
  .nav-toggle { display: inline-flex; }
  .nav-links {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    max-height: 1000px;
    overflow: hidden;
    margin-top: 2px;
    padding-bottom: 4px;
    transition: max-height .25s ease, opacity .25s ease;
  }
  .nav-links.collapsed {
    max-height: 0;
    opacity: 0;
    pointer-events: none;
    padding-bottom: 0;
  }
  .nav-left, .nav-right { width: 100%; flex-direction: column; }
  nav a,
  nav .login-btn {
    width: 100%;
    justify-content: flex-start;
  }
  .faq-accordion {
    gap: 8px;
  }
  .faq-item summary {
    font-size: 0.97rem;
    padding: 11px 12px;
  }
  .faq-item p {
    padding: 0 12px 12px;
  }
  .profile-dropdown,
  body > div[style*='position:fixed'][style*='top:16px'][style*='right:28px'] {
    position: fixed !important;
    top: 10px !important;
    right: 12px !important;
    transform: none !important;
    margin: 0;
    width: auto;
    justify-content: flex-end;
    display: inline-flex !important;
    padding-bottom: 0;
    z-index: 460;
  }
  .profile-btn {
    padding: 7px 11px;
  }
  .dropdown-content {
    position: fixed;
    min-width: 164px;
    max-width: calc(100vw - 16px);
    right: 12px;
    top: 54px;
    z-index: 470;
  }

  .cta-strip {
    grid-template-columns: 1fr;
  }

  .cta-strip .btn {
    justify-self: stretch;
    width: 100%;
    min-width: 0;
  }

  .auth-standalone-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .container {
    width: calc(100% - 16px);
    margin-top: 12px;
    margin-bottom: 24px;
  }

  .hero {
    padding: 16px 14px;
    border-radius: 14px;
  }

  .hero h1 {
    font-size: clamp(1.35rem, 7vw, 1.72rem);
    line-height: 1.12;
  }

  .hero p {
    font-size: 0.95rem;
    line-height: 1.52;
  }

  .products,
  .faq-grid {
    gap: 12px;
  }

  .card,
  .faq-card,
  .contact-card {
    padding: 14px;
    border-radius: 14px;
  }

  .card h3,
  .faq-card h3 {
    font-size: 1.02rem;
  }

  .card p,
  .faq-card p {
    font-size: 0.93rem;
    line-height: 1.5;
  }

  .card .btn,
  .hero-actions .btn {
    min-height: 44px;
    padding: 9px 11px;
    font-size: 0.92rem;
  }

  .card-logo,
  .card img {
    width: 72px !important;
    height: 72px !important;
  }

  .profile-dropdown {
    top: 8px !important;
    right: 8px !important;
  }

  .profile-btn .user-badge-label {
    display: none;
  }

  .profile-btn {
    gap: 6px;
    padding: 6px 9px;
  }

  .dropdown-content {
    min-width: 152px;
    max-width: calc(100vw - 12px);
    right: 8px;
    top: 50px;
  }

  .chat-toggle {
    width: 52px;
    height: 52px;
  }
}

/* ========== 23. Animacje hover dla wiekszych blokow ==========
  Efekty hover dla kart i sekcji contentowych. */
/* ── Hover animations for all content blocks ── */

.hero,
.bank-offer,
.kraken-offer,
.offer-extra-card,
.panel,
.table-wrap,
.admin-container,
.contact-card {
  transition:
    transform .32s cubic-bezier(.22,.61,.36,1),
    box-shadow .32s cubic-bezier(.22,.61,.36,1),
    border-color .24s ease;
  will-change: transform, box-shadow;
}

.hero:hover,
.bank-offer:hover,
.kraken-offer:hover,
.offer-extra-card:hover,
.panel:hover,
.table-wrap:hover,
.admin-container:hover,
.contact-card:hover {
  transform: translateY(-5px) scale(1.012);
  box-shadow: var(--shadow-2);
  border-color: #c4d4ff;
}

.hero:hover::before {
  opacity: 0;
  transform: none;
}

.bank-offer:hover::after,
.kraken-offer:hover::after,
.offer-extra-card:hover::after {
  opacity: 1;
  transform: rotate(13deg) translateX(210%);
}

.faq-item {
  transition:
    transform .28s cubic-bezier(.22,.61,.36,1),
    box-shadow .28s cubic-bezier(.22,.61,.36,1),
    border-color .22s ease,
    background .22s ease;
}

.faq-item:hover {
  transform: translateY(-2px) scale(1.005);
  box-shadow: 0 8px 22px rgba(21,39,98,0.12);
  border-color: #b8ccff;
  background: #f0f5ff;
}

.features li,
.offer-extra-list li {
  transition:
    transform .24s cubic-bezier(.22,.61,.36,1),
    box-shadow .24s ease,
    border-color .22s ease,
    background .22s ease;
}

.features li:hover,
.offer-extra-list li:hover {
  transform: translateX(5px);
  box-shadow: 0 4px 14px rgba(47,94,247,0.12);
  border-color: #adc4ff;
  background: #e6eeff;
}

.offer-more-roll summary {
  transition:
    background .22s ease,
    border-color .22s ease,
    box-shadow .22s ease,
    transform .22s ease;
}

.offer-more-roll summary:hover {
  background: linear-gradient(180deg, #e9f1ff 0%, #dce8ff 100%);
  border-color: #a8c3ff;
  box-shadow: 0 4px 12px rgba(47,94,247,0.10);
  transform: translateY(-1px);
}

article:not(.card):not(.faq-card):not(.contact-card) {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition:
    transform .32s cubic-bezier(.22,.61,.36,1),
    box-shadow .32s cubic-bezier(.22,.61,.36,1),
    border-color .24s ease;
  will-change: transform, box-shadow;
}

article:not(.card):not(.faq-card):not(.contact-card)::after {
  content: "";
  position: absolute;
  z-index: 1;
  inset: -60% auto auto -90%;
  width: 72%;
  height: 220%;
  background: linear-gradient(110deg, transparent 0%, rgba(255,255,255,0.42) 42%, transparent 78%);
  transform: rotate(13deg) translateX(-15%);
  opacity: 0;
  pointer-events: none;
  transition: transform .65s cubic-bezier(.22,.61,.36,1), opacity .48s ease;
}

article:not(.card):not(.faq-card):not(.contact-card):hover {
  transform: translateY(-5px) scale(1.012);
  box-shadow: var(--shadow-2);
  border-color: #c4d4ff;
}

article:not(.card):not(.faq-card):not(.contact-card):hover::after {
  opacity: 0;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .hero,
  .bank-offer,
  .kraken-offer,
  .offer-extra-card,
  .panel,
  .table-wrap,
  .admin-container,
  .contact-card,
  .faq-item,
  .features li,
  .offer-extra-list li,
  .offer-more-roll summary,
  article:not(.card):not(.faq-card):not(.contact-card) {
    transition: none !important;
    transform: none !important;
  }
}

/* ========== 24. Animacje hover dla mniejszych elementow ==========
  Delikatne efekty dla tabel, statusow, inputow i linkow. */
/* ── Hover animations for smaller blocks ── */

.auth-card {
  transition:
    transform .32s cubic-bezier(.22,.61,.36,1),
    box-shadow .32s cubic-bezier(.22,.61,.36,1),
    border-color .24s ease;
  will-change: transform, box-shadow;
}

.auth-card:hover {
  transform: translateY(-4px) scale(1.008);
  box-shadow: var(--shadow-2);
}

tbody tr {
  transition: background .18s ease, box-shadow .18s ease;
}

tbody tr:hover {
  background: #eef4ff;
  box-shadow: inset 3px 0 0 #2f5ef7;
}

.loyalty-status {
  transition: transform .2s cubic-bezier(.22,.61,.36,1), box-shadow .2s ease, filter .2s ease;
}

.loyalty-status:hover {
  transform: scale(1.08);
  box-shadow: 0 4px 12px rgba(47,94,247,0.18);
  filter: brightness(1.05);
}

.loyalty-progress {
  transition: transform .22s ease;
}

.loyalty-progress:hover {
  transform: scaleX(1.01);
  transform-origin: left;
}

.loyalty-progress-bar {
  transition: box-shadow .22s ease;
}

.loyalty-progress:hover .loyalty-progress-bar {
  box-shadow: 0 0 0 3px rgba(47,94,247,0.14);
}

.flash-error,
.flash-success {
  transition: transform .2s ease, box-shadow .2s ease;
}

.flash-error:hover {
  transform: translateX(3px);
  box-shadow: -3px 0 0 var(--danger);
}

.flash-success:hover {
  transform: translateX(3px);
  box-shadow: -3px 0 0 var(--success);
}

input[type='text'],
input[type='email'],
input[type='password'],
textarea,
select {
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

input[type='text']:hover:not(:focus),
input[type='email']:hover:not(:focus),
input[type='password']:hover:not(:focus),
textarea:hover:not(:focus),
select:hover:not(:focus) {
  border-color: #a8beff;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(47,94,247,0.08);
}

.auth-input {
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.auth-input:hover:not(:focus) {
  border-color: #a8beff;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(47,94,247,0.08);
}

.back-link {
  transition: transform .2s ease, color .18s ease, letter-spacing .2s ease;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.back-link:hover {
  transform: translateX(-3px);
  letter-spacing: 0.01em;
  color: #2f5ef7 !important;
}

@media (prefers-reduced-motion: reduce) {
  .auth-card,
  tbody tr,
  .loyalty-status,
  .loyalty-progress,
  .loyalty-progress-bar,
  .flash-error,
  .flash-success,
  input[type='text'],
  input[type='email'],
  input[type='password'],
  textarea,
  select,
  .auth-input,
  .back-link {
    transition: none !important;
    transform: none !important;
    box-shadow: revert !important;
  }
}

/* ========== 25. Forum ofert ==========
  Uklad forum, karty ofert, komentarze i odpowiedzi. */
/* Forum offers */
.forum-layout {
  display: grid;
  gap: 18px;
}

.forum-hero p {
  max-width: 76ch;
}

.forum-compose {
  padding: clamp(16px, 2.2vw, 24px);
  border: 1px solid #dbe5ff;
}

.forum-compose h2,
.forum-tabs {
  display: flex;
  gap: 8px;
  margin: 0 0 16px;
  flex-wrap: wrap;
}

.forum-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 20px;
  border-radius: 999px;
  font-size: 0.93rem;
  font-weight: 700;
  color: #2f4f9a;
  background: #eef3ff;
  border: 2px solid #c8d7ff;
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.forum-tab-btn:hover {
  background: #dce9ff;
  border-color: #6a90f5;
}

.forum-tab-active {
  background: #2f5ef7;
  border-color: #2f5ef7;
  color: #fff;
}

.forum-tab-active:hover {
  background: #2550e0;
  border-color: #2550e0;
}

.forum-offers h2 {
  margin: 0 0 12px;
}

.forum-form {
  display: grid;
  gap: 10px;
}

.forum-form label {
  font-weight: 700;
  color: #22335f;
}

.forum-form textarea.auth-input {
  resize: vertical;
}

.forum-form-hint {
  display: block;
  margin-top: -4px;
  margin-bottom: 2px;
  color: #5a6b8f;
  font-size: 0.84rem;
  font-weight: 600;
}

.forum-guest-note {
  margin: 0 0 10px;
  font-weight: 600;
  color: #364a77;
}

.forum-offers {
  display: grid;
  gap: 12px;
}

.forum-offer-card {
  padding: clamp(14px, 2vw, 20px);
  border: 1px solid #dbe6ff;
}

/* Forum cards: disable global white sheen on hover (looked like button flicker). */
.forum-offer-card::after,
.forum-offer-card:hover::after {
  opacity: 0 !important;
  transform: none !important;
}

.forum-offer-top {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
  margin-bottom: 8px;
}

.forum-tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #1f43c7;
  background: #e8efff;
  border: 1px solid #c8d7ff;
}

.forum-date {
  font-size: 0.84rem;
  color: #516283;
  font-weight: 600;
}

.forum-offer-card h3 {
  margin: 0 0 8px;
}

.forum-thumb-wrap {
  margin: 10px 0 12px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #d6e2ff;
  background: #f7faff;
}

.forum-offer-thumb {
  width: 100%;
  max-height: 260px;
  object-fit: cover;
  display: block;
}

.forum-meta {
  margin: 0 0 10px;
  color: #56688f;
  font-size: 0.9rem;
  font-weight: 600;
}

.forum-reward {
  margin: 0 0 12px;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid #c6dcff;
  background: linear-gradient(180deg, #eef5ff 0%, #e7f1ff 100%);
  color: #1f3f89;
  font-size: 0.92rem;
  font-weight: 700;
}

.forum-reward strong {
  color: #17339a;
}

.forum-comments {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid #e2eaff;
  display: grid;
  gap: 10px;
}

.forum-comments h4 {
  margin: 0;
  font-size: 1rem;
}

.forum-comment-item {
  border: 1px solid #dbe5ff;
  background: #f8fbff;
  border-radius: 10px;
  padding: 10px 12px;
}

.forum-comment-main {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.forum-comment-avatar {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  object-fit: cover;
  border: 1px solid #c7d8ff;
  background: #eef3ff;
  flex: 0 0 36px;
}

.forum-comment-body {
  flex: 1;
  min-width: 0;
}

.forum-replies {
  margin-top: 10px;
  margin-left: 20px;
  display: grid;
  gap: 8px;
  border-left: 2px solid #d8e4ff;
  padding-left: 10px;
}

.forum-comment-reply-item {
  background: #f2f7ff;
}

.forum-reply-form {
  margin-top: 10px;
}

.forum-reply-box {
  margin-top: 10px;
}

.forum-reply-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  font-weight: 700;
  color: #1f43c7;
  user-select: none;
}

.forum-reply-toggle::before {
  content: "+";
  font-weight: 800;
}

.forum-reply-box[open] .forum-reply-toggle::before {
  content: "-";
}

.forum-reply-box > summary {
  list-style: none;
}

.forum-reply-box > summary::-webkit-details-marker {
  display: none;
}

.forum-comment-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.forum-comment-head strong {
  color: #1e3369;
}

.forum-comment-head span {
  color: #607093;
  font-size: 0.84rem;
  font-weight: 600;
}

.forum-comment-item p,
.forum-comment-empty,
.forum-comment-note {
  margin: 0;
  color: #33476f;
}

.forum-comment-empty,
.forum-comment-note {
  font-size: 0.93rem;
}

.forum-comment-form {
  display: grid;
  gap: 8px;
}

.forum-comment-form label {
  font-weight: 700;
  color: #22335f;
}

/* Stabilize ghost button hover on forum cards. */
.forum-offer-card .btn-ghost:hover,
.forum-offers .btn-ghost:hover {
  filter: none;
  background-position: 50% 50%;
}

@media (max-width: 700px) {
  .forum-offer-top {
    flex-direction: column;
    align-items: flex-start;
  }

  .forum-compose,
  .forum-offer-card {
    border-radius: 14px;
  }
}

/* ========== 26. Poprawki stabilnosci animacji forum/admin ==========
  Korekty pod CLS, warstwy GPU i opoznienia animacji. */
/* ── Fix: forum & admin card animation flicker ── */

/*
 * 1. content-visibility:auto causes layout shifts (CLS) on forum cards
 *    because contain-intrinsic-size:280px rarely matches actual height.
 *    This fires cardEnter mid-scroll creating a pop/flicker.
 *    Override to visible for forum cards and admin sections.
 */
.forum-offer-card,
.admin-section {
  content-visibility: visible;
  contain-intrinsic-size: unset;
}

/*
 * 2. will-change on 100+ forum cards creates too many GPU composite layers,
 *    causing memory pressure and repaint jank.
 *    Only promote during hover interaction.
 */
.forum-offer-card {
  will-change: auto;
  backface-visibility: hidden;
}

.forum-offer-card:hover {
  will-change: transform, box-shadow;
}

/*
 * 3. Stagger cardEnter for forum-offer-cards so they flow in smoothly
 *    instead of all flashing at the same moment.
 */
.forum-offers .forum-offer-card:nth-child(1) { animation-delay: .00s; }
.forum-offers .forum-offer-card:nth-child(2) { animation-delay: .04s; }
.forum-offers .forum-offer-card:nth-child(3) { animation-delay: .08s; }
.forum-offers .forum-offer-card:nth-child(4) { animation-delay: .12s; }
.forum-offers .forum-offer-card:nth-child(5) { animation-delay: .16s; }
.forum-offers .forum-offer-card:nth-child(6) { animation-delay: .20s; }
.forum-offers .forum-offer-card:nth-child(7) { animation-delay: .24s; }
.forum-offers .forum-offer-card:nth-child(8) { animation-delay: .28s; }
.forum-offers .forum-offer-card:nth-child(n+9) { animation-delay: .32s; }

/*
 * 4. Admin sections are all far taller than 280px intrinsic size.
 *    Stagger their entry animations too.
 */
.admin-container > .card:nth-child(1) { animation-delay: .00s; }
.admin-container > .card:nth-child(2) { animation-delay: .06s; }
.admin-container > .card:nth-child(3) { animation-delay: .12s; }
.admin-container > .card:nth-child(4) { animation-delay: .18s; }
.admin-container > .card:nth-child(5) { animation-delay: .22s; }
.admin-container > .card:nth-child(n+6) { animation-delay: .26s; }

