@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,wght@0,400;0,600;0,700;1,500&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --bg: #fffcf4;
  --bg-alt: #fbf6e8;
  --ink: #1a1a1a;
  --ink-soft: #4a4a4a;
  --ink-faint: #7a7a7a;
  --gold: #a06a00;
  --gold-bg: #fff3d6;
  --gold-strong: #7a5000;
  --line: #e7ddc4;
  --card-bg: #ffffff;
  --header-bg: rgba(255, 252, 244, 0.92);
  --focus: #1a1a1a;
  --success: #1f7a3d;
  --danger: #b3261e;
  --veil-bg: rgba(255, 252, 244, 0.78);
  --veil-alt: rgba(251, 246, 232, 0.74);
  --veil-card: rgba(255, 255, 255, 0.88);
}

/* Jasny motyw jest domyślny. Ciemny tylko po świadomym wyborze (data-theme="dark"). */
:root[data-theme="dark"] {
  --bg: #16140f;
  --bg-alt: #1e1a12;
  --ink: #f3ede0;
  --ink-soft: #cfc6b0;
  --ink-faint: #a49a80;
  --gold: #e0b355;
  --gold-bg: #3a2e10;
  --gold-strong: #f0c877;
  --line: #362f20;
  --card-bg: #1f1b13;
  --header-bg: rgba(22, 20, 15, 0.92);
  --veil-bg: rgba(22, 20, 15, 0.78);
  --veil-alt: rgba(30, 26, 18, 0.74);
  --veil-card: rgba(31, 27, 19, 0.86);
}

:root[data-theme="light"] {
  --bg: #fffcf4;
  --bg-alt: #fbf6e8;
  --ink: #1a1a1a;
  --ink-soft: #4a4a4a;
  --ink-faint: #7a7a7a;
  --gold: #a06a00;
  --gold-bg: #fff3d6;
  --gold-strong: #7a5000;
  --line: #e7ddc4;
  --card-bg: #ffffff;
  --header-bg: rgba(255, 252, 244, 0.92);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }
body {
  margin: 0;
  background: transparent;
  color: var(--ink);
  font-family: 'Inter', system-ui, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

/* Animowane logo jako stały znak wodny — widoczny cały czas przy przewijaniu i na każdej zakładce */
.site-bg-video {
  position: fixed;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: min(680px, 90vw); height: min(680px, 90vw);
  object-fit: contain;
  z-index: 0;
  opacity: 0.22;
  pointer-events: none;
}
:root[data-theme="dark"] .site-bg-video { opacity: 0.28; }
@media (prefers-reduced-motion: reduce) { .site-bg-video { display: none; } }

/* Treść nad znakiem wodnym; sekcje półprzezroczyste, by logo delikatnie prześwitywało */
.site-footer, section, .admin-shell { position: relative; z-index: 1; }
section { background: var(--veil-bg); }
section.alt-bg { background: var(--veil-alt); }
.hero { background: transparent !important; }
/* Karty z lekkim prześwitem — logo widoczne również za treścią */
.achv-card, .price-card, .news-item, .event-card { background-color: var(--veil-card) !important; }
h1, h2, h3, .serif {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 600;
  line-height: 1.2;
  color: var(--ink);
}
a { color: var(--gold-strong); }
img { max-width: 100%; display: block; }
.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--header-bg);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-emblem {
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0;
  background: #f1efe8; border: 1.5px solid var(--gold); overflow: hidden;
}
.brand-emblem img, .brand-emblem .brand-video { width: 100%; height: 100%; object-fit: cover; display: block; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-family: 'Fraunces', serif; font-size: 1.15rem; color: var(--ink); }
.brand-text span { font-size: 0.72rem; color: var(--ink-faint); }

.nav-links { display: flex; align-items: center; gap: 22px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  text-decoration: none;
  color: var(--ink-soft);
  font-weight: 500;
  font-size: 0.95rem;
  text-align: center;
}
.nav-links a:hover, .nav-links a.active { color: var(--gold-strong); }

/* Animowane zakładki — subtelny obrót 3D po najechaniu */
.nav-item { display: inline-block; perspective: 600px; }
.nav-item > span {
  display: inline-block; text-align: center; line-height: 1.15;
  transition: transform 0.5s cubic-bezier(0.34, 1.4, 0.5, 1), color 0.25s ease;
  transform-style: preserve-3d;
}
.nav-item:hover > span { transform: rotateX(18deg) rotateY(-8deg) translateY(-1px); color: var(--gold-strong); }
.nav-item.spin > span { transform: rotateY(360deg); }
@media (prefers-reduced-motion: reduce) {
  .nav-item:hover > span, .nav-item.spin > span { transform: none; }
}
.nav-cta {
  background: var(--gold);
  color: #1a1400 !important;
  padding: 9px 20px;
  border-radius: 999px;
  font-weight: 700 !important;
  white-space: nowrap;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 6px 18px -6px var(--gold); }
.theme-toggle {
  background: none; border: 1px solid var(--line); border-radius: 50%;
  width: 36px; height: 36px; cursor: pointer; font-size: 1rem; line-height: 1;
  display: flex; align-items: center; justify-content: center; padding: 0;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.theme-toggle:hover { border-color: var(--gold); transform: rotate(-15deg); }
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 1.1rem;
  color: var(--ink);
  cursor: pointer;
}

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 10px 24px 20px;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 10px 0; }
  .nav-cta { display: inline-block; margin-top: 8px; }
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--bg-alt), var(--bg));
  padding: 72px 0 56px;
  text-align: center;
}
.hero .container { position: relative; z-index: 2; }
.hero .eyebrow {
  display: inline-block;
  background: var(--gold-bg);
  color: var(--gold-strong);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 20px;
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.4rem);
  max-width: 820px;
  margin: 0 auto 16px;
}
.hero .lede {
  max-width: 680px;
  margin: 0 auto;
  color: var(--ink-soft);
  font-size: 1.1rem;
}
.hero .cta-row { margin-top: 32px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.stat-row {
  display: flex;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
  margin-top: 48px;
}
.stat-row .stat { text-align: center; }
.stat-row .num { font-family: 'Fraunces', serif; font-size: 2.2rem; color: var(--gold-strong); }
.stat-row .label { font-size: 0.85rem; color: var(--ink-faint); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  font-size: 0.95rem;
  font-family: inherit;
}
.btn-primary { background: var(--ink); color: var(--bg); }
.btn-primary:hover { opacity: 0.9; }
.btn-outline { background: transparent; border-color: var(--line); color: var(--ink); }
.btn-outline:hover { border-color: var(--gold); color: var(--gold-strong); }
.btn-gold { background: var(--gold-bg); color: var(--gold-strong); }
.btn:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; }

/* Section */
section { padding: 72px 0; }
.section-head { text-align: center; margin-bottom: 44px; }
.section-head .kicker {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-strong);
  font-weight: 700;
}
.section-head h2 { font-size: clamp(1.6rem, 3.5vw, 2.3rem); margin: 10px 0 8px; }
.section-head p { color: var(--ink-soft); max-width: 620px; margin: 0 auto; }
.alt-bg { background: var(--bg-alt); }

/* Achievements */
.achv-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 40px; }
.achv-card { background: var(--card-bg); border: 1px solid var(--line); border-radius: 16px; padding: 28px; }
.achv-card .num { font-family: 'Fraunces', serif; font-size: 1.8rem; color: var(--gold-strong); }
.achv-card h3 { font-size: 1.15rem; margin: 8px 0 8px; }
.achv-card p { color: var(--ink-soft); font-size: 0.95rem; margin: 0; }
@media (max-width: 800px) { .achv-grid { grid-template-columns: 1fr; } }

/* Pricing */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 40px; align-items: start; }
.price-card {
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 30px;
  position: relative;
}
.price-card.popular { border-color: var(--gold); box-shadow: 0 8px 30px -12px rgba(160,106,0,0.35); }
.price-card .badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--gold-bg); color: var(--gold-strong);
  font-size: 0.72rem; font-weight: 700; padding: 5px 14px; border-radius: 999px;
}
.price-card .tag { color: var(--ink-faint); font-size: 0.85rem; }
.price-card h3 { margin: 6px 0 16px; font-size: 1.2rem; }
.price-card .amount { font-family: 'Fraunces', serif; font-size: 2.2rem; color: var(--ink); }
.price-card .per { color: var(--ink-faint); font-size: 0.85rem; margin-bottom: 18px; }
.price-card ul { list-style: none; margin: 0 0 22px; padding: 0; }
.price-card li { padding: 7px 0; border-top: 1px solid var(--line); color: var(--ink-soft); font-size: 0.92rem; }
.price-card .pay-buttons { display: flex; gap: 10px; flex-wrap: wrap; }
@media (max-width: 860px) { .pricing-grid { grid-template-columns: 1fr; } }

/* Donation */
.donate-box {
  max-width: 640px; margin: 40px auto 0; background: var(--card-bg); border: 1px solid var(--line);
  border-radius: 18px; padding: 32px; text-align: center;
}
.amount-row { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin: 22px 0; }
.amount-chip {
  border: 1px solid var(--line); background: var(--bg-alt); border-radius: 999px;
  padding: 10px 20px; font-weight: 600; cursor: pointer; font-family: inherit; font-size: 0.95rem; color: var(--ink);
}
.amount-chip.selected, .amount-chip:hover { border-color: var(--gold); color: var(--gold-strong); }
.p24-note { font-size: 0.8rem; color: var(--ink-faint); margin-top: 18px; }

/* Form */
.form-card {
  max-width: 640px; margin: 40px auto 0; background: var(--card-bg); border: 1px solid var(--line);
  border-radius: 18px; padding: 36px;
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }
label { display: block; font-size: 0.85rem; color: var(--ink-soft); margin-bottom: 6px; font-weight: 500; }
input, select, textarea {
  width: 100%; padding: 11px 14px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--bg); color: var(--ink); font-family: inherit; font-size: 0.95rem;
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--gold); border-color: var(--gold); }
.field { margin-bottom: 16px; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 0.82rem; color: var(--ink-faint); margin: 18px 0; }
.consent input { width: auto; margin-top: 3px; }
.form-note {
  background: var(--gold-bg); color: var(--gold-strong); border-radius: 12px; padding: 14px 16px;
  font-size: 0.85rem; margin-top: 18px;
}
.success-box { text-align: center; padding: 40px 20px; }
.success-box .check {
  width: 64px; height: 64px; border-radius: 50%; background: var(--gold-bg); color: var(--gold-strong);
  display: flex; align-items: center; justify-content: center; font-size: 1.8rem; margin: 0 auto 18px;
}

/* Goals */
.goals-list { columns: 2; gap: 24px; margin-top: 36px; }
.goal-item { break-inside: avoid; display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.goal-item .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); margin-top: 8px; flex-shrink: 0; }
.goal-item.done .dot { background: var(--success); }
@media (max-width: 700px) { .goals-list { columns: 1; } }

/* Events + carousel */
.events-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; margin-top: 40px; }
.event-card { background: var(--card-bg); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.carousel { position: relative; aspect-ratio: 4/3; background: var(--bg-alt); overflow: hidden; }
.carousel-track { display: flex; height: 100%; transition: transform 0.4s ease; }
.carousel-track img { width: 100%; height: 100%; object-fit: cover; flex-shrink: 0; cursor: zoom-in; }
.carousel-btn {
  position: absolute; top: 50%; transform: translateY(-50%); background: rgba(0,0,0,0.45); color: #fff;
  border: none; width: 34px; height: 34px; border-radius: 50%; cursor: pointer; font-size: 1rem;
}
.carousel-btn.prev { left: 10px; } .carousel-btn.next { right: 10px; }
.carousel-dots { position: absolute; bottom: 10px; left: 0; right: 0; display: flex; gap: 6px; justify-content: center; }
.carousel-dots span { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,0.6); }
.carousel-dots span.active { background: #fff; width: 18px; border-radius: 4px; }
.event-body { padding: 18px 20px; }
.event-body .date { font-size: 0.78rem; color: var(--gold-strong); font-weight: 600; }
.event-body h3 { font-size: 1.1rem; margin: 6px 0; }
.event-body p { color: var(--ink-soft); font-size: 0.9rem; margin: 0; }

/* Modal płatności */
.pay-modal {
  position: fixed; inset: 0; background: rgba(10,8,4,0.7); display: none;
  align-items: center; justify-content: center; z-index: 300; padding: 20px;
}
.pay-modal.open { display: flex; }
.pay-modal-card { max-width: 420px; width: 100%; max-height: 90vh; overflow-y: auto; }

/* News / Aktualności */
.news-list { display: grid; gap: 20px; margin-top: 40px; max-width: 760px; margin-left: auto; margin-right: auto; }
.news-item { background: var(--card-bg); border: 1px solid var(--line); border-radius: 16px; padding: 26px 28px; }
.news-item .news-date { font-size: 0.78rem; color: var(--gold-strong); font-weight: 600; margin-bottom: 6px; }
.news-item h3 { font-size: 1.3rem; margin: 0 0 12px; }
.news-item .news-body { color: var(--ink-soft); font-size: 0.95rem; line-height: 1.65; }

/* Animacje pojawiania sekcji (scroll reveal) */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: none; }
.reveal-stagger > * { opacity: 0; transform: translateY(22px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal-stagger.in > * { opacity: 1; transform: none; }
.reveal-stagger.in > *:nth-child(2) { transition-delay: 0.12s; }
.reveal-stagger.in > *:nth-child(3) { transition-delay: 0.24s; }
.reveal-stagger.in > *:nth-child(4) { transition-delay: 0.36s; }
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-stagger > * { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* „Wyłanianie się" sekcji z przycisku po kliknięciu w zakładkę */
@keyframes sectionEmerge {
  0% { transform: scale(0.94) translateY(10px); opacity: 0.4; }
  60% { transform: scale(1.01); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}
section.emerge > .container { animation: sectionEmerge 0.85s cubic-bezier(0.22, 1, 0.36, 1); }
@media (prefers-reduced-motion: reduce) { section.emerge > .container { animation: none; } }

/* Historia */
.story { max-width: 720px; margin: 0 auto; }
.story p { font-size: 1.05rem; line-height: 1.75; color: var(--ink-soft); margin: 0 0 18px; }
.story p strong { color: var(--ink); font-family: 'Fraunces', serif; font-size: 1.15rem; }
.story-audio { text-align: center; margin-top: 26px; }
#story-listen.playing { border-color: var(--gold); color: var(--gold-strong); background: var(--gold-bg); }

/* Karuzela galerii — coverflow w delikatnym półokręgu */
.gcar { display: flex; align-items: center; gap: 14px; margin-top: 40px; }
.gcar-viewport {
  flex: 1; position: relative; height: 360px;
  perspective: 1300px; overflow: hidden;
}
.gcar-track {
  position: absolute; inset: 0;
  transform-style: preserve-3d;
}
.gcar-track img {
  position: absolute; top: 50%; left: 50%;
  height: 260px; width: auto; max-width: 44%; border-radius: 14px;
  object-fit: cover; margin: 0;
  transform-origin: center center;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.6s ease, filter 0.6s ease;
  will-change: transform, opacity;
  box-shadow: 0 18px 44px -18px rgba(0,0,0,0.5);
  backface-visibility: hidden;
  cursor: pointer;
}
.gcar-track img.gcar-active { cursor: zoom-in; }
.gcar-btn {
  width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line);
  background: var(--card-bg); color: var(--ink); font-size: 1.5rem; cursor: pointer;
  flex-shrink: 0; transition: all 0.25s ease; line-height: 1; z-index: 5;
}
.gcar-btn:hover { background: var(--gold-bg); border-color: var(--gold); color: var(--gold-strong); transform: scale(1.08); }
@media (max-width: 700px) { .gcar-viewport { height: 260px; } .gcar-track img { height: 180px; max-width: 60%; } }
.gcar-hint { text-align: center; color: var(--ink-faint); font-size: 0.8rem; margin-top: 14px; }

/* Płynne pełnoekranowe powiększenie z karuzeli */
.gzoom {
  position: fixed; z-index: 400; border-radius: 14px; object-fit: contain;
  transition: all 0.45s cubic-bezier(0.22, 1, 0.36, 1); cursor: zoom-out;
  box-shadow: 0 30px 90px rgba(0,0,0,0.5); background: #0d0b07;
}
.gzoom-backdrop {
  position: fixed; inset: 0; background: rgba(10,8,4,0); z-index: 390;
  transition: background 0.45s ease; pointer-events: none;
}
.gzoom-backdrop.on { background: rgba(10,8,4,0.92); pointer-events: auto; }

/* Delikatny puls CTA w hero */
@keyframes ctaPulse { 0%,100% { box-shadow: 0 0 0 0 rgba(160,106,0,0.35); } 50% { box-shadow: 0 0 0 10px rgba(160,106,0,0); } }
.hero .btn-primary { animation: ctaPulse 2.8s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { .hero .btn-primary { animation: none; } }

/* Masonry gallery */
.masonry { columns: 3; column-gap: 14px; margin-top: 40px; }
.masonry img { width: 100%; margin-bottom: 14px; border-radius: 12px; cursor: zoom-in; break-inside: avoid; }
@media (max-width: 900px) { .masonry { columns: 2; } }
@media (max-width: 560px) { .masonry { columns: 1; } }

.lightbox {
  position: fixed; inset: 0; background: rgba(10,8,4,0.92); display: none;
  align-items: center; justify-content: center; z-index: 200; padding: 30px;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 100%; max-height: 90vh; border-radius: 8px; }
.lightbox-close {
  position: absolute; top: 20px; right: 24px; background: none; border: none; color: #fff;
  font-size: 2rem; cursor: pointer;
}

/* Sponsors / Partnerzy */
.partners-band { padding: 40px 0; background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.partners-label { text-align: center; font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold-strong); font-weight: 700; margin: 0 0 8px; }
.sponsor-row { display: flex; flex-wrap: wrap; gap: 40px; justify-content: center; align-items: center; margin-top: 22px; }
.sponsor-row img { height: 52px; width: auto; filter: grayscale(1); opacity: 0.75; transition: filter 0.3s ease, opacity 0.3s ease, transform 0.3s ease; }
.sponsor-row a:hover img { filter: none; opacity: 1; transform: scale(1.06); }
.btn-sm { padding: 8px 16px; font-size: 0.85rem; }

/* Footer */
.site-footer { background: var(--ink); color: var(--bg); padding: 56px 0 30px; }
:root[data-theme="dark"] .site-footer, @media (prefers-color-scheme: dark) { }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
.footer-logo { width: 84px; height: 84px; border-radius: 14px; margin-bottom: 12px; background: #f1efe8; padding: 6px; }
.site-footer h4 { font-family: 'Fraunces', serif; font-size: 1.2rem; margin: 0 0 12px; color: var(--bg); }
.site-footer p, .site-footer li { color: #cfc6ae; font-size: 0.9rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { padding: 5px 0; }
.site-footer a { color: #cfc6ae; text-decoration: none; }
.site-footer a:hover { color: var(--bg); }
.footer-bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.12); font-size: 0.8rem; color: #a89e83; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }

.badge-alert {
  background: #fff3d6; color: #7a5000; border: 1px solid #e6c67a;
  border-radius: 10px; padding: 10px 14px; font-size: 0.82rem; display: inline-flex; gap: 8px; align-items: center;
}
:root[data-theme="dark"] .badge-alert {
  background: #3a2e10; color: #f0c877; border-color: #5a4720;
}

/* Admin panel (shared minimal) */
.admin-shell { display: flex; min-height: 100vh; }
.admin-sidebar { width: 230px; background: var(--ink); color: var(--bg); padding: 24px 18px; flex-shrink: 0; }
.admin-sidebar h2 { color: var(--bg); font-size: 1.1rem; margin: 0 0 24px; }
.admin-sidebar a { display: block; color: #cfc6ae; text-decoration: none; padding: 9px 10px; border-radius: 8px; font-size: 0.9rem; margin-bottom: 2px; }
.admin-sidebar a:hover, .admin-sidebar a.active { background: rgba(255,255,255,0.1); color: #fff; }
.admin-main { flex: 1; padding: 32px 40px; max-width: 1100px; }
.admin-main h1 { margin-top: 0; }
.data-table { width: 100%; border-collapse: collapse; margin-top: 18px; background: var(--card-bg); }
.data-table th, .data-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); font-size: 0.88rem; }
.data-table th { color: var(--ink-faint); font-weight: 600; }
.status-pill { padding: 3px 10px; border-radius: 999px; font-size: 0.75rem; font-weight: 600; }
.status-pill.aktywny, .status-pill.oplacona { background: #dcf5e2; color: var(--success); }
.status-pill.oczekujacy, .status-pill.utworzona { background: var(--gold-bg); color: var(--gold-strong); }
.status-pill.odrzucony, .status-pill.blad, .status-pill.anulowana { background: #fbe1de; color: var(--danger); }
.login-shell { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: var(--bg-alt); }
.login-card { background: var(--card-bg); border: 1px solid var(--line); border-radius: 18px; padding: 40px; width: 100%; max-width: 380px; }
.flash-error { color: var(--danger); font-size: 0.85rem; margin-top: 10px; }
@media (max-width: 860px) {
  .admin-shell { flex-direction: column; }
  .admin-sidebar { width: 100%; display: flex; overflow-x: auto; gap: 4px; }
  .admin-sidebar h2 { display: none; }
  .admin-main { padding: 24px; }
}
