:root {
  --indigo: #312b63;
  --indigo-dark: #221d4b;
  --indigo-soft: #5b4b9e;
  --teal: #47c6d1;
  --teal-dark: #2fa9b5;
  --bg: #ffffff;
  --bg-soft: #f6f7fb;
  --text: #2a2a35;
  --muted: #6b6f80;
  --line: #e6e8f0;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(49, 43, 99, 0.10);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 20px; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

img { max-width: 100%; display: block; }

a { color: var(--teal-dark); text-decoration: none; }

.container { width: min(1120px, 92%); margin: 0 auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 13px 30px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: center;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  cursor: pointer;
  border: 0;
}

.btn:hover { transform: translateY(-2px); }

.btn-teal { background: var(--teal); color: #fff; box-shadow: 0 8px 20px rgba(71, 198, 209, 0.35); }
.btn-teal:hover { background: var(--teal-dark); }

.btn-purple { background: var(--indigo-soft); color: #fff; box-shadow: 0 8px 20px rgba(91, 75, 158, 0.30); }
.btn-purple:hover { background: var(--indigo); }

.btn-sm { padding: 10px 22px; font-size: 0.85rem; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  background:
    linear-gradient(100deg, rgba(24, 18, 52, 0.88) 0%, rgba(34, 29, 75, 0.60) 45%, rgba(34, 29, 75, 0.28) 100%),
    url("../img/hero.png") center / cover no-repeat;
  color: #fff;
}

.hero-inner {
  /* szerszy kontener - tresc mocniej po lewej, jak na przykladzie */
  width: min(1360px, 95%);
  display: flex;
  flex-direction: column;
  padding: 36px 0 64px;
}

.hero-top {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.hero-logo {
  width: clamp(240px, 30vw, 410px);
  height: auto;
  filter: drop-shadow(0 8px 26px rgba(0, 0, 0, 0.35));
}

/* przycisk menu na grafice, prawy gorny rog */
.nav-wrap { position: relative; flex: 0 0 auto; }

.nav-toggle {
  display: block;
  background: rgba(24, 18, 52, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 10px;
  cursor: pointer;
  padding: 12px 10px;
  position: relative;
  z-index: 11;
}

.nav-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: #fff;
  margin: 6px 0;
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* rozwijane menu - panel zaraz pod przyciskiem, z animacja */
.main-nav {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 250px;
  display: flex;
  flex-direction: column;
  padding: 12px;
  background: rgba(24, 18, 52, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px) scale(0.96);
  transform-origin: top right;
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0s linear 0.22s;
}

.main-nav.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
  transition: opacity 0.22s ease, transform 0.22s cubic-bezier(0.2, 0.9, 0.3, 1.2), visibility 0s;
}

/* pozycje menu wjezdzaja kaskadowo */
.main-nav a { opacity: 0; transform: translateX(10px); transition: opacity 0.18s ease, transform 0.18s ease; }

.main-nav.open a { opacity: 1; transform: translateX(0); }

.main-nav.open a:nth-child(1) { transition-delay: 0.04s; }
.main-nav.open a:nth-child(2) { transition-delay: 0.08s; }
.main-nav.open a:nth-child(3) { transition-delay: 0.12s; }
.main-nav.open a:nth-child(4) { transition-delay: 0.16s; }
.main-nav.open a:nth-child(5) { transition-delay: 0.20s; }
.main-nav.open a:nth-child(6) { transition-delay: 0.24s; }
.main-nav.open a:nth-child(7) { transition-delay: 0.28s; }
.main-nav.open a:nth-child(8) { transition-delay: 0.32s; }

.main-nav a.nav-link {
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 13px 14px;
  border-radius: 10px;
}

.main-nav a.nav-link:hover { background: rgba(255, 255, 255, 0.08); color: var(--teal); }

.main-nav .btn { margin-top: 8px; }

.hero-content { margin-top: auto; }

.hero .lead {
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  color: rgba(255, 255, 255, 0.94);
}

.hero-actions { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 16px; }

.hero-features {
  margin-top: 56px;
  display: flex;
  flex-wrap: wrap;
  gap: 36px;
}

.feature { display: flex; align-items: flex-start; gap: 12px; max-width: 220px; }

.feature svg { flex: 0 0 auto; width: 38px; height: 38px; stroke: var(--teal); }

.feature strong {
  display: block;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.feature span { font-size: 0.85rem; color: rgba(255, 255, 255, 0.78); }

/* ---------- Sections ---------- */
.section { padding: 90px 0; }

.section-soft { background: var(--bg-soft); }

.section-head { text-align: center; margin-bottom: 54px; }

.section-head .eyebrow {
  display: inline-block;
  color: var(--teal-dark);
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-size: 0.8rem;
  margin-bottom: 10px;
}

.section-head h2 {
  color: var(--indigo);
  font-size: clamp(1.7rem, 3.4vw, 2.4rem);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.section-head p { color: var(--muted); margin-top: 10px; }

/* ---------- Offer ---------- */
.offer-category { margin-bottom: 52px; }

.offer-category:last-child { margin-bottom: 0; }

.offer-category h3 {
  color: var(--indigo);
  font-size: 1.15rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
}

.offer-category h3::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.offer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
}

.offer-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.offer-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }

.offer-card h4 {
  color: var(--indigo);
  font-size: 1.12rem;
  line-height: 1.3;
}

.offer-card p { color: var(--muted); font-size: 0.93rem; flex: 1; }

.offer-card .card-link {
  font-weight: 700;
  font-size: 0.88rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--teal-dark);
}

.offer-card .card-link:hover { color: var(--indigo); }

/* ---------- CTA ---------- */
.cta {
  background: linear-gradient(120deg, var(--indigo-dark), var(--indigo));
  color: #fff;
  text-align: center;
  padding: 70px 0 88px;
}

.cta h2 {
  font-size: clamp(1.8rem, 3.6vw, 2.6rem);
  letter-spacing: 0.04em;
}

.cta .cta-sub {
  color: var(--teal);
  font-weight: 700;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 10px 0 34px;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--indigo-dark);
  color: rgba(255, 255, 255, 0.85);
  padding: 42px 0 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: auto auto;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding-bottom: 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-brand img { height: 128px; width: auto; }

.footer-contact h3 {
  color: #fff;
  font-size: 0.95rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.footer-contact ul { list-style: none; display: grid; gap: 10px; }

.footer-contact a { color: var(--teal); font-weight: 600; }

.footer-contact a:hover { color: #fff; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  padding-top: 16px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
}

/* ---------- Admin ---------- */
.admin-body {
  background: #edf0f7;
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 32px 20px 60px;
}

.admin-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(49, 43, 99, 0.07);
  width: min(460px, 100%);
  padding: 40px 36px;
}

.admin-card img { height: 64px; width: auto; margin: 0 auto 26px; }

.admin-card h1 {
  color: var(--indigo);
  font-size: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-align: center;
  margin-bottom: 24px;
}

/* Staly, szeroki i spojny rozmiar panelu na kazdej podstronie */
.admin-panel, .admin-wide {
  width: min(1320px, 98vw);
  max-width: 1320px;
  min-height: 820px;
  padding: 32px 38px 44px;
  border-radius: 18px;
  box-shadow: 0 12px 36px rgba(35, 30, 75, 0.07), 0 2px 6px rgba(35, 30, 75, 0.03);
}

/* Gorny pasek panelu */
.admin-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding-bottom: 22px;
  border-bottom: 1px solid #e7eaf3;
  margin-bottom: 22px;
  flex-wrap: wrap;
}

.topbar-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.topbar-logo {
  height: 44px;
  width: auto;
  object-fit: contain;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-size: 1.22rem;
  font-weight: 900;
  color: var(--indigo);
  letter-spacing: 0.04em;
  line-height: 1.15;
}

.brand-sub {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.user-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 6px;
  background: #f4f6fb;
  border: 1px solid #e1e4ee;
  border-radius: 999px;
  font-size: 0.84rem;
  color: var(--indigo);
  font-weight: 600;
}

.user-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--indigo);
  color: #fff;
  font-weight: 800;
  font-size: 0.78rem;
  display: grid;
  place-items: center;
}

.btn-topbar {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.83rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.15s ease;
  border: 1px solid transparent;
  font-family: inherit;
}

.btn-preview {
  background: #eef6f8;
  color: #1a7469;
  border-color: #c7e8e3;
}

.btn-preview:hover {
  background: #dcf0ed;
  color: #12574e;
}

.btn-logout {
  background: #fbf0f0;
  color: #a83535;
  border-color: #f3d4d4;
}

.btn-logout:hover {
  background: #f6e2e2;
  color: #8c2525;
}

/* Glowne zakladki panelu */
.admin-tabs-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 28px;
  padding: 6px;
  background: #f4f5f9;
  border: 1px solid #e6e8f1;
  border-radius: 14px;
}

.tab-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #55596b;
  text-decoration: none;
  transition: all 0.15s ease;
}

.tab-item.tab-item-icon-only {
  padding: 10px 14px;
}

.tab-item:hover {
  background: #ffffff;
  color: var(--indigo);
}

.tab-item.active {
  background: var(--indigo);
  color: #ffffff;
  box-shadow: 0 3px 10px rgba(49, 43, 99, 0.22);
}

.tab-icon {
  display: inline-flex;
  width: 17px;
  height: 17px;
}

.tab-icon svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.tab-badge {
  background: #e94b4b;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 999px;
  line-height: 1;
}

.tab-item.active .tab-badge {
  background: var(--teal);
  color: #fff;
}

.admin-panel .panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 8px;
}

.admin-panel .panel-head h1 { margin: 0; text-align: left; }

.field { margin-bottom: 18px; }

.field label {
  display: block;
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--indigo);
  margin-bottom: 6px;
}

.field input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 0.95rem;
  color: var(--text);
  background: var(--bg-soft);
}

.field input:focus {
  outline: 2px solid var(--teal);
  border-color: transparent;
  background: #fff;
}

.field .hint { font-size: 0.8rem; color: var(--muted); margin-top: 5px; }

.alert {
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 0.9rem;
  margin-bottom: 20px;
}

.alert-ok { background: #e7f8f5; color: #1c7a6d; border: 1px solid #bce8e0; }

.alert-err { background: #fdeeee; color: #a63636; border: 1px solid #f3cccc; }

.admin-divider { border: 0; border-top: 1px solid var(--line); margin: 30px 0; }

.admin-footer-note {
  margin-top: 18px;
  text-align: center;
  font-size: 0.8rem;
  color: var(--muted);
}

.link-back { display: inline-block; margin-top: 18px; font-size: 0.88rem; }

/* ---------- Admin: edytor oferty ---------- */
.admin-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 26px; }

.admin-tabs a {
  padding: 9px 18px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--bg-soft);
  border: 1px solid var(--line);
}

.admin-tabs a:hover { color: var(--indigo); }

.admin-tabs a.active { background: var(--indigo); color: #fff; border-color: var(--indigo); }

.admin-section h2 {
  color: var(--indigo);
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 36px 0 14px;
}

.admin-section:first-of-type h2 { margin-top: 0; }

.hint-block { font-size: 0.82rem; color: var(--muted); margin: 0 0 18px; line-height: 1.7; }

.chip {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
}

.chip-save { background: var(--teal); color: #fff; }

.chip-move { background: #EEF0F6; color: var(--indigo); }

.chip-del { background: #FDEEEE; color: #B23B3B; }

/* --- kategoria jako karta --- */
.cat-block {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  margin-bottom: 20px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(49, 43, 99, 0.05);
}

.cat-head {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  padding: 12px 14px;
  background: linear-gradient(90deg, #EFEDFA 0%, #F8F8FC 100%);
  border-bottom: 1px solid var(--line);
}

.cat-ico {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--indigo);
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}

.cat-ico svg { width: 16px; height: 16px; stroke: #fff; }

.cat-name {
  flex: 1 1 200px;
  font-weight: 700;
  font-size: 1rem;
  color: var(--indigo);
  border: 1px solid transparent;
  background: transparent;
}

.cat-name:hover { border-color: var(--line); background: #fff; }

.cat-name:focus { border-color: var(--teal); background: #fff; outline: none; }

/* --- pozycje w kategorii --- */
.cat-items {
  padding: 14px;
  display: grid;
  gap: 10px;
  background: #FBFBFE;
}

.item-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: flex-start;
  background: #fff;
  border: 1px solid var(--line);
  border-left: 3px solid var(--teal);
  border-radius: 10px;
  padding: 10px 12px;
  transition: box-shadow 0.15s ease, border-color 0.15s ease;
}

.item-row:hover { box-shadow: 0 4px 14px rgba(49, 43, 99, 0.08); border-left-color: var(--indigo-soft); }

/* --- formularze dodawania --- */
.row-add {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: flex-start;
  border: 1.5px dashed #A9E3E9;
  background: #F2FBFC;
  border-radius: 10px;
  padding: 10px 12px;
}

.cat-add { margin-bottom: 26px; align-items: center; }

.add-label {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--teal-dark);
  padding: 8px 0;
  flex: 0 0 auto;
}

/* --- wspolne pola edytora --- */
.cat-block input[type=text],
.cat-block input[type=number],
.cat-block textarea,
.row-add input[type=text],
.row-add textarea {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 11px;
  font-size: 0.9rem;
  color: var(--text);
  background: #fff;
  font-family: inherit;
}

.cat-block input[type=text].grow,
.cat-block textarea.grow { flex: 1 1 200px; }

.row-add input[type=text].grow,
.row-add textarea.grow { flex: 1 1 180px; }

.cat-block textarea.grow,
.row-add textarea.grow { resize: vertical; min-height: 40px; }

.cat-block input:focus,
.row-add input:focus,
.cat-block textarea:focus,
.row-add textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(71, 198, 209, 0.18);
}

.pos-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--indigo);
  flex: 0 0 auto;
}

.pos-label input {
  width: 58px;
  padding: 7px 8px;
  text-align: center;
}

.pos-label input.grp-price,
input.grp-price {
  width: 125px !important;
  min-width: 120px !important;
  padding: 7px 10px !important;
  text-align: right !important;
  font-weight: 700 !important;
  font-size: 0.92rem !important;
  background: #fff !important;
}

.pos-label input.grp-bundle,
input.grp-bundle {
  width: 76px !important;
  min-width: 70px !important;
  padding: 7px 8px !important;
  text-align: center !important;
  font-weight: 700 !important;
  font-size: 0.92rem !important;
  background: #fff !important;
}

/* --- przyciski akcji --- */
.btn-act {
  border: 0;
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  cursor: pointer;
  flex: 0 0 auto;
  font-family: inherit;
  transition: background 0.15s ease, transform 0.1s ease;
}

.btn-act:active { transform: scale(0.96); }

.btn-save { background: var(--teal); color: #fff; }

.btn-save:hover { background: var(--teal-dark); }

.btn-add { background: var(--indigo-soft); color: #fff; }

.btn-add:hover { background: var(--indigo); }

.btn-move { background: #EEF0F6; color: var(--indigo); padding: 8px 11px; }

.btn-move:hover { background: #E0E3EF; }

.btn-del { background: #FDEEEE; color: #B23B3B; }

.btn-del:hover { background: #F9DDDD; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  /* pionowy kadr: przyciemnienie gory pod logo/menu, tancerka odsunieta w prawo */
  .hero {
    background:
      linear-gradient(180deg, rgba(24, 18, 52, 0.85) 0%, rgba(24, 18, 52, 0.30) 45%, rgba(24, 18, 52, 0.62) 100%),
      url("../img/hero.png") 40% top / cover no-repeat;
  }

  .hero-inner { padding: 22px 0 48px; }

  .hero-logo { width: min(50vw, 240px); }

  .hero-content { margin-top: auto; }

  .hero-features { gap: 22px; margin-top: 44px; }

  .feature { max-width: 46%; }
}

@media (max-width: 600px) {
  /* menu na pelna szerokosc ekranu pod przyciskiem - nie nachodzi na logo */
  .main-nav {
    position: fixed;
    top: 84px;
    left: 12px;
    right: 12px;
    min-width: 0;
  }
}

@media (max-width: 520px) {
  .hero-logo { width: min(44vw, 190px); }

  .nav-toggle { padding: 10px 8px; }

  .nav-toggle span { width: 22px; margin: 5px 0; }

  .nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .hero-actions .btn { width: 100%; }

  .feature { max-width: 100%; }

  /* stopka: logo po lewej, kontakt po prawej, ciasno */
  .footer-grid { gap: 16px; }

  .footer-brand img { height: 92px; }

  .footer-contact h3 { margin-bottom: 10px; }

  .footer-contact ul { gap: 7px; }
}

/* ---------- Zapisy: naglowek podstrony ---------- */
.btn-lg { padding: 15px 38px; font-size: 1rem; }

.signup-body { background: var(--bg-soft); }

.signup-head {
  background: linear-gradient(120deg, var(--indigo-dark) 0%, var(--indigo) 100%);
  color: #fff;
  padding: 24px 0;
}

.signup-head-inner {
  width: min(920px, 92%);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.signup-logo { height: 62px; width: auto; flex: 0 0 auto; }

.signup-head-text { flex: 1 1 260px; }

.signup-head-text .eyebrow {
  color: var(--teal);
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-size: 0.72rem;
}

.signup-head-text h1 {
  font-size: clamp(1.25rem, 3vw, 1.7rem);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.signup-head-text p { color: rgba(255, 255, 255, 0.85); font-size: 0.88rem; margin-top: 4px; }

.signup-head .btn { margin-left: auto; }

/* ---------- Zapisy: karty formularza ---------- */
.signup-main { padding: 36px 0 64px; }

.signup-form { width: min(920px, 92%); margin: 0 auto; }

.form-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 2px 10px rgba(49, 43, 99, 0.05);
  padding: 26px 28px;
  margin-bottom: 20px;
}

.form-card h2 {
  color: var(--indigo);
  font-size: 1.02rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.form-card h2::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal);
  flex: 0 0 auto;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 4px 18px;
}

.field label .opt { color: var(--muted); font-weight: 400; font-size: 0.78rem; }

.field-error label { color: #a63636; }

.field-error input {
  border-color: #d88888 !important;
  background: #fdf5f5;
}

.btn-toggle {
  margin-top: 16px;
  background: none;
  border: 1.5px dashed #b9b3dd;
  color: var(--indigo-soft);
  font-weight: 700;
  font-size: 0.85rem;
  border-radius: 10px;
  padding: 10px 16px;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s ease, color 0.15s ease;
}

.btn-toggle:hover { background: #f1eefb; color: var(--indigo); }

.p2-grid { margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--line); }

.p2-grid[hidden] { display: none; }

/* ---------- Zapisy: wiersze grup ---------- */
.form-hint { font-size: 0.83rem; color: var(--muted); margin-bottom: 14px; line-height: 1.65; }

#group-rows { display: grid; gap: 10px; margin-bottom: 14px; }

.group-row {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1.15fr) minmax(0, 1.6fr) 96px 34px;
  gap: 10px;
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-left: 3px solid var(--teal);
  border-radius: 10px;
  padding: 10px 12px;
}

.group-row .grp-field select,
.group-row .day-field select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 10px;
  font-size: 0.86rem;
  color: var(--text);
  background: #fff;
  font-family: inherit;
}

.group-row select:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(71, 198, 209, 0.18);
}

.group-row select:disabled { background: var(--bg-soft); color: var(--muted); }

.row-price {
  font-weight: 700;
  color: var(--indigo);
  font-size: 0.88rem;
  text-align: right;
  white-space: nowrap;
}

.row-remove {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 8px;
  background: #fdeeee;
  color: #b23b3b;
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.1s ease;
}

.row-remove:hover { background: #f9dddd; }

.row-remove:active { transform: scale(0.94); }

.btn-add-group {
  background: #f2fbfc;
  border: 1.5px dashed #a9e3e9;
  color: var(--teal-dark);
  font-weight: 700;
  font-size: 0.88rem;
  border-radius: 10px;
  padding: 11px 18px;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s ease, color 0.15s ease;
}

.btn-add-group:hover { background: #e6f8fa; color: var(--indigo); }

/* ---------- Zapisy: podsumowanie oplat ---------- */
.fee-summary {
  margin-top: 18px;
  background: #fbfbfe;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 16px 18px;
}

.fee-summary h3 {
  color: var(--indigo);
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 10px;
}

.fee-summary table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }

.fee-summary td,
.fee-summary th { padding: 8px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }

.fee-right { text-align: right !important; font-weight: 700; white-space: nowrap; }

.fee-discount td { color: #1c7a6d; font-weight: 700; }

.fee-total td { background: #efedfa; color: var(--indigo); font-weight: 800; border-bottom: 0; }

.fee-note { font-size: 0.8rem; color: var(--muted); margin-top: 10px; line-height: 1.6; }

.fee-empty { font-size: 0.86rem; color: var(--muted); margin: 0; }

.fee-warn {
  margin-top: 12px;
  background: #fdeeee;
  border: 1px solid #f3cccc;
  color: #a63636;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 0.84rem;
  font-weight: 600;
}

.fee-warn[hidden] { display: none; }

.club-warn {
  margin: 12px 0;
  background: #f1eefb;
  border: 1px solid #d8d2ef;
  color: var(--indigo);
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 0.86rem;
  line-height: 1.6;
}

.club-warn[hidden] { display: none; }

@keyframes club-shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-6px); }
  40% { transform: translateX(6px); }
  60% { transform: translateX(-4px); }
  80% { transform: translateX(4px); }
}

.club-warn-shake { animation: club-shake 0.5s ease; }

.submit-reassure {
  font-size: 0.85rem;
  color: var(--indigo-soft);
  background: #f1eefb;
  border: 1px solid #ded8f2;
  border-radius: 10px;
  padding: 10px 18px;
  margin: 14px auto 0;
  max-width: 560px;
  line-height: 1.6;
}

/* ---------- Zapisy: zgody i checkboxy ---------- */
.consent-group { display: grid; gap: 10px; }

.check-row {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  cursor: pointer;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fff;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.check-row:hover { border-color: #c9c4e6; }

.check-row input[type="checkbox"] {
  flex: 0 0 auto;
  width: 19px;
  height: 19px;
  margin-top: 2px;
  cursor: pointer;
}

.check-row span { font-size: 0.88rem; line-height: 1.55; }

.consent-docs .check-row { border-left: 3px solid var(--indigo-soft); }

.consent-docs .check-row input { accent-color: var(--indigo-soft); }

.consent-stmt .check-row { border-left: 3px solid var(--teal); }

.consent-stmt .check-row input { accent-color: var(--teal-dark); }

.consent-opt .check-row { border-left: 3px solid #b9c2cf; background: #fbfcfd; }

.consent-opt .check-row input { accent-color: #7d8899; }

.doc-link {
  display: inline-block;
  margin: -4px 0 0 42px;
  font-size: 0.8rem;
  font-weight: 700;
}

.doc-link:hover { color: var(--indigo); }

.doc-soon {
  display: inline-block;
  margin: -4px 0 0 42px;
  font-size: 0.8rem;
  color: var(--muted);
  font-style: italic;
}

.submit-wrap { text-align: center; padding: 8px 0 4px; }

.submit-note { font-size: 0.8rem; color: var(--muted); margin-top: 12px; }

.hp-field {
  position: absolute;
  left: -9999px;
  top: -9999px;
  opacity: 0;
  height: 0;
  overflow: hidden;
}

/* ---------- Zapisy: ekran podziekowania ---------- */
.signup-thanks {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 16px;
  background: var(--bg-soft);
}

.signup-thanks-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  width: min(560px, 100%);
  padding: 44px 40px;
  text-align: center;
}

.thanks-ico {
  width: 62px;
  height: 62px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: #e7f8f5;
  display: grid;
  place-items: center;
}

.thanks-ico svg { width: 30px; height: 30px; stroke: #1c7a6d; }

.signup-thanks-card h1 { color: var(--indigo); font-size: 1.5rem; text-transform: uppercase; letter-spacing: 0.04em; }

.thanks-lead { color: var(--muted); font-size: 0.95rem; margin: 12px 0 22px; }

.thanks-summary { text-align: left; margin-bottom: 26px; }

.thanks-note { color: var(--muted); font-size: 0.85rem; margin-bottom: 22px; }

/* ---------- Admin: edytor grup zapisow ---------- */
.chip-club { background: var(--indigo-soft); color: #fff; }

.admin-subtabs { margin-bottom: 18px; }

.admin-subtabs a {
  padding: 8px 18px;
  font-size: 0.8rem;
  background: var(--bg-soft);
  color: var(--muted);
  border: 1px solid var(--line);
}

.admin-subtabs a.active {
  background: var(--teal);
  border-color: var(--teal);
  color: #fff;
}

.grp-block { padding: 4px; }

.grp-form {
  display: grid;
  gap: 9px;
  padding: 14px;
}

.grp-main {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.grp-name { flex: 1 1 220px; font-weight: 700; }

.grp-school {
  flex: 0 1 230px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 0.88rem;
  color: var(--text);
  background: #fff;
  font-family: inherit;
}

.grp-club {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--indigo-soft);
  background: #f1eefb;
  border: 1px solid #ded8f2;
  border-radius: 999px;
  padding: 7px 14px;
  cursor: pointer;
  flex: 0 0 auto;
}

.grp-club input { accent-color: var(--indigo-soft); cursor: pointer; }

.grp-days { flex: 1 1 100%; }

.grp-price { width: 125px !important; min-width: 120px; padding: 7px 10px; font-size: 0.92rem; font-weight: 700; text-align: right; }

.grp-bundle { width: 76px !important; min-width: 70px; padding: 7px 8px; text-align: center; font-size: 0.92rem; font-weight: 700; }

.grp-actions { display: flex; gap: 8px; margin-left: auto; }

.grp-add { display: grid; gap: 9px; margin-bottom: 26px; }

.grp-add .grp-main:last-of-type { flex: 1 1 auto; }

/* ---------- Admin: lista zapisow ---------- */
.reg-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }

.reg-filter {
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--bg-soft);
  border: 1px solid var(--line);
}

.reg-filter b { color: var(--indigo); }

.reg-filter:hover { color: var(--indigo); }

.reg-filter.active { background: var(--indigo); color: #fff; border-color: var(--indigo); }

.reg-filter.active b { color: var(--teal); }

.reg-empty { color: var(--muted); font-size: 0.9rem; padding: 18px 0; }

.reg-card {
  background: #fff;
  border: 1px solid var(--line);
  border-left: 3px solid var(--indigo-soft);
  border-radius: 10px;
  margin-bottom: 10px;
  overflow: hidden;
}

.reg-card.st-potwierdzone { border-left-color: #2fae7d; }

.reg-card.st-rezygnacja { border-left-color: #c96a6a; }

.reg-card summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  padding: 12px 16px;
  cursor: pointer;
  list-style: none;
  font-size: 0.88rem;
}

.reg-card summary::-webkit-details-marker { display: none; }

.reg-card summary::before {
  content: "+";
  font-weight: 800;
  color: var(--indigo-soft);
  width: 16px;
  flex: 0 0 auto;
  transition: transform 0.15s ease;
}

.reg-card[open] summary::before { content: "−"; }

.reg-card summary:hover { background: #fbfbfe; }

.reg-date { color: var(--muted); font-size: 0.8rem; white-space: nowrap; }

.reg-child { font-weight: 800; color: var(--indigo); }

.reg-groups { color: var(--muted); font-size: 0.8rem; }

.reg-total { margin-left: auto; font-weight: 800; white-space: nowrap; }

.chip-st-nowe { background: #eef0f6; color: var(--indigo); }

.chip-st-potwierdzone { background: #e3f6ee; color: #1e7d5a; }

.chip-st-rezygnacja { background: #fdeeee; color: #b23b3b; }

.chip-mail-ok { background: #e3f6ee; color: #1e7d5a; }

.chip-mail-fail { background: #fdeeee; color: #b23b3b; }

.chip-paid { background: #e3f6ee; color: #1e7d5a; }

.chip-unpaid { background: #fdeeee; color: #b23b3b; }

.chip-acc-group { background: #eef0f6; color: var(--indigo); margin-right: 6px; }

.reg-card.is-paid { border-left-color: #2fae7d; }

/* ---------- Admin: filtry uczestnikow ---------- */
.part-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 16px;
}

.part-filters input[type=text] {
  flex: 1 1 220px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 12px;
  font-size: 0.88rem;
  font-family: inherit;
}

.part-filters select {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 10px;
  font-size: 0.86rem;
  font-family: inherit;
  background: #fff;
  max-width: 320px;
}

.inline-form { display: inline; }

/* ---------- Admin: edycja zgloszenia / kont ---------- */
.edit-block { margin-bottom: 22px; }

.edit-form { padding: 16px; }

.edit-form h4 {
  color: var(--indigo);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 16px 0 8px;
}

.edit-form h4:first-of-type { margin-top: 0; }

.edit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 10px 16px;
}

.edit-form .field { margin: 0; }

.edit-form .field span {
  display: block;
  font-weight: 600;
  font-size: 0.78rem;
  color: var(--indigo);
  margin-bottom: 4px;
}

.edit-form input[type=text],
.edit-form input[type=email],
.edit-form input[type=tel],
.edit-form input[type=date],
.edit-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 11px;
  font-size: 0.88rem;
  font-family: inherit;
  background: #fff;
  color: var(--text);
}

.edit-form input:focus,
.edit-form textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(71, 198, 209, 0.18);
}

.edit-form textarea { resize: vertical; }

.edit-items { display: grid; gap: 8px; }

.edit-item-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 12px;
}

.edit-item-row .ei-pick {
  flex: 1 1 340px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 0.86rem;
  font-family: inherit;
  background: #fff;
}

.ei-price-edit-wrap {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
}

.ei-price-label {
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--indigo);
  margin: 0 !important;
}

.ei-price-input {
  width: 90px !important;
  padding: 6px 8px !important;
  font-size: 0.88rem !important;
  font-weight: 700 !important;
  border: 1px solid #c9cde2 !important;
  border-radius: 6px !important;
  text-align: right;
  background: #fff !important;
}

.ei-currency {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--muted);
}

.ei-total-edit-box {
  margin-top: 14px;
  background: #efedfa;
  border: 1px solid #ded8f2;
  border-radius: 10px;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.ei-total-label {
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  color: var(--indigo);
  margin: 0 !important;
}

.ei-total-input {
  width: 110px !important;
  padding: 6px 10px !important;
  font-size: 1.05rem !important;
  font-weight: 800 !important;
  color: var(--indigo) !important;
  background: #ffffff !important;
  border: 1px solid #c7c1ea !important;
  border-radius: 6px !important;
  text-align: right;
}

.edit-item-row.is-removed {
  opacity: 0.5;
  background: #fdeeee;
  border-color: #f3cccc;
}

.edit-item-row.is-removed .ei-pick {
  text-decoration: line-through;
  color: #a63636;
}

.ei-btn-remove {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 8px;
  background: #fdeeee;
  color: #b23b3b;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.15s ease, transform 0.1s ease;
  margin-left: auto;
}

.ei-btn-remove:hover { background: #f9dddd; }

.ei-btn-remove:active { transform: scale(0.94); }

.reg-bank-box {
  margin: 18px 0;
  padding: 16px 20px;
  background: #f4f6fc;
  border: 1px solid #d4dbe9;
  border-left: 4px solid var(--teal);
  border-radius: 10px;
}

.reg-bank-title {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--indigo);
  font-size: 0.9rem;
  margin-bottom: 10px;
}

.reg-bank-title svg {
  color: var(--teal);
  flex: 0 0 auto;
}

.reg-bank-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.reg-bank-select {
  width: 100%;
  max-width: 520px;
  padding: 9px 12px;
  border: 1px solid #c7cfdf;
  border-radius: 8px;
  font-size: 0.9rem;
  font-family: inherit;
  background: #ffffff;
  color: var(--text);
  font-weight: 600;
}

.reg-bank-select:focus {
  outline: 2px solid var(--teal);
  border-color: transparent;
}

.reg-bank-preview {
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px dashed #dbe1ee;
  font-size: 0.86rem;
  color: #3b3f54;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.edit-item-new { border-style: dashed; border-color: #a9e3e9; background: #f2fbfc; }

.ei-price { font-weight: 700; color: var(--indigo); font-size: 0.82rem; text-align: right; white-space: nowrap; }

.ei-remove { font-size: 0.78rem; color: #b23b3b; white-space: nowrap; display: flex; gap: 4px; align-items: center; }

.mail-block { margin-bottom: 22px; }

/* ---------- Admin: konta bankowe ---------- */
.acc-row { align-items: center; }

.acc-number {
  font-weight: 800;
  letter-spacing: 0.03em;
  color: var(--indigo);
  font-size: 0.9rem;
  white-space: nowrap;
}

.acc-note { color: var(--muted); font-size: 0.8rem; margin-left: 10px; }

.acc-groups {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 6px;
}

.acc-group-check { padding: 7px 10px; font-size: 0.8rem; }

.acc-group-check span { font-size: 0.8rem; line-height: 1.4; }

.acc-block { margin-bottom: 22px; }

.reg-body {
  border-top: 1px solid var(--line);
  padding: 16px 18px 18px;
  background: #fbfbfe;
}

.reg-body h4 {
  color: var(--indigo);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 14px 0 8px;
}

.reg-body h4:first-child { margin-top: 0; }

.reg-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 6px 26px;
}

.reg-grid dl { margin: 0 0 8px; font-size: 0.86rem; }

.reg-grid dt {
  float: left;
  clear: left;
  width: 130px;
  color: var(--muted);
  font-weight: 600;
}

.reg-grid dd { margin: 0 0 4px 140px; word-break: break-word; }

.reg-items { width: 100%; border-collapse: collapse; font-size: 0.86rem; background: #fff; }

.reg-items th,
.reg-items td { border: 1px solid var(--line); padding: 7px 10px; text-align: left; }

.reg-items th { background: #efedfa; color: var(--indigo); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.04em; }

.reg-items .fee-right { text-align: right; font-weight: 700; }

.reg-items .fee-discount td { color: #1c7a6d; }

.reg-items .fee-total td { background: #efedfa; color: var(--indigo); font-weight: 800; }

.reg-consents { list-style: none; padding: 0; margin: 0; font-size: 0.84rem; display: grid; gap: 4px; }

.reg-consents .on { color: #1e7d5a; }

.reg-consents .off { color: #b23b3b; }

.reg-meta { color: var(--muted); font-size: 0.76rem; margin: 14px 0 12px; }

.reg-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: flex-end;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
}

.reg-status-form { display: flex; gap: 8px; align-items: center; }

.reg-status-form label {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--indigo);
}

.reg-status-form select {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 0.86rem;
  font-family: inherit;
  background: #fff;
  color: var(--text);
}

/* ---------- Zapisy: responsive ---------- */
@media (max-width: 640px) {
  .form-card { padding: 20px 16px; }

  .group-row { grid-template-columns: 1fr 1fr; }

  .group-row .grp-field:first-child { grid-column: 1 / -1; }

  .group-row .row-price { grid-column: 1; text-align: left; }

  .group-row .row-remove { grid-column: 2; grid-row: 3; justify-self: end; }

  .signup-head .btn { margin-left: 0; }

  .reg-total { margin-left: 0; }

  .reg-grid dd { margin-left: 0; }

  .reg-grid dt { float: none; width: auto; }

  .doc-link, .doc-soon { margin-left: 32px; }
}

/* ---------- Admin: platnosci miesieczne ---------- */
.pay-form { margin: 8px 0 12px; }

.pay-months {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(235px, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.pay-month {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #d8dfed;
  background: #fff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
  transition: all 0.2s ease;
}

.pay-month.is-paid {
  background: #e7f7f0;
  border-color: #aae0c7;
}

.pay-month.is-custom-fee {
  border-left: 4px solid #e67e22;
}

.pay-month.is-paid.is-custom-fee {
  border-left: 4px solid #1e7d5a;
}

.pay-month-check {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  cursor: pointer;
  margin: 0;
}

.pay-month-check input[type="checkbox"] {
  margin-top: 3px;
  cursor: pointer;
}

.pay-month.is-paid input { accent-color: #1e7d5a; }

.pay-month-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 0.88rem;
  line-height: 1.25;
}

.pay-paidat { display: block; font-size: 0.72rem; color: #1e7d5a; font-weight: 600; }

.pay-month-amount-row {
  border-top: 1px dashed #d5dbe9;
  padding-top: 6px;
  margin-top: 2px;
}

.pay-month-amt-view {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.pay-month-amt-val {
  font-size: 0.86rem;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.chip-custom-badge {
  background: #fdf3e7;
  color: #c05621;
  border: 1px solid #fbd38d;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 4px;
  text-transform: uppercase;
}

.chip-custom-star {
  color: #e67e22;
  font-weight: 900;
  font-size: 1.05rem;
  vertical-align: middle;
  cursor: help;
}

.btn-amt-edit-trigger {
  background: #f0f3fa;
  border: 1px solid #c9d3e6;
  border-radius: 6px;
  font-size: 0.74rem;
  font-weight: 700;
  color: #4a5568;
  padding: 3px 8px;
  cursor: pointer;
  transition: all 0.15s;
}

.btn-amt-edit-trigger:hover {
  background: #e2e8f0;
  color: #1a202c;
  border-color: #a0aec0;
}

.pay-month-amt-editor {
  margin-top: 4px;
}

.amt-input-inline {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.amt-input {
  width: 78px;
  height: 28px;
  padding: 0 6px;
  border: 1px solid #3182ce;
  border-radius: 6px;
  font-size: 0.84rem;
  font-weight: 700;
  font-family: inherit;
  background: #fff;
}

.amt-unit {
  font-size: 0.78rem;
  font-weight: 600;
  color: #718096;
}

/* Pigułki statystyk finansowych */
.part-stats-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}

.stat-pill {
  flex: 1 1 200px;
  background: #fff;
  border: 1px solid #dce2ee;
  border-radius: 12px;
  padding: 12px 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  box-shadow: 0 2px 6px rgba(49, 43, 99, 0.04);
}

.stat-pill-label {
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #6b7280;
}

.stat-pill-val {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--indigo);
  line-height: 1.1;
}

.stat-pill-sub {
  font-size: 0.75rem;
  color: #8c93a4;
}

.stat-pill-total {
  border-left: 4px solid var(--indigo);
}

.stat-pill-paid {
  border-left: 4px solid #1e7d5a;
  background: #f7fdfa;
}

.stat-pill-paid .stat-pill-val {
  color: #1e7d5a;
}

.stat-pill-unpaid {
  border-left: 4px solid #c05621;
  background: #fffbf7;
}

.stat-pill-unpaid .stat-pill-val {
  color: #c05621;
}

.pay-due-form {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  background: #fbfbfe;
  border: 1px dashed var(--line);
  border-radius: 8px;
  margin-bottom: 12px;
}

.acc-card summary { align-items: baseline; }

.acc-card summary::before { content: "+"; }

.acc-name { font-weight: 800; color: var(--indigo); }

.acc-dd-number { font-weight: 800; letter-spacing: 0.03em; font-size: 1rem; }

.chip-acc-count { background: #eef0f6; color: var(--indigo); }

.acc-detail {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 28px;
  align-items: flex-start;
}

.acc-info { flex: 1 1 340px; }

.acc-info dl { margin: 0; font-size: 0.88rem; }

.acc-info dt {
  float: left;
  clear: left;
  width: 140px;
  color: var(--muted);
  font-weight: 600;
  padding: 3px 0;
}

.acc-info dd { margin: 0 0 6px 150px; padding: 3px 0; word-break: break-all; }

.acc-info .chip-acc-group { margin-right: 6px; }

.acc-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: stretch;
  min-width: 120px;
}

/* ---------- Edytowalne podstrony (Cennik, Grafik, Regulamin) ---------- */
.page-hero {
  min-height: 0;
  padding: 14px 0;
}
.page-hero .hero-inner {
  min-height: 0;
}
.page-main {
  padding: 42px 0 64px;
}
.page-container {
  max-width: 880px;
}
.page-title {
  font-size: clamp(30px, 4.6vw, 44px);
  color: #312b63;
  margin: 0 0 18px;
  letter-spacing: -0.5px;
}
.page-content {
  background: #fff;
  border: 1px solid #e6e8f0;
  border-radius: 16px;
  padding: clamp(20px, 4vw, 40px);
  color: #2e2e3a;
  line-height: 1.65;
}
.page-content h2 {
  font-size: 20px;
  color: #312b63;
  margin: 26px 0 10px;
}
.page-content h2:first-child {
  margin-top: 0;
}
.page-content p, .page-content ol, .page-content ul {
  margin: 10px 0;
  padding-left: 22px;
}
.page-content li {
  margin: 6px 0;
}
.page-content a {
  color: #1c7a6d;
  font-weight: 600;
}
.page-lead {
  font-size: 17px;
  color: #4a4a63;
}
.page-note {
  font-size: 14px;
  color: #6a6a80;
  font-style: italic;
}
.page-table {
  width: 100%;
  border-collapse: collapse;
  margin: 14px 0 20px;
  font-size: 15px;
}
.page-table th, .page-table td {
  border: 1px solid #e0e3f0;
  padding: 10px 14px;
  text-align: left;
}
.page-table th {
  background: #EFEDFA;
  color: #312b63;
  font-weight: 700;
}
.page-table tr:nth-child(even) td {
  background: #fafbff;
}
.page-table td:last-child, .page-table th:last-child {
  white-space: nowrap;
  font-weight: 600;
  color: #1c7a6d;
}
.page-back {
  margin-top: 18px;
}
.page-back a {
  color: #5a5a72;
  text-decoration: none;
}
.page-back a:hover {
  color: #312b63;
}

/* ---------- Toast (zapis platnosci itp.) ---------- */
.ak-toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  background: #1c7a6d;
  color: #fff;
  padding: 11px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14.5px;
  box-shadow: 0 8px 28px rgba(28, 32, 74, 0.22);
  z-index: 9999;
  opacity: 1;
  transition: opacity 0.35s ease, transform 0.35s ease;
  pointer-events: none;
}
.ak-toast.is-hiding {
  opacity: 0;
  transform: translateX(-50%) translateY(10px);
}

/* ---------- Podpowiedz przy platnosciach ---------- */
.pay-hint {
  font-size: 13px;
  color: #6a6a80;
  margin: 4px 0 10px;
}

/* ---------- Visual WYSIWYG Editor dla podstron ---------- */
.wysiwyg-container {
  border: 1px solid #d4d7e8;
  border-radius: 12px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(49, 43, 99, 0.04);
  margin-top: 10px;
  margin-bottom: 20px;
}

.wysiwyg-mode-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 14px;
  background: #f6f7fb;
  border-bottom: 1px solid #e5e8f2;
  flex-wrap: wrap;
  gap: 8px;
}

.wysiwyg-modes {
  display: flex;
  gap: 6px;
}

.wysiwyg-mode-btn {
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  background: transparent;
  border: 1px solid transparent;
  color: #5c6074;
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: inherit;
}

.wysiwyg-mode-btn:hover {
  background: #ebedf5;
  color: var(--indigo);
}

.wysiwyg-mode-btn.active {
  background: #ffffff;
  border-color: #d1d5e6;
  color: var(--indigo);
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.wysiwyg-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
  padding: 8px 12px;
  background: #fafbfe;
  border-bottom: 1px solid #e5e8f2;
}

.tb-group {
  display: inline-flex;
  gap: 3px;
  align-items: center;
  padding-right: 8px;
  margin-right: 4px;
  border-right: 1px solid #e2e5f1;
}

.tb-group:last-child {
  border-right: none;
}

.tb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 32px;
  height: 32px;
  padding: 0 8px;
  background: #ffffff;
  border: 1px solid #dce0ee;
  border-radius: 6px;
  font-size: 0.83rem;
  font-weight: 700;
  color: #3b3f54;
  cursor: pointer;
  transition: all 0.12s ease;
  font-family: inherit;
}

.tb-btn:hover {
  background: #f0f2fb;
  border-color: var(--indigo);
  color: var(--indigo);
}

.tb-btn:active {
  background: #e2e6f7;
}

.tb-select {
  height: 32px;
  padding: 0 10px;
  border: 1px solid #dce0ee;
  border-radius: 6px;
  font-size: 0.83rem;
  font-weight: 600;
  background: #ffffff;
  color: #3b3f54;
  cursor: pointer;
  font-family: inherit;
}

.tb-btn svg {
  width: 15px;
  height: 15px;
}

.wysiwyg-quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px 14px;
  background: #f3f5fc;
  border-bottom: 1px solid #e3e6f2;
  align-items: center;
}

.qa-label {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--indigo);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-right: 4px;
}

.qa-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: #ffffff;
  border: 1px solid #d0d6eb;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--indigo);
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: inherit;
}

.qa-btn:hover {
  background: var(--teal);
  border-color: var(--teal);
  color: #ffffff;
  transform: translateY(-1px);
}

.wysiwyg-editor-area {
  min-height: 420px;
  max-height: 720px;
  overflow-y: auto;
  padding: 24px 28px;
  font-family: inherit;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
  outline: none;
}

.wysiwyg-editor-area:focus {
  outline: none;
}

.wysiwyg-html-area {
  width: 100%;
  min-height: 420px;
  padding: 18px 20px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 13px;
  line-height: 1.6;
  border: none;
  background: #1e1e2d;
  color: #f1f2f8;
  resize: vertical;
  outline: none;
  box-sizing: border-box;
}

.schedule-sync-box {
  background: #f4f8fa;
  border: 1px solid #cee5ee;
  border-radius: 12px;
  padding: 20px 24px;
  margin: 18px 0 24px;
}

.schedule-sync-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.schedule-sync-head h3 {
  margin: 0;
  font-size: 1.05rem;
  color: #1b6375;
  display: flex;
  align-items: center;
  gap: 8px;
}

.schedule-preview-wrap {
  background: #ffffff;
  border: 1px solid #e1e7ec;
  border-radius: 10px;
  padding: 20px 24px;
  margin-top: 14px;
}

.schedule-preview-wrap h2 {
  color: var(--indigo);
  font-size: 1.25rem;
  margin-top: 20px;
  margin-bottom: 10px;
}
.schedule-preview-wrap h2:first-child {
  margin-top: 0;
}
.schedule-preview-wrap .page-table {
  margin-bottom: 18px;
}

/* ---------- Formularz zapisow: dodatkowe pola uczestnika ---------- */
.extra-fields {
  margin-top: 4px;
  padding-top: 14px;
  border-top: 1px dashed #e3e6f0;
}

/* ---------- Formularz zapisow: zaznacz wszystkie zgody ---------- */
.consent-toolbar {
  display: flex;
  justify-content: flex-end;
  margin: -6px 0 14px;
}

.btn-consent-all {
  border: 1px solid #cdd3e6;
  background: #f4f5fb;
  color: #312b63;
  font-weight: 700;
  font-size: 0.86rem;
  padding: 8px 16px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-consent-all:hover {
  background: var(--indigo);
  border-color: var(--indigo);
  color: #fff;
}

/* ---------- Formularz zapisow: regulaminy grup ---------- */
.regulation-item {
  border: 1px solid #e3e6f0;
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 14px;
  background: #fbfbfe;
}

.regulation-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 10px;
  color: var(--indigo);
}

.regulation-body {
  max-height: 260px;
  overflow-y: auto;
  border: 1px solid #e6e8f0;
  border-radius: 10px;
  background: #fff;
  padding: 14px 18px;
  font-size: 0.9rem;
  color: #2e2e3a;
  line-height: 1.6;
  margin-bottom: 12px;
}

.regulation-body h2 {
  font-size: 1rem;
  color: #312b63;
  margin: 14px 0 6px;
}

.regulation-body h2:first-child { margin-top: 0; }

.regulation-body ol,
.regulation-body ul {
  margin: 6px 0;
  padding-left: 20px;
}

/* ---------- Strona glowna: sekcja O NAS ---------- */
.about-card {
  max-width: 860px;
  margin: 0 auto;
  box-shadow: 0 12px 34px rgba(49, 43, 99, 0.08);
}

.about-card .btn {
  display: inline-block;
}

/* ---------- Panel: zakladki nie zawijaja ikon/etykiet ---------- */
.tab-item {
  flex-shrink: 0;
  white-space: nowrap;
}

.tab-item.tab-item-icon-only {
  overflow: visible;
}

/* Atrybut [hidden] musi zawsze ukrywac elementy (nawet gdy klasa ustawia display). */
[hidden] { display: none !important; }

/* ---------- Zgody formularza (panel dynamiczny) ---------- */
.bundle-info {
  margin: 12px 0 14px;
  padding: 14px 18px;
  border: 1px solid #bfe9ed;
  border-left: 4px solid var(--teal);
  border-radius: 12px;
  background: linear-gradient(135deg, #f0fbfc 0%, #ffffff 70%);
  color: #2a2a35;
  font-size: 0.92rem;
  line-height: 1.6;
}
.bundle-info strong { color: var(--indigo); }

.consent-placeholder {
  padding: 14px 16px;
  border: 1px dashed #d9d5f0;
  border-radius: 12px;
  color: #6b6f80;
  font-size: 0.9rem;
  text-align: center;
}

.consent-item {
  padding: 10px 0;
  border-bottom: 1px dashed #eef0f5;
}
.consent-item:last-child { border-bottom: none; }
.consent-item .doc-link, .consent-item .doc-soon { display: inline-block; margin-left: 32px; margin-top: 4px; }
.consent-opt-chip {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 8px;
  border-radius: 999px;
  background: #eef2f6;
  color: #5a6577;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  vertical-align: middle;
}

/* ---------- Panel: zgody ---------- */
.consent-admin-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px 20px;
  margin: 14px 0;
  background: #fff;
}
.consent-admin-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  align-items: flex-end;
  margin-top: 10px;
}
.consent-admin-grid label { display: flex; flex-direction: column; gap: 5px; font-size: 0.8rem; font-weight: 700; color: #4a5368; }
.consent-admin-grid select, .consent-admin-grid input[type="number"] {
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  font-size: 0.88rem;
  background: #fff;
}
.consent-groups-box {
  margin-top: 12px;
  padding: 12px 14px;
  border: 1px dashed #d9d5f0;
  border-radius: 12px;
  background: #fafafd;
}
.consent-groups-title { font-size: 0.8rem; font-weight: 700; color: #4a5368; margin-bottom: 8px; }
.consent-groups-list { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.consent-groups-list label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #2a2a35;
  cursor: pointer;
}
.consent-file-note { font-size: 0.78rem; color: #6b6f80; margin-top: 4px; }

/* ---------- Podstrona "Dokumenty" ---------- */
.dok-list { list-style: none; padding: 0; margin: 14px 0 0; }
.dok-item {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px;
  padding: 14px 18px; margin-bottom: 10px;
  border: 1px solid var(--line); border-radius: 12px; background: #fff;
}
.dok-desc { font-weight: 700; color: var(--indigo); }
