/* ==========================================================================
   AURASENSO — Prestigious Client Panel
   Custom theme: "Obsidian & Burnished Copper"
   ========================================================================== */

:root,
:root[data-theme="dark"] {
  --aura-black: #0b0a09;
  --aura-charcoal: #17130f;
  --aura-charcoal-2: #201a15;
  --aura-midnight: #17130f;
  --aura-border: rgba(201, 162, 106, 0.14);

  /* Burnished copper — primary interactive / status accent */
  --aura-copper: #b8722e;
  --aura-copper-2: #e2a468;
  --aura-copper-glow: rgba(184, 114, 46, 0.45);
  --aura-copper-soft: rgba(184, 114, 46, 0.14);

  /* Brushed gold — headline / member-status accent */
  --aura-gold: #c9a24a;
  --aura-gold-light: #eccf8c;
  --aura-gold-glow: rgba(201, 162, 74, 0.42);
  --aura-gold-soft: rgba(201, 162, 74, 0.13);

  /* Jewel sapphire — AI / smart-tech accent */
  --aura-sapphire: #3d6f9c;
  --aura-sapphire-2: #7db1dd;
  --aura-sapphire-glow: rgba(61, 111, 156, 0.48);
  --aura-sapphire-soft: rgba(61, 111, 156, 0.15);

  /* Sapphire-silver — progress bar end stop */
  --aura-silver-blue: #c7d3e0;

  /* Emerald — relax / eco accent */
  --aura-emerald: #57c79a;
  --aura-emerald-glow: rgba(87, 199, 154, 0.4);

  /* Alert red — notification badge (celowo poza główną paletą copper/gold/sapphire, dla kontrastu) */
  --aura-danger: #e0483f;

  --text-light: #f3ead9;
  --text-muted: #ad9f8c;
  --text-faint: #7c7060;

  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;

  --nav-bg: rgba(14, 12, 10, 0.85);
  --sidebar-bg: rgba(17, 14, 11, 0.82);
  --overlay-soft: rgba(230, 200, 150, 0.08);
  --overlay-soft-2: rgba(230, 200, 150, 0.035);
  --card-shadow: 0 12px 34px rgba(0, 0, 0, 0.45), 0 0 40px -20px var(--aura-copper-glow);
  --chat-window-bg: rgba(0, 0, 0, 0.28);
  --map-label-bg: rgba(0, 0, 0, 0.55);
  --surface-deep-1: #33291d;
  --surface-deep-2: #1c1712;
  --surface-deep-3: #120f0c;
  --bg-glow-1: rgba(184, 114, 46, 0.12);
  --bg-glow-2: rgba(201, 162, 74, 0.09);
  --bg-glow-3: rgba(61, 111, 156, 0.10);
  --bg-base-1: #0d0b09;
  --bg-base-2: #0b0a09;
  --bg-base-3: #0d0a08;
  --bokeh-opacity: 0.5;
  --backdrop-scrim: rgba(0, 0, 0, 0.72);
  --grain-line: rgba(0, 0, 0, 0.22);
  --grain-highlight: rgba(255, 220, 170, 0.03);
  --card-sheen: rgba(255, 255, 255, 0.16);
}

/* ---- Light theme override -------------------------------------------- */

:root[data-theme="light"] {
  --aura-black: #f6efe0;
  --aura-charcoal: #fffcf5;
  --aura-charcoal-2: #fbf3e4;
  --aura-midnight: #fffcf5;
  --aura-border: rgba(120, 78, 30, 0.16);

  --aura-copper: #9c5a24;
  --aura-copper-2: #b8722e;
  --aura-copper-glow: rgba(156, 90, 36, 0.35);
  --aura-copper-soft: rgba(156, 90, 36, 0.12);

  --aura-gold: #9c7a2e;
  --aura-gold-light: #b8943f;
  --aura-gold-glow: rgba(156, 122, 46, 0.32);
  --aura-gold-soft: rgba(156, 122, 46, 0.12);

  --aura-sapphire: #204a6b;
  --aura-sapphire-2: #3d6f9c;
  --aura-sapphire-glow: rgba(32, 74, 107, 0.32);
  --aura-sapphire-soft: rgba(32, 74, 107, 0.11);

  --aura-silver-blue: #6f88a3;

  --aura-emerald: #2f8c68;
  --aura-emerald-glow: rgba(47, 140, 104, 0.3);

  --text-light: #2c2013;
  --text-muted: #6f6250;
  --text-faint: #9c8f7a;

  --nav-bg: rgba(255, 252, 245, 0.85);
  --sidebar-bg: rgba(255, 252, 245, 0.78);
  --overlay-soft: rgba(90, 60, 20, 0.07);
  --overlay-soft-2: rgba(90, 60, 20, 0.045);
  --card-shadow: 0 12px 30px rgba(60, 40, 10, 0.10);
  --chat-window-bg: rgba(90, 60, 20, 0.04);
  --map-label-bg: rgba(255, 252, 245, 0.8);
  --surface-deep-1: #f0e4cd;
  --surface-deep-2: #f7eedb;
  --surface-deep-3: #fffcf5;
  --bg-glow-1: rgba(156, 90, 36, 0.08);
  --bg-glow-2: rgba(156, 122, 46, 0.09);
  --bg-glow-3: rgba(32, 74, 107, 0.06);
  --bg-base-1: #fbf5e9;
  --bg-base-2: #f6efe0;
  --bg-base-3: #f8f0e2;
  --bokeh-opacity: 0.16;
  --backdrop-scrim: rgba(40, 28, 12, 0.35);
  --grain-line: rgba(90, 60, 20, 0.05);
  --grain-highlight: rgba(255, 255, 255, 0.5);
  --card-sheen: rgba(156, 90, 36, 0.14);
}

/* ---- Base ---------------------------------------------------------- */

html, body {
  height: 100%;
}

body {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 300;
  color: var(--text-light);
  background-color: var(--aura-black);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  transition: background-color .25s ease, color .25s ease;
}

/* Ambient backdrop glow — brushed obsidian with warm/cool light pools */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(circle at 15% 20%, var(--bg-glow-1), transparent 40%),
    radial-gradient(circle at 85% 15%, var(--bg-glow-2), transparent 35%),
    radial-gradient(circle at 50% 100%, var(--bg-glow-3), transparent 45%),
    linear-gradient(180deg, var(--bg-base-1) 0%, var(--bg-base-2) 60%, var(--bg-base-3) 100%);
}

/* soft bokeh — warm gold lobby lights + cool sapphire accents */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: var(--bokeh-opacity);
  background-image:
    radial-gradient(2px 2px at 10% 30%, rgba(236, 207, 140, 0.65), transparent 60%),
    radial-gradient(2px 2px at 22% 60%, rgba(125, 177, 221, 0.5), transparent 60%),
    radial-gradient(3px 3px at 35% 20%, rgba(236, 207, 140, 0.45), transparent 60%),
    radial-gradient(2px 2px at 48% 75%, rgba(125, 177, 221, 0.4), transparent 60%),
    radial-gradient(2px 2px at 62% 35%, rgba(236, 207, 140, 0.5), transparent 60%),
    radial-gradient(3px 3px at 75% 55%, rgba(125, 177, 221, 0.4), transparent 60%),
    radial-gradient(2px 2px at 88% 25%, rgba(236, 207, 140, 0.5), transparent 60%),
    radial-gradient(2px 2px at 92% 70%, rgba(125, 177, 221, 0.4), transparent 60%);
  filter: blur(1px);
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  color: var(--text-light);
}

.text-muted { color: var(--text-muted) !important; }
.text-faint { color: var(--text-faint) !important; }

a { color: var(--aura-copper-2); text-decoration: none; }
a:hover { color: var(--aura-gold-light); }

.logo-serif {
  font-weight: 700;
  letter-spacing: 0.06em;
  background: linear-gradient(135deg, var(--aura-gold-light), var(--aura-gold) 55%, var(--aura-copper) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.text-gold { color: var(--aura-gold-light) !important; }
.text-copper { color: var(--aura-copper-2) !important; }

.eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-faint);
  font-weight: 500;
}

/* ---- Navbar ---------------------------------------------------------- */

.aura-navbar {
  position: sticky;
  top: 0;
  z-index: 1030;
  background: var(--nav-bg);
  background-image: repeating-linear-gradient(180deg, var(--grain-highlight) 0 1px, transparent 1px 3px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--aura-border);
  padding: 0.85rem 1.75rem;
}

.aura-search {
  background: var(--aura-charcoal-2);
  border: 1px solid var(--aura-border);
  border-radius: 999px;
  padding: 0.4rem 1rem;
  color: var(--text-light);
  font-size: 0.85rem;
  min-width: 200px;
}
.aura-search::placeholder { color: var(--text-faint); }
.aura-search:focus {
  outline: none;
  border-color: var(--aura-copper);
  box-shadow: 0 0 0 3px var(--aura-copper-soft);
}

.icon-btn {
  position: relative;
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--aura-charcoal-2);
  border: 1px solid var(--aura-border);
  color: var(--text-light);
  font-size: 1.1rem;
  transition: all .2s ease;
}
.icon-btn:hover {
  border-color: var(--aura-copper);
  color: var(--aura-copper-2);
  box-shadow: 0 0 16px -4px var(--aura-copper-glow);
}

.notif-dot {
  position: absolute;
  top: 8px;
  right: 9px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--aura-gold);
  box-shadow: 0 0 8px 2px var(--aura-gold-glow);
}

/* Liczbowy odpowiednik .notif-dot — liczba świeżych zdarzeń wymagających uwagi admina. */
.notif-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--aura-danger);
  color: #fff;
  font-size: .68rem;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
  box-shadow: 0 0 0 2px var(--aura-black);
}

.avatar-crown {
  position: absolute;
  bottom: -3px;
  right: -3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--aura-black);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--aura-gold);
  font-size: 0.65rem;
  border: 1px solid var(--aura-gold);
}

.avatar-ring {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  padding: 2px;
  background: linear-gradient(135deg, var(--aura-gold), var(--aura-copper));
}
.avatar-ring .avatar-fill {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--aura-charcoal-2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--aura-gold-light);
  font-weight: 600;
  font-size: 0.95rem;
}

/* ---- Avatar dropdown ---------------------------------------------------- */

.avatar-dropdown-toggle {
  background: none;
  border: none;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--text-light);
  cursor: pointer;
}
.avatar-dropdown-toggle:hover,
.avatar-dropdown-toggle[aria-expanded="true"] {
  color: var(--aura-copper-2);
}
.avatar-dropdown-toggle::after { display: none; }

.dropdown-menu {
  background: var(--aura-charcoal-2);
  border: 1px solid var(--aura-border);
  border-radius: var(--radius-md);
  padding: 0.5rem;
  box-shadow: var(--card-shadow);
  min-width: 12rem;
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--text-light);
  border-radius: var(--radius-sm);
  padding: 0.55rem 0.9rem;
  font-size: 0.88rem;
  font-weight: 500;
}
.dropdown-item i { font-size: 1.05rem; color: var(--text-muted); }

.dropdown-item:hover, .dropdown-item:focus {
  background: var(--aura-copper-soft);
  color: var(--text-light);
}
.dropdown-item:hover i, .dropdown-item:focus i { color: var(--aura-copper-2); }

/* Zaznaczona pozycja w rozwijanym menu (np. wybrana kategoria filtra) — kolorystyka projektu
   zamiast domyślnego niebieskiego Bootstrapa. */
.dropdown-item.active, .dropdown-item.active:hover, .dropdown-item.active:focus {
  background: var(--aura-copper-soft);
  color: var(--aura-gold-light);
}

.dropdown-divider { border-top: 1px solid var(--aura-border); opacity: 1; margin: 0.4rem 0; }

/* ---- Notifications panel (right slide-out) ------------------------------ */

.notif-backdrop {
  display: none;
}
.notif-backdrop.show {
  display: block;
  position: fixed;
  inset: 0;
  background: var(--backdrop-scrim);
  z-index: 1058;
}

.notif-panel {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: 380px;
  max-width: 92vw;
  z-index: 1060;
  background: var(--aura-charcoal-2);
  border-left: 1px solid var(--aura-border);
  box-shadow: -20px 0 60px rgba(0, 0, 0, 0.35);
  transform: translateX(100%);
  transition: transform .3s ease;
  padding: 1.25rem;
  overflow-y: auto;
}
.notif-panel.show {
  transform: translateX(0);
}

.notif-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 1rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--aura-border);
}

.client-profile-panel {
  width: 560px;
}

/* ---- App shell ----------------------------------------------------------- */

.app-shell {
  align-items: stretch;
}

#mainContent {
  flex: 1;
  min-width: 0;
}

/* ---- Sidebar ----------------------------------------------------------- */

.aura-sidebar {
  width: 260px;
  flex-shrink: 0;
  background-color: var(--sidebar-bg);
  background-image:
    repeating-linear-gradient(45deg, var(--grain-line) 0 1px, transparent 1px 5px),
    repeating-linear-gradient(-45deg, var(--grain-line) 0 1px, transparent 1px 5px);
  border-right: 1px solid var(--aura-border);
  min-height: calc(100vh - 74px);
  padding: 1.5rem 1rem;
  transition: width .25s ease;
  overflow-x: hidden;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.7rem 0.9rem;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 0.89rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  margin-bottom: 0.3rem;
  transition: all .25s ease;
  border-left: 3px solid transparent;
  white-space: nowrap;
}

.sidebar-link i { font-size: 1.1rem; width: 22px; text-align: center; flex-shrink: 0; }

.sidebar-link:hover {
  background: var(--aura-copper-soft);
  color: var(--text-light);
  transform: translateX(2px);
}

.sidebar-link.active {
  background: linear-gradient(90deg, var(--aura-copper-soft), transparent);
  color: var(--text-light);
  border-left-color: var(--aura-copper);
}

.sidebar-divider {
  border-top: 1px solid var(--aura-border);
  margin: 1rem 0.5rem;
}

/* Zwijane sekcje menu bocznego — nagłówek (eyebrow) sekcji jest teraz klikalny;
   domyślny stan zwinięty/rozwinięty ustawia Twig (klasa .expanded na aktywnej
   sekcji), dalsze kliknięcia przełącza czysty JS w app.js (bez requestów). */
.sidebar-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: none;
  border: none;
  padding: 0.4rem 0.5rem;
  margin-bottom: 0.3rem;
  cursor: pointer;
  font: inherit;
  text-align: left;
}
.sidebar-section-header .eyebrow { margin-bottom: 0; }
.sidebar-section-chevron {
  font-size: 0.7rem;
  color: var(--text-faint);
  flex-shrink: 0;
  transition: transform 0.2s ease;
}
.sidebar-section.expanded .sidebar-section-chevron {
  transform: rotate(180deg);
}
.sidebar-section-body {
  display: none;
}
.sidebar-section.expanded .sidebar-section-body {
  display: block;
}

/* Collapsed (icon-only) state — desktop */
.aura-sidebar.collapsed {
  width: 84px;
}
.aura-sidebar.collapsed .eyebrow,
.aura-sidebar.collapsed .link-text {
  display: none;
}
.aura-sidebar.collapsed .sidebar-link {
  justify-content: center;
  padding: 0.7rem;
}
.aura-sidebar.collapsed .sidebar-link i {
  width: auto;
}
.aura-sidebar.collapsed .sidebar-section-header {
  display: none;
}
.aura-sidebar.collapsed .sidebar-section-body {
  display: block;
}

/* Off-canvas drawer — mobile */
.sidebar-backdrop {
  display: none;
}

@media (max-width: 991.98px) {
  .aura-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    min-height: 100vh;
    width: 280px;
    z-index: 1050;
    transform: translateX(-100%);
    background-color: var(--aura-charcoal-2);
    box-shadow: 20px 0 60px rgba(0, 0, 0, 0.35);
  }
  .aura-sidebar.collapsed {
    width: 280px;
  }
  .aura-sidebar.collapsed .eyebrow,
  .aura-sidebar.collapsed .link-text {
    display: block;
  }
  .aura-sidebar.collapsed .sidebar-link {
    justify-content: flex-start;
    padding: 0.7rem 0.9rem;
  }
  .aura-sidebar.collapsed .sidebar-section-header {
    display: flex;
  }
  .aura-sidebar.mobile-open {
    transform: translateX(0);
  }

  .sidebar-backdrop.show {
    display: block;
    position: fixed;
    inset: 0;
    background: var(--backdrop-scrim);
    z-index: 1045;
  }
}

/* ---- Podgląd rekordu — wysuwany panel z prawej strony ------------------ */

.admin-drawer-backdrop {
  display: none;
}
.admin-drawer-backdrop.show {
  display: block;
  position: fixed;
  inset: 0;
  background: var(--backdrop-scrim);
  z-index: 1990;
}

.admin-drawer {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  height: 100dvh;
  width: min(440px, 100vw);
  background-color: var(--aura-charcoal-2);
  border-left: 1px solid var(--aura-border);
  box-shadow: -30px 0 70px rgba(0, 0, 0, 0.4);
  transform: translateX(100%);
  transition: transform .3s cubic-bezier(.4, 0, .2, 1);
  z-index: 2000;
  display: flex;
  flex-direction: column;
}
.admin-drawer.open {
  transform: translateX(0);
}
.admin-drawer-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.4rem;
  border-bottom: 1px solid var(--aura-border);
  flex: 0 0 auto;
}
.admin-drawer-body {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 1.4rem;
}
.admin-drawer-body .aura-card-title:first-child { margin-top: 0; }
.admin-drawer-body .drawer-section + .drawer-section { margin-top: 1.6rem; }

body.drawer-open {
  overflow: hidden;
}

/* Pokaż/ukryj hasło — ikona oka wstrzykiwana przez JS do każdego input[type=password] */
.password-field {
  position: relative;
}
.password-field input {
  padding-right: 2.6rem;
}
.password-toggle {
  position: absolute;
  top: 50%;
  right: .55rem;
  transform: translateY(-50%);
  background: none;
  border: 0;
  color: var(--text-faint);
  padding: .3rem;
  line-height: 1;
  font-size: .95rem;
  cursor: pointer;
}
.password-toggle:hover { color: var(--aura-gold-light); }

/* Odznaka przynależności do obiektu (Strefy / Restauracje / Nagrody) */
.hotel-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 2px 9px;
  border-radius: 999px;
  white-space: nowrap;
  flex-shrink: 0;
  color: var(--aura-sapphire-2);
  background: var(--aura-sapphire-soft);
}
.hotel-badge.general { color: var(--text-faint); background: var(--overlay-soft); }

@media (max-width: 480px) {
  .admin-drawer { width: 100vw; border-left: none; }
}

/* ---- Cards --------------------------------------------------------- */

.aura-card {
  background: linear-gradient(180deg, var(--aura-charcoal-2), var(--aura-charcoal));
  border: 1px solid var(--aura-border);
  border-radius: var(--radius-md);
  padding: 1.4rem;
  box-shadow: var(--card-shadow);
  position: relative;
  overflow: hidden;
}

/* Passing-sheen hover effect */
.aura-card.shining::before {
  content: '';
  position: absolute;
  top: 0;
  left: -75%;
  width: 45%;
  height: 100%;
  background: linear-gradient(120deg, transparent 0%, var(--card-sheen) 50%, transparent 100%);
  transform: skewX(-20deg);
  transition: left 0.9s ease;
  pointer-events: none;
  z-index: 2;
}
.aura-card.shining:hover::before {
  left: 125%;
}

.aura-card-title {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  margin-bottom: 1.1rem;
}

.aura-card-title i { color: var(--aura-copper-2); font-size: 1.15rem; }

/* ---- Status widget --------------------------------------------------- */

.status-card {
  border: 1px solid var(--aura-gold);
  background: linear-gradient(160deg, var(--aura-gold-soft), var(--aura-charcoal-2) 70%);
  box-shadow: 0 0 30px -8px var(--aura-gold-glow);
}

/* Nagłówek karty rangi — ranga (2 linie: "Ranga" / "Member") po lewej, punkty po prawej,
   w jednym wierszu, żeby cała karta zajmowała mniej wysokości. */
.status-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: .75rem;
}
.status-points-compact { text-align: right; flex-shrink: 0; }
.status-points-compact .points-value { font-size: 1.5rem; }

.status-badge {
  display: inline-flex;
  align-items: flex-start;
  gap: 8px;
  color: var(--aura-gold-light);
}

/* Koło ikony — ta sama wielkość co przycisk avatara "AN" w headerze (.avatar-ring, 42px).
   Współdzielone przez odznakę rangi (diament) i tytuły kart (np. "Punkty statusowe"). */
.status-badge i,
.card-title-icon {
  font-size: 1.3rem;
  border: 1px solid var(--aura-gold);
  border-radius: 999px;
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.script-label {
  font-family: 'Sacramento', cursive;
  font-size: 1.75rem;
  line-height: 1;
  font-weight: 400;
}

.points-value {
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--text-light);
}

/* Etykieta pod dużą liczbą punktów — ZAWSZE osobna linia (nie inline obok liczby),
   żeby przy węższej ramce nie łamała się w środku frazy ("PUNKTÓW DO" / "WYDANIA"). */
.points-value-label {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 500;
  margin-top: 2px;
}

.progress-aura {
  height: 8px;
  border-radius: 999px;
  background: var(--overlay-soft);
  overflow: hidden;
}
.progress-aura .bar {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--aura-copper), var(--aura-silver-blue));
  box-shadow: 0 0 12px var(--aura-copper-glow);
}

/* ---- Journey timeline ------------------------------------------------- */

.timeline-glow {
  display: inline-flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--aura-copper-2);
  font-weight: 500;
  font-size: 0.92rem;
  line-height: 1.4;
}

.glow-dot {
  width: 12px;
  height: 12px;
  margin-top: 4px;
  border-radius: 50%;
  background: var(--aura-copper);
  box-shadow: 0 0 0 4px var(--aura-copper-soft), 0 0 16px 2px var(--aura-copper-glow);
  animation: pulse-dot 2.2s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 4px var(--aura-copper-soft), 0 0 16px 2px var(--aura-copper-glow); }
  50% { box-shadow: 0 0 0 7px var(--aura-copper-soft), 0 0 22px 4px var(--aura-copper-glow); }
}

.journey-line {
  position: relative;
  padding-left: 38px;
}

.journey-line::before {
  content: '';
  position: absolute;
  left: 13px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--aura-copper), var(--aura-border) 85%, transparent);
}

.journey-item {
  position: relative;
  margin-bottom: 1.5rem;
}

.journey-item::before {
  content: '';
  position: absolute;
  left: -32px;
  top: 20px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--aura-charcoal);
  border: 2px solid var(--aura-copper);
  box-shadow: 0 0 0 3px var(--aura-charcoal-2);
  z-index: 1;
}

/* Kolor kropki odzwierciedla status kroku (patrz plakietki w Ścieżce Gościa). */
.journey-item--done::before {
  background: var(--aura-emerald);
  border-color: var(--aura-emerald);
  box-shadow: 0 0 0 3px var(--aura-charcoal-2), 0 0 12px -2px var(--aura-emerald-glow);
}
.journey-item--partial::before {
  border-color: var(--aura-sapphire-2);
  box-shadow: 0 0 0 3px var(--aura-charcoal-2), 0 0 10px -3px var(--aura-sapphire-glow);
}
.journey-item--missing::before {
  border-color: var(--aura-emerald);
}

.journey-item:last-child { margin-bottom: 0; }

.suite-thumb {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
  background: linear-gradient(140deg, var(--surface-deep-1), var(--surface-deep-2) 55%, var(--surface-deep-3));
  border: 1px solid var(--aura-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--aura-gold-light);
  font-size: 1.4rem;
  position: relative;
  overflow: hidden;
}
.suite-thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 20%, var(--aura-gold-soft), transparent 60%);
}

/* ---- Twoje Podróże: expandable trip cards ----------------------------- */

.trip-list { display: flex; flex-direction: column; gap: 0.9rem; }

.trip-card {
  border: 1px solid var(--aura-border);
  border-radius: var(--radius-md);
  background: var(--overlay-soft-2);
  overflow: hidden;
}

.trip-card-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem 1.1rem;
  cursor: pointer;
  transition: background .2s ease;
}
.trip-card-header:hover { background: var(--overlay-soft); }

.trip-chevron {
  color: var(--text-faint);
  font-size: 1rem;
  transition: transform .25s ease;
  flex-shrink: 0;
}
.trip-card-header:not(.collapsed) .trip-chevron { transform: rotate(180deg); }

.trip-card-body {
  padding: 0 1.1rem 1.1rem;
  border-top: 1px solid var(--aura-border);
  padding-top: 1rem;
}

.trip-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.9rem 1.5rem;
  font-size: 0.85rem;
}
.trip-detail-grid .eyebrow { font-size: 0.68rem; }

@media (max-width: 575.98px) {
  .trip-detail-grid { grid-template-columns: 1fr; }
  .trip-card-header { flex-wrap: wrap; }
}

.btn-outline-gold {
  border: 1px solid var(--aura-gold);
  color: var(--aura-gold-light);
  background: transparent;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 0.5rem 1.3rem;
  transition: all .25s ease;
}
.btn-outline-gold:hover {
  background: var(--aura-gold);
  color: #1a1406;
  box-shadow: 0 0 20px var(--aura-gold-glow);
}

.btn-outline-sapphire {
  border: 1px solid var(--aura-sapphire);
  color: var(--aura-sapphire-2);
  background: transparent;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.5rem 1.3rem;
  transition: all .25s ease;
}
.btn-outline-sapphire:hover {
  background: var(--aura-sapphire);
  color: #fff;
  box-shadow: 0 0 20px var(--aura-sapphire-glow);
}

/* ---- AI Concierge chat -------------------------------------------------- */

.ai-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, var(--aura-sapphire-2), var(--aura-sapphire) 70%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.15rem;
  box-shadow: 0 0 18px var(--aura-sapphire-glow);
  flex-shrink: 0;
  animation: breathe 3s ease-in-out infinite;
}

@keyframes breathe {
  0%, 100% { box-shadow: 0 0 14px var(--aura-sapphire-glow); }
  50% { box-shadow: 0 0 24px 4px var(--aura-sapphire-glow); }
}

.chat-window {
  background: var(--chat-window-bg);
  border: 1px solid var(--aura-border);
  border-radius: var(--radius-md);
  padding: 1rem;
  max-height: 280px;
  overflow-y: auto;
}

.chat-bubble {
  max-width: 82%;
  padding: 0.65rem 1rem;
  border-radius: 16px;
  font-size: 0.87rem;
  line-height: 1.45;
  margin-bottom: 0.7rem;
}

.chat-bubble.user {
  margin-left: auto;
  background: var(--aura-sapphire-soft);
  border: 1px solid var(--aura-sapphire-soft);
  border-bottom-right-radius: 4px;
  color: var(--text-light);
}

.chat-bubble.aura {
  background: var(--aura-charcoal-2);
  border: 1px solid var(--aura-border);
  border-bottom-left-radius: 4px;
  color: var(--text-light);
}

.chat-actions .btn {
  font-size: 0.75rem;
  padding: 0.3rem 1rem;
  border-radius: 999px;
  font-weight: 600;
}

.chat-input-bar {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 1rem;
  background: var(--aura-charcoal-2);
  border: 1px solid var(--aura-border);
  border-radius: 999px;
  padding: 0.4rem 0.4rem 0.4rem 1rem;
}
.chat-input-bar input {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-light);
  font-size: 0.85rem;
}
.chat-input-bar input:focus { outline: none; }
.chat-input-bar .send-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--aura-sapphire);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  flex-shrink: 0;
}

/* Mood slider */
.mood-slider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.25rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--aura-border);
}

.mood-track {
  position: relative;
  flex: 1;
  height: 4px;
  background: var(--overlay-soft);
  border-radius: 999px;
}

.mood-track .fill {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 50%;
  background: linear-gradient(90deg, var(--aura-copper), var(--aura-gold));
  border-radius: 999px;
}

.mood-handle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--text-light);
  box-shadow: 0 0 0 4px var(--aura-copper-soft), 0 2px 6px rgba(0,0,0,0.4);
  cursor: pointer;
}

.mood-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--aura-charcoal-2);
  border: 1px solid var(--aura-border);
  color: var(--text-muted);
  font-size: 0.95rem;
}
.mood-icon.active {
  color: var(--aura-gold-light);
  border-color: var(--aura-gold);
}

/* ---- Smart Room ------------------------------------------------------- */

.atmo-btn {
  flex: 1;
  aspect-ratio: 1 / 0.85;
  border-radius: var(--radius-md);
  background: var(--aura-charcoal-2);
  border: 1px solid var(--aura-border);
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  transition: all .25s ease;
}
.atmo-btn i { font-size: 1.4rem; }

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

.atmo-btn.mode-noc:hover, .atmo-btn.mode-noc.active {
  border-color: var(--aura-sapphire);
  color: var(--aura-sapphire-2);
  box-shadow: 0 0 22px -6px var(--aura-sapphire-glow);
}
.atmo-btn.mode-praca:hover, .atmo-btn.mode-praca.active {
  border-color: var(--aura-gold);
  color: var(--aura-gold-light);
  box-shadow: 0 0 22px -6px var(--aura-gold-glow);
}
.atmo-btn.mode-relaks:hover, .atmo-btn.mode-relaks.active {
  border-color: var(--aura-emerald);
  color: var(--aura-emerald);
  box-shadow: 0 0 22px -6px var(--aura-emerald-glow);
}

.digital-key {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: linear-gradient(135deg, var(--aura-sapphire-soft), transparent);
  border: 1px solid var(--aura-border);
  border-radius: var(--radius-md);
  padding: 0.9rem 1.1rem;
  margin-top: 1.1rem;
}

.nfc-pulse {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--aura-sapphire);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.2rem;
  position: relative;
  flex-shrink: 0;
}
.nfc-pulse::before, .nfc-pulse::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid var(--aura-sapphire);
  animation: nfc-ring 2s ease-out infinite;
}
.nfc-pulse::after { animation-delay: 1s; }

@keyframes nfc-ring {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(1.9); opacity: 0; }
}

.floor-map {
  position: relative;
  height: 130px;
  border-radius: var(--radius-md);
  background:
    repeating-linear-gradient(0deg, var(--overlay-soft-2) 0 1px, transparent 1px 26px),
    repeating-linear-gradient(90deg, var(--overlay-soft-2) 0 1px, transparent 1px 26px),
    linear-gradient(160deg, var(--surface-deep-2), var(--surface-deep-3));
  border: 1px solid var(--aura-border);
  margin-top: 1.1rem;
  overflow: hidden;
}

.map-room {
  position: absolute;
  border: 1px dashed var(--aura-border);
  border-radius: 4px;
}

.trolley-icon {
  position: absolute;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--aura-gold);
  color: #1a1406;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  box-shadow: 0 0 12px var(--aura-gold-glow);
  animation: trolley-move 6s ease-in-out infinite;
}

@keyframes trolley-move {
  0%, 100% { left: 10%; top: 65%; }
  50% { left: 68%; top: 30%; }
}

.map-label {
  position: absolute;
  bottom: 8px;
  left: 10px;
  font-size: 0.72rem;
  color: var(--text-muted);
  background: var(--map-label-bg);
  padding: 3px 10px;
  border-radius: 999px;
}

/* ---- Achievements / medals ------------------------------------------- */

.medal {
  width: 108px;
  height: 108px;
  border-radius: 50%;
  margin: 0 auto 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.1rem;
  position: relative;
  background: var(--aura-charcoal-2);
  border: 2px solid var(--aura-gold);
}

.medal::before {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1px solid var(--aura-gold);
  opacity: 0.35;
}

.medal.gold { color: var(--aura-gold-light); box-shadow: 0 0 26px -4px var(--aura-gold-glow); }
.medal.green { color: var(--aura-emerald); border-color: var(--aura-emerald); box-shadow: 0 0 26px -4px var(--aura-emerald-glow); }
.medal.sapphire { color: var(--aura-sapphire-2); border-color: var(--aura-sapphire); box-shadow: 0 0 26px -4px var(--aura-sapphire-glow); }

.medal.locked {
  border-style: dashed;
  border-color: var(--aura-border);
  color: var(--text-faint);
  box-shadow: none;
}

.achievement-card {
  text-align: center;
}

.achievement-card h6 {
  font-size: 0.88rem;
  margin-bottom: 0.2rem;
}

/* ---- Section switching ------------------------------------------------- */

.app-section { display: none; }
.app-section.active { display: block; }

/* ---- Dashboard: point tiles ------------------------------------------- */

.points-value.currency {
  background: linear-gradient(135deg, var(--aura-copper-2), var(--aura-copper));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---- Dashboard: notice / tip banners ------------------------------------ */

.notice-banner {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  border-left: 3px solid var(--aura-gold);
  background: var(--aura-gold-soft);
  border-radius: var(--radius-sm);
  padding: 0.8rem 1rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}
.notice-banner i { color: var(--aura-gold-light); font-size: 1rem; margin-top: 1px; }
.notice-banner strong { color: var(--text-light); }

.tip-banner {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  border-left: 3px solid var(--aura-sapphire);
  background: var(--aura-sapphire-soft);
  border-radius: var(--radius-sm);
  padding: 0.8rem 1rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 1.1rem;
}
.tip-banner i { color: var(--aura-sapphire-2); font-size: 1rem; margin-top: 1px; }

/* ---- Dashboard: stat tiles ------------------------------------------- */

.stat-tile {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  height: 100%;
}

.stat-tile-icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
  background: var(--aura-copper-soft);
  color: var(--aura-copper-2);
}

@keyframes icon-pulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 var(--aura-copper-soft); }
  50% { transform: scale(1.12); box-shadow: 0 0 0 8px transparent; }
}

.aura-card:hover .stat-tile-icon {
  animation: icon-pulse 0.9s ease-in-out infinite;
}

/* Duża, półprzezroczysta ikona-akcent w rogu karty statystyki (ta sama ikona co w .stat-tile-icon,
   tylko większa i wyblakła w tle) — .aura-card ma już position:relative;overflow:hidden, więc
   wystarczy jeden absolutnie pozycjonowany element, bez dodatkowego wrappera. */
.stat-tile-watermark {
  position: absolute;
  right: -0.5rem;
  bottom: -0.9rem;
  font-size: 4.6rem;
  line-height: 1;
  opacity: 0.2;
  color: var(--aura-copper-2);
  pointer-events: none;
  z-index: 0;
}

.stat-tile-value {
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--text-light);
  line-height: 1.2;
}

/* Siatka kafelków-skrótów do modułów na Dashboardzie admina — szybkie wejście bez sidebara. */
.dash-module-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  gap: .6rem;
}
.dash-module-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  text-align: center;
  padding: .8rem .4rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--aura-border);
  background: var(--surface-deep-2);
  color: var(--text-light);
  text-decoration: none;
  transition: border-color .15s ease, transform .15s ease, background .15s ease;
}
.dash-module-tile:hover {
  border-color: var(--aura-gold);
  background: var(--aura-gold-soft);
  color: var(--text-light);
  transform: translateY(-2px);
}
.dash-module-tile i {
  font-size: 1.3rem;
  color: var(--aura-gold-light);
}
.dash-module-tile span {
  font-size: .72rem;
  line-height: 1.2;
  font-weight: 500;
}

.habit-bar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.delta-badge {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 2px 9px;
  border-radius: 999px;
  color: var(--aura-emerald);
  background: rgba(87, 199, 154, 0.12);
}

/* ---- Dashboard: mode switch --------------------------------------------- */

.mode-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1.2rem;
  border-radius: 999px;
  border: 1px solid var(--aura-border);
  background: var(--aura-charcoal-2);
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: all .25s ease;
}
.mode-btn:hover { color: var(--text-light); }

.mode-btn.active[data-mode="relaks"] {
  border-color: var(--aura-emerald);
  color: var(--aura-emerald);
  background: rgba(87, 199, 154, 0.1);
  box-shadow: 0 0 18px -6px var(--aura-emerald-glow);
}
.mode-btn.active[data-mode="jedzenie"] {
  border-color: var(--aura-gold);
  color: var(--aura-gold-light);
  background: var(--aura-gold-soft);
  box-shadow: 0 0 18px -6px var(--aura-gold-glow);
}
.mode-btn.active[data-mode="podroze"] {
  border-color: var(--aura-sapphire);
  color: var(--aura-sapphire-2);
  background: var(--aura-sapphire-soft);
  box-shadow: 0 0 18px -6px var(--aura-sapphire-glow);
}
.mode-btn.active[data-mode="inne"] {
  border-color: var(--aura-copper);
  color: var(--aura-copper-2);
  background: var(--aura-copper-soft);
  box-shadow: 0 0 18px -6px var(--aura-copper-glow);
}

.mode-recommendation {
  border-radius: var(--radius-md);
  border: 1px solid var(--aura-border);
  background: var(--overlay-soft-2);
  padding: 1rem 1.2rem;
  transition: all .3s ease;
}

.mode-rec-icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
  background: var(--aura-gold-soft);
  color: var(--aura-gold-light);
  transition: all .3s ease;
}
[data-mode="relaks"] .mode-rec-icon { background: rgba(87, 199, 154, 0.12); color: var(--aura-emerald); }
[data-mode="jedzenie"] .mode-rec-icon { background: var(--aura-gold-soft); color: var(--aura-gold-light); }
[data-mode="podroze"] .mode-rec-icon { background: var(--aura-sapphire-soft); color: var(--aura-sapphire-2); }
[data-mode="inne"] .mode-rec-icon { background: var(--aura-copper-soft); color: var(--aura-copper-2); }

/* ---- Dashboard: habit bars ------------------------------------------- */

.habit-bar {
  display: grid;
  grid-template-columns: 140px 1fr 44px;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 0.8rem;
  font-size: 0.85rem;
}
.habit-bar:last-child { margin-bottom: 0; }
.habit-bar-label { color: var(--text-muted); }
.habit-bar-pct { text-align: right; color: var(--text-light); font-weight: 600; font-size: 0.8rem; }

/* ---- Geolocation / beacons ------------------------------------------- */

.beacon-map {
  position: relative;
  height: 220px;
  border-radius: var(--radius-md);
  background:
    repeating-linear-gradient(0deg, var(--overlay-soft-2) 0 1px, transparent 1px 28px),
    repeating-linear-gradient(90deg, var(--overlay-soft-2) 0 1px, transparent 1px 28px),
    linear-gradient(160deg, var(--surface-deep-2), var(--surface-deep-3));
  border: 1px solid var(--aura-border);
  overflow: hidden;
}

.beacon-pin {
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--aura-copper);
  box-shadow: 0 0 0 4px var(--aura-copper-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.6rem;
}
.beacon-pin::before, .beacon-pin::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid var(--aura-copper);
  animation: nfc-ring 2.4s ease-out infinite;
}
.beacon-pin::after { animation-delay: 1.2s; }
.beacon-pin.sapphire { background: var(--aura-sapphire); box-shadow: 0 0 0 4px var(--aura-sapphire-soft); }
.beacon-pin.sapphire::before, .beacon-pin.sapphire::after { border-color: var(--aura-sapphire); }

.beacon-label {
  position: absolute;
  font-size: 0.72rem;
  color: var(--text-muted);
  background: var(--map-label-bg);
  padding: 3px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

.notification-card {
  display: flex;
  gap: 0.9rem;
  padding: 0.9rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--aura-border);
  background: var(--overlay-soft-2);
  margin-bottom: 0.8rem;
}
.notification-card:last-child { margin-bottom: 0; }

.notification-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--aura-copper-soft);
  color: var(--aura-copper-2);
  font-size: 1rem;
}
.notification-icon.sapphire { background: var(--aura-sapphire-soft); color: var(--aura-sapphire-2); }

.mission-item {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.75rem 0.2rem;
  border-bottom: 1px solid var(--aura-border);
}
.mission-item:last-child { border-bottom: none; }

.mission-check {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.85rem;
  border: 2px solid var(--aura-border);
  color: var(--text-faint);
}
.mission-item.done .mission-check {
  border-color: var(--aura-emerald);
  color: var(--aura-emerald);
  background: rgba(87, 199, 154, 0.1);
}

/* ---- Rewards catalog / yield management -------------------------------- */

.reward-card {
  border: 1px solid var(--aura-border);
  border-radius: var(--radius-md);
  background: var(--overlay-soft-2);
  padding: 1.1rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.reward-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  background: var(--aura-gold-soft);
  color: var(--aura-gold-light);
}

.yield-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 2px 9px;
  border-radius: 999px;
  width: fit-content;
  white-space: nowrap;
  flex-shrink: 0;
}
.yield-badge.down { color: var(--aura-emerald); background: rgba(87, 199, 154, 0.12); }
.yield-badge.up { color: var(--aura-copper-2); background: var(--aura-copper-soft); }
.yield-badge.pending { color: var(--aura-gold-light); background: var(--aura-gold-soft); }
.yield-badge.positive { color: var(--aura-emerald); background: rgba(87, 199, 154, 0.12); }
.yield-badge.negative { color: var(--aura-copper-2); background: var(--aura-copper-soft); }
.yield-badge.info { color: var(--aura-sapphire-2); background: var(--aura-sapphire-soft); }
/* Odznaka jako klikalny przycisk (np. przełącznik wpłaty uczestnika) */
.yield-badge-btn { border: none; cursor: pointer; font-family: inherit; }

.reward-price {
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--aura-gold-light);
}
.reward-price .old {
  font-family: 'Poppins', sans-serif;
  font-weight: 400;
  font-size: 0.78rem;
  color: var(--text-faint);
  text-decoration: line-through;
  margin-left: 6px;
}

/* ---- Nagrody B2B — karty w siatce (Panel B2B) --------------------------
   UWAGA: celowo NIE .reward-card/.reward-grid — ten plik ma już wyżej własną,
   inną (uproszczoną, bez zdjęcia/stopki) klasę .reward-card, a .reward-grid tu
   w ogóle nie istnieje; client.css ma swoją WŁASNĄ, faktycznie używaną wersję
   siatki kart dla Panelu Klienta. Reużycie tych samych nazw nadpisałoby/pomyliło
   jedną z nich — patrz analogiczna kolizja .club-card/.wallet-pass wyżej.
   Wygląd skopiowany 1:1 z client.css .reward-grid/.reward-card, z dodatkową
   stopką na dwie akcje (Odbierz + Szczegóły) zamiast całej karty jako linku. */
.b2b-reward-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}
.b2b-reward-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--radius-md);
  border: 1px solid var(--aura-border);
  background: linear-gradient(180deg, var(--aura-charcoal-2), var(--aura-charcoal));
}
.b2b-reward-card-badge { position: absolute; top: .7rem; right: .7rem; z-index: 1; }
/* Na zdjęciu (nie na jednolitym tle karty) odznaka dostaje ciemne, przezroczyste tło zamiast
   zwykłego koloru semantycznego .yield-badge — tak jak .reward-card-badge w Panelu Klienta —
   żeby była czytelna niezależnie od jasności fotografii pod spodem. W jasnym motywie ten wariant
   nadpisuje się niżej na pełne zielone tło — patrz komentarz przy regule [data-theme="light"]. */
.b2b-reward-card-badge.yield-badge.positive {
  background: rgba(11, 10, 9, .65);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}
/* W jasnym motywie ciemne półprzezroczyste tło ledwo odróżnia się od jasnych zdjęć — pełne
   zielone tło z białym tekstem czyta się tu wyraźnie lepiej niż wariant „na zdjęciu" wyżej. */
:root[data-theme="light"] .b2b-reward-card-badge.yield-badge.positive {
  background: var(--aura-emerald);
  color: #fff;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.b2b-reward-card-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  background: var(--surface-deep-2);
}
.b2b-reward-card-image-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: var(--aura-gold-light);
  border-bottom: 1px solid var(--aura-border);
}
.b2b-reward-card-body {
  display: flex;
  flex-direction: column;
  gap: .3rem;
  padding: .85rem 1rem 1rem;
  flex: 1;
}
.b2b-reward-card-name {
  font-weight: 600;
  font-size: .92rem;
  line-height: 1.3;
  color: var(--text-light);
  text-decoration: none;
}
.b2b-reward-card-name:hover { color: var(--aura-gold-light); }
.b2b-reward-card-category { font-size: .72rem; color: var(--text-faint); }
.b2b-reward-card-footer { margin-top: .3rem; }
.b2b-reward-card-cost { font-weight: 700; font-size: 1.05rem; }
.b2b-reward-card-pln { font-size: .7rem; color: var(--text-faint); }
.b2b-reward-card-actions { display: flex; gap: .5rem; margin-top: auto; padding-top: .7rem; }
.b2b-reward-card-actions form { flex: 1 1 auto; }

.auction-card {
  border: 1px solid var(--aura-gold);
  border-radius: var(--radius-md);
  background: linear-gradient(160deg, var(--aura-gold-soft), transparent 70%);
  padding: 1.2rem;
}

.bid-input-group {
  display: flex;
  gap: 0.6rem;
}
.bid-input-group input {
  flex: 1;
  background: var(--aura-charcoal-2);
  border: 1px solid var(--aura-border);
  border-radius: 999px;
  padding: 0.5rem 1rem;
  color: var(--text-light);
  font-size: 0.85rem;
}
.bid-input-group input:focus { outline: none; border-color: var(--aura-gold); }

/* ---- Referrals / partner program --------------------------------------- */

.referral-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.9rem;
  padding: 0.75rem 0.2rem;
  border-bottom: 1px solid var(--aura-border);
}
.referral-item:last-child { border-bottom: none; }

.aura-card.clickable {
  cursor: pointer;
  transition: transform .2s ease, border-color .2s ease;
}
.aura-card.clickable:hover {
  transform: translateY(-3px);
  border-color: var(--aura-copper);
}

/* ---- Family wallet / pooling ------------------------------------------- */

.family-member {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.7rem 0.2rem;
  border-bottom: 1px solid var(--aura-border);
}
.family-member:last-child { border-bottom: none; }

.family-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.9rem;
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--aura-copper-2), var(--aura-copper));
  color: #fff;
}

/* Logo hotelu (SVG białe) w miejsce ikony zastępczej — wewnątrz dowolnego okrągłego/
   zaokrąglonego "avatara" (.hotel-logo-avatar, .mobile-row-icon, .notification-icon). */
.hotel-logo-img {
  width: 70%;
  height: 70%;
  object-fit: contain;
}

/* Okrągły "avatar" na logo hotelu — celowo NA SZTYWNO ciemne tło (nie var(--aura-charcoal-2),
   które w jasnym motywie jest kremowe i robi białe logo SVG praktycznie niewidoczne), żeby
   logo było dobrze czytelne niezależnie od jasnego/ciemnego motywu. */
.hotel-logo-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: .9rem;
  color: #fff;
  background: #201a15;
  border: 1px solid rgba(255, 255, 255, .12);
}

.transfer-log-item {
  font-size: 0.82rem;
  color: var(--text-muted);
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--aura-border);
}
.transfer-log-item:last-child { border-bottom: none; }

.history-item {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--aura-border);
}
.history-item:last-child { border-bottom: none; }

/* ---- Wallet pass ------------------------------------------------------- */

.wallet-pass {
  border-radius: 22px;
  padding: 1.6rem;
  width: 100%;
  color: #fff;
  background:
    radial-gradient(circle at 15% 0%, rgba(255, 255, 255, 0.12), transparent 55%),
    linear-gradient(150deg, var(--aura-copper) 0%, #6e3e14 60%, #2a1a0a 100%);
  box-shadow: 0 20px 50px -18px var(--aura-copper-glow), 0 12px 30px rgba(0,0,0,0.4);
  position: relative;
  overflow: hidden;
}
.wallet-pass::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(115deg, rgba(255,255,255,0.03) 0 2px, transparent 2px 6px);
}
.wallet-pass-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  position: relative;
  z-index: 1;
}
.wallet-pass-code {
  margin-top: 1.5rem;
  height: 46px;
  border-radius: 8px;
  background: repeating-linear-gradient(90deg, #fff 0 2px, transparent 2px 5px, #fff 5px 7px, transparent 7px 11px);
  opacity: 0.85;
  position: relative;
  z-index: 1;
}

/* ---- Special offers teaser (Panel Klienta, dashboard) ------------------
   Ten sam pomysł co .wallet-pass — na sztywno ciemna, miedziana karta z
   białym tekstem, żeby wyróżniała się niezależnie od jasnego/ciemnego
   motywu (zamiast dziedziczyć var(--aura-charcoal-2), która w jasnym
   motywie robi się prawie biała i karta ginie na tle reszty panelu). */
.special-offers-card {
  display: block;
  background:
    radial-gradient(circle at 15% 0%, rgba(255, 255, 255, 0.12), transparent 55%),
    linear-gradient(150deg, var(--aura-copper) 0%, #6e3e14 60%, #2a1a0a 100%);
  border-color: transparent;
  box-shadow: 0 20px 50px -18px var(--aura-copper-glow), 0 12px 30px rgba(0, 0, 0, 0.4);
  color: #fff;
}
.special-offers-card .aura-card-title,
.special-offers-card .aura-card-title i {
  color: #fff;
}
.special-offers-card .aura-card-title {
  position: relative;
  z-index: 1;
}
.special-offers-card .card-title-icon {
  border-color: rgba(255, 255, 255, 0.55);
}
.special-offers-watermark {
  position: absolute;
  top: -0.6rem;
  right: -0.6rem;
  font-size: 5.5rem;
  line-height: 1;
  color: #fff;
  opacity: 0.3;
  pointer-events: none;
  z-index: 0;
}
.special-offers-text {
  position: relative;
  z-index: 1;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.85rem;
}
.special-offers-btn {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.55);
  color: #fff;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 0.6rem 1rem;
  transition: all .25s ease;
}
.special-offers-btn:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}

.wallet-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.65rem 1.4rem;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  border: 1px solid var(--aura-border);
  background: var(--aura-charcoal-2);
  color: var(--text-light);
  transition: all .2s ease;
}
.wallet-btn:hover { border-color: var(--aura-copper); color: var(--aura-copper-2); }

.geofence-diagram {
  position: relative;
  width: 110px;
  height: 110px;
  flex-shrink: 0;
}
.geofence-diagram .ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid var(--aura-copper);
  opacity: 0.5;
}
.geofence-diagram .ring:nth-child(2) { inset: 20px; opacity: 0.7; }
.geofence-diagram .ring:nth-child(3) { inset: 40px; opacity: 0.9; }
.geofence-diagram .core {
  position: absolute;
  inset: 45px;
  border-radius: 50%;
  background: var(--aura-copper);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.85rem;
  box-shadow: 0 0 16px var(--aura-copper-glow);
}

/* ---- Settings ------------------------------------------------------- */

.settings-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 0.2rem;
  border-bottom: 1px solid var(--aura-border);
}
.settings-row:last-child { border-bottom: none; }

.form-check-input {
  cursor: pointer;
}
.form-check-input:checked {
  background-color: var(--aura-copper);
  border-color: var(--aura-copper);
}

/* ============================================================
   ADMIN PANEL — tables, filters, selects, modals, tabs
   ============================================================ */

.admin-table-wrap { overflow-x: auto; }

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  color: var(--text-light);
}
.admin-table thead th {
  text-align: left;
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
  font-weight: 600;
  padding: 0.6rem 0.8rem;
  border-bottom: 1px solid var(--aura-border);
  white-space: nowrap;
}
.admin-table tbody td {
  padding: 0.75rem 0.8rem;
  border-bottom: 1px solid var(--aura-border);
  vertical-align: middle;
  white-space: nowrap;
}
.admin-table tbody tr:last-child td { border-bottom: none; }
.admin-table tbody tr { transition: background .15s ease; }
.admin-table tbody tr:hover { background: var(--overlay-soft); }

.table-avatar-cell { display: flex; align-items: center; gap: 0.7rem; white-space: nowrap; }

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  align-items: center;
  margin-bottom: 1.1rem;
}

.aura-select {
  background: var(--aura-charcoal-2);
  border: 1px solid var(--aura-border);
  border-radius: 999px;
  padding: 0.4rem 2rem 0.4rem 1rem;
  color: var(--text-light);
  font-size: 0.83rem;
  min-width: 150px;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%23ad9f8c' d='M4 6l4 4 4-4z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  background-size: 11px;
}
.aura-select:focus {
  outline: none;
  border-color: var(--aura-copper);
  box-shadow: 0 0 0 3px var(--aura-copper-soft);
}

/* ---- Wizualny wybór ikony (Bootstrap Icons) — pola "Ikona" w adminie ---- */
.icon-picker-toggle {
  width: 100%;
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.icon-picker-toggle-label i { font-size: 1.05rem; color: var(--text-muted); }
.icon-picker-menu { min-width: 280px; max-width: 340px; }
.icon-picker-search {
  width: 100%;
  background: var(--aura-charcoal-2);
  border: 1px solid var(--aura-border);
  border-radius: var(--radius-sm);
  padding: 0.45rem 0.75rem;
  color: var(--text-light);
  font-size: 0.83rem;
  margin-bottom: 0.5rem;
}
.icon-picker-search:focus { outline: none; border-color: var(--aura-copper); }
.icon-picker-list { max-height: 260px; overflow-y: auto; }
.icon-picker-option { cursor: pointer; }
.icon-picker-option[hidden] { display: none !important; }

/* ---- Wizualny upload zdjęcia (dropzone) — pola "Zdjęcie" w adminie ---- */
.image-picker {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem 1rem;
  border: 1px dashed var(--aura-border);
  border-radius: var(--radius-md);
  background: var(--aura-charcoal-2);
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease;
}
.image-picker:hover, .image-picker-dragover {
  border-color: var(--aura-copper);
  background: var(--aura-copper-soft);
}
.image-picker-preview { flex-shrink: 0; }
.image-picker-thumb {
  width: 72px;
  height: 56px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  display: block;
}
.image-picker-placeholder {
  width: 72px;
  height: 56px;
  border-radius: var(--radius-sm);
  background: var(--aura-charcoal-3, var(--aura-charcoal));
  border: 1px solid var(--aura-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: var(--text-muted);
}
.image-picker-body { min-width: 0; }
.image-picker-label { font-weight: 600; font-size: 0.88rem; color: var(--text-light); }
.image-picker-hint {
  font-size: 0.76rem;
  color: var(--text-faint);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.image-picker-remove {
  margin-left: auto;
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--aura-border);
  background: transparent;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
}
.image-picker-remove:hover { border-color: #d9534f; color: #d9534f; }
.image-picker-removed { border-color: #d9534f; }
.image-picker-removed .image-picker-thumb,
.image-picker-removed .image-picker-placeholder { opacity: 0.35; }
.image-picker-removed .image-picker-label { color: #d9534f; }

/* Kolumna akcji w tabelach admina — flex na SAMYM <td> psuł wyrównanie wiersza
   (linie rozdzielające, wysokość komórki); grupujemy przyciski w środku komórki. */
.row-actions-group {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.row-actions-group form { display: inline-flex; margin: 0; }

.row-action-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--aura-border);
  background: transparent;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all .2s ease;
}
.row-action-btn:hover { border-color: var(--aura-copper); color: var(--aura-copper-2); background: var(--aura-copper-soft); }

.yield-badge.neutral { color: var(--text-faint); background: var(--overlay-soft); }

/* Modal dark theme */
.modal-content {
  background: var(--aura-charcoal);
  border: 1px solid var(--aura-border);
  border-radius: var(--radius-lg);
  color: var(--text-light);
  box-shadow: var(--card-shadow);
}
.modal-header, .modal-footer { border-color: var(--aura-border); }
.modal-title { font-weight: 600; display: flex; align-items: center; gap: 0.5rem; font-size: 1.05rem; }
.btn-close { filter: invert(1) grayscale(1) brightness(1.8); opacity: .65; }
.btn-close:hover { opacity: 1; }
.modal-backdrop.show { opacity: .65; }

/* Accordion dark theme (np. wybór kontaktów w modalu dopisywania uczestników) */
.accordion-item {
  background: var(--aura-charcoal-2);
  border: 1px solid var(--aura-border);
}
.accordion-button {
  background: transparent;
  color: var(--text-light);
  font-weight: 600;
  font-size: .9rem;
}
.accordion-button:not(.collapsed) {
  background: var(--overlay-soft-2);
  color: var(--aura-gold-light);
  box-shadow: none;
}
.accordion-button:focus { box-shadow: none; border-color: var(--aura-border); }
.accordion-button::after { filter: invert(1) grayscale(1) brightness(1.8); }
.accordion-body { background: var(--aura-charcoal); }

.form-label {
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 0.35rem;
}

textarea.aura-search { border-radius: 14px; resize: vertical; }

/* Leaderboard mini cards (Polecenia) */
.leader-card {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  border: 1px solid var(--aura-border);
  border-radius: var(--radius-md);
  background: var(--overlay-soft-2);
  padding: 0.9rem 1rem;
  height: 100%;
}
.leader-rank {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: .85rem;
  background: var(--aura-gold-soft);
  color: var(--aura-gold-light);
  flex-shrink: 0;
}

/* Tabs (Osiągnięcia / Wyzwania) */
.aura-tabs { display: flex; gap: 0.5rem; margin-bottom: 1.25rem; flex-wrap: wrap; }
.aura-tab-btn {
  border: 1px solid var(--aura-border);
  background: transparent;
  color: var(--text-muted);
  padding: 0.5rem 1.2rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  transition: all .2s ease;
}
.aura-tab-btn.active, .aura-tab-btn:hover {
  border-color: var(--aura-copper);
  color: var(--aura-copper-2);
  background: var(--aura-copper-soft);
}

.tab-pane-admin { display: none; }
.tab-pane-admin.active-pane { display: block; }

/* Podgląd ekranu powitalnego gościa (moduł Hotele → zakładka "Podgląd powitania") — mockup
   karty tak jak wygląda na dole ekranu w Panelu Klienta, patrz client.css .bottom-sheet. */
.welcome-preview-frame { max-width: 380px; margin: 0 auto; }
.welcome-preview-card {
  background: linear-gradient(180deg, var(--aura-charcoal-2), var(--aura-charcoal));
  border: 1px solid var(--aura-border);
  border-top: 3px solid var(--aura-gold);
  border-radius: 20px;
  padding: 1.4rem 1.3rem;
  box-shadow: var(--card-shadow);
}
.welcome-preview-eyebrow { display: flex; align-items: center; gap: .4rem; color: var(--aura-gold-light); font-size: 1.1rem; font-weight: 700; }
.welcome-preview-eyebrow i { color: var(--aura-gold); }
.welcome-preview-message { color: var(--text-muted); font-size: .88rem; margin: .5rem 0 0; }
.welcome-preview-subheading { font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; color: var(--text-faint); margin: 1.1rem 0 .6rem; }
.welcome-preview-highlights { display: flex; flex-direction: column; gap: .6rem; }
.welcome-preview-highlight { display: flex; align-items: flex-start; gap: .65rem; }
.welcome-preview-highlight-icon {
  flex: 0 0 auto; width: 34px; height: 34px; border-radius: 999px;
  background: var(--aura-gold-soft); color: var(--aura-gold-light);
  display: flex; align-items: center; justify-content: center; font-size: .9rem;
}
.welcome-preview-highlight-title { font-size: .85rem; font-weight: 600; color: var(--text-light); }
.welcome-preview-highlight-desc { font-size: .74rem; color: var(--text-faint); }

@media (max-width: 767.98px) {
  .filter-bar { flex-direction: column; align-items: stretch; }
  .filter-bar .aura-search, .filter-bar .aura-select { width: 100%; }
}

/* ---- Karta identyfikacyjna (np. Portfel B2B) ------------------------
   UWAGA: celowo NIE nazwana .wallet-pass — ten plik ma już (nieużywaną gdzie indziej)
   klasę .wallet-pass o zupełnie innym wyglądzie (pasek kreskowy), a client.css ma
   swoją WŁASNĄ, faktycznie używaną wersję .wallet-pass/.wp-* dla Panelu Klienta.
   Reużycie tej samej nazwy tutaj nadpisałoby jedną z nich — patrz analogiczna
   kolizja .bottom-sheet opisana w historii projektu. Wzorzec wizualny (gradient
   miedziany, znak wodny, siatka QR) skopiowany 1:1 z client.css .wallet-pass. */

.club-card {
  isolation: isolate;
  aspect-ratio: 85.6 / 53.98;
  padding: 1.15rem 1.3rem;
  border-radius: 22px;
  color: #fff;
  background:
    radial-gradient(circle at 15% 0%, rgba(255, 255, 255, 0.12), transparent 55%),
    linear-gradient(150deg, var(--aura-copper) 0%, #6e3e14 60%, #2a1a0a 100%);
  box-shadow: 0 20px 50px -18px var(--aura-copper-glow), 0 12px 30px rgba(0, 0, 0, 0.4);
  position: relative;
  overflow: hidden;
}
.club-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(115deg, rgba(255, 255, 255, 0.03) 0 2px, transparent 2px 6px);
}
.club-card-gem {
  position: absolute;
  left: -0.9rem;
  bottom: -1.9rem;
  font-size: 6.4rem;
  line-height: 1;
  color: #fff;
  opacity: 0.14;
  z-index: 0;
  pointer-events: none;
}
.club-card-grid {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  gap: 0.9rem;
}
.club-card-main {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.cc-eyebrow { font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; opacity: .78; }
.cc-name { font-size: clamp(1.15rem, 3.2vw, 1.5rem); font-weight: 700; line-height: 1.15; margin-top: .15rem; }
.cc-label { font-size: .62rem; letter-spacing: .12em; text-transform: uppercase; opacity: .72; }
.cc-number { font-size: clamp(.92rem, 2.4vw, 1.1rem); font-weight: 600; letter-spacing: .03em; white-space: nowrap; }

.club-card-qr {
  flex: 0 0 auto;
  align-self: center;
  background: none;
  border: 0;
  padding: 0;
  line-height: 0;
  cursor: pointer;
}
.club-card-qr img { width: clamp(78px, 12vw, 104px); height: clamp(78px, 12vw, 104px); display: block; }

/* ---- Kafelek zachęcający do katalogu nagród (Dashboard B2B) ------------
   Ten sam gradient miedziany co .club-card (Portfel B2B), tylko w kształcie
   szerokiego banera zamiast karty ID — spójny "portfelowy" wygląd, żeby od
   razu było widać, że to prowadzi do wymiany punktów. */
.rewards-promo-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.25rem;
  padding: 1.5rem 1.75rem;
  border-radius: var(--radius-md);
  position: relative;
  overflow: hidden;
  isolation: isolate;
  color: #fff;
  text-decoration: none;
  background:
    radial-gradient(circle at 15% 0%, rgba(255, 255, 255, 0.14), transparent 55%),
    linear-gradient(150deg, var(--aura-copper) 0%, #6e3e14 60%, #2a1a0a 100%);
  box-shadow: 0 20px 50px -18px var(--aura-copper-glow), 0 12px 30px rgba(0, 0, 0, 0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.rewards-promo-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(115deg, rgba(255, 255, 255, 0.03) 0 2px, transparent 2px 6px);
  pointer-events: none;
}
.rewards-promo-card:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 24px 60px -16px var(--aura-copper-glow), 0 14px 34px rgba(0, 0, 0, 0.45);
}
.rewards-promo-watermark {
  position: absolute;
  top: -1rem;
  right: -0.5rem;
  font-size: 7rem;
  line-height: 1;
  color: #fff;
  opacity: 0.16;
  z-index: 0;
  pointer-events: none;
}
.rewards-promo-body {
  position: relative;
  z-index: 1;
  min-width: 0;
}
.rewards-promo-badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  padding: 0.3rem 0.8rem;
  margin-bottom: 0.6rem;
}
.rewards-promo-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}
.rewards-promo-text {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.85);
  max-width: 640px;
}
.rewards-promo-count {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: #fff;
}
.rewards-promo-balance {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  text-align: center;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1.5rem;
}
.rewards-promo-balance-label {
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.8;
  margin-bottom: 0.3rem;
}
.rewards-promo-balance-value {
  font-size: 1.4rem;
  font-weight: 700;
  white-space: nowrap;
}
@media (max-width: 767.98px) {
  .rewards-promo-card { flex-direction: column; align-items: flex-start; }
  .rewards-promo-balance { align-self: stretch; text-align: left; }
}

/* ---- Kafelek postępu do rangi B2B (Dashboard B2B, pod "Ostatnie zgłoszenia") ------------
   Ten sam gradient miedziany co .club-card/.rewards-promo-card — na sztywno ciemny, żeby
   akcent "gamifikacji" wyróżniał się niezależnie od jasnego/ciemnego motywu. */
.b2b-tier-progress-card {
  color: #fff;
  background:
    radial-gradient(circle at 15% 0%, rgba(255, 255, 255, 0.12), transparent 55%),
    linear-gradient(150deg, var(--aura-copper) 0%, #6e3e14 60%, #2a1a0a 100%);
  border-color: transparent;
  box-shadow: 0 20px 50px -18px var(--aura-copper-glow), 0 12px 30px rgba(0, 0, 0, 0.4);
}
.b2b-tier-progress-body {
  position: relative;
  z-index: 1;
}
.b2b-tier-progress-watermark {
  position: absolute;
  right: -1rem;
  bottom: -1.4rem;
  font-size: 7.5rem;
  line-height: 1;
  color: #fff;
  opacity: 0.3;
  z-index: 0;
  pointer-events: none;
}
.b2b-tier-progress-card .text-muted,
.b2b-tier-progress-card .text-faint {
  color: rgba(255, 255, 255, 0.75) !important;
}
.b2b-tier-progress-card .text-gold {
  color: #ffd77a !important;
}
.b2b-tier-progress-card .yield-badge.pending {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}
.b2b-tier-progress-card .progress-aura {
  background: rgba(255, 255, 255, 0.2);
}
.b2b-tier-progress-card .btn-outline-gold {
  border-color: rgba(255, 255, 255, 0.55);
  color: #fff;
}
.b2b-tier-progress-card .btn-outline-gold:hover {
  background: var(--aura-gold);
  color: #1a1406;
}
@media (max-width: 575.98px) {
  .b2b-tier-progress-watermark { font-size: 5.5rem; }
}

/* Pełnoekranowy podgląd kodu QR (klik w mini-kod na karcie) — obsługa w app.js, ten sam
   wzorzec co .qr-overlay w client.css (Panel Klienta), skopiowany 1:1 dla spójności. */
.qr-overlay {
  position: fixed;
  inset: 0;
  z-index: 3000;
  background: rgba(0, 0, 0, .93);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 1.5rem;
  cursor: zoom-out;
}
.qr-overlay img {
  width: min(82vw, 82vh, 440px);
  height: min(82vw, 82vh, 440px);
  background: #f3ead9;
  border-radius: 18px;
  padding: 16px;
}
.qr-overlay .qr-overlay-hint { color: rgba(255, 255, 255, .7); font-size: .8rem; }
.qr-overlay-brand {
  display: inline-flex;
  align-items: center;
  padding: .55rem 1.4rem;
  border-radius: 999px;
  background: var(--aura-charcoal-2);
  border: 1px solid var(--aura-gold);
}
.qr-overlay-brand .logo-serif { font-size: 1.15rem; }

/* ---- Utility ------------------------------------------------------- */

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--aura-copper-soft); border-radius: 999px; }

/* ---- Responsive / mobile ------------------------------------------- */

@media (max-width: 991.98px) {
  #mainContent { padding: 1.25rem !important; }
}

@media (max-width: 767.98px) {
  .aura-navbar { padding: 0.7rem 1rem; }
  .logo-serif { font-size: 1.1rem !important; }
  #mainContent { padding: 1rem !important; }
  .aura-card { padding: 1.1rem; }
  .points-value { font-size: 1.5rem; }
  .script-label { font-size: 1.4rem; }
  .status-card { gap: 1rem !important; }
  .medal { width: 84px; height: 84px; font-size: 1.6rem; }
  .suite-thumb { width: 52px; height: 52px; font-size: 1.15rem; }
  .atmo-btn { font-size: 0.68rem; }
  .atmo-btn i { font-size: 1.25rem; }
  .chat-bubble { max-width: 92%; }

  .status-card > * {
    width: 100%;
    max-width: 100% !important;
  }

  .habit-bar { grid-template-columns: 96px 1fr 38px; gap: 0.5rem; font-size: 0.78rem; }
  .mode-btn { padding: 0.5rem 0.9rem; font-size: 0.78rem; }
  .wallet-pass { max-width: 100%; padding: 1.25rem; }
  .club-card { aspect-ratio: auto; padding: 1.25rem; }
}

/* ---- Panel B2B — alternatywny widok mobilny (<768px) -----------------------
   Admin i B2B współdzielą ten plik (te same .aura-sidebar/.admin-table/
   #mainContent), więc WSZYSTKO poniżej jest celowo poprzedzone `body.b2b-app`
   (ustawianym tylko w b2b/_layout.html.twig) — Panel Admina nigdy nie ustawia
   tej klasy, więc te reguły są dla niego martwe. Dolne menu i wiersze-karty
   skopiowane z public/assets/css/style-mobile-v2.css (Panel Klienta), bo
   Panel B2B świadomie nie ładuje tamtego arkusza (patrz historia projektu:
   "B2B panel redesigned as a desktop admin-style tool"). Ikona wiersza to
   już istniejący .family-avatar zamiast osobnej klasy .mobile-row-icon. ---- */

body.b2b-app .mobile-bottom-nav {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1040;
  background: var(--nav-bg);
  backdrop-filter: blur(16px);
  border-top: 1px solid var(--aura-border);
  padding: 8px 4px calc(8px + env(safe-area-inset-bottom));
}
body.b2b-app .bottom-nav-link {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 4px 2px;
  color: var(--text-faint) !important;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  background: transparent !important;
  border-radius: var(--radius-sm);
  border: none !important;
  margin-bottom: 0 !important;
  transition: color .2s ease;
}
body.b2b-app .bottom-nav-link i { font-size: 1.3rem; }
body.b2b-app .bottom-nav-link.active,
body.b2b-app .bottom-nav-link:active { color: var(--aura-gold-light) !important; }
body.b2b-app .bottom-nav-link.nav-fab-link { overflow: visible; }
body.b2b-app .bottom-nav-link.nav-fab-link .nav-fab {
  position: absolute;
  top: -26px;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(150deg, var(--aura-gold-light), var(--aura-gold) 60%, var(--aura-copper) 100%);
  box-shadow: 0 8px 22px -4px var(--aura-gold-glow), 0 0 0 5px var(--nav-bg);
  transition: transform .2s ease;
}
body.b2b-app .bottom-nav-link.nav-fab-link .nav-fab i { font-size: 1.4rem; color: var(--aura-black); }
body.b2b-app .bottom-nav-link.nav-fab-link span { margin-top: 30px; }
body.b2b-app .bottom-nav-link.nav-fab-link.active .nav-fab,
body.b2b-app .bottom-nav-link.nav-fab-link:active .nav-fab { transform: scale(0.94); }
body.b2b-app .bottom-nav-link.nav-fab-link.active,
body.b2b-app .bottom-nav-link.nav-fab-link:active { color: var(--aura-gold-light) !important; }

/* Kartowe wiersze list (Rezerwacje MICE, uczestnicy, historia bonów/nagród…) */
body.b2b-app .mobile-row-list { display: flex; flex-direction: column; }
body.b2b-app .mobile-row {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--aura-border);
  width: 100%;
  background: none;
  text-align: left;
  color: inherit;
}
body.b2b-app .mobile-row-list > .mobile-row:last-child { border-bottom: none; }
body.b2b-app .mobile-row:active { background: var(--overlay-soft); }
body.b2b-app .mobile-row-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  flex: 1 1 auto;
  min-width: 0;
}
body.b2b-app .mobile-row-text .fw-medium,
body.b2b-app .mobile-row-text .text-muted,
body.b2b-app .mobile-row-text .text-faint {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
body.b2b-app .mobile-row-chevron { color: var(--text-faint); font-size: 0.9rem; flex-shrink: 0; }

@media (max-width: 767.98px) {
  body.b2b-app .aura-sidebar,
  body.b2b-app .sidebar-backdrop,
  body.b2b-app #sidebarToggle { display: none !important; }
  body.b2b-app .mobile-bottom-nav { display: flex; }
  body.b2b-app #mainContent { padding-bottom: calc(84px + env(safe-area-inset-bottom)) !important; }
  /* .aura-tabs jest też używane w Panelu Admina (np. zakładki hotelu) — poza b2b-app zostaje
     nietknięte, tu na wąskim ekranie zamieniamy pigułki dopasowane do treści na pełną szerokość. */
  body.b2b-app .aura-tabs { flex-direction: column; }
  body.b2b-app .aura-tab-btn { width: 100%; text-align: center; }

  /* .page-head/.page-actions to też współdzielony, czysto-Bootstrapowy szkielet (bez własnych
     reguł w tym pliku) — na wąskim ekranie przycisk(i) nagłówka strony mają iść pod tytułem,
     pełną szerokością, zamiast wisieć obok niego wciśnięte w jedną linię. */
  body.b2b-app .page-head { flex-direction: column; align-items: stretch; }
  body.b2b-app .page-actions { width: 100%; }
  body.b2b-app .page-actions > a,
  body.b2b-app .page-actions > button,
  body.b2b-app .page-actions > form { flex: 1 1 100%; width: 100%; }
  body.b2b-app .page-actions > form > button,
  body.b2b-app .page-actions > form > a { width: 100%; }
}
