@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@500;600&family=DM+Sans:wght@400;500;600&display=swap');

:root {
  --bg: #f6f4f1;
  --surface: #ffffff;
  --text: #1a1816;
  --muted: #7a746d;
  --line: #e8e3dc;
  --brand: #8b7355;
  --brand-dark: #6b5740;
  --brand-soft: #f0ebe3;
  --err: #9b3d3d;
  --err-bg: #faf3f3;
  --pay: #a84444;
  --pay-dark: #8f3838;
  --pay-soft: #faf4f4;
  --pay-line: #ecd4d4;
  --ok: #3d6b52;
  --ok-bg: #f2f8f4;
  --radius: 12px;
  --radius-lg: 16px;
  --font: "DM Sans", system-ui, -apple-system, sans-serif;
  --serif: "Cormorant Garamond", Georgia, serif;
  --shadow: 0 8px 32px rgba(26, 24, 22, 0.06);
  --max: 640px;
  --brand-logo-h: 3.85rem;
  --shell-max: 1140px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  touch-action: pan-x pan-y;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.5;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  touch-action: pan-x pan-y;
  overscroll-behavior: none;
}

a { color: var(--brand-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

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

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: 0.01em;
}

/* —— Logo —— */
.logo-top,
.logo {
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text);
}
.logo-top { font-size: 1.35rem; text-align: center; }
.logo-top span, .logo span { color: var(--brand); font-weight: 500; }

.brand-logo {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  text-decoration: none !important;
  line-height: 0;
  flex-shrink: 0;
}
.brand-logo__img {
  display: block;
  height: var(--brand-logo-h, 3.85rem);
  width: auto;
  max-width: 14.75rem;
}
.brand-logo--header {
  justify-content: flex-start;
}
.brand-logo--header .brand-logo__img {
  height: var(--brand-logo-h, 3.85rem);
  max-width: 14.75rem;
}
.brand-logo--auth {
  display: flex;
  width: 100%;
  justify-content: center;
  align-items: center;
  margin: 0 auto 0.85rem;
}
.brand-logo--auth .brand-logo__img {
  height: var(--brand-logo-h, 3.85rem);
}

.app-top__brand {
  flex: 0 0 auto;
  min-width: 0;
  align-self: center;
  justify-content: flex-start;
  max-width: none;
}
.app-top__side {
  margin-left: auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.65rem;
  min-width: 0;
  flex-shrink: 1;
  max-width: none;
}
.app-top__brand .brand-logo__img {
  height: var(--brand-logo-h, 3.85rem);
  max-width: min(14.75rem, 100%);
  width: auto;
}
.app-top .brand-logo {
  cursor: default;
  pointer-events: none;
}

.app-top--logo-center .shell-bar__inner {
  justify-content: center;
}

.app-top--logo-center .app-top__brand {
  justify-content: center;
}

/* —— Auth shell (logowanie / rejestracja) —— */
.auth-shell {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: #f7f5f2;
}

.auth-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.75rem 1.25rem 2rem;
}

.auth-footer {
  flex-shrink: 0;
  border-top: 1px solid var(--line);
  padding: 1.25rem 1rem 1.75rem;
  padding-bottom: calc(1.75rem + env(safe-area-inset-bottom, 0));
  text-align: center;
}

.auth-footer p {
  margin: 0.3rem 0;
  font-size: 0.82rem;
  color: var(--muted);
}

.auth-footer a {
  color: var(--brand-dark);
  text-decoration: none;
}
.auth-footer a:hover { text-decoration: underline; }

.auth-footer__tagline {
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 0.5rem !important;
}

.app-top__logo {
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
  text-decoration: none;
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  line-height: 1.2;
}
.app-top__logo span { color: var(--brand); font-weight: 500; }

/* —— Checkout / billing —— */
.checkout-form {
  margin-top: 1.25rem;
  padding: 1.15rem 1.1rem 1.25rem;
}
.checkout-form__title {
  font-family: var(--serif);
  font-size: 1.15rem;
  margin: 0 0 0.25rem;
}
.checkout-form__hint {
  font-size: 0.78rem;
  color: var(--muted);
  margin: -0.25rem 0 0.5rem;
}
.checkout-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
}
.checkout-form__row > div label { margin-top: 0.75rem; }
.checkout-form__row > div:first-child label { margin-top: 1rem; }
.checkout-form__invoice {
  margin-top: 0.5rem;
  padding-top: 0.35rem;
  border-top: 1px dashed var(--line);
}
.checkout-form .label-opt {
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  color: var(--muted);
  font-size: 0.72rem;
}
@media (max-width: 480px) {
  .checkout-form__row { grid-template-columns: 1fr; gap: 0; }
}

.app-top__action {
  flex-shrink: 0;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 999px;
  padding: 0.42rem 0.8rem;
  font-size: 0.78rem;
  font-weight: 500;
  font-family: var(--font);
  color: var(--text);
  cursor: pointer;
  line-height: 1.2;
  transition: border-color 0.15s, background 0.15s;
}
.app-top__action:hover {
  border-color: var(--brand);
  background: var(--brand-soft);
}

/* —— Forms —— */
label {
  display: block;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 1rem 0 0.4rem;
  color: var(--muted);
}

input[type="email"],
input[type="password"],
input[type="text"],
input[type="date"],
input[type="file"],
textarea,
select {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font: inherit;
  background: var(--surface);
  color: var(--text);
  transition: border-color 0.15s, box-shadow 0.15s;
}

input[type="file"] {
  padding: 0.55rem;
  font-size: 0.88rem;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(139, 115, 85, 0.12);
}

textarea { resize: vertical; min-height: 72px; }

/* —— Buttons —— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  border: none;
  border-radius: 999px;
  padding: 0.8rem 1.25rem;
  font-family: var(--font);
  font-weight: 500;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s, opacity 0.15s;
  line-height: 1.2;
}

.btn--block { width: 100%; margin-top: 0.75rem; }
.btn--primary { background: var(--text); color: #faf9f7; }
.btn--primary:hover { background: #2e2b28; text-decoration: none; }
.btn--ghost {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--text);
}
.btn--ghost:hover { border-color: var(--brand); text-decoration: none; }
.btn--soft { background: var(--brand-soft); color: var(--brand-dark); }
.btn--soft:hover { background: #e8dfd3; text-decoration: none; }
.btn--danger { border-color: var(--err); color: var(--err); }
.btn--sm { padding: 0.45rem 0.85rem; font-size: 0.82rem; margin-top: 0; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }

.btn-row {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 0.75rem;
}
.btn-row .btn { flex: 1; min-width: 120px; margin-top: 0; }

/* —— Auth —— */
.auth-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.auth-shell .auth-page {
  min-height: auto;
  width: 100%;
  padding: 0;
}

.auth-card {
  width: min(420px, 100%);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
  box-shadow: var(--shadow);
}

.auth-card h1 {
  font-size: 1.65rem;
  margin: 0.75rem 0 0.35rem;
  text-align: center;
}

.auth-card .sub {
  text-align: center;
  color: var(--muted);
  margin: 0 0 1.25rem;
  font-size: 0.92rem;
}

.divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--muted);
  font-size: 0.78rem;
  margin: 1.25rem 0;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.divider::before, .divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.msg {
  padding: 0.7rem 0.9rem;
  border-radius: var(--radius);
  font-size: 0.88rem;
  margin-top: 0.75rem;
}
.msg--err { background: var(--err-bg); color: var(--err); }
.msg--ok { background: var(--ok-bg); color: var(--ok); }

.legal {
  font-size: 0.75rem;
  color: var(--muted);
  text-align: center;
  margin-top: 1.25rem;
  line-height: 1.5;
}
.auth-links { text-align: center; margin-top: 1rem; font-size: 0.88rem; }

/* —— Wizard —— */
.wizard-steps {
  display: flex;
  gap: 0.4rem;
  margin-bottom: 1.5rem;
}
.wizard-steps span {
  flex: 1;
  height: 3px;
  border-radius: 999px;
  background: var(--line);
  transition: background 0.2s;
}
.wizard-steps span.on { background: var(--brand); }

.suggestions { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.5rem; }
.chip {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  font-size: 0.78rem;
  font-family: var(--font);
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.chip:hover { border-color: var(--brand); background: var(--brand-soft); }

.plan-pick { display: grid; gap: 0.55rem; margin-top: 0.5rem; }
.plan-opt {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.9rem 1rem;
  cursor: pointer;
  background: var(--surface);
  transition: border-color 0.15s, background 0.15s;
}
.plan-opt.selected { border-color: var(--brand); background: var(--brand-soft); }
.plan-opt--disabled {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
  background: var(--bg);
}
.plan-opt__note {
  display: block;
  margin-top: 0.35rem;
  color: var(--err);
  font-size: 0.75rem;
  line-height: 1.35;
}
.plan-opt strong { display: block; font-family: var(--font); font-weight: 500; font-size: 0.92rem; }
.plan-opt small { color: var(--muted); font-size: 0.82rem; }

.check-row {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  margin-top: 1.25rem;
  font-size: 0.88rem;
  line-height: 1.45;
}
.check-row input { width: auto; margin-top: 0.15rem; accent-color: var(--brand); }

/* —— App shell —— */
.app-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding-bottom: calc(5.25rem + env(safe-area-inset-bottom));
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 0.65rem;
  margin-bottom: 0.75rem;
}
.admin-stat {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.75rem 0.5rem;
  text-align: center;
}
.admin-stat strong {
  display: block;
  font-size: 1.35rem;
  line-height: 1.2;
}
.admin-stat span {
  font-size: 0.72rem;
  color: var(--muted);
}
.admin-plan {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.85rem;
  margin-bottom: 0.75rem;
  background: var(--surface);
}
.admin-plan h4 { margin: 0 0 0.65rem; font-size: 0.95rem; }
.admin-plan__grid {
  display: grid;
  gap: 0.5rem;
}
@media (min-width: 520px) {
  .admin-plan__grid { grid-template-columns: 1fr 1fr; }
}

.guest-shell {
  padding-bottom: calc(5.25rem + env(safe-area-inset-bottom));
  overflow-x: hidden;
  position: relative;
  min-height: 100dvh;
}
.guest-shell--blocked .guest-main,
.guest-shell--blocked .guest-nav {
  pointer-events: none;
  user-select: none;
}

.guest-blocked {
  position: fixed;
  inset: 0;
  z-index: 45;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  padding-bottom: calc(1.5rem + env(safe-area-inset-bottom));
  background: rgba(120, 118, 114, 0.88);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.guest-blocked[hidden] { display: none; }
.guest-blocked__inner {
  max-width: 22rem;
  text-align: center;
}
.guest-blocked__title {
  margin: 0 0 0.75rem;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.65rem, 6vw, 2.25rem);
  font-weight: 600;
  line-height: 1.2;
  color: #fff;
  letter-spacing: 0.02em;
}
.guest-blocked__date {
  margin: 0.85rem 0 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.15rem, 4.5vw, 1.45rem);
  font-weight: 500;
  letter-spacing: 0.03em;
  color: rgba(255, 255, 255, 0.92);
}

.guest-blocked__text {
  margin: 0;
  font-size: clamp(1rem, 3.5vw, 1.15rem);
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.92);
}

.guest-page {
  overflow-x: hidden;
}

.guest-main {
  padding: 0.75rem 1rem 1.25rem;
  width: 100%;
  max-width: var(--max);
  overflow-x: hidden;
}

.guest-msg {
  margin-bottom: 0.75rem;
}
.guest-msg:empty { display: none; }

.guest-section .section__title {
  margin: 0 0 0.75rem;
}

.guest-section .section-head {
  margin-bottom: 0.75rem;
}
.guest-section .section-head .section__title {
  margin: 0;
}

.app-top--guest {
  padding-top: max(0.85rem, env(safe-area-inset-top));
  padding-bottom: 0.75rem;
}

.guest-hero {
  margin-bottom: 1rem;
  padding: 1.25rem 1.15rem;
  background: linear-gradient(145deg, var(--surface) 0%, var(--brand-soft) 100%);
  border-color: transparent;
}
.guest-hero__title {
  font-family: var(--serif);
  font-size: clamp(1.4rem, 5vw, 1.75rem);
  font-weight: 600;
  margin: 0 0 0.35rem;
  line-height: 1.2;
  word-break: break-word;
}
.guest-hero__meta {
  font-size: 0.82rem;
  color: var(--muted);
  margin: 0 0 0.35rem;
}
.guest-hero__access {
  font-size: 0.82rem;
  color: var(--brand-dark);
  margin: 0 0 0.5rem;
  line-height: 1.4;
  padding: 0.45rem 0.65rem;
  background: rgba(255, 255, 255, 0.55);
  border-radius: 8px;
  display: inline-block;
}
.guest-hero__access:empty { display: none; }
.guest-hero__access--wait { color: var(--brand-dark); background: var(--brand-soft); }
.guest-hero__access--closed { color: var(--err); background: var(--err-bg); }
.guest-hero__profile {
  font-size: 0.88rem;
  color: var(--brand-dark);
  margin: 0;
  line-height: 1.4;
}

.guest-empty {
  text-align: center;
  padding: 1.75rem 1.25rem;
  margin-bottom: 1.25rem;
}
.guest-empty__icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-size: 1.75rem;
  font-weight: 300;
  line-height: 56px;
}
.guest-empty__title {
  font-family: var(--serif);
  font-size: 1.2rem;
  margin: 0 0 0.4rem;
  font-weight: 600;
}
.guest-empty__sub {
  font-size: 0.88rem;
  color: var(--muted);
  margin: 0 0 1.15rem;
  line-height: 1.45;
}

.guest-notice {
  background: linear-gradient(145deg, #fff9f0 0%, var(--surface) 100%);
  border-color: rgba(180, 140, 90, 0.25);
  margin-bottom: 1rem;
  font-size: 0.88rem;
  line-height: 1.45;
}
.guest-notice strong {
  display: block;
  font-family: var(--serif);
  font-size: 0.95rem;
  margin-bottom: 0.35rem;
}
.guest-notice p { margin: 0; color: var(--muted); }
.guest-notice--warn {
  background: var(--err-bg);
  border-color: rgba(155, 61, 61, 0.2);
}
.guest-notice--warn strong { color: var(--err); }

.guest-tabs[hidden] { display: none; }
.guest-tab-panel[hidden] { display: none; }

.photo-grid__empty {
  grid-column: 1 / -1;
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted);
  padding: 1.25rem 0.5rem;
  line-height: 1.45;
  margin: 0;
}

.guest-profile {
  display: none;
}

/* —— Guest bottom nav —— */
.guest-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 25;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: end;
  gap: 0;
  padding: 0.45rem 0.75rem calc(0.5rem + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--line);
  box-shadow: 0 -4px 24px rgba(26, 24, 22, 0.08);
}
.guest-nav--hidden { display: none; }

.guest-nav__btn {
  justify-self: center;
  width: 100%;
  max-width: 5.75rem;
  min-height: 3.1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 0.28rem;
  padding: 0.35rem 0.25rem 0.2rem;
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 0.65rem;
  font-weight: 500;
  font-family: var(--font);
  letter-spacing: 0.02em;
  cursor: pointer;
  border-radius: 12px;
  -webkit-appearance: none;
  appearance: none;
  -webkit-tap-highlight-color: transparent;
  transition: color 0.15s, background 0.15s;
}
.guest-nav__btn:active { background: var(--brand-soft); color: var(--text); }
.guest-nav__btn.is-active {
  color: var(--brand-dark);
  background: var(--brand-soft);
}
.guest-nav__btn--disabled { opacity: 0.35; pointer-events: none; }

.guest-nav__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  opacity: 0.85;
}
.guest-nav__icon svg {
  width: 22px;
  height: 22px;
  display: block;
}
.guest-nav__btn.is-active .guest-nav__icon { opacity: 1; }

.guest-nav__fab-slot {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  min-height: 3.1rem;
  padding-bottom: 0.05rem;
}

.guest-nav__fab-btn {
  border: none;
  background: transparent;
  padding: 0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  flex-shrink: 0;
  margin-top: -1.35rem;
}
.guest-nav__fab-btn--disabled { opacity: 0.35; pointer-events: none; }
.guest-nav__fab {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--text);
  color: #faf9f7;
  font-size: 1.55rem;
  font-weight: 300;
  line-height: 1;
  box-shadow: 0 4px 16px rgba(26, 24, 22, 0.2);
}
.guest-nav__fab-btn:active .guest-nav__fab { transform: scale(0.96); }

.gallery-stack {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.gallery-stack__section { margin: 0; }
.gallery-stack__title {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 0.55rem;
}
.gallery-stack .photo-grid { margin: 0; }

.app-top {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(247, 245, 242, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(229, 224, 218, 0.9);
  padding-top: env(safe-area-inset-top, 0);
}

.app-top .shell-bar__inner {
  justify-content: space-between;
  gap: 0.5rem;
  overflow: visible;
}

.app-top__brand {
  flex: 0 1 auto;
  min-width: 0;
  max-width: 58%;
}

.app-top__side {
  flex: 1 1 auto;
  min-width: 0;
  max-width: 42%;
  justify-content: flex-end;
}

.app-top__back {
  font-size: 0.88rem;
  color: var(--muted);
  text-decoration: none;
  letter-spacing: 0.02em;
  flex-shrink: 0;
  white-space: nowrap;
}
.app-top__back:hover { color: var(--text); text-decoration: none; }

.app-top__meta {
  font-size: 0.75rem;
  color: var(--muted);
  text-align: right;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
  width: 100%;
  line-height: 1.2;
}

.app-main {
  padding: 1.25rem;
  max-width: var(--max);
  margin: 0 auto;
  width: 100%;
  flex: 1;
}

.page-title {
  margin: 0 0 1.25rem;
  font-size: clamp(1.35rem, 4vw, 1.65rem);
}

/* —— Bottom nav —— */
.app-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--line);
  box-shadow: 0 -8px 32px rgba(26, 24, 22, 0.08);
  padding-bottom: env(safe-area-inset-bottom, 0);
}

.app-nav__inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.15rem;
  width: 100%;
  margin: 0 auto;
  padding: 0.65rem 0.75rem;
}

.app-nav a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-align: center;
  padding: 0.5rem 0.35rem;
  border-radius: 12px;
  position: relative;
  transition: color 0.15s, background 0.15s;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.app-nav a:hover { text-decoration: none; color: var(--text); background: var(--brand-soft); }
.app-nav a.active {
  color: var(--brand-dark);
  font-weight: 600;
  background: var(--brand-soft);
}
.app-nav a.active::before { display: none; }

/* —— Cards & sections —— */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.15rem 1.25rem;
  margin-bottom: 0.75rem;
}

.section { margin-bottom: 1.5rem; }
.section-hint {
  font-size: 0.88rem;
  color: var(--muted);
  margin: -0.25rem 0 0.75rem;
  line-height: 1.45;
}
.section__title {
  font-family: var(--font);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 0.65rem;
}
.section__subtitle {
  font-family: var(--serif);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 0.5rem;
}

.event-card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.15rem 1.25rem;
  margin-bottom: 0.65rem;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.event-card:hover {
  border-color: var(--brand);
  box-shadow: var(--shadow);
  text-decoration: none;
}
.event-card h3 {
  margin: 0 0 0.2rem;
  font-size: 1.15rem;
  font-family: var(--serif);
}
.event-card .meta { color: var(--muted); font-size: 0.85rem; }
.event-card .hint {
  margin-top: 0.55rem;
  font-size: 0.82rem;
  color: var(--brand-dark);
}

.fab {
  position: fixed;
  left: 50%;
  bottom: calc(5.5rem + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--text);
  color: #faf9f7;
  border: none;
  font-size: 1.5rem;
  font-weight: 300;
  line-height: 1;
  box-shadow: 0 6px 20px rgba(26, 24, 22, 0.18);
  cursor: pointer;
  z-index: 15;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s, background 0.15s;
}
.fab:hover { background: #2e2b28; transform: translateX(-50%) scale(1.04); text-decoration: none; color: #faf9f7; }

.empty {
  text-align: center;
  color: var(--muted);
  padding: 2.5rem 1rem;
  font-size: 0.92rem;
}

/* —— QR —— */
.qr-block {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  text-align: center;
  margin: 0.5rem 0 0;
}
.qr-block__img {
  display: inline-block;
  border-radius: 8px;
  overflow: hidden;
  line-height: 0;
}
.qr-block__url {
  margin: 0.85rem 0 0;
  font-size: 0.72rem;
  color: var(--muted);
  word-break: break-all;
  line-height: 1.4;
}
.qr-img { display: block; border-radius: 6px; }

.link-box {
  background: var(--brand-soft);
  border-radius: var(--radius);
  padding: 0.85rem 1rem;
  font-size: 0.82rem;
  word-break: break-all;
  line-height: 1.45;
  margin: 0.5rem 0;
}

/* —— Moderation —— */
.pending-item {
  display: flex;
  gap: 0.65rem;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.65rem;
  margin-bottom: 0.5rem;
}
.pending-item img {
  width: 52px;
  height: 52px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
}
.pending-item__info {
  flex: 1;
  min-width: 0;
  font-size: 0.85rem;
}
.pending-item__info strong { display: block; font-weight: 500; }
.pending-item__actions {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  flex-shrink: 0;
}

/* —— Gallery —— */
.gallery-toolbar {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin: 1rem 0;
}
.gallery-toolbar .btn { flex: 1; min-width: 140px; margin-top: 0; }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 0.45rem;
}
@media (min-width: 480px) {
  .gallery-grid { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 0.55rem; }
}

.gallery-item {
  position: relative;
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
}
.gallery-item input {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 2;
  width: 18px;
  height: 18px;
  accent-color: var(--brand);
}
.gallery-item__media {
  position: relative;
  display: block;
}
.gallery-item img,
.gallery-item__media img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  transition: opacity 0.15s;
}
.gallery-item:has(input:checked) img,
.gallery-item:has(input:checked) .gallery-item__media img { opacity: 0.85; }

/* —— Event detail meta —— */
.event-meta {
  color: var(--muted);
  font-size: 0.88rem;
  margin: 0 0 1.5rem;
}

.guest-stats {
  text-align: center;
  font-size: 0.82rem;
  color: var(--brand-dark);
  margin: -0.5rem 0 1rem;
  letter-spacing: 0.02em;
}

.guest-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.guest-list li {
  display: flex;
  justify-content: space-between;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.88rem;
}
.guest-list li:last-child { border-bottom: none; }
.guest-list span { color: var(--muted); font-size: 0.82rem; }

/* —— Settings —— */
.settings-section { margin-top: 1.75rem; }
.settings-section h3 {
  font-family: var(--font);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 0.5rem;
}
.settings-section p {
  font-size: 0.88rem;
  color: var(--muted);
  margin: 0 0 0.75rem;
  line-height: 1.45;
}
.settings-section--danger h3 { color: var(--err); }

/* —— Player config —— */
.player-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1rem 1.15rem;
  margin-bottom: 0.75rem;
  background: var(--surface);
}
.player-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
  flex-wrap: wrap;
}
.player-card__head input[type="text"] {
  flex: 1;
  min-width: 140px;
  font-weight: 500;
}
.split-picker {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
  margin-bottom: 0.85rem;
}
.split-picker__btn {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font);
}
.split-picker__btn.is-active {
  background: var(--brand-soft);
  border-color: var(--brand);
  color: var(--brand-dark);
}
.player-slots {
  display: grid;
  gap: 0.55rem;
  margin-bottom: 0.85rem;
}
.player-slots label {
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 0.2rem;
}
.player-slots select {
  width: 100%;
}
.split-picker--wide .split-picker__btn {
  width: auto;
  min-width: 2.5rem;
  padding: 0 0.5rem;
  font-size: 0.7rem;
}
.player-source {
  margin-bottom: 0.85rem;
}
.player-source label {
  font-size: 0.78rem;
  color: var(--muted);
  display: block;
  margin-bottom: 0.35rem;
}
.player-source__row {
  display: grid;
  gap: 0.5rem;
}
@media (min-width: 480px) {
  .player-source__row {
    grid-template-columns: 1fr 1.4fr;
  }
}
.player-card__actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.split-preview {
  display: grid;
  gap: 3px;
  background: var(--line);
  border-radius: 8px;
  padding: 3px;
  margin-bottom: 0.85rem;
  min-height: 48px;
}
.split-preview--1 { grid-template: 1fr / 1fr; }
.split-preview--2 { grid-template: 1fr 1fr / 1fr 1fr; }
.split-preview--3 { grid-template: repeat(3, 1fr) / repeat(3, 1fr); }
.split-preview--4 { grid-template: repeat(3, 1fr) / repeat(4, 1fr); }
.split-preview span {
  background: var(--brand-soft);
  border-radius: 4px;
  min-height: 20px;
  font-size: 0.62rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-dark);
  padding: 0.2rem;
  text-align: center;
  line-height: 1.2;
}

.event-settings {
  display: grid;
  gap: 0.85rem;
}
.event-settings__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
}
@media (max-width: 480px) {
  .event-settings__row { grid-template-columns: 1fr; }
}
.event-settings__hint {
  font-size: 0.82rem;
  color: var(--muted);
  margin: 0;
  line-height: 1.45;
}
.event-settings__status {
  font-size: 0.88rem;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius);
  background: var(--brand-soft);
  color: var(--brand-dark);
  margin: 0;
}
.event-settings__status.is-active { background: var(--ok-bg); color: var(--ok); }
.event-settings__status.is-scheduled { background: #fff9f0; color: var(--brand-dark); }
.event-settings__status.is-expired { background: var(--err-bg); color: var(--err); }

.event-panel.is-hidden { display: none; }
.event-panel { margin-bottom: 1.5rem; }

.event-hub {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
  margin: 0 0 1.25rem;
}
.event-hub__btn {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.15rem;
  padding: 0.9rem 1rem;
  min-height: 4.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  -webkit-tap-highlight-color: transparent;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}
.event-hub__btn:hover {
  border-color: #c4b5a0;
  box-shadow: 0 6px 18px rgba(26, 24, 22, 0.07);
}
.event-hub__btn.is-active {
  border-color: var(--brand);
  background: var(--brand-soft);
  box-shadow: 0 6px 20px rgba(139, 115, 85, 0.14);
}
.event-hub__label {
  font-family: var(--serif);
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.2;
}
.event-hub__meta {
  font-size: 0.72rem;
  color: var(--muted);
  line-height: 1.35;
}
.event-hub__badge {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  min-width: 1.2rem;
  height: 1.2rem;
  padding: 0 0.35rem;
  border-radius: 999px;
  background: var(--pay);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.event-hub__btn--wide { grid-column: 1 / -1; }
@media (min-width: 560px) {
  .event-hub { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .event-hub__btn--wide { grid-column: 1 / -1; }
}

.event-disclosure {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  overflow: hidden;
}
.event-disclosure__summary {
  list-style: none;
  cursor: pointer;
  padding: 0.95rem 1.15rem;
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  user-select: none;
}
.event-disclosure__summary::-webkit-details-marker { display: none; }
.event-disclosure__summary::after {
  content: '▾';
  font-size: 0.85rem;
  color: var(--muted);
  transition: transform 0.2s ease;
}
.event-disclosure[open] .event-disclosure__summary::after {
  transform: rotate(180deg);
}
.event-disclosure__body {
  padding: 0 1.15rem 1.15rem;
  border-top: 1px solid var(--line);
}
.event-disclosure__body .event-settings {
  border: none;
  padding: 1rem 0 0;
  margin: 0;
  background: transparent;
}

.page-404 { text-align: center; }
.page-404 h1 { font-size: 1.75rem; margin-bottom: 0.5rem; }
.page-404 p { color: var(--muted); margin-bottom: 1.25rem; }

/* —— Responsive auth wizard —— */
@media (max-width: 480px) {
  .auth-card { padding: 1.5rem 1.25rem; }
  .auth-page[style*="flex-start"] { padding-top: 1.25rem; }

  .app-top__brand {
    max-width: 52%;
  }
  .app-top__brand .brand-logo__img {
    height: 2.85rem;
    max-width: 100%;
    width: auto;
  }
  .app-top__side {
    flex: 1 1 auto;
    min-width: 5.5rem;
    max-width: 48%;
  }
  .app-top__action {
    padding: 0.38rem 0.7rem;
    font-size: 0.72rem;
  }
  .app-top__meta {
    font-size: 0.68rem;
  }
  .app-top__back {
    font-size: 0.82rem;
  }
}

@media (min-width: 768px) {
  .app-main { padding: 1.75rem 1.5rem; }
  .qr-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }
  .app-nav {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    width: min(420px, calc(100% - 2rem));
    bottom: 1rem;
    border-radius: 20px;
    border: 1px solid var(--line);
    box-shadow: 0 12px 40px rgba(26, 24, 22, 0.12);
    padding-bottom: 0;
  }
  .app-nav__inner {
    padding: 0.65rem 0.85rem;
  }
  .guest-nav {
    left: 50%;
    transform: translateX(-50%);
    max-width: 420px;
    bottom: 0.75rem;
    border-radius: 18px;
    border: 1px solid var(--line);
    box-shadow: 0 8px 28px rgba(26, 24, 22, 0.1);
  }
  .guest-shell {
    padding-bottom: calc(5.75rem + env(safe-area-inset-bottom));
  }
}

/* —— Guest hub —— */
.guest-add { margin-bottom: 1rem; }
.file-pick { display: block; cursor: pointer; }
.file-pick .btn { pointer-events: none; }
.btn--disabled { opacity: 0.45; pointer-events: none; }

.preview-panel__img-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  background: #000;
  margin-bottom: 1rem;
  line-height: 0;
  position: relative;
  min-height: 120px;
}
.preview-panel__img-wrap img {
  width: 100%;
  max-height: 360px;
  object-fit: contain;
}
.preview-heic-note {
  margin: 0;
  padding: 2rem 1rem;
  text-align: center;
  font-size: 0.88rem;
  color: #ccc;
  line-height: 1.45;
  background: #1a1816;
}

.sheet__panel input,
.sheet__panel textarea {
  font-size: 16px;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
  width: 100%;
}
@media (min-width: 480px) {
  .photo-grid {
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  }
}
.photo-thumb {
  margin: 0;
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
}
.photo-thumb--tap {
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.photo-thumb--tap:active img {
  opacity: 0.92;
}
.photo-thumb img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
}
.photo-thumb__media {
  position: relative;
  overflow: hidden;
}
.photo-thumb__media img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
}
.photo-thumb figcaption {
  font-size: 0.72rem;
  color: var(--muted);
  padding: 0.35rem 0.5rem;
  line-height: 1.3;
}
.photo-thumb__guest {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.4rem 0.45rem 0.35rem;
  font-size: 0.68rem;
  font-weight: 600;
  color: #fff;
  line-height: 1.2;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.72) 100%);
  pointer-events: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.photo-badge {
  position: absolute;
  top: 6px;
  left: 6px;
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.2rem 0.45rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.92);
}
.photo-badge--ok { color: var(--ok); }
.photo-badge--wait { color: var(--brand-dark); }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10, 9, 8, 0.94);
  padding: env(safe-area-inset-top) 0.75rem env(safe-area-inset-bottom);
}
.lightbox[hidden] { display: none; }
.lightbox__inner {
  width: 100%;
  max-width: 720px;
  text-align: center;
}
.lightbox__inner img {
  max-width: 100%;
  max-height: min(78vh, 720px);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  display: block;
  margin: 0 auto;
}
.lightbox__caption {
  margin: 0.75rem 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.85rem;
  line-height: 1.4;
}
.lightbox__close {
  position: absolute;
  top: calc(0.75rem + env(safe-area-inset-top));
  right: 0.75rem;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
}
.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.lightbox__nav[hidden] { display: none; }
.lightbox__nav--prev { left: 0.65rem; }
.lightbox__nav--next { right: 0.65rem; }
.lightbox__counter {
  margin: 0.5rem 0 0;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.82rem;
}
.lightbox__counter[hidden] { display: none; }

.gallery-manage {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
  gap: 0.5rem;
}
.gallery-manage__item {
  position: relative;
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
}
.gallery-manage__item img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
}
.gallery-manage__del {
  position: absolute;
  top: 4px;
  right: 4px;
  border: none;
  border-radius: 999px;
  padding: 0.2rem 0.45rem;
  font-size: 0.62rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  background: rgba(255, 255, 255, 0.95);
  color: var(--err);
  cursor: pointer;
}

/* legacy — unused */
.guest-fab { display: none; }

.sheet {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.sheet[hidden] { display: none; }
.sheet__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(26, 24, 22, 0.45);
}
.sheet__panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  overflow-x: hidden;
  background: var(--surface);
  border-radius: 20px 20px 0 0;
  padding: 1.5rem 1.25rem calc(1.5rem + env(safe-area-inset-bottom));
  box-shadow: 0 -12px 40px rgba(26, 24, 22, 0.15);
}
.sheet__panel label,
.sheet__panel textarea,
.sheet__panel input {
  display: block;
  width: 100%;
  max-width: 100%;
}
.sheet__panel--center { text-align: center; }
.sheet__sub {
  font-size: 0.88rem;
  color: var(--muted);
  margin: 0 0 1rem;
  line-height: 1.45;
}

@media (min-width: 560px) {
  .sheet { align-items: center; padding: 1rem; }
  .sheet__panel { border-radius: var(--radius-lg); max-height: 85vh; }
}

.event-card-rich {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  margin-bottom: 0.65rem;
  overflow: hidden;
}
.event-card-rich--unpaid {
  border-color: var(--pay-line);
  box-shadow: 0 2px 12px rgba(143, 56, 56, 0.06);
}
.event-card-rich__body {
  display: block;
  padding: 0;
}
.event-card-rich__link {
  display: flex;
  align-items: stretch;
  gap: 0.75rem;
  padding: 1rem 1.15rem 0.65rem;
  text-decoration: none;
  color: inherit;
}
.event-card-rich__link:hover { text-decoration: none; }
.event-card-rich__pay-row {
  padding: 0.7rem 1.15rem 0.95rem;
  border-top: 1px solid var(--pay-line);
  background: var(--pay-soft);
}
.pay-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.75rem;
}
.pay-strip__text {
  flex: 1;
  min-width: 8rem;
}
.pay-strip__label {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--pay-dark);
  line-height: 1.2;
}
.pay-strip__hint {
  display: block;
  margin-top: 0.12rem;
  font-size: 0.76rem;
  color: var(--muted);
  line-height: 1.35;
}
.event-card-rich__pay-row .btn--pay {
  flex-shrink: 0;
  margin-left: auto;
}
.event-card-rich__info { flex: 1; min-width: 0; }
.event-card-rich__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.2rem;
}
.event-card-rich__head h3 {
  margin: 0;
  font-size: 1.15rem;
  font-family: var(--serif);
}
.event-card-rich__qr {
  flex-shrink: 0;
  width: 96px;
  height: 96px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #fff;
}
.event-card-rich__qr img { display: block; width: 100%; height: 100%; }

.status-badge {
  flex-shrink: 0;
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.2rem 0.45rem;
  border-radius: 999px;
}
.status-badge--ok { background: #e8f5ec; color: #2d6a3e; }
.status-badge--verified {
  background: #e8f5ec;
  color: #2d6a3e;
  font-weight: 600;
}
.status-badge--wait { background: var(--brand-soft); color: var(--brand-dark); }
.status-badge--closed { background: #f3ece8; color: #8b4513; }
.status-badge--unpaid,
.status-badge--pay {
  background: var(--pay-soft);
  color: var(--pay-dark);
  border: 1px solid var(--pay-line);
}

.meta-unpaid {
  color: var(--pay-dark);
  font-weight: 600;
}
.meta-paid {
  color: var(--ok);
  font-weight: 500;
}

.section-head__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
}

.photo-thumb { position: relative; }
.photo-thumb--select.is-selected {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}
.photo-thumb__check {
  position: absolute;
  top: 6px;
  left: 6px;
  z-index: 2;
}
.photo-thumb__check input { position: absolute; opacity: 0; }
.photo-thumb__check span {
  display: block;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  border: 2px solid #fff;
  background: rgba(0,0,0,0.35);
  box-shadow: 0 1px 4px rgba(0,0,0,0.2);
}
.photo-thumb__check input:checked + span {
  background: var(--brand);
  border-color: var(--brand);
}

.guest-dl {
  margin-bottom: 1rem;
  padding: 1rem 1.1rem;
}
.guest-dl__title {
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0 0 0.35rem;
  color: var(--text);
}
.guest-dl__hint {
  margin: 0 0 0.85rem !important;
}
.guest-dl label {
  display: block;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0.65rem 0 0.35rem;
}
.guest-dl label:first-of-type { margin-top: 0; }
.guest-dl__select,
.guest-dl__input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.65rem 0.75rem;
  font: inherit;
  font-size: 0.92rem;
  background: var(--surface);
  color: var(--text);
}
.guest-dl__select:focus,
.guest-dl__input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-soft);
}
.guest-dl .btn { margin-top: 0.85rem; }

.lightbox__download {
  display: inline-block;
  margin-top: 1rem;
  color: var(--text);
}

.table-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
.table-card-preview {
  margin: 0;
  min-width: 0;
}
.table-card-preview__frame {
  aspect-ratio: 800 / 520;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 8px 22px rgba(26, 24, 22, 0.07);
  background: #f7f5f2;
  display: flex;
  align-items: center;
  justify-content: center;
}
.table-card-preview__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.table-card-preview__loading {
  width: 1.75rem;
  height: 1.75rem;
  border: 2px solid var(--line);
  border-top-color: var(--brand);
  border-radius: 50%;
  animation: table-card-spin 0.7s linear infinite;
}
.table-card-preview__err {
  font-size: 0.75rem;
  color: var(--muted);
  text-align: center;
  padding: 1rem;
  margin: 0;
}
@keyframes table-card-spin {
  to { transform: rotate(360deg); }
}
.table-card-preview__label {
  font-size: 0.72rem;
  text-align: center;
  margin: 0.5rem 0 0.35rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
@media (max-width: 640px) {
  .table-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; }
}

.admin-period {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 1rem;
}
.admin-charts {
  display: grid;
  gap: 1rem;
}
@media (min-width: 640px) {
  .admin-charts { grid-template-columns: 1fr 1fr; }
}
.admin-chart-wrap__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}
.admin-chart-wrap h4 {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
}
.admin-chart-wrap__total {
  font-size: 0.72rem;
  color: var(--muted);
  font-weight: 500;
}
.admin-chart {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 140px;
  padding: 0.35rem 0.25rem 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.5);
  overflow-x: auto;
}
.admin-chart__col {
  flex: 1 0 18px;
  min-width: 18px;
  max-width: 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  justify-content: flex-end;
}
.admin-chart__val {
  font-size: 0.55rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.15rem;
  min-height: 0.75rem;
}
.admin-chart__bar {
  width: 100%;
  max-width: 20px;
  background: linear-gradient(180deg, var(--brand) 0%, #8b7355 100%);
  border-radius: 4px 4px 2px 2px;
  min-height: 4px;
}
.admin-chart__label {
  font-size: 0.5rem;
  color: var(--muted);
  margin-top: 0.25rem;
  white-space: nowrap;
  transform: rotate(-45deg);
  transform-origin: top center;
  height: 1.5rem;
}
.admin-chart__label--hide {
  visibility: hidden;
}

.admin-chart--mb {
  position: relative;
}

.admin-chart__limit {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: rgba(196, 74, 58, 0.75);
  z-index: 2;
  pointer-events: none;
}

.admin-chart__bar--storage {
  background: linear-gradient(180deg, #8b6914 0%, #c4a035 100%);
}

.admin-disk {
  padding: 1rem 1.05rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.55);
}

.admin-disk__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.88rem;
  color: var(--muted);
}

.admin-disk__row strong {
  color: var(--text);
  font-size: 0.95rem;
}

.admin-disk__meter {
  margin-top: 0.45rem;
  height: 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.06);
  overflow: hidden;
}

.admin-disk__fill {
  height: 100%;
  border-radius: 999px;
  min-width: 0;
  transition: width 0.25s ease;
}

.admin-disk__fill--disk {
  background: linear-gradient(90deg, #6b5740, #9a7b55);
}

.admin-disk__fill--uploads {
  background: linear-gradient(90deg, #8b6914, #c4a035);
}

.admin-disk__meta {
  margin: 0.4rem 0 0;
  font-size: 0.78rem;
  color: var(--muted);
}

.admin-disk__meta strong {
  color: var(--text);
}
.admin-email-template {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1rem;
  margin-bottom: 1rem;
  background: rgba(255, 255, 255, 0.55);
}
.admin-email-template h4 {
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
}
.admin-email-template label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.82rem;
}
.admin-email-template textarea {
  min-height: 4.5rem;
  font-family: inherit;
}
.admin-email-preview {
  margin-top: 0.75rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.75rem;
  background: #fff;
  max-height: 280px;
  overflow: auto;
  font-size: 0.82rem;
}
.admin-client-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.admin-cal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}
.admin-cal__weekdays,
.admin-cal__grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
}
.admin-cal__weekdays span {
  font-size: 0.65rem;
  text-align: center;
  color: var(--muted);
  padding: 0.25rem 0;
}
.admin-cal__cell {
  min-height: 64px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.2rem;
  background: var(--surface);
  font-size: 0.62rem;
}
.admin-cal__cell--empty { background: transparent; border-color: transparent; }
.admin-cal__cell.has-events { background: var(--brand-soft); }
.admin-cal__day { font-weight: 600; display: block; margin-bottom: 0.15rem; }
.admin-cal__ev {
  display: block;
  position: relative;
  background: #fff;
  border-radius: 4px;
  padding: 0.1rem 0.2rem;
  margin-top: 0.1rem;
  white-space: nowrap;
  overflow: visible;
  text-overflow: ellipsis;
  cursor: pointer;
  border: none;
  width: 100%;
  text-align: left;
  font: inherit;
  color: inherit;
}
.admin-cal__ev:hover,
.admin-cal__ev:focus-visible {
  background: #fff;
  box-shadow: 0 0 0 1px var(--brand);
  outline: none;
}
.admin-cal__ev-tip {
  display: none;
  position: absolute;
  left: 0;
  bottom: calc(100% + 4px);
  z-index: 20;
  min-width: 10rem;
  max-width: 14rem;
  padding: 0.45rem 0.55rem;
  background: #1a1816;
  color: #f6f4f1;
  border-radius: 8px;
  font-size: 0.62rem;
  line-height: 1.35;
  white-space: normal;
  box-shadow: 0 8px 24px rgba(22, 21, 20, 0.22);
  pointer-events: none;
}
.admin-cal__ev:hover .admin-cal__ev-tip,
.admin-cal__ev:focus .admin-cal__ev-tip {
  display: block;
}
.admin-cal__ev-tip strong {
  display: block;
  font-weight: 600;
  margin-bottom: 0.15rem;
}
.admin-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 1rem;
  background: rgba(22, 21, 20, 0.45);
}
.admin-modal.hidden { display: none; }
.admin-modal__panel {
  width: min(100%, 520px);
  max-height: min(88vh, 720px);
  overflow: auto;
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 1.15rem 1.15rem 1.25rem;
  box-shadow: var(--shadow);
}
.admin-modal__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}
.admin-modal__head h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.25rem;
}
.admin-modal__close {
  border: none;
  background: transparent;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  color: var(--muted);
  padding: 0.15rem 0.35rem;
}
.admin-modal__grid {
  display: grid;
  gap: 0.45rem;
  font-size: 0.88rem;
  margin-bottom: 1rem;
}
.admin-modal__grid dt {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin: 0;
}
.admin-modal__grid dd {
  margin: 0 0 0.35rem;
}
.admin-planned-list {
  display: grid;
  gap: 0.65rem;
}
.admin-planned-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.85rem 0.95rem;
  background: var(--surface);
  cursor: pointer;
  text-align: left;
  width: 100%;
  font: inherit;
  color: inherit;
}
.admin-planned-card:hover {
  border-color: var(--brand);
  box-shadow: 0 4px 16px rgba(26, 24, 22, 0.06);
}
.admin-planned-card__head {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: flex-start;
  margin-bottom: 0.35rem;
}
.admin-planned-card__head strong {
  font-family: var(--serif);
  font-size: 1.05rem;
}
.admin-planned-card__meta {
  font-size: 0.82rem;
  color: var(--muted);
}
.admin-cal__ev--flip {
  background: #fff3e6;
  border-left: 2px solid #c87828;
}
.admin-cal__flip {
  color: #2563eb;
  font-weight: 700;
  font-size: 0.72rem;
}
.btn--pay {
  background: var(--pay-dark);
  color: #fff;
  border: none;
  font-weight: 600;
  border-radius: 999px;
  box-shadow: 0 2px 10px rgba(143, 56, 56, 0.2);
  transition: background 0.15s ease, box-shadow 0.15s ease;
}
.btn--pay:hover {
  background: var(--pay);
  box-shadow: 0 3px 14px rgba(143, 56, 56, 0.28);
  text-decoration: none;
  color: #fff;
}
.event-card-rich__actions {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
}
.event-card-rich__pay { white-space: nowrap; }

/* Pay alert & payment cards */
.pay-alert {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 0.95rem 1rem;
  margin-bottom: 1rem;
  background: var(--pay-soft);
  border: 1px solid var(--pay-line);
  border-radius: var(--radius);
}
.pay-alert__dot {
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  margin-top: 0.35rem;
  border-radius: 50%;
  background: var(--pay-dark);
  box-shadow: 0 0 0 3px rgba(143, 56, 56, 0.15);
}
.pay-alert__body { flex: 1; min-width: 0; }
.pay-alert__title {
  margin: 0 0 0.2rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--pay-dark);
}
.pay-alert__text {
  margin: 0;
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.45;
}
.pay-alert .btn--pay { margin-top: 0.65rem; }

.pay-summary {
  padding: 1.1rem 1.15rem;
  margin: 1rem 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.pay-summary__plan {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.15rem;
}
.pay-summary__amount {
  margin: 0.35rem 0 0.5rem;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text);
}
.pay-summary__status {
  margin: 0;
  font-size: 0.82rem;
}
.pay-summary__status.is-unpaid { color: var(--pay-dark); font-weight: 500; }

.pay-methods {
  margin: 1rem 0 0.25rem;
}
.pay-methods__title {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 0.55rem;
}
.pay-methods__hint {
  font-size: 0.78rem;
  color: var(--muted);
  margin: 0 0 0.65rem;
  line-height: 1.4;
}
.pay-methods__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(84px, 1fr));
  gap: 0.45rem;
  max-height: 16rem;
  overflow: auto;
  padding: 0.15rem;
}
.pay-method {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  padding: 0.45rem 0.35rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  cursor: pointer;
  font: inherit;
  color: inherit;
  min-height: 4.5rem;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.pay-method:hover {
  border-color: #c4b5a0;
}
.pay-method.is-selected {
  border-color: var(--brand);
  box-shadow: 0 0 0 2px var(--brand-soft);
}
.pay-method img {
  width: 2.5rem;
  height: 1.5rem;
  object-fit: contain;
}
.pay-method__name {
  font-size: 0.62rem;
  line-height: 1.2;
  text-align: center;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.pay-methods__empty {
  font-size: 0.82rem;
  color: var(--muted);
  margin: 0;
  padding: 0.5rem 0;
}

.pay-methods__blik {
  margin-bottom: 0.85rem;
}
.pay-methods__blik-label {
  margin: 0 0 0.4rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand);
}
.pay-method--blik {
  width: 100%;
  flex-direction: row;
  justify-content: flex-start;
  gap: 0.75rem;
  min-height: auto;
  padding: 0.85rem 1rem;
  border-width: 2px;
  border-color: #1a1816;
  background: linear-gradient(135deg, #fff 0%, #faf8f5 100%);
}
.pay-method--blik:hover {
  border-color: var(--brand);
  box-shadow: 0 4px 16px rgba(107, 87, 64, 0.12);
}
.pay-method--blik.is-selected {
  border-color: var(--brand);
  background: var(--brand-soft);
  box-shadow: 0 0 0 3px rgba(107, 87, 64, 0.15);
}
.pay-method--blik img {
  width: 3.25rem;
  height: 2rem;
}
.pay-method__blik-text {
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #1a1816;
}
.pay-method--blik .pay-method__name {
  font-size: 0.85rem;
  font-weight: 600;
  color: #1a1816;
  text-align: left;
  -webkit-line-clamp: 1;
}

.admin-p24-methods__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.5rem;
}
.admin-p24-methods {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.4rem;
  max-height: 18rem;
  overflow: auto;
  padding: 0.25rem;
  border: 1px solid var(--line, #e8e3dc);
  border-radius: var(--radius, 10px);
  background: #faf8f5;
}
.admin-p24-method {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.5rem;
  border-radius: 8px;
  font-size: 0.78rem;
  cursor: pointer;
  background: #fff;
  border: 1px solid #ebe6df;
}
.admin-p24-method input {
  flex-shrink: 0;
}
.admin-p24-method img {
  width: 2rem;
  height: 1.25rem;
  object-fit: contain;
  flex-shrink: 0;
}
.admin-p24-method span {
  line-height: 1.25;
}

.payment-row {
  padding: 0.9rem 1rem;
  margin-bottom: 0.55rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.payment-row--pending {
  border-color: var(--pay-line);
  background: linear-gradient(180deg, var(--pay-soft) 0%, var(--surface) 100%);
}
.payment-row__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
}
.payment-row__head strong {
  font-family: var(--serif);
  font-size: 1.02rem;
  font-weight: 600;
}
.payment-row .meta { margin-top: 0.25rem; }
.payment-row .btn--pay { margin-top: 0.65rem; }
.payment-row .btn--ghost.btn--sm { margin-top: 0.5rem; margin-right: 0.35rem; }

.section--locked { opacity: 0.72; }
.section--locked .qr-block--disabled {
  filter: grayscale(1);
  opacity: 0.55;
  pointer-events: none;
}
.section--locked input:not([disabled]),
.section--locked select,
.section--locked button:not([disabled]) {
  pointer-events: auto;
}
.event-card--locked {
  opacity: 0.85;
  border-color: var(--pay-line);
  background: var(--pay-soft);
  cursor: default;
}

/* Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.modal-backdrop.hidden { display: none; }
.modal {
  width: 100%;
  max-width: 420px;
  background: var(--surface, #fff);
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18);
  overflow: hidden;
  animation: modalIn 0.22s ease-out;
}
@keyframes modalIn {
  from { opacity: 0; transform: translateY(12px) scale(0.97); }
  to { opacity: 1; transform: none; }
}
.modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 1.25rem 0.5rem;
}
.modal__head h3 { margin: 0; font-size: 1.15rem; }
.modal__close {
  border: none;
  background: transparent;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--muted);
  cursor: pointer;
  padding: 0.2rem 0.4rem;
}
.modal__body { padding: 0.5rem 1.25rem 1rem; }
.modal__label { display: block; margin-top: 0.75rem; }
.modal__label span {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: var(--text);
}
.modal__label input {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 1rem;
}
.modal__label input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-soft);
}
.modal__err {
  margin-top: 0.65rem;
  font-size: 0.85rem;
  color: #b91c1c;
}
.modal__err.hidden { display: none; }
.modal__foot {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem 1.15rem;
  border-top: 1px solid var(--line);
  background: var(--bg, #f8fafc);
}

/* Admin tabs */
.admin-nav {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--line);
}
.admin-nav__tab {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 999px;
  padding: 0.35rem 0.85rem;
  font-size: 0.82rem;
  cursor: pointer;
  color: var(--muted);
}
.admin-nav__tab.is-active {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
  font-weight: 600;
}
.admin-panel.hidden { display: none; }
.admin-table-wrap { overflow-x: auto; margin-top: 0.75rem; }
.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
}
.admin-table th,
.admin-table td {
  text-align: left;
  padding: 0.5rem 0.6rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.admin-table th {
  font-weight: 600;
  color: var(--muted);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.admin-table tr:hover td { background: var(--brand-soft); }
.admin-order-status {
  display: inline-block;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
}
.admin-order-status--paid { background: #dcfce7; color: #166534; }
.admin-order-status--pending { background: #fef9c3; color: #854d0e; }
.admin-order-status--failed { background: #fee2e2; color: #991b1b; }

.admin-env {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  white-space: nowrap;
}
.admin-env--prod { background: #dbeafe; color: #1e40af; }
.admin-env--sandbox { background: #ffedd5; color: #c2410c; }

.admin-order-nr {
  font-size: 0.78rem;
  background: #f5f1eb;
  padding: 0.15rem 0.35rem;
  border-radius: 4px;
  white-space: nowrap;
}
.admin-order-del {
  color: #991b1b;
}
.admin-order-del:hover {
  background: #fee2e2;
}

.admin-filter-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.65rem;
}
.admin-filter-row__label {
  font-size: 0.82rem;
  color: var(--muted, #6f6a65);
  min-width: 5.5rem;
}
.admin-filter-btn.is-active {
  background: var(--accent, #6b5740);
  color: #fff;
}

.admin-chart__bar--revenue {
  background: linear-gradient(180deg, #86efac 0%, #22c55e 100%);
}
.admin-pixel-row {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.75rem;
  margin-bottom: 0.65rem;
  background: var(--surface);
}
.admin-pixel-row__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}
.admin-contact-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1rem;
  margin-bottom: 0.75rem;
  background: var(--surface);
}
.admin-contact-card__meta {
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 0.5rem;
}
.admin-contact-card p { margin: 0.25rem 0; font-size: 0.88rem; }
