/* ==========================================================================
   admin.css — mylciaa admin (auth screens + panel)
   SELF-CONTAINED. No dependency on public style.css.
   Mobile-first: base styles target phone, enhance at min-width:900px.
   Touch targets >= 44px. Pastel glass aesthetic, Poppins.
   ========================================================================== */

:root {
  /* Pastel "girly" palette — LIGHT (copied from public style.css) */
  --bg0: #fff6fb;
  --bg1: #f7f0ff;

  --card: rgba(255, 255, 255, 0.72);
  --card2: rgba(255, 255, 255, 0.86);
  --line: rgba(40, 16, 34, 0.10);

  --text: rgba(34, 18, 32, 0.92);
  --muted: rgba(34, 18, 32, 0.66);
  --muted2: rgba(34, 18, 32, 0.52);

  --accent: #ff79be;   /* strawberry milk */
  --accent2: #b8a2ff;  /* lilac */
  --accent3: #8fe8ff;  /* baby cyan */

  --danger: #ff7e98;
  --ok: #2f9e6b;
  --err: #c0344f;

  --shadow: 0 22px 55px rgba(31, 8, 22, 0.12);
  --shadow-soft: 0 14px 28px rgba(31, 8, 22, 0.08);
  --radius-card: 26px;
  --radius-field: 16px;

  --font: "Poppins", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;

  /* Typografia — skala i wagi */
  --fs-display: 1.625rem;
  --fs-h1: 1.4rem;
  --fs-h2: 1.2rem;
  --fs-body-lg: 1.0625rem;
  --fs-body: 1rem;
  --fs-sm: 0.875rem;
  --fs-xs: 0.75rem;
  --lh-tight: 1.2;
  --lh-base: 1.5;
  --fw-medium: 600;
  --fw-bold: 700;
  --fw-black: 800;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
  color: var(--text);
  font-family: var(--font);
  background: transparent;
}

body {
  background-color: var(--bg0);
  background-image:
    radial-gradient(900px 600px at 110% -10%, rgba(184, 162, 255, 0.18), transparent 60%),
    radial-gradient(800px 600px at -10% 0%, rgba(255, 121, 190, 0.16), transparent 55%),
    linear-gradient(180deg, var(--bg0), var(--bg1));
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

img { max-width: 100%; }

/* ==========================================================================
   AUTH SCREENS (admin.php login + reset.php forms)
   ========================================================================== */

.auth-wrap {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 24px 16px;
}

.auth-card {
  width: 100%;
  max-width: 420px;
  border: 1px solid rgba(40, 16, 34, 0.08);
  border-radius: var(--radius-card);
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
  padding: 26px 22px 24px;
  display: grid;
  gap: 16px;
}

.auth-logo {
  width: 58px;
  height: 58px;
  border-radius: 999px;
  margin: 2px auto 0;
  display: grid;
  place-items: center;
  object-fit: cover;
  font-weight: var(--fw-black);
  font-size: 1.4rem;
  color: #fff;
  border: 3px solid rgba(255, 255, 255, 0.85);
  background:
    linear-gradient(135deg, var(--accent), var(--accent2) 60%, var(--accent3));
  box-shadow:
    0 0 0 8px rgba(255, 121, 190, 0.12),
    0 14px 30px rgba(31, 8, 22, 0.16);
}

.auth-title {
  margin: 0;
  text-align: center;
  font-size: var(--fs-h1);
  line-height: var(--lh-tight);
  letter-spacing: -0.01em;
  font-weight: var(--fw-black);
  color: rgba(34, 18, 32, 0.95);
}

.auth-sub {
  margin: -6px 0 4px;
  text-align: center;
  font-size: var(--fs-sm);
  color: var(--muted);
  line-height: var(--lh-base);
}

/* Odstepy WEWNATRZ formularzy auth (pola + przycisk). Bez tego dzieci <form>
   lecialy blokowo bez gapu i przycisk przyklejal sie do ostatniego pola. */
.auth-card form {
  display: grid;
  gap: 14px;
}

.auth-card form .form-error,
.auth-card form .form-ok {
  margin: 0;
}

/* --- Fields --------------------------------------------------------------- */

.field {
  display: grid;
  gap: 6px;
}

.field-label {
  font-size: var(--fs-sm);
  font-weight: var(--fw-bold);
  letter-spacing: 0.01em;
  color: rgba(34, 18, 32, 0.78);
  padding-left: 2px;
}

.field-box {
  display: flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(34, 18, 32, 0.16);
  border-radius: var(--radius-field);
  background: rgba(255, 255, 255, 0.92);
  padding: 0 8px 0 4px;
  transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}

.field-box.is-focus {
  border-color: rgba(255, 121, 190, 0.55);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 0 0 4px rgba(255, 121, 190, 0.18);
}

.input {
  flex: 1 1 auto;
  width: 100%;
  min-height: 48px;
  border: 0;
  background: transparent;
  color: var(--text);
  font-family: inherit;
  font-size: 1rem;
  padding: 10px 8px;
  outline: none;
}

.input::placeholder { color: var(--muted2); }

.input:-webkit-autofill {
  -webkit-text-fill-color: var(--text);
  transition: background-color 9999s ease-in-out 0s;
}

/* Show/hide password eye button */
.toggle-pass {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: rgba(34, 18, 32, 0.55);
  cursor: pointer;
  display: grid;
  place-items: center;
  padding: 0;
  transition: background .14s ease, color .14s ease;
}

.toggle-pass:hover,
.toggle-pass:focus-visible {
  outline: none;
  color: var(--accent);
  background: rgba(255, 121, 190, 0.12);
}

.toggle-pass svg { width: 22px; height: 22px; display: block; }

/* ==========================================================================
   BUTTONS (shared by auth + panel)
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 48px;
  padding: 12px 16px;
  border-radius: var(--radius-field);
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.86);
  color: var(--text);
  font-family: inherit;
  font-weight: var(--fw-black);
  font-size: var(--fs-body);
  line-height: 1;
  cursor: pointer;
  text-decoration: none;
  transition: transform .14s ease, box-shadow .16s ease, filter .16s ease, background .16s ease, border-color .16s ease;
}

.btn:active { transform: translateY(1px) scale(0.995); }

.btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px rgba(184, 162, 255, 0.30);
}

.btn-primary {
  color: #4a1130;
  border-color: rgba(255, 121, 190, 0.45);
  background: linear-gradient(120deg, var(--accent) 0%, #ff93cc 55%, var(--accent2) 130%);
  box-shadow: 0 16px 30px rgba(255, 121, 190, 0.30);
}

.btn-primary:hover {
  filter: saturate(1.06) brightness(1.02);
  box-shadow: 0 20px 38px rgba(255, 121, 190, 0.36);
}

.btn-danger {
  color: #fff;
  border-color: rgba(192, 52, 79, 0.45);
  background: linear-gradient(120deg, #ff7e98 0%, #ff5e7e 100%);
  box-shadow: 0 16px 30px rgba(255, 94, 126, 0.26);
}

.btn-danger:hover {
  filter: saturate(1.06) brightness(1.02);
  box-shadow: 0 20px 38px rgba(255, 94, 126, 0.32);
}

/* Muted link (e.g. "Forgot password?", "Back to login") */
.link-muted {
  display: inline-block;
  text-align: center;
  width: 100%;
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  color: var(--muted);
  text-decoration: none;
  padding: 6px 4px;
  border-bottom: 0;
}

.link-muted:hover,
.link-muted:focus-visible {
  outline: none;
  color: var(--accent);
}

/* ==========================================================================
   FORM FEEDBACK (dark-on-light error / success)
   ========================================================================== */

.form-error,
.form-ok {
  border-radius: 12px;
  padding: 10px 12px;
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  line-height: var(--lh-base);
}

.form-error {
  color: var(--err);
  border: 1px solid rgba(192, 52, 79, 0.32);
  background: rgba(255, 126, 152, 0.12);
}

.form-ok {
  color: var(--ok);
  border: 1px solid rgba(47, 158, 107, 0.32);
  background: rgba(109, 240, 183, 0.14);
}

/* ==========================================================================
   ADMIN PANEL (after login)
   ========================================================================== */

.admin-shell {
  width: min(960px, calc(100% - 28px));
  margin: 0 auto;
  padding: 14px 0 56px;
  display: grid;
  gap: 14px;
}

.admin-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 12px 14px;
  border: 1px solid rgba(40, 16, 34, 0.08);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--shadow-soft);
}

.admin-topbar .brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: var(--fw-black);
  letter-spacing: -0.01em;
  font-size: 1.05rem;
}

.admin-topbar .brand .auth-logo {
  width: 36px;
  height: 36px;
  font-size: var(--fs-sm);
  margin: 0;
  box-shadow: 0 8px 18px rgba(31, 8, 22, 0.16);
}

/* Sticky section nav */
.admin-nav {
  position: sticky;
  top: 76px;
  z-index: 15;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding: 10px;
  border: 1px solid rgba(40, 16, 34, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.74);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-soft);
  -webkit-overflow-scrolling: touch;
}

.admin-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 121, 190, 0.22);
  background: rgba(255, 255, 255, 0.72);
  color: rgba(34, 18, 32, 0.82);
  text-decoration: none;
  font-weight: var(--fw-bold);
  font-size: var(--fs-sm);
  white-space: nowrap;
  transition: transform .14s ease, border-color .14s ease, background .14s ease, color .14s ease;
}

.admin-nav a:hover,
.admin-nav a:focus-visible,
.admin-nav a.is-active {
  outline: none;
  transform: translateY(-1px);
  border-color: rgba(255, 121, 190, 0.45);
  background: rgba(255, 121, 190, 0.14);
  color: rgba(34, 18, 32, 0.95);
}

/* Panel cards */
.panel-card {
  border: 1px solid rgba(40, 16, 34, 0.08);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-soft);
  padding: 16px 16px 18px;
  scroll-margin-top: 130px;
}

.panel-h2 {
  margin: 0 0 14px;
  font-size: var(--fs-h2);
  font-weight: var(--fw-bold);
  letter-spacing: -0.01em;
  color: rgba(34, 18, 32, 0.95);
}

.muted { color: var(--muted); }

/* Form grid inside panel */
.form-grid {
  display: grid;
  gap: 12px;
}

.form-grid label {
  display: grid;
  gap: 6px;
  font-size: var(--fs-sm);
  font-weight: var(--fw-bold);
  color: rgba(34, 18, 32, 0.78);
}

.form-grid label.inline {
  grid-auto-flow: column;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 10px;
  font-weight: var(--fw-medium);
}

.form-grid label.inline input[type="checkbox"],
.form-grid label.inline input[type="radio"] {
  width: 20px;
  height: 20px;
  min-height: 0;
  accent-color: var(--accent);
  margin: 0;
}

/* Generic panel inputs/textareas/selects */
.panel-card input:not([type="checkbox"]):not([type="radio"]),
.panel-card textarea,
.panel-card select {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(34, 18, 32, 0.16);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--text);
  font-family: inherit;
  font-size: 1rem;
  padding: 11px 12px;
  transition: border-color .16s ease, box-shadow .16s ease;
}

.panel-card textarea {
  min-height: 110px;
  resize: vertical;
  line-height: 1.45;
}

.panel-card input:not([type="checkbox"]):not([type="radio"]):focus,
.panel-card textarea:focus,
.panel-card select:focus {
  outline: none;
  border-color: rgba(255, 121, 190, 0.55);
  box-shadow: 0 0 0 4px rgba(255, 121, 190, 0.18);
}

/* Datetime-local: spojny wyglad i dotykalna wysokosc na mobile (font juz 1rem) */
.panel-card input[type="datetime-local"] {
  appearance: none;
  -webkit-appearance: none;
  min-height: 48px;
}

/* Panel buttons: reuse .btn where wanted; provide bare button + danger.
   :not(.post-del) -> przyciski kosza (ghost) nie dostaja rozowego gradientu. */
.panel-card button:not(.post-del) {
  min-height: 48px;
  border-radius: 14px;
  cursor: pointer;
  font-family: inherit;
  font-weight: var(--fw-black);
  font-size: var(--fs-body);
  padding: 12px 16px;
  border: 1px solid rgba(255, 121, 190, 0.40);
  background: linear-gradient(120deg, var(--accent) 0%, #ff93cc 55%, var(--accent2) 130%);
  color: #4a1130;
  box-shadow: 0 14px 26px rgba(255, 121, 190, 0.26);
  transition: transform .14s ease, filter .16s ease, box-shadow .16s ease;
}

.panel-card button:not(.post-del):hover { filter: saturate(1.06) brightness(1.02); }
.panel-card button:not(.post-del):active { transform: translateY(1px); }

button.danger {
  border-color: rgba(192, 52, 79, 0.45) !important;
  background: linear-gradient(120deg, #ff7e98 0%, #ff5e7e 100%) !important;
  color: #fff !important;
  box-shadow: 0 14px 26px rgba(255, 94, 126, 0.24) !important;
}

/* ==========================================================================
   TOASTS
   ========================================================================== */

.toast {
  border-radius: 14px;
  padding: 11px 14px;
  font-size: var(--fs-sm);
  font-weight: var(--fw-bold);
  line-height: var(--lh-base);
  margin-bottom: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.8);
  box-shadow: var(--shadow-soft);
}

.toast.toast-ok {
  color: var(--ok);
  border-color: rgba(47, 158, 107, 0.34);
  background: rgba(109, 240, 183, 0.14);
}

.toast.toast-err {
  color: var(--err);
  border-color: rgba(192, 52, 79, 0.34);
  background: rgba(255, 126, 152, 0.12);
}

/* ==========================================================================
   DESKTOP ENHANCEMENTS (>= 900px)
   ========================================================================== */

@media (min-width: 900px) {
  .auth-card {
    padding: 32px 30px 28px;
  }

  .auth-title { font-size: var(--fs-display); }

  .admin-shell {
    width: min(960px, calc(100% - 48px));
    padding-top: 20px;
  }

  .admin-nav { top: 84px; }

  .panel-card { padding: 20px 22px 22px; }

  .form-grid.cols-2 {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }

  .form-grid.cols-2 .span-2 { grid-column: 1 / -1; }
}

/* ==========================================================================
   MOTION / ACCESSIBILITY
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
  .btn:active,
  .panel-card button:active,
  .admin-nav a:hover { transform: none; }
}

/* ==========================================================================
   PANEL 3-STRONY (Wpisy / Streamy / Ustawienia) — app shell + dolny pasek
   ========================================================================== */

.app {
  width: min(560px, 100%);
  margin: 0 auto;
  padding: 0 14px calc(92px + env(safe-area-inset-bottom));
  min-height: 100dvh;
}

.app-top {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 4px 11px;
  background: rgba(255, 246, 251, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.app-brand {
  font-weight: var(--fw-black);
  font-size: var(--fs-h2);
  letter-spacing: -0.01em;
  color: rgba(34, 18, 32, 0.95);
}

.app-preview {
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  color: var(--muted);
  text-decoration: none;
}

.app-preview:hover { color: var(--accent); }

.page-title {
  margin: 6px 2px 2px;
  font-size: var(--fs-display);
  font-weight: var(--fw-black);
  line-height: var(--lh-tight);
  letter-spacing: -0.02em;
  color: rgba(34, 18, 32, 0.96);
}

.page-sub {
  margin: 4px 2px 14px;
  color: var(--muted);
  font-size: var(--fs-sm);
  line-height: var(--lh-base);
}

/* --- Composer (twitterowe pole wpisu) ------------------------------------ */

.composer {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(40, 16, 34, 0.10);
  border-radius: 22px;
  padding: 14px;
  box-shadow: var(--shadow-soft);
  margin-bottom: 16px;
}

.composer-row { display: flex; gap: 10px; }

.composer-ava {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  flex: 0 0 auto;
  object-fit: cover;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
}

.composer-text {
  flex: 1 1 auto;
  width: 100%;
  border: 0;
  background: transparent;
  resize: none;
  font-family: inherit;
  font-size: var(--fs-body-lg);
  line-height: var(--lh-base);
  color: var(--text);
  padding: 8px 4px;
  min-height: 48px;
  outline: none;
}

.composer-text::placeholder { color: var(--muted2); }

.composer-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(40, 16, 34, 0.08);
}

.composer-photo {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent2);
  font-weight: var(--fw-medium);
  font-size: var(--fs-sm);
  cursor: pointer;
  padding: 8px 10px;
  border-radius: 12px;
  min-height: 44px;
  min-width: 0;
}

.composer-photo:hover { background: rgba(184, 162, 255, 0.12); }
.composer-photo svg { width: 22px; height: 22px; }

.composer-send {
  width: auto;
  min-width: 132px;
  min-height: 44px;
}

/* Emote picker (7TV) */
.composer-emote-btn {
  width: auto;
  margin-right: auto;
  border: none;
  background: none;
  font-family: inherit;
}

.emote-picker {
  margin-top: 10px;
  border: 1px solid rgba(40, 16, 34, 0.10);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.6);
  padding: 10px;
}

.emote-search {
  width: 100%;
  min-height: 40px;
  padding: 8px 12px;
  border: 1px solid rgba(40, 16, 34, 0.14);
  border-radius: 10px;
  font-size: 15px;
  margin-bottom: 8px;
  box-sizing: border-box;
}

.emote-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  max-height: 240px;
  overflow-y: auto;
}

.emote-pick {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 10px;
  background: none;
  cursor: pointer;
  padding: 2px;
}
.emote-pick:hover {
  background: rgba(184, 162, 255, 0.18);
  border-color: rgba(145, 70, 255, 0.25);
}
.emote-pick img { max-width: 34px; max-height: 34px; width: auto; height: auto; }

.emote-empty {
  padding: 16px;
  width: 100%;
  text-align: center;
  color: var(--muted);
  font-size: var(--fs-sm);
}

.composer-filename {
  font-size: var(--fs-xs);
  color: var(--muted);
  margin-top: 8px;
  padding-left: 4px;
  word-break: break-all;
}
.composer-filename:empty { display: none; }

/* Na bardzo waskich ekranach przycisk wyslania na pelna szerokosc */
@media (max-width: 360px) {
  .composer-send { width: 100%; }
}

/* --- Feed + posty -------------------------------------------------------- */

.feed { display: grid; gap: 12px; }

.feed-empty {
  text-align: center;
  padding: 28px 16px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.6);
  border: 1px dashed rgba(40, 16, 34, 0.16);
  border-radius: 20px;
}
.feed-empty p { margin: 4px 0; }

.post {
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(40, 16, 34, 0.08);
  border-radius: 20px;
  padding: 14px;
  box-shadow: var(--shadow-soft);
}

.post-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.post-time {
  font-size: var(--fs-sm);
  color: var(--muted);
  font-weight: var(--fw-medium);
}

.post-del-form { margin: 0; }

.post-del {
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  border-radius: 10px;
  color: rgba(34, 18, 32, 0.4);
  cursor: pointer;
  display: grid;
  place-items: center;
  padding: 0;
}
.post-del svg { width: 18px; height: 18px; }
.post-del:hover { color: var(--err); background: rgba(192, 52, 79, 0.10); }

.post-content {
  font-size: var(--fs-body);
  line-height: var(--lh-base);
  color: var(--text);
  white-space: pre-wrap;
  word-wrap: break-word;
  overflow-wrap: anywhere;
}

.post-img {
  margin-top: 10px;
  width: 100%;
  border-radius: 14px;
  display: block;
}

.post-foot { margin-top: 10px; }

.post-hearts {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #d4537e;
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
}
.post-hearts svg { width: 16px; height: 16px; }

/* --- Dolny pasek nawigacji (jak apka) ------------------------------------ */

.bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  display: flex;
  align-items: stretch;
  justify-content: space-around;
  padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid rgba(40, 16, 34, 0.08);
  box-shadow: 0 -8px 24px rgba(31, 8, 22, 0.06);
}

.bn-item {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-height: 52px;
  text-decoration: none;
  color: rgba(34, 18, 32, 0.5);
  border-radius: 14px;
  padding: 6px 4px;
  transition: color .14s ease, background .14s ease;
}

.bn-item:hover { background: rgba(255, 121, 190, 0.08); }
.bn-item.is-active { color: var(--accent); }
.bn-item.is-active .bn-lab { font-weight: var(--fw-black); }

.bn-ic { width: 24px; height: 24px; }
.bn-lab { font-size: var(--fs-xs); font-weight: var(--fw-medium); }

/* --- Undo bar (usuwanie z Cofnij) ---------------------------------------- */

.undo-bar {
  position: fixed;
  left: 50%;
  bottom: calc(78px + env(safe-area-inset-bottom));
  transform: translateX(-50%) translateY(160%);
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: calc(100% - 28px);
  background: rgba(34, 18, 32, 0.94);
  color: #fff;
  padding: 10px 10px 10px 16px;
  border-radius: 14px;
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  box-shadow: 0 14px 30px rgba(31, 8, 22, 0.28);
  opacity: 0;
  pointer-events: none;
  transition: transform .2s ease, opacity .2s ease;
}

.undo-bar.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.undo-btn {
  border: 0;
  background: transparent;
  color: #8fe8ff;
  font-weight: var(--fw-black);
  cursor: pointer;
  font-family: inherit;
  font-size: var(--fs-sm);
  padding: 6px 10px;
  min-height: 36px;
}

@media (min-width: 900px) {
  .bottom-nav {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    width: min(560px, 100%);
    border-radius: 20px 20px 0 0;
  }
}
