/* ============================================================
   DGE – Poleć i nie płać · Design System
   Kolory i typografia marki dopasowane do dge.com.pl (31.10.2026)
   ============================================================ */

:root {
  color-scheme: light;
  /* Kolory bazowe ze strony DGE; jasne odcienie wspierają stany interfejsu. */
  --blue: #004A8F;
  --blue-dark: #0F3E69;
  --blue-deep: #0F3E69;
  --blue-bright: #004A8F;
  --blue-100: #DFEBF5;
  --blue-50: #EDF4FA;

  --orange: #F27021;
  --orange-dark: #C23600;
  --orange-soft: #F5911F;
  --orange-red: #ED4024;
  --orange-50: #FEEDE4;

  --green: #0B9C48;
  --green-dark: #077636;
  --green-50: #E7F7EE;

  --purple: #7C3AED;
  --purple-50: #F1EBFE;

  --amber: #B45309;
  --amber-50: #FDF1DF;

  --ink: #0F3E69;
  --ink-2: #3E4C59;
  --muted: #52606D;
  --line: #E5E9ED;
  --bg: #F9F9FB;
  --card: #FFFFFF;

  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 18px;
  --r-xl: 24px;

  --shadow-card: 0 1px 2px rgba(15, 62, 105, .035), 0 3px 10px rgba(15, 62, 105, .04);
  --shadow-pop: 0 8px 30px rgba(0, 74, 143, .25);

  --nav-h: 64px;
  --font: 'Inter Tight', 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  -webkit-tap-highlight-color: transparent;
  /* bez powiększania podwójnym stuknięciem (szczypanie blokuje app.js allowZoom, poza regulaminem w PDF) */
  touch-action: manipulation;
}

button, input, textarea {
  font-family: inherit;
  font-size: inherit;
}

img, svg { display: block; }

/* ---------- Telefon / ramka podglądu (desktop) ---------- */

.device {
  height: 100%;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  position: relative;
  overflow: hidden;
  /* kontener dla bottom sheetu i konfetti */
}

.device-statusbar {
  display: none;
  align-items: center;
  justify-content: space-between;
  padding: 10px 26px 6px;
  background: var(--card);
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .02em;
  flex: 0 0 auto;
}

.sb-icons { display: flex; align-items: center; gap: 6px; }

/* Jasne tło otoczenia PWA, zgodne z dolną nawigacją. */
@media (display-mode: standalone) {
  html, body { background: #FFFFFF; }
}

/* ramka telefonu tylko na desktopie – telefon w poziomie zostaje na pełnym ekranie */
@media (min-width: 720px) and (min-height: 620px) {
  body {
    min-height: 100vh;
    display: grid;
    place-items: center;
    background:
      radial-gradient(1200px 600px at 80% -10%, #dfe7fb 0%, transparent 60%),
      radial-gradient(900px 500px at 10% 110%, #fdeae0 0%, transparent 55%),
      #eef0f7;
    padding: 32px 16px;
  }

  .device {
    width: 400px;
    height: min(860px, calc(100vh - 64px));
    border-radius: 44px;
    border: 10px solid #0d1220;
    box-shadow: 0 30px 80px rgba(13, 18, 32, .35);
    overflow: hidden;
  }

  .device-statusbar { display: flex; }
}

/* ---------- Szkielet aplikacji ---------- */

.app {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}

.view {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

/* przejścia kierunkowe – animuje się tylko treść, pasek i nawigacja stoją w miejscu */
.view.nav-forward .content { animation: slide-in-right .3s var(--ease-out) both; }
.view.nav-back .content    { animation: slide-in-left .3s var(--ease-out) both; }

/* zmiana zakładki – elementy „wjeżdżają" kaskadą */
.view.nav-rise .content > * {
  animation: rise-in .42s var(--ease-out) both;
  animation-delay: var(--d, 0s);
}

@keyframes slide-in-right {
  from { opacity: 0; transform: translateX(26px); }
}

@keyframes slide-in-left {
  from { opacity: 0; transform: translateX(-26px); }
}

@keyframes rise-in {
  from { opacity: 0; transform: translateY(12px); }
}

.content {
  flex: 1 1 auto;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding: 20px 20px calc(var(--nav-h) + 24px + env(safe-area-inset-bottom));
}

.view.no-nav .content { padding-bottom: calc(28px + env(safe-area-inset-bottom)); }

/* ---------- Nagłówek ---------- */

.appbar {
  flex: 0 0 auto;
  background: var(--card);
  color: var(--blue);
  padding: 14px 20px;
  padding-top: calc(14px + env(safe-area-inset-top));
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 60px;
  position: relative;
  z-index: 5;
  transition: box-shadow .25s ease;
}

/* cień pojawia się po przewinięciu treści */
.appbar.scrolled { box-shadow: 0 6px 18px rgba(15, 62, 105, .3); }

.appbar .spacer { flex: 1; }

.appbar-title {
  flex: 1;
  text-align: center;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.icon-btn {
  appearance: none;
  border: 0;
  background: var(--blue-50);
  color: var(--blue);
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  cursor: pointer;
  position: relative;
  transition: background .15s ease;
}

.icon-btn:hover { background: var(--blue-100); }
.icon-btn:active { transform: scale(.96); }

.icon-btn .dot {
  position: absolute;
  top: 9px;
  right: 9px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--orange);
  border: 2px solid var(--card);
}

/* balans dla wyśrodkowanego tytułu przy strzałce wstecz */
.appbar .ghost { width: 44px; height: 44px; flex: 0 0 auto; }

/* ---------- Logo DGE ---------- */

.logo {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  user-select: none;
}

.logo.on-blue { padding: 14px 20px; background: #fff; border-radius: 12px; }
.logo img { display: block; width: auto; height: 24px; }
.logo.lg img { height: 34px; }

/* ---------- Typografia ---------- */

.h1 {
  font-size: 23px;
  font-weight: 800;
  letter-spacing: -.01em;
  margin: 4px 0 6px;
}

.h2 {
  font-size: 17px;
  font-weight: 800;
  margin: 0 0 4px;
}

.sub {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
  margin: 0 0 18px;
}

.section-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 22px 0 12px;
}

.section-row .h2 { margin: 0; }

.link {
  appearance: none;
  border: 0;
  background: none;
  /* padding + ujemny margines = cel dotykowy ≥44px bez zmiany układu */
  padding: 12px 8px;
  margin: -12px -8px;
  color: var(--blue-bright);
  font-weight: 700;
  font-size: 13.5px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.link svg { transition: transform .15s ease; }
.link:hover svg { transform: translateX(2px); }

/* ---------- Karta cashback (hero) ---------- */

.hero-card {
  background: linear-gradient(160deg, var(--blue) 0%, var(--blue-dark) 100%);
  border-radius: var(--r-lg);
  color: #fff;
  padding: 18px;
  box-shadow: var(--shadow-pop);
  position: relative;
  overflow: hidden;
}

.hero-card::after {
  content: '';
  position: absolute;
  right: -60px;
  top: -80px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .06);
  pointer-events: none;
}

.hero-card::before {
  content: '';
  position: absolute;
  inset: -45% -30%;
  background: radial-gradient(ellipse at 72% 35%, rgba(198, 220, 236, .16), transparent 48%);
  pointer-events: none;
  animation: energy-light 10s ease-in-out infinite alternate;
  animation-play-state: paused;
}
.hero-card > :not(.sheen) { position: relative; z-index: 1; }
.hero-card.motion-active::before { animation-play-state: running; }
@keyframes energy-light {
  from { transform: translate3d(-3%, -2%, 0) rotate(-8deg); opacity: .45; }
  to { transform: translate3d(4%, 4%, 0) rotate(8deg); opacity: 1; }
}

.hero-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.hero-label {
  font-size: 12.5px;
  font-weight: 600;
  color: #C6DCEC;
  margin-bottom: 6px;
}

.hero-value {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -.01em;
  line-height: 1;
}

.hero-ic {
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  border-radius: 14px;
  background: linear-gradient(150deg, var(--orange-soft), var(--orange));
  display: grid;
  place-items: center;
  color: #fff;
  box-shadow: 0 6px 16px rgba(242, 112, 33, .4);
}

.hero-divider {
  height: 1px;
  background: rgba(255, 255, 255, .16);
  margin: 14px 0 12px;
}

.hero-sub-value {
  font-size: 19px;
  font-weight: 800;
}

/* ---------- Lista poleceń ---------- */

.ref-card {
  width: 100%;
  text-align: left;
  appearance: none;
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: var(--r-md);
  padding: 14px;
  margin-bottom: 10px;
  display: grid;
  grid-template-columns: 1fr auto;
  row-gap: 6px;
  align-items: center;
  cursor: pointer;
  box-shadow: var(--shadow-card);
  transition: transform .12s ease, box-shadow .12s ease;
}

.ref-card:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(14, 22, 51, .1); }
.ref-card:active { transform: scale(.99); }

.ref-name { font-weight: 700; font-size: 15px; line-height: 1.4; }
.ref-nip { color: var(--muted); font-size: 13px; }
.ref-vol { color: var(--ink-2); font-size: 13.5px; font-weight: 700; justify-self: end; }

/* ---------- Chipy statusów ---------- */

.chip {
  display: inline-flex;
  align-items: center;
  justify-self: end;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .01em;
  white-space: nowrap;
}

.chip-green  { background: var(--green-50);  color: var(--green-dark); }
.chip-blue   { background: var(--blue-50);   color: var(--blue); }
.chip-purple { background: var(--purple-50); color: var(--purple); }
.chip-gray   { background: #EEF0F6;          color: var(--ink-2); }
.chip-amber  { background: var(--amber-50);  color: var(--amber); }
.chip-orange { background: var(--orange-50); color: var(--orange-dark); }

/* ---------- Przyciski ---------- */

.btn {
  appearance: none;
  border: 0;
  width: 100%;
  padding: 15px 18px;
  border-radius: var(--r-md);
  font-size: 15.5px;
  font-weight: 700;
  letter-spacing: .01em;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  transition: transform .12s ease, box-shadow .15s ease, background .15s ease;
}

.btn:active { transform: scale(.985); }

.btn-orange {
  background: linear-gradient(160deg, var(--orange-soft), var(--orange));
  color: #fff;
  box-shadow: 0 8px 22px rgba(242, 112, 33, .35);
}

.btn-orange:hover { box-shadow: 0 10px 26px rgba(242, 112, 33, .45); }

/* Jeden refleks przy wskazaniu akcji; przycisk nie miga samoczynnie. */
.btn-orange { position: relative; overflow: hidden; }
.btn-orange::before {
  content: '';
  position: absolute;
  inset: -50% auto -50% 0;
  width: 30%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .24), transparent);
  transform: translateX(-180%) skewX(-18deg);
  pointer-events: none;
}
@media (hover: hover) and (pointer: fine) {
  .btn-orange:hover::before { animation: action-light 650ms var(--e-enter); }
}
.btn-orange:focus-visible::before { animation: action-light 650ms var(--e-enter); }
@keyframes action-light { to { transform: translateX(470%) skewX(-18deg); } }

.btn-blue {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 8px 22px rgba(0, 74, 143, .28);
}

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

.btn-green {
  /* ciemniejsza zieleń – tekst zgody musi spełniać kontrast WCAG AA */
  background: var(--green-dark);
  color: #fff;
  box-shadow: 0 8px 22px rgba(7, 118, 54, .3);
}

/* dwa wiersze (akcja i dopisek) tylko w przycisku z .btn-main; zwykła akcja ma ikonę obok napisu */
.btn-green:has(> .btn-main) {
  flex-direction: column;
  gap: 4px;
}

.btn-green:hover { background: #065C2B; }

.btn-green .btn-main {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 16px;
}

.btn-green .btn-note {
  font-size: 12px;
  font-weight: 500;
  line-height: 1.45;
  max-width: 300px;
}

.btn-outline {
  background: var(--card);
  color: var(--ink);
  border: 1.5px solid var(--line);
  font-weight: 700;
  justify-content: flex-start;
  box-shadow: var(--shadow-card);
}

.btn-outline:hover { border-color: #cdd3e4; }
.btn-outline svg { color: var(--muted); }

.btn[disabled] {
  opacity: .45;
  cursor: not-allowed;
  box-shadow: none;
}

/* przyciski-rodzeństwo wygaszone w trakcie przetwarzania akcji */
.btn:disabled:not(.loading) { opacity: .55; }

.btn-stack { display: grid; gap: 10px; }
.check-row + .btn-stack { margin-top: 14px; }

/* ---------- Formularze ---------- */

.field { margin-bottom: 16px; }

.field-label {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink-2);
  margin-bottom: 7px;
}

.input, .textarea {
  width: 100%;
  border: 1.5px solid var(--line);
  background: var(--card);
  border-radius: var(--r-md);
  padding: 14px 15px;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}

.input::placeholder, .textarea::placeholder { color: #6B7390; font-weight: 500; }

.input:focus, .textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(0, 74, 143, .1);
}

.textarea {
  resize: vertical;
  min-height: 116px;
  font-weight: 500;
  line-height: 1.5;
  font-size: 14.5px;
}

/* ---------- Kroki / progress ---------- */

.steps-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--muted);
  text-transform: uppercase;
  margin: 2px 0 8px;
}

.steps-bar {
  height: 6px;
  border-radius: 999px;
  background: #E4E8F4;
  overflow: hidden;
  margin-bottom: 24px;
}

.steps-fill {
  height: 100%;
  border-radius: 999px;
  background: var(--blue);
  transition: width .4s cubic-bezier(.22, 1, .36, 1);
}

/* ---------- Karty informacyjne ---------- */

.note {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  border-radius: var(--r-md);
  padding: 14px;
  font-size: 13px;
  line-height: 1.5;
  margin: 18px 0;
}

.note-ic {
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
}

.note-title { font-weight: 800; font-size: 13.5px; margin-bottom: 2px; }

.note-green { background: var(--green-50); color: var(--green-dark); border: 1px solid #CDEDDA; }
.note-green .note-ic { background: var(--green); color: #fff; }

.note-red { background: #FDEAEA; color: #B3261E; border: 1px solid #F5CFCC; }
.note-red .note-ic { background: #D33A2F; color: #fff; }

.note-blue { background: var(--blue-50); color: var(--blue-dark); border: 1px solid var(--blue-100); }
.note-blue .note-ic { background: var(--blue); color: #fff; }

/* ---------- Karty ogólne ---------- */

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 16px;
  box-shadow: var(--shadow-card);
  margin-bottom: 12px;
}

.row-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.row-card .row-label { color: var(--ink-2); font-size: 13.5px; font-weight: 600; }
.row-card .row-value { font-weight: 800; font-size: 15px; }

.value-green { color: var(--green); }
.value-orange { color: var(--orange); }

/* ---------- Timeline (postęp polecenia) ---------- */

.timeline { margin: 6px 0 4px; }

.tl-item {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 0 0 22px 34px;
  animation: rise-in .4s var(--ease-out) both;
  animation-delay: var(--d, 0s);
}

.tl-item .tl-dot {
  animation: dot-pop .45s var(--ease-spring) both;
  animation-delay: calc(var(--d, 0s) + .08s);
}

@keyframes dot-pop {
  from { transform: scale(.3); opacity: 0; }
}

.tl-item::before {
  content: '';
  position: absolute;
  left: 10px;
  top: 22px;
  bottom: 0;
  width: 2px;
  background: var(--line);
}

.tl-item:last-child { padding-bottom: 4px; }
.tl-item:last-child::before { display: none; }

.tl-dot {
  position: absolute;
  left: 0;
  top: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #fff;
  border: 2px solid #C6CCE0;
  color: transparent;
}

.tl-item.done .tl-dot {
  background: var(--ink-2);
  border-color: var(--ink-2);
  color: #fff;
}

.tl-item.done .tl-dot::after {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff;
}

.tl-item.current .tl-dot {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}

.tl-item.current .tl-dot svg { width: 12px; height: 12px; }

.tl-item.pending { opacity: .45; }
.tl-item.pending .tl-dot { border-style: dashed; }

.tl-label { font-size: 13.5px; font-weight: 700; line-height: 1.45; }
.tl-label small { display: block; font-weight: 500; color: var(--muted); }
.tl-date { color: var(--muted); font-size: 12.5px; font-weight: 600; white-space: nowrap; padding-top: 2px; }

/* ---------- Dolna nawigacja ---------- */

.bottom-nav {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: calc(var(--nav-h) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  z-index: 20;
}

.nav-item {
  appearance: none;
  border: 0;
  background: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  cursor: pointer;
  color: #6B7390;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .01em;
  padding: 0;
}

.nav-ic {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  transition: background .15s ease, color .15s ease;
}

.nav-item.active { color: var(--blue); }

.nav-item.active .nav-ic {
  background: var(--blue);
  color: #fff;
  animation: dot-pop .35s var(--ease-spring);
}

/* ---------- Marketing tile ---------- */

.promo-tile {
  background: linear-gradient(175deg, var(--blue) 0%, var(--blue-dark) 90%);
  border-radius: var(--r-xl);
  padding: 28px 20px 0;
  color: #fff;
  text-align: center;
  overflow: hidden;
  box-shadow: var(--shadow-pop);
  margin-bottom: 16px;
}

.promo-tile .logo { justify-content: center; width: 100%; }

.promo-title {
  font-size: 21px;
  font-weight: 800;
  line-height: 1.3;
  margin: 16px auto 6px;
  max-width: 240px;
}

.promo-tile svg.city { width: 100%; height: auto; margin-top: 8px; }

/* ---------- Statusy poleceń (diagram) ---------- */

.status-flow {
  border: 2px dashed var(--orange);
  border-radius: var(--r-lg);
  background: #fff;
  padding: 18px 0 16px;
  margin-bottom: 12px;
}

.status-flow-title {
  text-align: center;
  color: var(--blue);
  font-weight: 800;
  letter-spacing: .12em;
  font-size: 13px;
  text-transform: uppercase;
  margin: 0 0 16px;
}

.status-track {
  display: flex;
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: #C6DCEC transparent;
  padding: 0 12px 8px;
  scroll-snap-type: x proximity;
}

.status-track::-webkit-scrollbar { height: 4px; }
.status-track::-webkit-scrollbar-thumb { background: #C6DCEC; border-radius: 2px; }

.status-track:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: -2px;
  border-radius: 8px;
}

.status-step {
  flex: 0 0 auto;
  scroll-snap-align: start;
  width: 96px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
}

.status-step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 24px;
  left: calc(50% + 26px);
  width: calc(100% - 52px);
  border-top: 2px dashed #C6DCEC;
}

.status-ic {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  margin-bottom: 8px;
  box-shadow: 0 6px 14px rgba(14, 22, 51, .16);
}

.status-ic.c-orange { background: linear-gradient(150deg, var(--orange-soft), var(--orange)); }
.status-ic.c-blue   { background: var(--blue); }
.status-ic.c-green  { background: var(--green); }

.status-step .status-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--ink-2);
  line-height: 1.35;
}

/* ikona w kółku zawsze biała – czytelna na niebieskim/zielonym/pomarańczowym */
.status-step .status-ic { color: #fff; }

.status-step .status-ic svg { stroke-width: 2.1; }

/* ---------- Korzyści ---------- */

.price-hero {
  background: linear-gradient(160deg, var(--blue), var(--blue-deep));
  color: #fff;
  border-radius: var(--r-lg);
  padding: 20px 18px;
  text-align: center;
  box-shadow: var(--shadow-pop);
  margin-bottom: 16px;
}

.price-hero .tag {
  display: inline-block;
  background: rgba(255, 255, 255, .14);
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 6px 12px;
  margin-bottom: 12px;
}

.price-hero .price {
  font-size: 34px;
  font-weight: 900;
  letter-spacing: -.01em;
}

.price-hero .price small { font-size: 15px; font-weight: 600; color: #C6DCEC; }
.price-hero p { margin: 8px 0 0; color: #CBD6F9; font-size: 13.5px; }

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

.tier-pct {
  flex: 0 0 auto;
  width: 64px;
  height: 64px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  font-size: 19px;
  font-weight: 900;
  color: #fff;
  background: var(--blue);
}

.tier.t2 .tier-pct { background: var(--blue-dark); }
.tier.t3 .tier-pct { background: linear-gradient(150deg, var(--orange-soft), var(--orange)); }

.tier-info b { display: block; font-size: 15px; margin-bottom: 3px; }
.tier-info span { color: var(--muted); font-size: 13px; line-height: 1.45; }

.tier-badge {
  display: inline-block;
  background: var(--blue-50);
  color: var(--blue);
  border-radius: 7px;
  font-size: 11.5px;
  font-weight: 800;
  padding: 3px 8px;
  margin-top: 6px;
}

.tier.t3 .tier-badge { background: var(--orange-50); color: var(--orange-dark); }

/* Postęp do poziomów */
.progress-row { margin-bottom: 14px; }

.progress-row .pr-head {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 7px;
}

.progress-row .pr-head span:last-child { color: var(--muted); }

.progress-row.achieved .pr-head span:last-child { color: var(--green); }

.pr-bar {
  height: 8px;
  background: #E4E8F4;
  border-radius: 999px;
  overflow: hidden;
}

.pr-fill {
  height: 100%;
  background: var(--blue);
  border-radius: 999px;
  transition: width .9s var(--ease-out);
}

.progress-row.achieved .pr-fill { background: var(--green); }

.checklist { list-style: none; margin: 0; padding: 0; }

.checklist li {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--ink-2);
  padding: 7px 0;
}

.checklist svg { flex: 0 0 auto; color: var(--green); margin-top: 1px; }

.quote {
  border-left: 4px solid var(--orange);
  background: var(--card);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-card);
  padding: 16px;
  font-size: 14.5px;
  font-style: italic;
  font-weight: 600;
  color: var(--ink-2);
  line-height: 1.55;
  margin: 16px 0;
}

/* Statystyki „Dlaczego DGE" */
.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 12px;
}

.stat {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-card);
  padding: 14px;
}

.stat b { display: block; font-size: 19px; font-weight: 900; color: var(--blue); letter-spacing: -.01em; }
.stat span { font-size: 12px; color: var(--muted); font-weight: 600; line-height: 1.35; display: block; margin-top: 3px; }

/* ---------- Profil ---------- */

.profile-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(150deg, var(--blue), var(--blue-deep));
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 19px;
  flex: 0 0 auto;
}

.profile-head b { font-size: 17px; display: block; }
.profile-head span { color: var(--muted); font-size: 13px; }

.menu-list { display: grid; gap: 8px; }

.menu-item {
  appearance: none;
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-card);
  padding: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
}

.menu-item svg:first-child { color: var(--blue); }
.menu-item .chev { margin-left: auto; color: #B6BCD2; }

/* przełącznik */
.switch {
  margin-left: auto;
  width: 44px;
  height: 26px;
  border-radius: 999px;
  background: #D6DAE8;
  position: relative;
  transition: background .2s ease;
  flex: 0 0 auto;
}

.switch::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .2);
  transition: left .2s ease;
}

.switch.on { background: var(--green); }
.switch.on::after { left: 21px; }

/* ---------- Stopka prawna (ekran zaproszenia) ---------- */

.legal-footer {
  margin-top: 26px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.legal-links {
  display: flex;
  gap: 22px;
}

.legal-links a {
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 600;
  text-decoration: none;
}

.legal-links a:hover { color: var(--blue); }

/* ---------- Toast ---------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: 92px;
  transform: translateX(-50%) translateY(16px);
  background: var(--ink);
  color: #fff;
  font-size: 13.5px;
  font-weight: 600;
  padding: 12px 18px;
  border-radius: 999px;
  box-shadow: 0 10px 30px rgba(14, 22, 51, .35);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
  z-index: 100;
  max-width: min(86vw, 360px);
  text-align: center;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ---------- Pomocnicze ---------- */

.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mb-0 { margin-bottom: 0; }
.center { text-align: center; }

.empty {
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
  padding: 40px 20px;
}
/* ikona pustego stanu nad tekstem, na środku (svg ma display:block, więc text-align jej nie centruje) */
.empty > svg { margin: 0 auto 12px; }
.empty .empty-ic {
  width: 56px; height: 56px; margin: 0 auto 14px; border-radius: 50%;
  display: grid; place-items: center; background: var(--blue-50); color: var(--blue);
}
.empty b { display: block; margin-bottom: 4px; color: var(--ink); font-size: 15.5px; }
.empty p { margin: 0 auto; max-width: 300px; }
.empty-cta { padding: 32px 8px 8px; }
.empty-cta .btn { margin-top: 20px; }

:focus-visible {
  outline: 3px solid rgba(0, 74, 143, .4);
  outline-offset: 2px;
  border-radius: 6px;
}

/* ============================================================
   Motion – mikrointerakcje i komponenty animowane
   ============================================================ */

/* ---------- Ripple (efekt dotknięcia) ---------- */

.ripple-host { position: relative; overflow: hidden; }

.ripple {
  position: absolute;
  border-radius: 50%;
  background: currentColor;
  opacity: .16;
  transform: scale(0);
  pointer-events: none;
  animation: ripple-grow .55s var(--ease-out) forwards;
}

@keyframes ripple-grow {
  to { transform: scale(2.4); opacity: 0; }
}

/* ---------- Diagram statusów – pojawianie przy przewijaniu ---------- */

.status-flow.io .status-step {
  opacity: 0;
  transform: translateY(14px) scale(.85);
  transition: opacity .45s var(--ease-spring), transform .45s var(--ease-spring);
  transition-delay: var(--d, 0s);
}

.status-flow.io .status-step.in {
  opacity: 1;
  transform: none;
}

/* ---------- Przycisk w stanie ładowania ---------- */

.btn { position: relative; }

.btn.loading {
  pointer-events: none;
  color: transparent;
}

.btn.loading::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2.5px solid rgba(255, 255, 255, .35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .7s linear infinite;
}

.btn-outline.loading::after {
  border-color: rgba(14, 22, 51, .2);
  border-top-color: var(--ink-2);
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Walidacja – potrząśnięcie ---------- */

.shake { animation: shake .4s ease; }

@keyframes shake {
  20%, 60% { transform: translateX(-7px); }
  40%, 80% { transform: translateX(7px); }
}

/* ---------- Karta wyniku (krok 1) – pop + rysowany check ---------- */

.note-pop { animation: note-pop .45s var(--ease-spring) both; }

@keyframes note-pop {
  from { opacity: 0; transform: scale(.94) translateY(8px); }
}

.draw .note-ic svg path {
  stroke-dasharray: 32;
  stroke-dashoffset: 32;
  animation: draw-stroke .5s .18s var(--ease-out) forwards;
}

@keyframes draw-stroke { to { stroke-dashoffset: 0; } }

/* ---------- Bottom sheet ---------- */

.sheet-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 14, 40, .45);
  opacity: 0;
  pointer-events: none; /* przezroczysty backdrop nie może łapać dotyku */
  transition: opacity .28s ease;
  z-index: 60;
}

.sheet-backdrop.open { opacity: 1; pointer-events: auto; }

.sheet {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  background: #fff;
  border-radius: 22px 22px 0 0;
  transform: translateY(105%);
  transition: transform .38s var(--ease-out);
  z-index: 61;
  display: flex;
  flex-direction: column;
  max-height: 76%;
  overflow: hidden;
  overscroll-behavior: contain;
  box-shadow: 0 -10px 40px rgba(14, 22, 51, .28);
}

.sheet.open { transform: none; }

.sheet-handle {
  display: grid;
  place-items: center;
  flex: 0 0 44px;
  width: 100%;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  touch-action: none;
  cursor: grab;
}

.sheet-handle::before {
  content: '';
  width: 42px;
  height: 4px;
  border-radius: 999px;
  background: #D9DDEA;
}

.sheet-handle:focus-visible { outline: 2px solid var(--blue); outline-offset: -5px; border-radius: 20px 20px 8px 8px; }
.sheet-body { min-height: 0; overflow-y: auto; overscroll-behavior-y: contain; padding: 0 20px calc(20px + env(safe-area-inset-bottom)); }
.sheet.dragging { user-select: none; }
.sheet.dragging .sheet-handle { cursor: grabbing; }

.sheet-title {
  font-size: 17px;
  font-weight: 800;
  margin: 0 0 12px;
}

.notif {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 10px;
  border-radius: 12px;
}

.notif:last-of-type { border-bottom: 0; }

.notif-ic {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--blue-50);
  color: var(--blue);
}

.notif-ic.n-green { background: var(--green-50); color: var(--green); }
.notif-ic.n-orange { background: var(--orange-50); color: var(--orange-dark); }

.notif-content { display: block; flex: 1; min-width: 0; }
.notif-company { display: block; color: var(--ink); font-size: 14px; line-height: 1.4; font-weight: 700; overflow-wrap: anywhere; }
.notif-event, .notif-detail { display: block; margin-top: 3px; color: var(--muted); font-size: 13px; line-height: 1.45; }
.notif-detail { margin-top: 5px; }
.notif-amount { display: block; margin-top: 6px; color: var(--blue); font-size: 19px; line-height: 1.25; font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.notif-amount.is-accrued { color: var(--green-dark); }
.notif-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.notif-state { display: inline-flex; align-items: center; gap: 5px; color: var(--blue); font-size: 11.5px; line-height: 1.4; font-weight: 700; }
.notif-state::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--orange); }
.notification-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.notification-heading .sheet-title { margin: 0; }
.notification-count { padding: 4px 8px; border-radius: 14px; color: var(--blue); background: var(--blue-50); font-size: 11.5px; line-height: 1.4; font-weight: 700; }
.notification-read { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 7px 0; font-size: 12.5px; line-height: 1.4; text-align: left; }
.notification-read > svg { flex: 0 0 auto; }
/* „Oznacz jako przeczytane” i „Wyczyść” w jednym rzędzie; „Wyczyść” najpierw pyta (13.11.2026) */
.notification-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 16px; }
.notification-tools[hidden], .notification-confirm[hidden] { display: none; }
.notification-tools .notification-clear { margin-left: auto; color: #B3261E; }
.notification-confirm {
  margin: 4px 0 6px; padding: 14px; border-radius: var(--r-md);
  border: 1px solid #F5C9C4; background: #FDF3F2;
  animation: rise-in var(--t-quick) var(--e-enter) both;
}
.notification-confirm p { margin: 0 0 12px; color: var(--ink-2); font-size: 13.5px; line-height: 1.5; }
.notification-confirm p b { display: block; margin-bottom: 2px; color: var(--ink); font-size: 15px; }
.notification-confirm-row { display: flex; gap: 10px; }
.notification-confirm-row .btn { flex: 1 1 0; justify-content: center; box-shadow: none; }
.btn-danger { background: #B3261E; color: #fff; }
.btn-danger:hover { background: #8C1D17; }
.btn-danger[disabled] { opacity: .6; }
.notification-group { margin-top: 16px; }
.notification-group h4 { margin: 0 0 7px; color: var(--muted); font-size: 12.5px; font-weight: 700; line-height: 1.4; }
.notification-list { margin: 0; padding: 0; list-style: none; }
.notification-list > li + li { margin-top: 3px; border-top: 1px solid var(--line); padding-top: 3px; }
.notification-empty { padding: 28px 12px; }
.notification-empty > svg { color: var(--blue); }
.notification-empty p { margin: 12px 0 5px; font-size: 15px; font-weight: 700; color: var(--ink); }
.notification-empty > span { display: block; font-size: 13px; line-height: 1.5; color: var(--muted); }

.sheet .btn { margin-top: 14px; }

/* ---------- Konfetti ---------- */

.confetti {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 70;
}

.confetti i {
  position: absolute;
  top: -18px;
  width: 8px;
  height: 13px;
  border-radius: 2px;
  /* animacja wyłącznie na transform – działa na kompozytorze, bez przeliczania layoutu */
  transform: translateY(0) rotate(var(--r, 0deg));
  animation: confetti-fall var(--t, 1.5s) ease-in var(--cd, 0s) forwards;
}

@keyframes confetti-fall {
  to {
    transform: translateY(110vh) rotate(calc(var(--r, 0deg) + 520deg));
  }
}

/* ---------- Splash (ekran startowy) ---------- */

/* 06.11.2026: granat jak na ekranie logowania (płynne przejście), logo programu z pomarańczowym
   blaskiem, hasło i pasek ładowania. Ten sam element renderuje obrazki startowe iPhone'a
   (design/brand/render-splash.py), więc wygląd jest jeden od ikony do logowania. */
.splash {
  position: absolute;
  inset: 0;
  z-index: 200;
  overflow: hidden;
  background: radial-gradient(120% 80% at 50% 0%, #0B5CA8 0%, #004A8F 38%, #062B57 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity var(--t-slow, 450ms) var(--e-exit, ease), visibility var(--t-slow, 450ms) var(--e-exit, ease);
}

.splash.hide { opacity: 0; visibility: hidden; }
.splash.hide .splash-center { transform: translateY(-3%) scale(1.03); }

.splash-orbs i {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, rgba(255, 255, 255, .16), rgba(255, 255, 255, 0) 70%);
  animation: splash-drift 7s ease-in-out infinite alternate;
}
.splash-orbs i:nth-child(1) { width: 300px; height: 300px; top: -90px; right: -110px; }
.splash-orbs i:nth-child(2) { width: 220px; height: 220px; bottom: 6%; left: -120px; animation-delay: -2.5s; opacity: .8; }
.splash-orbs i:nth-child(3) { width: 140px; height: 140px; top: 14%; left: 8%; animation-delay: -4s; opacity: .55; }

@keyframes splash-drift {
  to { transform: translate3d(14px, 18px, 0) scale(1.06); }
}

.splash-center {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  margin-top: -6%;
  transition: transform var(--t-slow, 450ms) var(--e-exit, ease);
}

.splash-glow {
  position: absolute;
  left: 50%;
  top: 38%;
  width: 150%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(120, 186, 245, .34) 0%, rgba(64, 140, 220, .16) 30%, rgba(64, 140, 220, 0) 60%);
  pointer-events: none;
  animation: splash-glow 2.6s ease-in-out infinite alternate;
}

@keyframes splash-glow {
  from { opacity: .75; transform: translate(-50%, -50%) scale(.94); }
  to { opacity: 1; transform: translate(-50%, -50%) scale(1.05); }
}

.splash-logo {
  position: relative;
  display: block;
  width: min(320px, 82vw);
  height: auto;
  filter: drop-shadow(0 14px 32px rgba(0, 0, 0, .32));
  animation: splash-in 700ms var(--e-enter, ease-out) both;
}

@keyframes splash-in {
  from { opacity: 0; transform: translateY(8px) scale(.92); }
}

@keyframes splash-pop {
  from { transform: scale(.8); opacity: 0; }
}

.splash-tag {
  position: relative;
  margin: 0;
  color: #D5E4F3;
  font-size: 15.5px;
  font-weight: 600;
  letter-spacing: .01em;
  text-align: center;
  animation: fade-up 600ms 260ms var(--e-enter, ease-out) both;
}
.splash-tag span { color: #F9A54A; }
/* u polecanego znak DGE (js/pwa.js, 12.11.2026): węższy niż logo programu, bo ma proporcje 3,7 : 1 */
.splash-dge .splash-logo { width: min(230px, 62vw); }

.splash-bar {
  position: absolute;
  left: 50%;
  bottom: calc(52px + env(safe-area-inset-bottom, 0px));
  width: 132px;
  height: 4px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: rgba(255, 255, 255, .14);
  overflow: hidden;
}
.splash-bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #F5911F, #F27021);
  transform-origin: left center;
  animation: splash-load 1500ms var(--e-std, ease) both;
}

@keyframes splash-load {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

@media (prefers-reduced-motion: reduce) {
  .splash *, .splash { animation: none !important; transition: opacity 200ms linear, visibility 200ms linear !important; }
  .splash-bar { display: none; }
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(8px); }
}

/* ---------- Ekran logowania ---------- */

.login-view {
  background: var(--bg);
  overflow-y: auto;
}

.login-hero {
  position: relative;
  flex: 0 0 auto;
  min-height: 230px;
  background: linear-gradient(165deg, var(--blue) 0%, var(--blue-dark) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(40px + env(safe-area-inset-top)) 20px 56px;
  overflow: hidden;
}

.login-brand {
  position: relative;
  z-index: 2;
  text-align: center;
  animation: splash-pop .6s var(--ease-spring) both;
}

.login-tagline {
  color: #C7D3F8;
  font-size: 14px;
  font-weight: 600;
  margin: 8px 0 0;
  letter-spacing: .02em;
}

.login-orbs i {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, .08);
}

.login-orbs i:nth-child(1) { width: 180px; height: 180px; top: -60px; right: -50px; animation: float 6s ease-in-out infinite; }
.login-orbs i:nth-child(2) { width: 120px; height: 120px; bottom: -40px; left: -30px; background: rgba(242, 112, 33, .18); animation: float 7s ease-in-out infinite reverse; }
.login-orbs i:nth-child(3) { width: 70px; height: 70px; top: 40px; left: 30px; animation: float 5s ease-in-out infinite; }

@keyframes float {
  50% { transform: translateY(-16px); }
}

.login-sheet {
  flex: 1 1 auto;
  background: var(--bg);
  border-radius: 26px 26px 0 0;
  margin-top: -28px;
  position: relative;
  z-index: 2;
  padding: 26px 22px calc(28px + env(safe-area-inset-bottom));
  animation: rise-in .5s .1s var(--ease-out) both;
}

.login-alt {
  display: block;
  margin: 16px auto 0;
  text-align: center;
}

.login-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 600;
  margin: 20px 0 16px;
}

.login-divider::before, .login-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--line);
}

.login-bio { justify-content: center; }

/* ---------- Udostępnianie zaproszenia (krok 2) ---------- */

.share-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin: 10px 0 16px;
}

.share-opt {
  appearance: none;
  border: 1.5px solid var(--line);
  background: var(--card);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-card);
  padding: 12px 4px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--ink-2);
  cursor: pointer;
  transition: transform .12s ease, border-color .15s ease;
}

.share-opt svg { color: var(--blue); }
.share-opt:hover { border-color: #cdd3e4; }
.share-opt:active { transform: scale(.96); }

.msg-preview { padding: 14px; }

.msg-text {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--ink-2);
  white-space: pre-wrap;
  word-break: break-word;
}

/* ---------- Karta „znaleziono firmę" (krok 1) ---------- */

.found-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-card);
  padding: 14px;
  margin-bottom: 14px;
}

.found-ic {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--blue-50);
  color: var(--blue);
}

.found-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 2px;
}

.found-card b { display: block; font-size: 15px; font-weight: 800; }
.found-nip { display: block; font-size: 12.5px; color: var(--muted); margin-top: 1px; }

/* sprawdzanie NIP-u w toku (bez przycisku „Sprawdź NIP”, 13.11.2026) */
.nip-checking { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--muted); padding: 2px 2px 14px; }
.nip-checking .spinner { width: 18px; height: 18px; margin: 0; border-width: 2px; }

/* ---------- Ograniczenie ruchu ---------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-delay: 0ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }

  .status-flow.io .status-step { opacity: 1; transform: none; }
  .login-orbs i { animation: none; }
}

/* ============================================================
   NOWE EKRANY — rejestracja, PIN, saldo, symulator
   ============================================================ */

/* ---------- Uzupełnienia palety stanów ---------- */

.chip-red { background: #FDECEA; color: #B3261E; }
.status-ic.c-red { background: #FDECEA; color: #B3261E; }
.status-ic.c-gray { background: #EEF0F6; color: var(--muted); }
.note-amber { background: var(--amber-50); color: #7A3B06; }
.note-amber .note-ic { background: var(--amber); }

.chip-star { font-style: normal; margin-left: 3px; opacity: .55; }

/* ---------- Ładowanie ---------- */

.center-box { display: flex; align-items: center; justify-content: center; }

.loader-blk { text-align: center; padding: 40px 0; }

.spinner {
  display: block;
  width: 34px; height: 34px;
  margin: 0 auto 16px;
  border: 3px solid var(--blue-100);
  border-top-color: var(--blue);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Drobne elementy formularzy ---------- */

.field-hint {
  font-size: 12.5px;
  color: var(--muted);
  margin: 6px 2px 0;
  line-height: 1.45;
}

.field-hint.center { text-align: center; }

.check-row {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 13px 14px;
  margin: 14px 0 4px;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--ink-2);
  cursor: pointer;
  transition: border-color .18s ease, background .18s ease;
}

.check-row:has(input:checked) { border-color: var(--blue); background: var(--blue-50); }
.check-row.disabled { opacity: .55; cursor: default; }
.check-row.decl { border-style: dashed; }

.check-row input {
  appearance: none;
  flex: 0 0 auto;
  width: 21px; height: 21px;
  margin: 1px 0 0;
  border: 2px solid var(--line);
  border-radius: 6px;
  background: #fff;
  position: relative;
  cursor: pointer;
}

.check-row input:checked { background: var(--blue); border-color: var(--blue); }

.check-row input:checked::after {
  content: "";
  position: absolute;
  left: 5px; top: 1px;
  width: 5px; height: 10px;
  border: solid #fff;
  border-width: 0 2.4px 2.4px 0;
  transform: rotate(42deg);
}

.check-row input:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

.code-input {
  text-align: center;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: .42em;
  text-indent: .42em;
  padding: 16px 12px;
}

.input-prefixed { display: flex; align-items: stretch; }

.input-prefixed > span {
  display: grid;
  place-items: center;
  padding: 0 13px;
  background: var(--blue-50);
  border: 1px solid var(--line);
  border-right: 0;
  border-radius: var(--r-md) 0 0 var(--r-md);
  font-weight: 700;
  color: var(--ink-2);
  font-size: 14px;
}

.input-prefixed .input { border-radius: 0 var(--r-md) var(--r-md) 0; }

.row-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 14px 2px 0;
}

/* ---------- Klawiatura PIN ---------- */

.pin-wrap { margin: 22px 0 8px; }

.pin-dots {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-bottom: 26px;
}

.pin-dot {
  width: 13px; height: 13px;
  border-radius: 50%;
  background: var(--line);
  transition: transform .18s var(--ease-spring), background .18s ease;
}

.pin-dot.on { background: var(--blue); transform: scale(1.18); }

.pin-pad {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  max-width: 290px;
  margin: 0 auto;
}

.pin-key {
  appearance: none;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink);
  font-size: 22px;
  font-weight: 600;
  height: 58px;
  border-radius: var(--r-md);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform .1s ease, background .15s ease;
}

.pin-key:active { transform: scale(.96); background: var(--blue-50); }
.pin-key:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.pin-back { font-size: 19px; color: var(--muted); }

/* ---------- Ekrany końcowe ---------- */

.end-card { text-align: center; padding: 20px 0; }

.end-ic {
  display: grid;
  place-items: center;
  width: 68px; height: 68px;
  margin: 0 auto 18px;
  border-radius: 22px;
}

.end-ic.blue { background: var(--blue-50); color: var(--blue); }
.end-ic.red { background: #FDECEA; color: #B3261E; }
.end-ic.green { background: var(--green-50); color: var(--green); }

/* ---------- Ekran startowy demo ---------- */

.demo-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--orange-50);
  color: var(--orange-dark);
  font-size: 12px;
  font-weight: 700;
  padding: 5px 11px;
  border-radius: 999px;
  margin-bottom: 12px;
}

.pill {
  display: inline-block;
  background: var(--blue-50);
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
  padding: 5px 11px;
  border-radius: 999px;
  margin-bottom: 10px;
}

.scenario {
  display: flex;
  gap: 13px;
  align-items: center;
  width: 100%;
  text-align: left;
  appearance: none;
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: var(--r-md);
  padding: 14px;
  margin-bottom: 10px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: border-color .18s ease, transform .12s ease;
}

.scenario:active { transform: scale(.99); }
.scenario:hover { border-color: var(--blue); }

.scenario-ic {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 38px; height: 38px;
  border-radius: 12px;
  background: var(--blue-50);
  color: var(--blue);
}

.scenario b { display: block; font-size: 14.5px; margin-bottom: 2px; }
.scenario span span { font-size: 12.5px; color: var(--muted); line-height: 1.45; }

/* ---------- Kafelki pulpitu ---------- */

.tiles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 11px;
  margin-bottom: 16px;
}

.tile {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 13px;
  box-shadow: var(--shadow-card);
}

.tile-ic {
  display: grid;
  place-items: center;
  width: 32px; height: 32px;
  border-radius: 10px;
  margin-bottom: 9px;
}

.tile-ic.c-blue { background: var(--blue-50); color: var(--blue); }
.tile-ic.c-green { background: var(--green-50); color: var(--green); }
.tile-ic.c-orange { background: var(--orange-50); color: var(--orange); }

.tile b { display: block; font-size: 18px; font-weight: 800; letter-spacing: -.01em; }
.tile > span:last-child { display: block; font-size: 11.5px; color: var(--muted); margin-top: 2px; }

.real-price small { font-size: 14px; font-weight: 600; color: var(--muted); }

.hero-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: 8px;
}

.hero-row .hero-sub-value { font-size: 16px; }

/* ---------- Regulamin ---------- */

.doc-meta { display: flex; align-items: center; justify-content: space-between; color: var(--blue); }
.doc-meta b { display: block; font-size: 14.5px; color: var(--ink); margin-bottom: 3px; }

.doc-scroll {
  max-height: 260px;
  overflow-y: auto;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 4px 16px 4px 4px;
  box-shadow: inset 0 -14px 14px -14px rgba(14, 22, 51, .18);
}

.doc-list { margin: 0; padding: 12px 0 12px 22px; }
.doc-list li { font-size: 13.5px; line-height: 1.6; color: var(--ink-2); margin-bottom: 12px; }

.steps-list li { align-items: center; }

.kv {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13.5px;
}

.kv:last-child { border-bottom: 0; }
.kv span { color: var(--muted); }
.kv b { font-weight: 600; text-align: right; }

/* ---------- Saldo ---------- */

.ledger { padding: 4px 14px; }

.ledger-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.ledger-row:last-child { border-bottom: 0; }

.ledger-ic {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 34px; height: 34px;
  border-radius: 11px;
}

.ledger-ic.c-green { background: var(--green-50); color: var(--green); }
.ledger-ic.c-blue { background: var(--blue-50); color: var(--blue); }
.ledger-ic.c-amber { background: var(--amber-50); color: var(--amber); }

.ledger-main { flex: 1; min-width: 0; }
.ledger-main b { display: block; font-size: 13.5px; font-weight: 600; line-height: 1.4; }
.ledger-main span { font-size: 12px; color: var(--muted); }
.ledger-amt { font-weight: 800; font-size: 14px; white-space: nowrap; }
.ledger-amt.plus { color: var(--green); }

/* ---------- Oś czasu: stan spoza diagramu ---------- */

.tl-item.extra .tl-dot { border-style: dashed; }
.tl-label small { display: block; font-size: 11.5px; color: var(--muted); font-weight: 500; margin-top: 2px; }

.notif-time { display: inline; font-size: 11.5px; color: var(--muted); line-height: 1.4; font-variant-numeric: tabular-nums; }

.status-ic { position: relative; }

.status-count {
  position: absolute;
  top: -4px; right: -4px;
  min-width: 18px; height: 18px;
  padding: 0 4px;
  border-radius: 9px;
  background: var(--orange);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  display: grid;
  place-items: center;
}

.login-hero.short { min-height: 190px; }

/* ============================================================
   PANEL SYMULATORA
   ============================================================ */

.sim-root { position: fixed; inset: 0; pointer-events: none; z-index: 900; }

.sim-fab {
  pointer-events: auto;
  position: absolute;
  right: 16px; bottom: 16px;
  width: 50px; height: 50px;
  border-radius: 17px;
  border: 0;
  background: #0E1633;
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 8px 26px rgba(14, 22, 51, .38);
  transition: transform .18s var(--ease-spring), background .2s ease;
}

.sim-fab:hover { transform: scale(1.06); }
.sim-root.open .sim-fab { background: var(--orange); }

.sim-panel {
  pointer-events: auto;
  position: absolute;
  right: 0; top: 0; bottom: 0;
  width: min(430px, 100vw);
  background: #F7F8FC;
  border-left: 1px solid #D8DCEA;
  box-shadow: -18px 0 50px rgba(14, 22, 51, .22);
  display: flex;
  flex-direction: column;
  animation: sim-in .28s var(--ease-out) both;
}

/* display z reguły klasy przebija wbudowane [hidden] – trzeba to nadpisać jawnie */
.sim-panel[hidden] { display: none; }

@keyframes sim-in { from { transform: translateX(24px); opacity: 0; } }

.sim-head {
  flex: 0 0 auto;
  background: #0E1633;
  color: #fff;
  padding: 14px 16px;
  padding-top: calc(14px + env(safe-area-inset-top));
  display: flex;
  align-items: center;
  gap: 10px;
}

.sim-head b { font-size: 15px; }
.sim-sub { flex: 1; font-size: 11.5px; opacity: .6; }

.sim-close {
  appearance: none;
  border: 0;
  background: rgba(255, 255, 255, .12);
  color: #fff;
  width: 32px; height: 32px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.sim-tabs {
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: #fff;
  border-bottom: 1px solid #E3E7F3;
}

.sim-tab {
  appearance: none;
  border: 0;
  background: none;
  padding: 11px 4px 9px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  border-bottom: 2.5px solid transparent;
}

.sim-tab.on { color: var(--blue); border-bottom-color: var(--blue); }

.sim-body { flex: 1; overflow-y: auto; padding: 14px 14px 40px; }

.sim-sec { margin-bottom: 22px; }
.sim-sec h4 { margin: 0 0 6px; font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.sim-hint { font-size: 12px; color: var(--muted); line-height: 1.5; margin: 0 0 10px; }
.sim-empty { font-size: 12.5px; color: var(--muted); font-style: italic; margin: 6px 0; }

.sim-card {
  background: #fff;
  border: 1px solid #E3E7F3;
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 9px;
}

.sim-card-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 5px; }
.sim-card-top b { font-size: 13.5px; }
.sim-meta { font-size: 11.5px; color: var(--muted); line-height: 1.5; }
.sim-meta.ok { color: var(--green-dark); }
.sim-meta .bad, .bad { color: #B3261E; }

.sim-chip {
  font-size: 10.5px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
  white-space: nowrap;
}

.sim-chip.gray { background: #EEF0F6; color: var(--muted); }
.sim-chip.blue { background: var(--blue-100); color: var(--blue-dark); }
.sim-chip.green { background: var(--green-50); color: var(--green-dark); }
.sim-chip.red { background: #FDECEA; color: #B3261E; }
.sim-chip.amber { background: var(--amber-50); color: var(--amber); }
.sim-chip.orange { background: var(--orange-50); color: var(--orange-dark); }
.sim-chip.purple { background: var(--purple-50); color: var(--purple); }

.sim-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; align-items: center; }

.sim-btn {
  appearance: none;
  border: 1px solid #D8DCEA;
  background: #fff;
  color: var(--ink-2);
  font-size: 12px;
  font-weight: 600;
  padding: 7px 11px;
  border-radius: 9px;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease;
}

.sim-btn:hover { border-color: var(--blue); color: var(--blue); }
.sim-btn.primary { background: var(--blue); border-color: var(--blue); color: #fff; }
.sim-btn.primary:hover { background: var(--blue-dark); color: #fff; }
.sim-btn.danger { color: #B3261E; border-color: #F3C9C4; }
.sim-btn.danger:hover { background: #FDECEA; border-color: #B3261E; color: #B3261E; }

.sim-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

.sim-fld { display: block; font-size: 11px; color: var(--muted); font-weight: 600; }

.sim-fld input,
.sim-inline input {
  width: 100%;
  margin-top: 3px;
  padding: 8px 10px;
  border: 1px solid #D8DCEA;
  border-radius: 8px;
  font-size: 13px;
  background: #fff;
  color: var(--ink);
}

.sim-fld input:focus, .sim-inline input:focus { outline: 2px solid var(--blue); outline-offset: -1px; }

.sim-inline { display: flex; gap: 6px; align-items: center; }
.sim-inline input { width: 120px; margin: 0; }

.sim-check {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 12.5px;
  color: var(--ink-2);
  margin: 8px 0;
  cursor: pointer;
}

.sim-check input { width: 16px; height: 16px; }

.sim-kv {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 12px;
  padding: 6px 0;
  border-bottom: 1px solid #EEF1F5;
}

.sim-kv:last-child { border-bottom: 0; }
.sim-kv span { color: var(--muted); }

.sim-msg {
  background: #fff;
  border: 1px solid #E3E7F3;
  border-left: 3px solid #D8DCEA;
  border-radius: 10px;
  padding: 11px 12px;
  margin-bottom: 9px;
}

.sim-msg.unread { border-left-color: var(--orange); }
.sim-msg-top { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; flex-wrap: wrap; }
.sim-msg b { display: block; font-size: 12.5px; margin-bottom: 4px; }

.sim-msg-body {
  font-family: var(--font);
  font-size: 12px;
  line-height: 1.55;
  color: var(--ink-2);
  white-space: pre-wrap;
  word-break: break-word;
  margin: 0;
  background: #F7F8FC;
  border-radius: 8px;
  padding: 9px 10px;
}

.sim-scenario {
  display: block;
  width: 100%;
  text-align: left;
  appearance: none;
  border: 1px solid #E3E7F3;
  background: #fff;
  border-radius: 10px;
  padding: 10px 12px;
  margin-bottom: 7px;
  cursor: pointer;
}

.sim-scenario:hover { border-color: var(--blue); }
.sim-scenario b { display: block; font-size: 12.5px; margin-bottom: 2px; }
.sim-scenario span { font-size: 11.5px; color: var(--muted); line-height: 1.45; }

.sim-log-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 11.5px;
  padding: 5px 0;
  border-bottom: 1px solid #EEF1F5;
}

.sim-log-row.bad span:first-child { color: #B3261E; font-weight: 600; }

.sim-flash {
  position: absolute;
  left: 14px; right: 14px; bottom: 14px;
  background: #0E1633;
  color: #fff;
  font-size: 12.5px;
  padding: 11px 14px;
  border-radius: 11px;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .25s ease, transform .25s ease;
  pointer-events: none;
}

.sim-flash.show { opacity: 1; transform: none; }
.sim-flash.bad { background: #B3261E; }

@media (max-width: 720px) {
  .sim-fab { bottom: calc(78px + env(safe-area-inset-bottom)); right: 12px; width: 44px; height: 44px; border-radius: 15px; }
  .sim-panel { width: 100vw; }
}

@media (prefers-reduced-motion: reduce) {
  .sim-panel { animation: none; }
  .spinner { animation-duration: 1.6s; }
}

/* ============================================================
   Dopracowanie interfejsu (10.2026): poprawki po przeglądzie ekranów
   ============================================================ */

/* powiadomienia: wiersz jest przyciskiem, ale nie ma wyglądać jak przycisk systemowy */
.notif {
  appearance: none;
  width: 100%;
  border: 0;
  border-left: 3px solid transparent;
  background: none;
  text-align: left;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
}
.notif:last-of-type { border-bottom: 0; }
.notif.is-unread { border-left-color: var(--blue); background: var(--blue-50); }
.notif:hover { background: var(--blue-50); }
.notif:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.notif-ic.c-green  { background: var(--green-50);  color: var(--green); }
.notif-ic.c-orange { background: var(--orange-50); color: var(--orange); }
.notif-ic.c-amber  { background: var(--amber-50);  color: var(--amber); }
.notif-ic.c-red    { background: #FDECEA;          color: #B3261E; }
.notif-ic.c-gray   { background: #EEF0F6;          color: var(--muted); }

/* minimalne rozmiary pisma na telefon */
.nav-item { font-size: 11.5px; }
.chip { font-size: 12px; }
.tile > span:last-child { font-size: 12px; }
.btn-note { font-size: 13.5px; }

/* pulpit: karta główna z akcją */
.hero-card .hero-cta { margin-top: 16px; box-shadow: none; }
.onboarding { display: flex; gap: 14px; align-items: flex-start; }
.onb-ic {
  flex: 0 0 auto;
  width: 44px; height: 44px;
  border-radius: 14px;
  background: var(--orange-50);
  color: var(--orange);
  display: grid;
  place-items: center;
}
.onboarding b { display: block; font-size: 15px; margin-bottom: 4px; }
.onboarding div > span { color: var(--muted); font-size: 13.5px; line-height: 1.5; }

.promo-tile.compact { padding: 22px 20px 0; margin: 4px 0 0; }
.promo-tile.compact .promo-title { font-size: 18px; margin: 0 auto 4px; }
.promo-tile.compact .city { display: block; width: 100%; height: auto; max-height: 144px; margin-top: 12px; }

/* kalkulator korzyści */
.section-row.tight { margin: 0 0 10px; }
.calc .mb-8 { margin-bottom: 8px; }
.range { width: 100%; accent-color: var(--blue); margin: 6px 0 10px; height: 28px; cursor: pointer; }
.calc-row { display: flex; justify-content: space-between; align-items: baseline; font-size: 14px; color: var(--ink-2); }
.calc-row b { font-weight: 800; color: var(--ink); }
.calc-out { font-size: 22px; font-weight: 800; color: var(--green) !important; }

/* ścieżka polecenia: pięć kroków w jednej linii, bez przerywanej ramki */
.status-flow { border: 1px solid var(--line); padding: 16px; margin-bottom: 12px; }
.status-track { display: flex; align-items: flex-start; overflow: visible; padding: 0; }
.status-step { flex: 1 1 0; width: auto; min-width: 0; }
.status-link { flex: 0 0 10px; height: 2px; background: var(--line); margin-top: 19px; }
.status-ic { width: 40px; height: 40px; box-shadow: none; }
.status-ic.c-amber { background: var(--amber); }
.status-ic.c-gray  { background: #DDE2EF; color: var(--ink-2); }
.status-step:not(.has) .status-ic { opacity: .7; }
.status-step .status-label { font-size: 12px; }
.status-flow .field-hint { margin-top: 14px; }

/* lista poleceń */
.title-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.title-row .h1 { margin: 0; }
.icon-btn.solid {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--blue);
  color: #fff;
  box-shadow: 0 6px 16px rgba(0, 74, 143, .25);
}
.summary-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-card);
  margin-bottom: 14px;
}
.summary-strip > div { padding: 12px 8px; text-align: center; border-right: 1px solid var(--line); min-width: 0; }
.summary-strip > div:last-child { border-right: 0; }
.summary-strip span { display: block; font-size: 12.5px; color: var(--muted); font-weight: 600; margin-bottom: 3px; }
.summary-strip b { font-size: 15px; font-weight: 800; white-space: nowrap; }

.seg { display: flex; gap: 4px; background: #EEF1F5; border-radius: 12px; padding: 4px; margin-bottom: 12px; }
.seg-btn {
  flex: 1;
  min-height: 44px;
  appearance: none;
  border: 0;
  background: none;
  border-radius: 9px;
  padding: 9px 4px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--muted);
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
}
.seg-btn b { font-weight: 800; opacity: .65; }
.seg-btn.on { background: #fff; color: var(--blue); box-shadow: var(--shadow-card); }
.seg-btn.on b { opacity: 1; }
.seg-btn[data-action="list-filter"] { display: inline-flex; align-items: center; justify-content: center; gap: 4px; flex-wrap: wrap; }
.seg-btn .seg-count { display: inline-block; min-width: 18px; padding: 2px 5px; border-radius: 5px; background: rgba(15, 62, 105, .07); font-size: 11.5px; line-height: 1.3; opacity: 1; }
.seg-btn.on .seg-count { background: var(--blue-50); }

.ref-card { display: block; position: relative; padding-right: 38px; }
.ref-card .ref-name, .ref-card .ref-nip { display: block; }
.ref-card .ref-nip { margin-top: 5px; font-size: 13px; line-height: 1.5; }
.ref-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 10px; }
.ref-foot .chip { justify-self: auto; }
.ref-vol { font-size: 15px; font-weight: 800; color: var(--ink); }
.ref-chev { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); color: #B4BCD3; display: grid; }

/* szczegóły polecenia */
.lead-head .chip { display: inline-flex; }
.next-card b { display: block; font-size: 14px; margin-bottom: 4px; }
.next-card p { margin: 0; color: var(--muted); font-size: 13.5px; line-height: 1.5; }
.next-card .btn { margin-top: 12px; }
.kv b.value-green { color: var(--green); font-weight: 800; }
.kv .link { font-size: 13.5px; padding: 6px 0; margin: -6px 0; }
.card .field-hint { margin-top: 10px; }

/* karta doradcy */
.advisor-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.advisor-head > div { min-width: 0; }
.advisor-head b { display: block; font-size: 15px; }
.advisor-head .found-label { margin-bottom: 2px; }
.advisor-head .ref-nip { display: block; margin-top: 2px; }
.avatar.sm { width: 42px; height: 42px; font-size: 15px; }
.advisor-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
a.btn { text-decoration: none; }
.btn.sm { padding: 11px 12px; font-size: 14px; justify-content: center; }
.btn-outline.sm svg { color: var(--blue); }

/* saldo: wypłata w realizacji */
.pending-card { display: flex; gap: 12px; align-items: flex-start; }
.pending-card .tile-ic { margin: 0; flex: 0 0 auto; }
.pending-card b { display: block; font-size: 14.5px; margin-bottom: 3px; }
.pending-card div > span { color: var(--muted); font-size: 13px; line-height: 1.5; }

/* profil */
.profile-head .chip { margin-left: auto; flex: 0 0 auto; }
.profile-head > div { min-width: 0; }

/* strona polecanego: korzyści nad przyciskami */
.benefits { list-style: none; margin: 0 0 16px; padding: 0; }
.benefits li { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.45; color: var(--ink-2); padding: 6px 0; }
.benefits svg { flex: 0 0 auto; color: var(--green); margin-top: 2px; }

/* edycja treści zaproszenia */
.textarea {
  width: 100%;
  border: 1.5px solid var(--line);
  border-radius: var(--r-sm);
  padding: 12px;
  resize: none;
  background: #fff;
  color: var(--ink);
}
.textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-100); }

/* ekran PIN-u: klawiatura w zasięgu kciuka */
.login-view .login-sheet { display: flex; flex-direction: column; }
.login-view .pin-wrap { margin-top: auto; padding-top: 10px; }

/* szkielet ładowania */
.loader-blk { text-align: left; padding: 0; }
.sk {
  background: linear-gradient(90deg, #EEF1F5 25%, #F3F5FA 50%, #EEF1F5 75%);
  background-size: 200% 100%;
  animation: shimmer 1.2s linear infinite;
  border-radius: 12px;
}
.sk-title { height: 26px; width: 55%; margin-bottom: 10px; }
.sk-text { height: 14px; width: 75%; margin-bottom: 18px; }
.sk-card { height: 92px; margin-bottom: 12px; }
.sk-card.tall { height: 170px; }
.sk-row { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .sk { animation: none; } }

/* ============================================================
   System ruchu (10.2026)
   Jedna osobowość: „Corporate” wg LottieFiles motion-design
   (quick 200 / standard 300 / slow 450 ms, overshoot 0–3%, sukces 5–10%).
   Wejścia hamują (ease-out), wyjścia przyspieszają (ease-in) i trwają ~70% wejścia.
   Animujemy tylko transform i opacity; kaskady do 40 ms na element, łącznie < 300 ms.
   ============================================================ */

:root {
  --t-press: 150ms;
  --t-quick: 200ms;
  --t-std: 300ms;
  --t-slow: 450ms;
  --t-exit: 210ms;
  --e-std: cubic-bezier(.2, 0, 0, 1);        /* ruch na ekranie */
  --e-enter: cubic-bezier(.05, .7, .1, 1);   /* wejścia */
  --e-exit: cubic-bezier(.3, 0, 1, 1);       /* wyjścia */
  --e-settle: cubic-bezier(.175, .885, .32, 1.275); /* sukces, lekki przestrzał */
  /* stare nazwy prowadzą do nowych krzywych, żeby cała aplikacja mówiła jednym językiem */
  --ease-out: var(--e-enter);
  --ease-spring: var(--e-settle);
}

/* ---------- Przejścia między ekranami ---------- */

.view.nav-forward .content { animation-duration: var(--t-std); animation-timing-function: var(--e-enter); }
.view.nav-back .content    { animation-duration: var(--t-std); animation-timing-function: var(--e-enter); }
.view.nav-rise .content > * { animation-duration: var(--t-slow); animation-timing-function: var(--e-enter); }

/* treść po szkielecie: krótkie przenikanie zamiast skoku */
.view.from-loader .content { animation: fade-in var(--t-quick) var(--e-std) both; }
@keyframes fade-in { from { opacity: 0; } }

/* ---------- Dotknięcia: wciśnięcie 150 ms, powrót ze sprężyną ---------- */

.btn, .ref-card, .menu-item, .pin-key, .seg-btn, .share-opt, .notif, .icon-btn, .nav-item .nav-ic {
  transition-property: transform, box-shadow, background, border-color, color;
  transition-duration: var(--t-quick);
  transition-timing-function: var(--e-settle);
}
.btn:active, .ref-card:active, .menu-item:active, .pin-key:active, .seg-btn:active, .share-opt:active, .notif:active, .icon-btn:active {
  transform: scale(.97);
  transition-duration: 100ms;
  transition-timing-function: var(--e-exit);
}
.btn:active { box-shadow: none; }

/* zakładka: ikona „wskakuje” przy aktywacji */
.nav-item.active .nav-ic { animation: tab-pop var(--t-quick) var(--e-settle); }
@keyframes tab-pop { from { transform: scale(.82); } }

/* ---------- PIN: kropka wskakuje przy każdej cyfrze ---------- */

.pin-dot.on { animation: pin-pop var(--t-quick) var(--e-std) both; }
@keyframes pin-pop {
  0%   { transform: scale(.55); }
  60%  { transform: scale(1.32); }
  100% { transform: scale(1.18); }
}
/* PIN sprawdzany (js/app.js pinDigit): kropki przygasają, klawiatura czeka na wynik */
.pin-dots.checking .pin-dot.on { animation: pin-check 700ms var(--e-std) 120ms infinite alternate; }
@keyframes pin-check { to { opacity: .4; } }
@media (prefers-reduced-motion: reduce) { .pin-dots.checking .pin-dot.on { animation: none; opacity: .55; } }

/* ---------- Segmenty: przesuwająca się pigułka, lista wchodzi kaskadą ---------- */

.seg { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
.seg::before {
  content: '';
  position: absolute;
  top: 4px; bottom: 4px; left: 4px;
  width: calc((100% - 8px) / 3);
  border-radius: 9px;
  background: #fff;
  box-shadow: var(--shadow-card);
  transform: translateX(calc(var(--seg-i, 0) * 100%));
  transition: transform var(--t-std) var(--e-std);
}
.seg-btn { position: relative; z-index: 1; }
.seg-btn.on { background: none; box-shadow: none; }
#ref-list.swap > * { animation: rise-in var(--t-std) var(--e-enter) both; animation-delay: var(--d, 0ms); }

/* ---------- Kwoty i karty: podbicie przy zmianie, podświetlenie po akcji ---------- */

.calc-out.bump { animation: bump var(--t-quick) var(--e-settle); }
@keyframes bump { 50% { transform: scale(1.08); } }

.hero-card.flash { animation: flash-card 700ms var(--e-std) both; }
.pending-card.flash { animation: flash-card 700ms var(--e-std) 120ms both; }
@keyframes flash-card {
  0%   { transform: scale(.985); }
  35%  { transform: scale(1.015); box-shadow: 0 0 0 6px rgba(242, 112, 33, .18); }
  100% { transform: scale(1); }
}

/* pasek postępu i wypełnienia: 450 ms, bez liniowego ruchu */
.pr-fill { transition: width var(--t-slow) var(--e-std); }
.steps-fill { transition-duration: var(--t-slow); transition-timing-function: var(--e-std); }

/* ---------- Sukces: ptaszek rysuje się, komunikat wchodzi z lekkim przestrzałem ---------- */

.note-green { animation: note-pop var(--t-std) var(--e-settle) both; }
.note-green .note-ic svg path {
  stroke-dasharray: 32;
  stroke-dashoffset: 32;
  animation: draw-stroke var(--t-slow) var(--e-std) 120ms forwards;
}
.note-red { animation: shake 360ms var(--e-std) both; }

/* ---------- Panel dolny i tło: wejście 300 ms, wyjście 210 ms ---------- */

.sheet { transition: transform var(--t-std) var(--e-enter); }
.sheet:not(.open) { transition: transform var(--t-exit) var(--e-exit); }
.sheet-backdrop { transition: opacity var(--t-quick) ease; }
.sheet-backdrop:not(.open) { transition-delay: 60ms; }
.sheet.dragging, .sheet-backdrop.dragging { transition: none; }

.toast { transition: opacity var(--t-quick) var(--e-enter), transform var(--t-quick) var(--e-enter); }
.toast:not(.show) { transition-duration: 160ms; transition-timing-function: var(--e-exit); }

/* ---------- Ścieżka polecenia: kroki i łączniki zapalają się po kolei ---------- */

.status-flow.io .status-step {
  transform: translateY(10px) scale(.9);
  transition: opacity var(--t-std) var(--e-enter), transform var(--t-std) var(--e-settle);
  transition-delay: var(--d, 0ms);
}
.status-flow.io .status-link {
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform var(--t-quick) var(--e-std);
  transition-delay: var(--d, 0ms);
}
.status-flow.io.in .status-link { transform: scaleX(1); }

/* oś czasu: kaskada 60 ms, kropki z lekkim przestrzałem */
.tl-item { animation-duration: var(--t-std); animation-timing-function: var(--e-enter); }
.tl-item .tl-dot { animation-duration: var(--t-std); animation-timing-function: var(--e-settle); }

/* ---------- Ograniczony ruch: zostają tylko zmiany stanu i wskaźniki postępu ---------- */

@media (prefers-reduced-motion: reduce) {
  .pin-dot.on, .nav-item.active .nav-ic, .calc-out.bump, .hero-card.flash, .pending-card.flash,
  .note-green, .note-red, .tl-item, .tl-item .tl-dot, #ref-list.swap > * { animation: none; }
  .note-green .note-ic svg path { stroke-dashoffset: 0; animation: none; }
  .seg::before, .sheet, .sheet-backdrop, .toast { transition: none; }
  .status-flow.io .status-step, .status-flow.io .status-link { transition: none; transform: none; opacity: 1; }
  .btn:active, .ref-card:active, .menu-item:active, .pin-key:active, .seg-btn:active, .share-opt:active, .notif:active, .icon-btn:active { transform: none; }
}

/* ============================================================
   Efekt wow (10.2026): czcionka tytułów, pierścień, żywe miasto,
   światło na kartach, strona polecanego, brandowy wskaźnik ładowania
   ============================================================ */

/* ---------- Typografia DGE: Inter Tight, zgodnie ze stroną marki ---------- */

:root { --font-display: 'Inter Tight', 'Inter', system-ui, sans-serif; }
.h1, .h2, .hero-value, .hero-sub-value, .tile b, .calc-out, .summary-strip b, .ring-text b,
.landing-title, .promo-title, .sheet-title, .appbar-title, .login-tagline, .ref-vol, .ledger-amt {
  font-family: var(--font-display);
  letter-spacing: -.015em;
}
.h1 { font-weight: 800; }

/* Stała szerokość cyfr utrzymuje wyrównanie kwot przy zmianie danych. */
.hero-value, .hero-sub-value, .summary-strip b, .goal-nums b,
.goal-tile b, .ref-vol, .branza-zl, .ledger-amt {
  font-variant-numeric: tabular-nums;
}

/* ---------- Pierścień „do darmowej energii” w karcie głównej ---------- */

.hero-card.with-ring .hero-main { align-items: center; gap: 14px; }
.hero-mini { margin-top: 8px; font-size: 12.5px; color: #C6DCEC; font-weight: 600; }
.hero-mini b { color: #fff; font-weight: 800; }
.ring { position: relative; width: 112px; height: 112px; flex: 0 0 auto; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); overflow: visible; }
.ring circle { fill: none; stroke-width: 10; stroke-linecap: round; }
.ring-track { stroke: rgba(255, 255, 255, .16); }
.ring-forecast {
  stroke: rgba(255, 255, 255, .42);
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  transition: stroke-dashoffset 1s var(--e-std) .15s;
}
.ring-fill {
  stroke: url(#ringGrad);
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  transition: stroke-dashoffset .85s var(--e-std) .15s;
  filter: drop-shadow(0 0 6px rgba(242, 112, 33, .6));
}
.ring-text {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  line-height: 1;
}
.ring-text b { font-size: 25px; font-weight: 800; }
.ring-text span { font-size: 10.5px; font-weight: 600; color: #DFEBF5; margin-top: 4px; line-height: 1.2; }
.hero-hint { margin: 12px 0 0; font-size: 13px; color: #C6DCEC; line-height: 1.5; }
.hero-sub-value small { font-size: 12px; font-weight: 600; color: #C6DCEC; font-family: var(--font); letter-spacing: 0; }

/* ---------- Światło na kartach ---------- */

.hero-card { overflow: hidden; }
.sheen {
  position: absolute; top: -40%; bottom: -40%; left: 0; width: 38%;
  background: linear-gradient(100deg, transparent 0%, rgba(255, 255, 255, .13) 50%, transparent 100%);
  transform: translateX(-180%) skewX(-14deg);
  animation: sheen 1.25s var(--e-std) .4s 1 both;
  pointer-events: none;
}
.hero-card:not(.motion-active) .sheen { animation-play-state: paused; }
.sheen.settled { animation: none; opacity: 0; }
@keyframes sheen { to { transform: translateX(560%) skewX(-14deg); } }

.hero-ic { position: relative; box-shadow: 0 8px 20px rgba(242, 112, 33, .3); }
.hero-ic::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: 0 8px 24px rgba(245, 145, 31, .4);
  animation: energy-glow 4s ease-in-out infinite alternate;
  pointer-events: none;
}
.hero-card:not(.motion-active) .hero-ic::before { animation-play-state: paused; }
@keyframes energy-glow { from { opacity: .25; } to { opacity: .8; } }

/* oś czasu: linia dorysowuje się do bieżącego kroku, bieżący krok pulsuje */
.tl-item::before {
  transform: scaleY(0);
  transform-origin: top;
  animation: grow-line var(--t-std) var(--e-std) both;
  animation-delay: calc(var(--d, 0ms) + 140ms);
}
@keyframes grow-line { to { transform: scaleY(1); } }
.tl-item.current .tl-dot::before {
  content: '';
  position: absolute; inset: -6px;
  border-radius: 50%;
  border: 2px solid var(--green);
  opacity: 0;
  animation: pulse-ring 2.4s ease-out .8s infinite;
}
.tl-item.current:not(.motion-active) .tl-dot::before { animation-play-state: paused; }
@keyframes pulse-ring {
  0%   { transform: scale(.7); opacity: .75; }
  70%  { transform: scale(1.25); opacity: 0; }
  100% { transform: scale(1.25); opacity: 0; }
}

/* ---------- Ilustracja energii: lekkie warstwy SVG, ruch tylko w polu widzenia ---------- */

.city { --energy-cycle: 8s; }
.city .energy-blades { animation: spin 18s linear infinite; }
.city .energy-world { animation: energy-lift var(--energy-cycle) ease-in-out infinite; }
.city .energy-ground-shadow { transform-box: view-box; transform-origin: 181px 148px; animation: energy-shadow var(--energy-cycle) ease-in-out infinite; }
.city .energy-sun { animation: energy-sun var(--energy-cycle) ease-in-out infinite; }
.city .energy-sun-halo, .city .energy-sun-ring { transform-box: view-box; transform-origin: 284px 30px; }
.city .energy-sun-halo { animation: energy-radiance var(--energy-cycle) ease-in-out infinite; }
.city .energy-sun-ring { animation: energy-corona var(--energy-cycle) ease-in-out infinite; }
.city .energy-wind { animation: energy-breeze var(--energy-cycle) ease-in-out infinite; animation-delay: calc(var(--i, 0) * -3s); }
.city .energy-windows { animation: energy-windows var(--energy-cycle) ease-in-out infinite; }
.city .energy-solar-shine { opacity: 0; animation: energy-solar-sweep var(--energy-cycle) ease-in-out infinite; }
.city .energy-network-flow { opacity: 0; animation: energy-current var(--energy-cycle) linear infinite; }
.city .energy-network-node { animation: energy-node var(--energy-cycle) ease-in-out infinite; animation-delay: calc(var(--i, 0) * .55s); }
.city .energy-charge { opacity: .25; animation: energy-charge var(--energy-cycle) ease-in-out infinite; animation-delay: calc(var(--i, 0) * .35s); }
.city .energy-window-warm { opacity: .14; animation: energy-warmth var(--energy-cycle) ease-in-out infinite; animation-delay: calc(var(--i, 0) * .2s); }
.city .energy-packet { animation: energy-transit var(--energy-cycle) linear infinite; }
/* Wspólna pauza obejmuje także nowe warstwy i zachowuje ich fazę. */
.city:not(.motion-active) * { animation-play-state: paused; }
.login-hero:not(.motion-active) .login-orbs i { animation-play-state: paused; }
@keyframes energy-lift { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-1.5px); } }
@keyframes energy-shadow { 0%, 100% { transform: scaleX(1); opacity: .22; } 50% { transform: scaleX(.96); opacity: .15; } }
@keyframes energy-sun { 50% { transform: translateY(-2px); } }
@keyframes energy-radiance { 0%, 100% { opacity: .5; transform: scale(.96); } 32% { opacity: .9; transform: scale(1.08); } }
@keyframes energy-corona { 0%, 100% { opacity: .15; transform: scale(.96); } 35% { opacity: .48; transform: scale(1.06); } }
@keyframes energy-breeze { 0%, 100% { transform: translateX(-3px); opacity: .3; } 50% { transform: translateX(4px); opacity: .65; } }
@keyframes energy-windows { 0%, 100% { opacity: .82; } 68% { opacity: 1; } }
@keyframes energy-solar-sweep {
  0%, 2% { transform: translateX(-60px); opacity: 0; }
  7% { opacity: .65; }
  21% { opacity: .65; }
  27%, 100% { transform: translateX(70px); opacity: 0; }
}
@keyframes energy-current {
  0%, 25% { stroke-dashoffset: 100; opacity: 0; }
  30% { stroke-dashoffset: 90; opacity: .9; }
  64% { stroke-dashoffset: -100; opacity: .9; }
  70%, 100% { stroke-dashoffset: -100; opacity: 0; }
}
@keyframes energy-node { 0%, 25%, 82%, 100% { opacity: .3; } 40%, 62% { opacity: 1; } }
@keyframes energy-charge { 0%, 43%, 100% { opacity: .25; } 58%, 85% { opacity: 1; } }
@keyframes energy-warmth { 0%, 53%, 100% { opacity: .08; } 68%, 85% { opacity: .78; } }
@keyframes energy-transit {
  0%, 25% { transform: translate(0, 0); opacity: 0; }
  29% { transform: translate(0, 0); opacity: 1; }
  50% { transform: translate(112px, 30px); opacity: 1; }
  73% { transform: translate(251px, -6px); opacity: 1; }
  79%, 100% { transform: translate(251px, -6px); opacity: 0; }
}
.motion-suspended *, .motion-suspended *::before, .motion-suspended *::after {
  animation-play-state: paused !important;
}

/* ---------- Strona polecanego: nagłówek sprzedażowy i kafelki korzyści ---------- */

.landing-view .appbar { box-shadow: none; }
.landing-hero {
  flex: 0 0 auto;
  background: linear-gradient(170deg, var(--blue) 0%, var(--blue-dark) 100%);
  color: #fff;
  padding: 18px 20px 0;
  position: relative;
  overflow: hidden;
}
.landing-kicker { margin: 0 0 6px; font-size: 13px; font-weight: 600; color: #C6DCEC; animation: fade-up var(--t-std) var(--e-enter) both; }
.landing-title {
  margin: 0;
  font-size: 27px;
  line-height: 1.15;
  font-weight: 800;
  text-wrap: balance;
  animation: rise-in var(--t-slow) var(--e-enter) 60ms both;
}
.landing-hero .city { display: block; width: 100%; height: auto; max-height: 148px; margin-top: 14px; }
.landing-q { margin: 16px 0 14px; font-size: 15px; font-weight: 600; color: var(--ink-2); line-height: 1.4; }
.benefit-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 16px; }
.benefit {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-card);
  padding: 12px 8px;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-2);
  line-height: 1.3;
  animation: rise-in var(--t-std) var(--e-enter) both;
  animation-delay: var(--d, 0ms);
}
.benefit:nth-child(2) { --d: 70ms; }
.benefit:nth-child(3) { --d: 140ms; }
.benefit-ic { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 12px; margin: 0 auto 8px; background: var(--blue-50); color: var(--blue); }
.plain .device-statusbar { display: none !important; }

/* ---------- Brandowy wskaźnik ładowania: trzy słupki z logo ---------- */

.btn.loading::after {
  width: 22px; height: 18px;
  margin: -9px 0 0 -11px;
  border: 0;
  border-radius: 0;
  background:
    linear-gradient(#fff, #fff) 0 100% / 4px 40% no-repeat,
    linear-gradient(#fff, #fff) 50% 100% / 4px 70% no-repeat,
    linear-gradient(#fff, #fff) 100% 100% / 4px 100% no-repeat;
  animation: bars .9s ease-in-out infinite;
}
.btn-outline.loading::after {
  border: 0;
  background-image: linear-gradient(var(--blue), var(--blue)), linear-gradient(var(--blue), var(--blue)), linear-gradient(var(--blue), var(--blue));
}
@keyframes bars {
  0%, 100% { background-size: 4px 40%, 4px 70%, 4px 100%; }
  33%      { background-size: 4px 100%, 4px 40%, 4px 70%; }
  66%      { background-size: 4px 70%, 4px 100%, 4px 40%; }
}

/* ---------- Ograniczony ruch ---------- */

@media (prefers-reduced-motion: reduce) {
  .city * { animation: none !important; transition: none !important; }
  .city .energy-solar-shine { opacity: 0; }
  .city .energy-network-flow { opacity: .4; stroke-dasharray: none; }
  .city .energy-network-node { opacity: .6; }
  .city .energy-charge { opacity: .85; }
  .city .energy-window-warm { opacity: .22; }
  .city .energy-sun-halo { opacity: .6; }
  .city .energy-sun-ring { opacity: .25; }
  .sheen, .hero-card::before, .hero-ic::before, .btn-orange::before, .tl-item::before, .tl-item.current .tl-dot::before,
  .city .energy-blades, .city .energy-sun, .city .energy-windows, .city .energy-packet,
  .landing-kicker, .landing-title, .benefit { animation: none; }
  .tl-item::before { transform: none; }
  .city .energy-windows { opacity: 1; }
  .city .energy-packet { opacity: 1; transform: translate(112px, 30px); }
  .ring-fill, .ring-forecast { transition: none; }
}

/* wiersz ceny w karcie głównej: wartość w jednej linii, „zamiast” pod spodem */
.hero-row.price { align-items: flex-start; }
.hero-row.price .hero-label { flex: 1; padding-top: 2px; }
.hero-row.price .hero-sub-value { text-align: right; white-space: nowrap; line-height: 1.15; }
.hero-row.price .was { display: block; font-size: 11.5px; color: #B3CDE2; margin-top: 2px; font-weight: 600; }
.dashboard-hero .ring { width: 88px; height: 88px; flex-basis: 88px; }
.dashboard-hero .ring-text b { font-size: 23px; }
.dashboard-hero .hero-divider { margin: 10px 0; }
.dashboard-hero .hero-row { gap: 14px; margin-top: 6px; }
.dashboard-hero .hero-row .hero-label { font-size: 13px; line-height: 1.4; margin-bottom: 0; }
.dashboard-hero .hero-row.price .was { font-size: 12px; }
.dashboard-hero .hero-cta { margin-top: 12px; padding: 12px 14px; }

/* ============================================================
   Wersja 2 (29.10.2026): cel oszczędności, branże, komunikat z CRM,
   strona polecanego wg zrzutu Artura, panel doradcy
   ============================================================ */

/* ---------- Cel oszczędności (zamiast kalkulatora) ---------- */

.goal-card .section-row.tight { margin-bottom: 12px; }
.seg.goal-seg { grid-template-columns: repeat(5, 1fr); margin-bottom: 10px; }
.seg.goal-seg::before { width: calc((100% - 8px) / 5); }
.seg.goal-seg .seg-btn { padding: 10px 2px; font-size: 13.5px; font-weight: 700; }
.seg.two { grid-template-columns: 1fr 1fr; }
.seg.two::before { width: calc((100% - 8px) / 2); }
.goal-caption { margin: 0 0 14px; font-size: 13px; color: var(--muted); line-height: 1.5; }

.goal-nums { display: grid; grid-template-columns: 1fr 1fr 1.35fr; gap: 8px; margin-bottom: 12px; }
.goal-nums b { display: block; font-size: 20px; font-weight: 800; letter-spacing: -.01em; line-height: 1.1; white-space: nowrap; }
.goal-nums div:first-child b { color: var(--orange); }
.goal-nums span { display: block; font-size: 12px; color: var(--muted); margin-top: 4px; line-height: 1.4; }

/* pasek: jaśniejsza warstwa to prognoza, pomarańczowa to naliczony cashback */
.goal-bar { position: relative; height: 10px; }
.goal-bar .pr-forecast {
  position: absolute; top: 0; left: 0; bottom: 0; width: 0;
  background: var(--blue-100); border-radius: 999px;
  transition: width var(--t-slow) var(--ease-out);
}
.goal-bar .pr-fill { position: relative; z-index: 1; background: linear-gradient(90deg, var(--orange-soft), var(--orange)); }
.goal-scale { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; line-height: 1.4; color: var(--muted); font-weight: 600; margin-top: 8px; }
.goal-scale span:last-child { color: var(--blue); text-align: right; }

/* trzy kroki w rzędzie ze strzałkami, jak na zrzucie pulpitu od Artura */
.steps-card .h2 { margin-bottom: 12px; }
.step-no {
  width: 22px; height: 22px; flex: 0 0 auto;
  border-radius: 50%; background: var(--blue); color: #fff;
  font-size: 12px; font-weight: 800; display: grid; place-items: center;
}
.step-ic { width: 36px; height: 36px; flex: 0 0 auto; border-radius: 11px; display: grid; place-items: center; }
.step-ic.c-blue { background: var(--blue-50); color: var(--blue); }
.step-ic.c-orange { background: var(--orange-50); color: var(--orange); }
.step-ic.c-green { background: var(--green-50); color: var(--green); }
.goal-tiles { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; gap: 3px; margin-bottom: 12px; }
.goal-tile {
  position: relative; display: flex; flex-direction: column; align-items: center; text-align: center;
  border: 1px solid var(--line); border-radius: var(--r-md); background: #fff; padding: 12px 5px 10px;
}
.goal-tile .step-no { position: absolute; left: 6px; top: 6px; width: 20px; height: 20px; font-size: 11px; }
.goal-tile .step-ic { width: 34px; height: 34px; margin: 4px 0 8px; }
.gt-label { font-size: 11px; color: var(--muted); font-weight: 600; }
.goal-tile b { display: block; font-size: 14px; font-weight: 800; line-height: 1.2; margin: 1px 0 2px; letter-spacing: -.01em; white-space: nowrap; }
.goal-tile:nth-child(5) b { color: var(--green-dark); }
.gt-sub { font-size: 11px; color: var(--muted); line-height: 1.4; }
.gt-arrow { display: grid; place-items: center; color: #B6BCD2; }
.goal-strip {
  display: grid; grid-template-columns: auto 1fr; gap: 10px 12px; align-items: center;
  background: var(--blue-50); border-radius: var(--r-md); padding: 12px;
}
.goal-strip b { display: block; font-size: 13.5px; }
.goal-strip div > span { display: block; font-size: 12px; color: var(--ink-2); line-height: 1.4; margin-top: 2px; }
.goal-strip .btn { grid-column: 1 / -1; padding: 10px 12px; font-size: 13.5px; }
.goal-card { position: relative; }
.goal-amounts { display: flex; flex-wrap: wrap; align-items: baseline; gap: 5px 8px; margin: 16px 0 10px; font-variant-numeric: tabular-nums; }
.goal-amounts > b { font-size: 27px; line-height: 1.15; letter-spacing: -.02em; }
.goal-amounts > span { font-size: 15px; color: var(--muted); }
.goal-progress-row { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 5px 12px; margin-bottom: 9px; font-size: 13px; }
.goal-progress-label { color: var(--blue); }
.goal-missing { color: var(--muted); }
.goal-missing b { color: var(--ink); font-weight: 600; }
.goal-forecast-label { margin: 8px 0 0; font-size: 12.5px; color: var(--muted); line-height: 1.4; }
.goal-forecast-label b { color: var(--blue); font-weight: 600; }
.goal-next { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 8px 10px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); align-items: center; }
.goal-next b { display: block; font-size: 14px; line-height: 1.4; }
.goal-next div > span { display: block; margin-top: 3px; font-size: 13px; color: var(--muted); line-height: 1.5; }
.goal-next > .link { grid-column: 2; justify-self: start; min-height: 36px; }
.goal-calculation { margin-top: 12px; padding-top: 2px; border-top: 1px solid var(--line); }
.goal-calculation summary { padding: 12px 0 4px; color: var(--muted); font-size: 13px; cursor: pointer; }
.goal-calculation[open] summary { padding-bottom: 12px; color: var(--blue); }
.goal-calculation .kv { gap: 12px; font-size: 13px; }
.goal-calculation .kv b { flex: 0 0 auto; }
.goal-card > .note-green { margin-top: 16px; }
#goal-card.swap > .goal-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 2px solid var(--orange-soft);
  border-radius: inherit;
  pointer-events: none;
  animation: goal-confirm 500ms ease-out both;
}
#goal-card.swap > .steps-card { animation: fade-in var(--t-quick) ease-out both; }
@keyframes goal-confirm { from { opacity: .65; } to { opacity: 0; } }

/* ---------- Komunikat wysyłany zdalnie z CRM ---------- */

.promo-banner {
  padding: 0; margin-bottom: 12px;
  border-radius: var(--r-md);
  background: linear-gradient(135deg, #FFF3EC, #FFE4D6);
  border: 1px solid #FFD2BC;
  animation: rise-in var(--t-std) var(--e-enter) both;
}
.promo-banner > summary { display: grid; grid-template-columns: 32px minmax(0, 1fr) 16px; align-items: center; gap: 10px; padding: 11px 13px; cursor: pointer; list-style: none; }
.promo-banner > summary::-webkit-details-marker { display: none; }
.promo-banner > summary > svg { color: var(--orange-dark); transition: transform var(--t-quick) var(--e-std); }
.promo-banner[open] > summary > svg { transform: rotate(90deg); }
.promo-banner > p { margin: 0; padding: 0 13px 13px; font-size: 13px; color: var(--ink-2); line-height: 1.55; }
.promo-ic {
  width: 32px; height: 32px; flex: 0 0 auto; border-radius: 10px;
  display: grid; place-items: center; color: #fff;
  background: linear-gradient(150deg, var(--orange-soft), var(--orange));
}
.promo-banner b { display: block; font-size: 14px; color: var(--orange-dark); }
.promo-copy { min-width: 0; }
.promo-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin-top: 4px; font-size: 12px; color: var(--ink-2); }
.promo-days {
  flex: 0 0 auto; font-size: 12px; font-weight: 600; color: var(--orange-dark); white-space: nowrap;
}

/* ---------- Branże: gdzie szukać klientów ---------- */

.search-field { position: relative; margin-bottom: 12px; }
.search-ic { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.search-field .input { padding-left: 42px; }
.search-field .input::-webkit-search-cancel-button { -webkit-appearance: none; }
.branze-tools { display: grid; gap: 10px; margin-bottom: 12px; }
.branze-tools .seg { margin-bottom: 0; }
.select-wrap { position: relative; display: block; }
.select-wrap select { appearance: none; -webkit-appearance: none; padding: 12px 40px 12px 15px; font-size: 14.5px; }
.select-wrap svg { position: absolute; right: 14px; top: 50%; transform: translateY(-50%) rotate(90deg); color: var(--muted); pointer-events: none; }
.branze-list { display: grid; gap: 8px; }
/* wiersz jak na zrzucie Artura: kolorowa ikona kategorii, nazwa, zużycie, cashback, strzałka */
.branza {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: left;
  appearance: none; font-family: inherit; color: var(--ink); cursor: pointer;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 10px 12px 10px 10px; box-shadow: var(--shadow-card);
}
.branza:hover { border-color: #cdd3e4; }
.branza-ic { width: 40px; height: 40px; flex: 0 0 auto; border-radius: 12px; display: grid; place-items: center; }
.branza-ic, .step-ic { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .75), inset 0 0 0 1px rgba(0, 74, 143, .035); }
.branza-ic svg { transition: transform var(--t-quick) var(--e-enter); }
@media (hover: hover) and (pointer: fine) {
  .branza:hover .branza-ic svg { transform: translateY(-2px); }
  .nav-fab:hover .fab { transform: translateY(-2px); }
}
.branza-main { flex: 1; min-width: 0; }
.branza-name { display: block; font-weight: 700; font-size: 14px; line-height: 1.4; }
.branza-mwh { display: block; font-size: 13px; color: var(--muted); margin-top: 4px; }
.branza-mwh em { font-style: normal; font-weight: 700; color: var(--orange-dark); }
.branza-zl { font-weight: 700; font-size: 15px; color: var(--blue); white-space: nowrap; text-align: right; }
.branza-zl small { display: block; font-size: 11.5px; font-weight: 400; color: var(--muted); margin-top: 3px; }
.branza-chev { display: grid; color: #B6BCD2; flex: 0 0 auto; }
.cat-blue { background: var(--blue-50); color: var(--blue); }
.cat-orange { background: var(--orange-50); color: var(--orange); }
.cat-green { background: var(--green-50); color: var(--green); }
.cat-purple { background: var(--purple-50); color: var(--purple); }
.cat-amber { background: var(--amber-50); color: var(--amber); }
.cat-red { background: #FDECEA; color: #B3261E; }
.cat-gray { background: #EEF0F6; color: var(--ink-2); }
.cat-navy { background: var(--blue-100); color: var(--blue-dark); }

/* ---------- Dolna nawigacja z przyciskiem „Poleć firmę” pośrodku (zrzuty Artura) ---------- */

.bottom-nav { grid-template-columns: repeat(5, 1fr); }
.nav-fab {
  appearance: none; border: 0; background: none; padding: 0 0 7px; cursor: pointer; font-family: inherit;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 4px;
  color: var(--orange-dark); font-size: 11.5px; font-weight: 700; letter-spacing: .01em;
}
.nav-fab .fab {
  width: 54px; height: 54px; margin-top: -24px; border-radius: 50%;
  display: grid; place-items: center; color: #fff;
  background: linear-gradient(150deg, var(--orange-soft), var(--orange));
  box-shadow: 0 8px 20px rgba(242, 112, 33, .38), 0 0 0 4px #fff;
  transition: transform var(--t-quick) var(--e-std);
}
.nav-fab:active .fab { transform: scale(.94); }
/* treść kończy się wyżej, żeby przycisk nie zasłaniał ostatniego elementu */
.content { padding-bottom: calc(var(--nav-h) + 40px + env(safe-area-inset-bottom)); }

/* ---------- Strona polecanego: korzyści wg zrzutu Artura (energia i gaz) ---------- */

.benefit-tiles { grid-template-columns: 1fr; gap: 10px; }
.benefit { display: flex; align-items: flex-start; gap: 12px; text-align: left; padding: 12px 14px; }
.benefit-ic { margin: 0; flex: 0 0 auto; display: flex; align-items: center; justify-content: center; width: auto; min-width: 36px; padding: 0 8px; }
.benefit-ic svg + svg { margin-left: -5px; color: var(--orange); }
.benefit b { display: block; font-size: 14px; font-weight: 800; color: var(--ink); line-height: 1.3; }
.benefit b em { font-style: normal; color: var(--orange); }
.benefit > span:last-child { display: block; font-size: 12.5px; font-weight: 500; color: var(--muted); margin-top: 3px; line-height: 1.45; }

/* ---------- Panel doradcy ---------- */

.adv-name { font-size: 22px; }
.hero-card .avatar { background: rgba(255, 255, 255, .18); color: #fff; width: 50px; height: 50px; font-size: 17px; }
.adv-ref .ref-name { padding-right: 0; }
.adv-foot { display: flex; flex-wrap: wrap; justify-content: flex-start; gap: 6px 10px; margin-top: 8px; }
.adv-meta { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.adv-meta.idle { color: #B3261E; }
.adv-amount { position: absolute; right: 40px; top: 14px; color: var(--green-dark); }
.adv-lead-head { min-width: 0; }
.adv-lead-head .ref-name, .adv-lead-head .ref-nip { display: block; }
.adv-lead-head .ref-name { padding-right: 0; }
.adv-lead-head .ref-nip { font-size: 12.5px; line-height: 1.5; }
.adv-lead-status { margin-top: 8px; }
.adv-kv { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); border-bottom: 0; }
.adv-kv > b { flex: 0 0 auto; white-space: nowrap; }
.adv-actions { display: grid; gap: 8px; margin-top: 12px; }
.adv-ok { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--green-dark); line-height: 1.4; }
.section-row .sub.mb-0 { margin: 0; font-size: 12.5px; }

/* Analityka użycia w portfelu doradcy — bez zmiany układu pozostałych ekranów. */
.adv-demo-label {
  display: flex; align-items: center; gap: 7px;
  margin: 0 0 14px; color: var(--muted); font-size: 12px; line-height: 1.4;
}
.adv-demo-label svg { flex: 0 0 auto; color: var(--blue); }
.hero-card + .adv-usage { margin-top: 16px; }
.adv-usage-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.adv-usage-heading .h2 { margin: 0; }
.adv-usage-heading p { margin: 5px 0 0; color: var(--muted); font-size: 12.5px; line-height: 1.4; }
.adv-usage-heading-icon {
  display: grid; place-items: center; flex: 0 0 auto; width: 36px; height: 36px;
  border-radius: 11px; background: var(--blue-50); color: var(--blue);
}
.adv-usage-kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.adv-usage-kpi { position: relative; min-width: 0; padding: 13px 11px; border-radius: 12px; background: var(--bg); }
.adv-usage-kpi-icon { display: block; color: var(--blue); margin-bottom: 9px; }
.adv-usage-kpi-label { display: block; font-size: 12px; font-weight: 600; line-height: 1.4; color: var(--ink-2); }
.adv-usage-kpi b { display: block; margin: 4px 0 3px; color: var(--ink); font-family: var(--font-display); font-size: 28px; line-height: 1.15; font-weight: 800; font-variant-numeric: tabular-nums; }
.adv-usage-kpi-hint { display: block; color: var(--muted); font-size: 11px; line-height: 1.4; }
.adv-usage-kpi-primary { background: var(--blue-50); }
.adv-usage-summary { display: grid; gap: 9px; padding: 15px 0; margin-bottom: 5px; border-bottom: 1px solid var(--line); }
.adv-usage-summary > span { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; color: var(--muted); font-size: 12px; line-height: 1.4; }
.adv-usage-summary b { color: var(--ink); font-size: 14px; font-variant-numeric: tabular-nums; }
.adv-chart-heading { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 5px 10px; margin: 17px 0 14px; }
.adv-chart-heading h3 { margin: 0; color: var(--ink); font-size: 13px; font-weight: 700; line-height: 1.4; }
.adv-chart-heading > span { color: var(--muted); font-size: 11px; line-height: 1.4; }
.adv-chart { display: flex; align-items: stretch; gap: 8px; }
.adv-chart-y { width: 20px; flex: 0 0 auto; display: flex; flex-direction: column; justify-content: space-between; color: var(--muted); font-size: 11px; line-height: 1; text-align: right; }
.adv-chart-bars { display: grid; grid-template-columns: repeat(14, minmax(0, 1fr)); align-items: end; gap: 4px; width: 100%; min-width: 0; height: 92px; padding-top: 8px; border-bottom: 1px solid var(--line); background: repeating-linear-gradient(to top, transparent 0, transparent 44px, var(--line) 44px, var(--line) 45px); }
.adv-chart-day { display: flex; align-items: flex-end; justify-content: center; height: 100%; min-width: 0; }
.adv-chart-day > span { display: block; width: 100%; max-width: 20px; background: var(--blue); border-radius: 3px 3px 0 0; }
.adv-chart-day:last-child > span { background: var(--orange); }
.adv-chart-dates { display: flex; justify-content: space-between; gap: 6px; margin: 7px 0 0 28px; font-size: 11px; line-height: 1.3; color: var(--muted); }
.adv-chart-details { margin-top: 8px; }
.adv-chart-details summary { padding: 10px 0; min-height: 40px; font-size: 12px; line-height: 1.5; color: var(--blue); font-weight: 600; cursor: pointer; }
.adv-chart-details table { width: 100%; border-collapse: collapse; font-size: 12px; line-height: 1.4; font-variant-numeric: tabular-nums; }
.adv-chart-details th, .adv-chart-details td { padding: 8px 5px; border-bottom: 1px solid var(--line); text-align: right; }
.adv-chart-details th:first-child { text-align: left; }
.adv-chart-details thead th { color: var(--muted); font-size: 11px; font-weight: 600; }
.adv-chart-details tbody th { font-weight: 500; }
.adv-screens-heading { border-top: 1px solid var(--line); padding-top: 16px; margin-top: 13px; }
.adv-screen-list { display: grid; gap: 14px; list-style: none; margin: 0; padding: 0; }
.adv-screen-list li > div { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 6px; font-size: 12px; line-height: 1.4; }
.adv-screen-list b { color: var(--ink); font-variant-numeric: tabular-nums; }
.adv-screen-track, .adv-screen-track > span { display: block; height: 5px; border-radius: 5px; }
.adv-screen-track { background: var(--blue-50); overflow: hidden; }
.adv-screen-track > span { background: var(--blue); opacity: .8; }
.adv-usage-footnote { margin: 17px 0 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.adv-usage-empty { margin: 12px 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.adv-search-label { display: block; margin-bottom: 7px; color: var(--ink-2); font-size: 12.5px; font-weight: 600; }
.adv-filters { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
.adv-filter {
  appearance: none; min-height: 44px; padding: 9px 7px; border: 1px solid var(--line);
  border-radius: 10px; font-family: inherit; font-size: 12px; line-height: 1.4;
  font-weight: 600; color: var(--muted); background: var(--card); cursor: pointer;
}
.adv-filter[aria-pressed="true"] { border-color: var(--blue); background: var(--blue); color: #fff; }
.adv-filter:hover:not([aria-pressed="true"]) { background: var(--blue-50); color: var(--blue); }
.adv-list-count { margin: 11px 0; color: var(--muted); font-size: 12px; line-height: 1.4; }
.adv-ref[hidden], #adv-empty[hidden] { display: none !important; }
.adv-ref-activity { display: grid; gap: 5px; margin-top: 12px; }
.adv-activity-state { display: inline-flex; align-items: center; gap: 5px; color: var(--muted); font-size: 13px; line-height: 1.4; }
.adv-activity-state > span { width: 6px; height: 6px; border-radius: 50%; background: #8B98A5; flex: 0 0 auto; }
.adv-activity-state.is-active { color: var(--green-dark); }
.adv-activity-state.is-active > span { background: var(--green); }
.adv-activity-state.is-idle { color: var(--amber); }
.adv-activity-state.is-idle > span { background: var(--amber); }
.adv-ref-sessions { padding-left: 11px; font-size: 12.5px; line-height: 1.4; color: var(--muted); }
.adv-ref-sessions b { color: var(--ink); font-variant-numeric: tabular-nums; }
.adv-ref .adv-foot { border-top: 1px solid var(--line); padding-top: 10px; margin-top: 10px; }
.adv-ref .ref-name .chip { margin-left: 4px; padding: 2px 6px; font-size: 10.5px; vertical-align: middle; }
.adv-ref .ref-nip { font-size: 13px; line-height: 1.5; }
.adv-filter-empty { padding: 20px 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); font-size: 13px; }
.adv-usage-dates { margin: 0; }
.adv-usage-dates > div { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 12px; line-height: 1.45; }
.adv-usage-dates dt { color: var(--muted); }
.adv-usage-dates dd { margin: 0; color: var(--ink); text-align: right; font-weight: 600; overflow-wrap: anywhere; }
.adv-person-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 16px; padding: 13px 9px; border-radius: 12px; background: var(--blue-50); text-align: center; }
.adv-person-metrics b { display: block; color: var(--blue); font-family: var(--font-display); font-size: 23px; font-variant-numeric: tabular-nums; line-height: 1.3; }
.adv-person-metrics span { display: block; margin-top: 3px; color: var(--muted); font-size: 11px; line-height: 1.4; }
.adv-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* Tryb doradcy korzysta z tego samego nagłówka, kart i dolnej nawigacji PWA. */
.advisor-appbar .icon-btn { flex: 0 0 auto; }
.advisor-mode-label { flex: 0 0 auto; padding: 5px 10px; border-radius: 20px; background: var(--blue-50); color: var(--blue); font-size: 12px; font-weight: 700; line-height: 1.3; }
.advisor-nav { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.advisor-nav .nav-item { min-width: 0; white-space: nowrap; }
.advisor-view .section-row { gap: 10px; }
.advisor-view .section-row .link { flex: 0 0 auto; font-size: 12.5px; }
.advisor-view .adv-ref .ref-name, .advisor-view .adv-lead-head .ref-name { overflow-wrap: anywhere; }
.adv-home-hero .hero-main { justify-content: space-between; }
.adv-home-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 18px; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, .2); }
.adv-home-metrics > div { min-width: 0; padding-right: 5px; }
.adv-home-metrics > div + div { border-left: 1px solid rgba(255, 255, 255, .2); padding-left: 11px; }
.adv-home-metrics b { display: block; margin-bottom: 4px; font-size: 24px; line-height: 1.15; font-variant-numeric: tabular-nums; }
.adv-home-metrics span { display: block; color: #D0E2F0; font-size: 11.5px; line-height: 1.45; }
.adv-shortcuts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; margin: 14px 0 22px; }
.adv-shortcut { appearance: none; position: relative; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--card); color: var(--ink); padding: 14px 12px; text-align: left; font-family: inherit; cursor: pointer; box-shadow: var(--shadow-card); }
.adv-shortcut-icon { display: grid; place-items: center; width: 37px; height: 37px; border-radius: 11px; background: var(--blue-50); color: var(--blue); margin-bottom: 11px; }
.adv-shortcut:nth-child(2) .adv-shortcut-icon { background: var(--orange-50); color: var(--orange-dark); }
.adv-shortcut b { display: block; font-size: 14px; line-height: 1.3; }
.adv-shortcut > span:not(.adv-shortcut-icon) { display: block; margin-top: 4px; color: var(--muted); font-size: 11px; line-height: 1.4; }
.adv-shortcut > svg { position: absolute; top: 25px; right: 12px; color: var(--muted); }
.adv-shortcut:hover { border-color: var(--blue); }
.adv-shortcut:active { background: var(--blue-50); }
.adv-portfolio-summary { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; }
.adv-portfolio-summary > span { color: var(--muted); font-size: 12.5px; line-height: 1.4; }
.adv-portfolio-summary > b { color: var(--green-dark); font-size: 22px; font-variant-numeric: tabular-nums; }
.adv-status-details { margin-top: 12px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--card); }
.adv-status-details > summary { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 12px 16px; color: var(--ink); font-size: 13px; font-weight: 700; list-style: none; cursor: pointer; }
.adv-status-details > summary::-webkit-details-marker { display: none; }
.adv-status-summary-count { margin-left: auto; color: var(--muted); font-size: 12.5px; font-weight: 500; white-space: nowrap; }
.adv-status-details > summary > svg { flex: 0 0 auto; color: var(--blue); }
.adv-status-details[open] > summary > svg { transform: rotate(90deg); }
.adv-status-details > .status-flow { margin: 0; padding: 4px 16px 16px; border: 0; box-shadow: none; }
.adv-status-details > .status-flow > .section-row { display: none; }
.adv-lead-filters { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 18px; }
.adv-lead-owner { appearance: none; display: flex; align-items: center; gap: 7px; max-width: 100%; margin: 10px 0 0; padding: 8px 10px; border: 0; border-radius: 9px; background: var(--blue-50); color: var(--blue); font: inherit; font-size: 11.5px; line-height: 1.4; text-align: left; cursor: pointer; }
.adv-lead-owner > svg { flex: 0 0 auto; }
.adv-lead-owner > span { min-width: 0; overflow-wrap: anywhere; }
.adv-lead-owner > svg:last-child { margin-left: auto; }
.adv-detail-title { margin-bottom: 18px; }
.adv-contact-card .kv { align-items: flex-start; }
.adv-contact-card .kv b { min-width: 0; overflow-wrap: anywhere; }
.adv-contact-card a { color: var(--blue); text-decoration: none; }
.adv-contact-card a:hover { text-decoration: underline; }
.advisor-view .menu-item > svg, .advisor-view .menu-item .chev { flex: 0 0 auto; }
.demo-role-picker { margin: 0 0 18px; }
.demo-role-picker > span { display: block; margin-bottom: 7px; color: var(--muted); font-size: 12px; font-weight: 600; }
.demo-role-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; padding: 4px; border-radius: 13px; background: var(--blue-50); }
.demo-role-options button { appearance: none; min-height: 42px; padding: 9px 10px; border: 0; border-radius: 10px; background: transparent; color: var(--blue); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.demo-role-options button[aria-pressed="true"] { background: var(--card); box-shadow: var(--shadow-card); }
@media (max-width: 350px) {
  .advisor-appbar { gap: 9px; }
  .advisor-mode-label { padding: 5px 8px; }
  .advisor-nav .nav-item { font-size: 10.5px; }
  .adv-home-metrics b { font-size: 22px; }
  .adv-home-metrics span { font-size: 10.5px; }
  .adv-home-metrics > div + div { padding-left: 8px; }
  .advisor-view .profile-head { flex-wrap: wrap; gap: 10px; }
  .advisor-view .profile-head > div { flex: 1; }
  .advisor-view .profile-head .chip { margin-left: 66px; }
}

/* karta główna nie ma własnego marginesu: to, co idzie zaraz po niej, odsuwa się samo */
.hero-card + .promo-banner, .hero-card + #goal-card { margin-top: 12px; }
/* inicjały w awatarze profilu dziedziczyły szary kolor z .profile-head span */
.profile-head .avatar { color: #fff; }

@media (prefers-reduced-motion: reduce) {
  .promo-banner, #goal-card.swap > .card, #goal-card.swap > .goal-card::after { animation: none; }
  #goal-card.swap > .goal-card::after { opacity: 0; }
  .branza:hover .branza-ic svg, .nav-fab:hover .fab { transform: none; }
  .goal-bar .pr-forecast { transition: none; }
}

/* ---------- Płynność nawigacji (31.10.2026) ---------- */
/* zmiana zakładki z pamięci ekranów: krótkie przenikanie zamiast kaskady */
.view.nav-swap .content { animation: swap-in var(--t-quick) var(--e-enter) both; }
@keyframes swap-in { from { opacity: 0; transform: translateY(6px); } }
/* kaskada przy pierwszym wejściu: krócej i ciaśniej */
.view.nav-rise .content > * { animation-duration: var(--t-std); }
@media (prefers-reduced-motion: reduce) {
  .view.nav-swap .content { animation: none; }
}

/* Publiczny, ręcznie uruchamiany podgląd efektu po utworzeniu polecenia. */
.celebration-preview-label { display: inline-flex; align-items: center; gap: 6px; margin: 4px 0 18px; padding: 5px 9px; border-radius: 8px; background: var(--blue-50); color: var(--blue); font-size: 12px; font-weight: 600; line-height: 1.4; }
.celebration-preview-card { display: grid; justify-items: center; gap: 22px; padding: 40px 20px 28px; margin: 26px 0 20px; text-align: center; }
.celebration-preview-logo { display: flex; align-items: center; justify-content: center; min-height: 64px; }
.celebration-preview-logo .logo img { width: 124px; max-width: 100%; height: auto; }
.celebration-preview-caption { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.celebration-preview-note { margin: 14px 0 20px; color: var(--muted); font-size: 13px; line-height: 1.5; text-align: center; }
.celebration-preview-open { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; margin: 0 auto; }
.celebration-preview-reduced { display: none; margin: 14px 0 0; padding: 11px 13px; border-radius: 10px; background: var(--blue-50); color: var(--ink-2); font-size: 12.5px; line-height: 1.5; }
.referral-ready { display: inline-flex; align-items: center; gap: 4px; padding: 0 6px; border-radius: 20px; background: var(--green-50); color: var(--green-dark); font-size: 13px; font-weight: 700; line-height: 1.25; letter-spacing: 0; text-transform: none; }
.referral-ready > svg { flex: 0 0 auto; }
@media (prefers-reduced-motion: reduce) {
  .celebration-preview-reduced { display: block; }
}

/* ---------- Sukces polecenia: energia logo DGE i krótki rozbłysk konfetti ---------- */
.referral-celebration {
  position: absolute; inset: 0; z-index: 75; overflow: hidden;
  pointer-events: none; isolation: isolate;
  animation: referral-celebration-exit 2600ms linear both;
}
.referral-celebration .celebration-wash {
  position: absolute; inset: 0; z-index: 0;
  background: radial-gradient(ellipse at 50% 42%, #fff 0%, rgba(255, 255, 255, .985) 36%, rgba(249, 249, 251, .95) 62%, rgba(249, 249, 251, .7) 100%);
  animation: referral-celebration-wash 2600ms ease-out both;
}
.referral-celebration .celebration-origin {
  position: absolute; top: 40%; left: 50%; width: 0; height: 0;
}
.referral-celebration .celebration-aura {
  position: absolute; top: 0; left: 0; z-index: 1; width: 250px; height: 250px;
  border-radius: 50%; opacity: 0;
  background: radial-gradient(circle, rgba(245, 145, 31, .2), rgba(245, 145, 31, .09) 38%, rgba(0, 74, 143, .035) 57%, transparent 72%);
  transform: translate(-50%, -50%) scale(.35);
  animation: referral-celebration-aura 1800ms ease-out both;
}
.referral-celebration .celebration-ring {
  position: absolute; top: 0; left: 0; z-index: 2; width: 164px; height: 164px;
  border: 1.5px solid rgba(245, 145, 31, .58); border-radius: 50%; opacity: 0;
  transform: translate(-50%, -50%) scale(.35);
  animation: referral-celebration-ring 1050ms cubic-bezier(.15, .65, .28, 1) calc(470ms + var(--i, 0) * 130ms) both;
}
.referral-celebration .celebration-ring + .celebration-ring { border-color: rgba(0, 74, 143, .23); border-width: 1px; }
.referral-celebration .celebration-badge {
  position: absolute; top: 0; left: 0; z-index: 5;
  display: grid; place-items: center; width: 204px; height: 96px;
  overflow: hidden; border-radius: 24px;
  background: linear-gradient(150deg, #0B5BA8 0%, var(--blue) 45%, #0F3E69 100%);
  box-shadow: 0 14px 34px rgba(15, 62, 105, .3), inset 0 1px 0 rgba(255, 255, 255, .14);
  opacity: 0; transform: translate(-50%, -50%) scale(.65);
  animation: referral-celebration-logo 2600ms cubic-bezier(.22, .7, .28, 1) both;
}
.referral-celebration .celebration-badge img { display: block; width: 168px; height: auto; max-width: none; }
.referral-celebration .celebration-badge::after {
  content: ''; position: absolute; inset: -30%;
  background: linear-gradient(105deg, transparent 42%, rgba(255, 255, 255, .32) 49%, rgba(255, 220, 171, .2) 52%, transparent 58%);
  opacity: 0; transform: translateX(-130%);
  animation: referral-celebration-shine 700ms ease-out 260ms both;
}
.referral-celebration .celebration-copy {
  position: absolute; top: 70px; left: 0; z-index: 6;
  width: min(284px, calc(100vw - 36px)); margin: 0;
  color: var(--ink); font-family: var(--font-display); font-size: 19px; font-weight: 800;
  line-height: 1.35; text-align: center; text-shadow: 0 1px 0 rgba(255, 255, 255, .85);
  opacity: 0; transform: translate(-50%, 8px);
  animation: referral-celebration-copy 2600ms ease-out both;
}
/* miękka biała poświata pod napisem: tekst ekranu pod spodem nie prześwituje przy długich nazwach firm */
.referral-celebration .celebration-copy::before {
  content: ''; position: absolute; inset: -16px -26px; z-index: -1;
  background: radial-gradient(closest-side, #fff 62%, rgba(255, 255, 255, 0));
}
.referral-celebration .celebration-copy strong { display: block; font-weight: 800; }
.referral-celebration .celebration-copy small { display: block; margin-top: 5px; color: var(--muted); font-family: var(--font); font-size: 13px; font-weight: 500; line-height: 1.45; }
.referral-celebration .celebration-particle {
  position: absolute; top: 0; left: 0; z-index: 4;
  width: var(--size, 7px); height: calc(var(--size, 7px) * 1.35);
  margin-left: calc(var(--size, 7px) * -.5); margin-top: calc(var(--size, 7px) * -.675);
  opacity: 0; transform: translate(var(--x0, 0px), var(--y0, 0px)) scale(.65);
  animation: referral-celebration-particle var(--duration, 1750ms) linear var(--delay, 550ms) both;
}
.referral-celebration .celebration-particle > i {
  display: block; width: 100%; height: 100%; border-radius: 1.5px;
  background: var(--color, #F5911F); transform-origin: center;
  animation: referral-celebration-tumble var(--duration, 1750ms) linear var(--delay, 550ms) both;
}
.referral-celebration .celebration-particle:nth-child(3n) { height: var(--size, 7px); margin-top: calc(var(--size, 7px) * -.5); }
.referral-celebration .celebration-particle:nth-child(3n) > i { border-radius: 50%; }
@keyframes referral-celebration-exit {
  0%, 86% { opacity: 1; visibility: visible; }
  100% { opacity: 0; visibility: hidden; }
}
@keyframes referral-celebration-wash {
  0% { opacity: 0; }
  6%, 50% { opacity: 1; }
  70%, 100% { opacity: 0; }
}
@keyframes referral-celebration-aura {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(.35); }
  26% { opacity: .75; transform: translate(-50%, -50%) scale(.8); }
  38% { opacity: 1; transform: translate(-50%, -50%) scale(1.1); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(1.6); }
}
@keyframes referral-celebration-ring {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(.35); }
  12% { opacity: .8; }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(2.35); }
}
@keyframes referral-celebration-logo {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(.65); }
  9% { opacity: 1; transform: translate(-50%, -50%) scale(1.04); }
  15% { opacity: 1; transform: translate(-50%, -50%) scale(.98); }
  20%, 50% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  62%, 100% { opacity: 0; transform: translate(-50%, -50%) scale(.96); }
}
@keyframes referral-celebration-shine {
  0% { opacity: 0; transform: translateX(-130%); }
  25%, 70% { opacity: 1; }
  100% { opacity: 0; transform: translateX(130%); }
}
@keyframes referral-celebration-copy {
  0%, 10% { opacity: 0; transform: translate(-50%, 8px); }
  17%, 50% { opacity: 1; transform: translate(-50%, 0); }
  62%, 100% { opacity: 0; transform: translate(-50%, -4px); }
}
@keyframes referral-celebration-particle {
  0% { opacity: 0; transform: translate(var(--x0, 0px), var(--y0, 0px)) scale(.65); animation-timing-function: cubic-bezier(.12, .62, .28, 1); }
  7% { opacity: 1; }
  38% { opacity: 1; transform: translate(var(--x1, 0px), var(--y1, -100px)) scale(1); animation-timing-function: cubic-bezier(.45, .05, .7, .4); }
  85% { opacity: .9; }
  100% { opacity: 0; transform: translate(var(--x2, 0px), var(--y2, 260px)) scale(.85); }
}
@keyframes referral-celebration-tumble {
  0% { transform: rotate(0deg) scaleX(1); }
  30% { transform: rotate(calc(var(--spin, 360deg) * .3)) scaleX(.32); }
  65% { transform: rotate(calc(var(--spin, 360deg) * .65)) scaleX(1); }
  100% { transform: rotate(var(--spin, 360deg)) scaleX(.5); }
}
@media (prefers-reduced-motion: reduce) {
  .referral-celebration { display: none; animation: none; }
  .referral-celebration *, .referral-celebration *::before, .referral-celebration *::after { animation: none; }
}

/* Tryb z backendem (02.11.2026): regulamin PDF jako odnośnik, powody rezygnacji jako lista wyboru */
.doc-link { text-decoration: none; }
.doc-link:hover, .doc-link:focus-visible { border-color: var(--blue); }
.reason-list .check-row { margin: 8px 0 0; }
.check-row input[type="radio"] { border-radius: 50%; }
.check-row input[type="radio"]:checked::after { left: 4px; top: 4px; width: 9px; height: 9px; border: 0; border-radius: 50%; background: #fff; transform: none; }

/* Ekran „Dołącz do programu” (02.11.2026): zgoda bez ramki, link do regulaminu w treści, błędy pod polami */
.check-row.plain { background: none; border: 0; padding: 6px 0; margin: 18px 0 0; }
.check-row.plain:has(input:checked) { background: none; }
.check-row.has-error input { border-color: #B3261E; }
.field.has-error .input,
.field.has-error .input-prefixed > span { border-color: #B3261E; }
.field-error { margin: 6px 2px 0; font-size: 12.5px; font-weight: 600; line-height: 1.45; color: #B3261E; }
.terms-link { color: var(--blue-bright); font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
.terms-meta { color: var(--muted); white-space: nowrap; }

/* Kod jednorazowy (02.11.2026): sześć kratek nad jednym prawdziwym polem, odliczanie, linki pod przyciskiem */
.otp { position: relative; }
.otp-input {
  position: absolute; inset: 0; z-index: 1;
  width: 100%; height: 100%;
  border: 0; outline: none; background: transparent;
  color: transparent; caret-color: transparent; text-shadow: none;
  font-size: 16px; letter-spacing: 0; cursor: text;
}
.otp-input::selection { background: transparent; }
.otp-cells { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.otp-cell {
  height: 56px; display: grid; place-items: center;
  border: 1.5px solid var(--line); border-radius: var(--r-md); background: var(--card);
  font-size: 24px; font-weight: 800; color: var(--ink);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.otp-cell.filled { border-color: #B9C3D6; }
.otp-cell.active { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0, 74, 143, .15); }
.field.has-error .otp-cell { border-color: #B3261E; }
.row-actions.stack { flex-direction: column; align-items: center; gap: 18px; margin-top: 20px; }
.link:disabled { color: var(--muted); cursor: default; }

/* fragment linku, który nie łamie się w środku (np. „Zobacz branże →”) */
.nowrap { white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; }

/* Ikony są globalnie blokami (img, svg { display: block }): w wyśrodkowanym linku strzałka
   ma zostać w linii z tekstem, a przycisk z ramką bez ikony ma tekst na środku (02.11.2026) */
.link.center > svg { display: inline-block; vertical-align: -2px; margin-left: 6px; }
.btn-outline:not(:has(svg)) { justify-content: center; }

/* Strona polecanego (02.11.2026): niższa ilustracja, przycisk nad korzyściami,
   korzyść jako ikona z tytułem i opisem pod spodem zamiast trzech wąskich kolumn */
.landing-hero .city { max-height: 112px; margin-top: 10px; }
.landing-why { margin: 26px 0 10px; }
.benefit { display: grid; grid-template-columns: auto 1fr; column-gap: 12px; align-items: start; }
.benefit-ic { grid-row: span 2; }
.benefit b, .benefit > span:last-child { grid-column: 2; }

/* podgląd w ramce telefonu na komputerze: bez paska przewijania, jak na telefonie */
@media (min-width: 720px) and (min-height: 620px) {
  .device .content { scrollbar-width: none; }
  .device .content::-webkit-scrollbar { display: none; }
}

/* Symulator oszczędności i ulubione branże (prośba Artura z 01.11.2026) */
.sim-card { margin-bottom: 12px; }
.sim-card .h2 { margin: 0 0 12px; }
.sim-card .field { margin-bottom: 12px; }
.sim-result { margin-top: 4px; }
.sim-hero { margin-top: 12px; }
.sim-hero .hero-value { margin-top: 4px; }
.sim-hero .hero-mini { margin-top: 6px; line-height: 1.45; }
.sim-entry { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; cursor: pointer; border: 1px solid var(--line); font: inherit; color: inherit; }
.sim-entry-text { flex: 1; min-width: 0; }
.sim-entry-text b { display: block; font-size: 15px; color: var(--ink); }
.sim-entry-text span { display: block; font-size: 12.5px; color: var(--muted); margin-top: 2px; line-height: 1.45; }

.branza-row { display: flex; gap: 8px; align-items: stretch; }
.branza-row .branza { flex: 1; min-width: 0; }
.fav-btn:not(.btn) {
  flex: 0 0 auto; width: 48px; display: grid; place-items: center;
  border: 1px solid var(--line); border-radius: var(--r-md); background: var(--card);
  color: var(--muted); cursor: pointer; transition: color .15s ease, border-color .15s ease, transform .12s ease;
}
.fav-btn:not(.btn):active { transform: scale(.94); }
.fav-btn[aria-pressed="true"] { color: #E5484D; border-color: #F6C7C9; }
.fav-btn[aria-pressed="true"] svg { fill: currentColor; }
.fav-btn.btn { justify-content: center; }
.fav-filter {
  display: inline-flex; align-items: center; gap: 8px; justify-self: start;
  padding: 9px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--card);
  font: inherit; font-size: 13.5px; font-weight: 700; color: var(--ink-2); cursor: pointer;
}
.fav-filter b { min-width: 20px; padding: 1px 6px; border-radius: 6px; background: var(--blue-50); color: var(--blue); font-size: 12px; text-align: center; }
.fav-filter[aria-pressed="true"] { border-color: #E5484D; color: #B3261E; background: #FDECEA; }
.fav-filter[aria-pressed="true"] svg { fill: currentColor; color: #E5484D; }

/* sześć zakładek doradcy po dodaniu symulatora */
.advisor-nav { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.advisor-nav .nav-item { font-size: 10px; }

/* ============================================================
   Wygląd 06.11.2026 (przegląd po wdrożeniu, punkty 1–5):
   logo programu na ekranach wejścia, pulpit według zrzutu Artura,
   spójne kolory statusów, serce w karcie branży, pasek kroków polecenia.
   ============================================================ */

/* ---------- 1. Ekran startowy i PIN z logo programu ---------- */
.program-hero {
  min-height: 250px;
  padding-bottom: 66px;
  background: radial-gradient(120% 95% at 50% 0%, #0B5CA8 0%, var(--blue) 40%, #0A2E5C 100%);
}
.program-hero.short { min-height: 200px; padding-bottom: 58px; }
.program-logo { display: block; width: min(300px, 78vw); height: auto; margin: 0 auto; filter: drop-shadow(0 10px 26px rgba(0, 0, 0, .28)); }
.program-logo.sm { width: min(232px, 64vw); }
.accent { color: var(--orange); }
.start-title { font-size: 26px; line-height: 1.16; margin: 0 0 16px; }
.start-benefits { list-style: none; margin: 0 0 20px; padding: 0; display: grid; gap: 10px; }
.start-benefits li {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 12px 14px; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r-md); box-shadow: var(--shadow-card);
  font-size: 13.5px; line-height: 1.45; color: var(--muted);
}
.start-benefits b { display: block; margin-bottom: 2px; font-size: 15px; color: var(--ink); }
.start-ic { width: 38px; height: 38px; flex: 0 0 auto; border-radius: 12px; display: grid; place-items: center; }
.start-ic.c-blue { background: var(--blue-50); color: var(--blue); }
.start-ic.c-orange { background: var(--orange-50); color: var(--orange); }
.start-ic.c-green { background: var(--green-50); color: var(--green); }
.start-foot { margin: 14px 0 0; font-size: 13px; line-height: 1.5; color: var(--muted); text-align: center; }

/* ---------- 2. Pulpit: granatowy nagłówek, karta celu, trzy kroki ---------- */
.content.dash { padding-top: 0; }
.dash-hero {
  position: relative; overflow: hidden;
  margin: 0 -20px; padding: 24px 20px 82px;
  background: radial-gradient(130% 120% at 90% 0%, #0B5CA8 0%, var(--blue) 42%, #0A2E5C 100%);
  color: #fff;
}
.dash-art { position: absolute; right: -8px; top: -2px; width: 164px; opacity: .9; pointer-events: none; }
.dash-art svg.city { display: block; width: 100%; height: auto; }
.dash-hello, .dash-title, .dash-lead { position: relative; }
.dash-hello { margin: 0 0 8px; font-size: 14px; font-weight: 600; color: #C6DCEC; }
.dash-title { margin: 0; font-size: 26px; line-height: 1.14; font-weight: 800; letter-spacing: -.02em; color: #fff; }
.dash-title .accent { color: var(--orange-soft); }
.dash-lead { margin: 10px 0 0; max-width: 32ch; font-size: 14px; line-height: 1.5; color: #DFEBF5; }
.dash-title .accent { white-space: nowrap; }

/* Miejsce rysunku w prawym górnym rogu (12.11.2026): pływający prostokąt o obrysie budynku, powitanie i hasło
   go opływają. Szerokość i wysokość jak rysunek (.dash-art: 164 px szerokości, ok. 70 px wysokości) z odstępem. */
.dash-art-space { float: right; width: 156px; height: 78px; margin: -24px -20px 0 6px; }

/* Oszczędzasz / Zarabiasz (warianty Artura 12.11.2026): zmienia się tylko końcówka podpisu; obie końcówki w jednej
   komórce siatki, przenikają się jednocześnie z lekkim przesunięciem (bez pustej chwili i bez skoku wysokości) */
.lead-tail { display: inline-grid; vertical-align: top; }
.lead-tail > span {
  grid-area: 1 / 1;
  transition: opacity 260ms var(--e-std), transform 260ms var(--e-std), visibility 0s linear 0s;
}
.dash-hero[data-kind="save"] .lead-tail > [data-for="earn"],
.dash-hero[data-kind="earn"] .lead-tail > [data-for="save"] {
  opacity: 0; transform: translateY(6px); visibility: hidden;
  transition: opacity 200ms var(--e-std), transform 200ms var(--e-std), visibility 0s linear 200ms;
}
.dash-hero .seg.kind-switch {
  margin: 18px 0 0; padding: 4px;
  border: 1px solid rgba(255, 255, 255, .22); border-radius: 18px;
  background: rgba(255, 255, 255, .07);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.seg.kind-switch::before {
  border-radius: 14px; box-shadow: 0 8px 22px rgba(3, 20, 45, .32);
  transition: transform 420ms var(--e-std);
}
.kind-switch .kind-opt {
  display: flex; align-items: center; gap: 10px; min-height: 60px; padding: 9px 8px 9px 12px;
  border-radius: 14px; text-align: left; white-space: normal; color: #fff;
  transition: color var(--t-std) var(--e-std);
}
.kind-switch .kind-opt.on { color: var(--blue); }
.kind-switch .kind-ic { flex: 0 0 auto; display: grid; place-items: center; transition: transform var(--t-std) var(--e-settle); }
.kind-switch .kind-opt.on .kind-ic { transform: scale(1.08); }
.kind-switch .kind-txt { display: flex; flex-direction: column; min-width: 0; }
.kind-switch .kind-txt b { font-size: 15px; font-weight: 800; line-height: 1.2; letter-spacing: -.01em; opacity: 1; }
.kind-switch .kind-txt small { margin-top: 2px; font-size: 11.5px; font-weight: 500; line-height: 1.25; opacity: .8; }
.kind-switch .kind-opt:focus-visible { outline: 2px solid var(--orange-soft); outline-offset: 2px; }

#goal-card { position: relative; z-index: 1; margin-top: -60px; }
.goal-panel {
  margin-bottom: 12px; padding: 16px; color: #fff;
  border-radius: var(--r-lg); border: 1px solid rgba(255, 255, 255, .14);
  background: linear-gradient(160deg, #0D4F92 0%, #0A2E5C 100%);
  box-shadow: 0 14px 34px rgba(10, 46, 92, .3);
}
.goal-panel .h2 { color: #fff; }
.goal-panel .link { color: #A9D0F5; }
.goal-panel .seg.goal-seg { background: rgba(255, 255, 255, .09); }
.goal-panel .seg-btn { color: #DFEBF5; }
.goal-panel .seg-btn.on { color: var(--blue); }
.goal-panel .goal-caption { margin: 2px 0 12px; color: #C6DCEC; }
.goal-panel .goal-caption b { color: #fff; }
.goal-status { display: flex; align-items: center; gap: 16px; margin: 6px 0 14px; }
.goal-status .ring { width: 104px; height: 104px; flex-basis: 104px; }
.goal-status .ring-text b { font-size: 24px; }
.goal-status-text { min-width: 0; }
.goal-status-text span { display: block; font-size: 13px; color: #C6DCEC; }
.goal-big { display: block; margin-top: 2px; font-size: 30px; font-weight: 800; line-height: 1.15; letter-spacing: -.02em; color: var(--orange-soft); white-space: nowrap; }
.goal-big.ok { color: #6EE7A8; }
.goal-status-text small { display: block; margin-top: 3px; font-size: 12.5px; line-height: 1.4; color: #DFEBF5; }
.goal-panel .goal-bar { background: rgba(255, 255, 255, .14); }
.goal-panel .goal-bar .pr-forecast { background: rgba(255, 255, 255, .34); }
.goal-bar-labels { display: flex; justify-content: space-between; gap: 8px; margin-top: 8px; font-size: 12.5px; color: #C6DCEC; }
.goal-bar-labels b { color: #fff; font-weight: 700; }
.goal-panel .goal-forecast-label { color: #C6DCEC; }
.goal-panel .goal-forecast-label b { color: #fff; }
.goal-panel .goal-calculation { border-top-color: rgba(255, 255, 255, .14); }
.goal-panel .goal-calculation summary, .goal-panel .goal-calculation[open] summary { color: #C6DCEC; }
.goal-panel .goal-calculation .kv { border-bottom-color: rgba(255, 255, 255, .1); }
.goal-panel .goal-calculation .kv span, .goal-panel .goal-calculation .field-hint { color: #C6DCEC; }
.goal-panel .goal-calculation .kv b { color: #fff; }
.goal-wait {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 12px; border-radius: var(--r-md); background: rgba(255, 255, 255, .08);
  font-size: 13px; line-height: 1.5; color: #DFEBF5;
}
.goal-wait svg { flex: 0 0 auto; margin-top: 1px; color: var(--orange-soft); }

.goal-steps .h2 { margin: 0 0 12px; font-size: 17px; line-height: 1.3; }
.goal-step-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.goal-step {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 12px 6px; text-align: center;
  background: #FBFCFE; border: 1px solid var(--line); border-radius: var(--r-md);
}
.goal-step-num {
  position: absolute; top: 8px; left: 8px; width: 20px; height: 20px; border-radius: 50%;
  display: grid; place-items: center; background: var(--blue); color: #fff; font-size: 11px; font-weight: 800;
}
.goal-step-ic { width: 38px; height: 38px; margin-bottom: 4px; border-radius: 12px; display: grid; place-items: center; background: var(--blue-50); color: var(--blue); }
.goal-step-label { font-size: 12px; font-weight: 600; color: var(--ink-2); }
.goal-step-value { font-size: 16px; font-weight: 800; line-height: 1.2; color: var(--ink); white-space: nowrap; }
.goal-step-value.reward { color: var(--green); }
.goal-step-sub { font-size: 11.5px; line-height: 1.35; color: var(--muted); }
.goal-who {
  display: flex; align-items: center; gap: 12px; width: 100%; margin-top: 12px; padding: 12px;
  border: 0; border-radius: var(--r-md); background: var(--blue-50);
  font: inherit; color: var(--ink); text-align: left; cursor: pointer;
}
.goal-who-ic { flex: 0 0 auto; display: grid; color: var(--blue); }
.goal-who b { display: block; font-size: 14px; }
.goal-who > span:nth-child(2) > span { display: block; margin-top: 2px; font-size: 12.5px; line-height: 1.4; color: var(--muted); }
.goal-who-go {
  flex: 0 0 auto; margin-left: auto; display: inline-flex; align-items: center; gap: 4px;
  padding: 7px 10px; border-radius: 10px; background: #fff; border: 1px solid var(--blue-100);
  font-size: 12.5px; font-weight: 700; color: var(--blue);
}

.dash-money-main { display: flex; align-items: center; gap: 12px; }
.dash-money-ic {
  width: 44px; height: 44px; flex: 0 0 auto; border-radius: 14px; display: grid; place-items: center;
  color: #fff; background: linear-gradient(150deg, var(--orange-soft), var(--orange));
  box-shadow: 0 6px 16px rgba(242, 112, 33, .3);
}
.dash-money-label { display: block; font-size: 13px; color: var(--muted); }
.dash-money-value { display: block; font-size: 26px; font-weight: 800; line-height: 1.15; letter-spacing: -.02em; color: var(--ink); }
.dash-money-main .link { margin-left: auto; }
.dash-money-row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 8px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.dash-money-row span { display: block; font-size: 12px; color: var(--muted); }
.dash-money-row b { display: block; margin-top: 2px; font-size: 16px; font-weight: 800; color: var(--ink); }
.dash-money-price { margin: 12px 0 0; font-size: 13px; line-height: 1.5; color: var(--muted); }
.dash-money-price b { color: var(--blue); }

/* ---------- 3. Statusy: szary, błękit, granat, pomarańcz, zieleń ---------- */
.status-ic.c-sky { background: #5B93CB; }
.chip-sky { background: #E6F0FA; color: #24609C; }
.notif-ic.c-sky { background: #E6F0FA; color: #24609C; }

/* ---------- 4. Branże: serce w prawym rogu karty ---------- */
.branza-row.in-card { position: relative; display: block; }
.branza-row.in-card .branza { padding-right: 58px; }
.branza-row.in-card .fav-btn:not(.btn) {
  position: absolute; top: 50%; right: 8px; width: 42px; height: 42px;
  transform: translateY(-50%); border: 0; border-radius: 12px; background: transparent;
}
.branza-row.in-card .fav-btn:not(.btn):hover { background: #FDECEA; color: #E5484D; }
.branza-row.in-card .fav-btn:not(.btn):active { transform: translateY(-50%) scale(.92); }
.branza-row.in-card .fav-btn[aria-pressed="true"] { background: #FDECEA; }

/* ---------- 5. Polecenia: pasek pięciu kroków ---------- */
.ref-card .ref-steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; max-width: 220px; margin-top: 10px; }
.ref-steps i { display: block; height: 5px; border-radius: 999px; background: #E4E8F0; }
.ref-steps.c-gray i.on { background: #9AA5B4; }
.ref-steps.c-sky i.on { background: #5B93CB; }
.ref-steps.c-blue i.on { background: var(--blue); }
.ref-steps.c-orange i.on { background: linear-gradient(90deg, var(--orange-soft), var(--orange)); }
.ref-steps.c-green i.on { background: var(--green); }

@media (max-width: 360px) {
  .dash-title { font-size: 24px; }
  .dash-art-space { width: 142px; height: 72px; }
  .dash-art { width: 150px; }
  .goal-big { font-size: 26px; }
  .goal-step-value { font-size: 14.5px; }
}

/* ============================================================
   Instalacja, powiadomienia push i Face ID (06.11.2026)
   ============================================================ */
.menu-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.menu-text small { font-size: 12.5px; font-weight: 500; color: var(--muted); line-height: 1.35; }
.menu-item.is-static { cursor: default; }

.btn.btn-sm { width: auto; padding: 10px 16px; font-size: 14px; box-shadow: 0 6px 16px rgba(0, 74, 143, .22); }

.install-card { position: relative; display: flex; gap: 12px; align-items: flex-start; padding: 16px 40px 16px 16px; margin-top: 16px; }
.install-ic { flex: 0 0 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: #E6F0FA; color: var(--blue); }
.install-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.install-body b { font-size: 15px; color: var(--ink); }
.install-body > span { font-size: 13.5px; color: var(--muted); line-height: 1.45; }
.install-actions { display: flex; align-items: center; gap: 16px; margin-top: 10px; flex-wrap: wrap; }
.install-x { position: absolute; top: 8px; right: 8px; border: 0; background: none; color: #9AA3BC; padding: 6px; border-radius: 8px; cursor: pointer; }
.install-x:hover { color: var(--ink); }

.install-steps { list-style: none; padding: 0; margin: 14px 0 16px; display: grid; gap: 14px; }
.install-steps li { display: flex; gap: 12px; align-items: flex-start; font-size: 14.5px; line-height: 1.45; color: var(--ink); }
.install-steps .step-ic { flex: 0 0 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: #E6F0FA; color: var(--blue); }

/* Klawisz odblokowania biometrycznego w pustym polu obok zera (07.11.2026): ten sam kształt co cyfry,
   błękitne tło wyróżnia go bez konkurowania z klawiaturą, ikona Face ID albo odcisku palca. */
.pin-bio { display: grid; place-items: center; border-color: transparent; background: var(--blue-50); color: var(--blue); }
.pin-bio svg { stroke-width: 1.7; }
.pin-bio:active { background: #DCE9F7; }
.pin-bio:disabled { opacity: .55; }

/* iPhone, aplikacja z ekranu początkowego: wysokość z js/pwa.js fixIphoneHeight (przy przezroczystym pasku
   stanu z ekranu, bo WebKit liczy 100% o pasek za nisko; przy pasku „default” z innerHeight). */
.ios-pwa .device { position: fixed; top: 0; left: 0; right: 0; height: var(--app-h, 100%); }
/* próbnik odstępu pod paskiem stanu (fixIphoneHeight); niewidoczny, wstawiany na chwilę */
.sat-probe { position: fixed; top: 0; left: 0; width: 0; height: 0; padding: env(safe-area-inset-top) 0 0; visibility: hidden; pointer-events: none; }

/* Pasek etapów polecenia z podpisem „Etap X z 5” (pięć kresek to etapy, nie liczba poleceń) */
.ref-card .ref-progress { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.ref-card .ref-progress .ref-steps { flex: 1 1 auto; margin-top: 0; }
.ref-steps-label { flex: 0 0 auto; font-size: 12px; font-weight: 700; color: var(--muted); white-space: nowrap; }

/* Pasek nowej wersji: pokazywany tylko wtedy, gdy przeładowanie przerwałoby pracę (formularz, wpisany tekst) */
.update-bar {
  position: absolute; left: 16px; right: 16px; z-index: 150;
  bottom: calc(88px + env(safe-area-inset-bottom, 0px));
  display: flex; align-items: center; gap: 12px; padding: 10px 10px 10px 16px;
  border-radius: 14px; background: #0F2F57; color: #fff; font-size: 14px; font-weight: 600;
  box-shadow: 0 12px 30px rgba(6, 30, 60, .35);
  animation: rise-in var(--t-std, 300ms) var(--e-enter, ease-out) both;
}
.update-bar span { flex: 1 1 auto; min-width: 0; }
.update-bar button {
  flex: 0 0 auto; border: 0; border-radius: 10px; padding: 9px 14px; cursor: pointer;
  background: linear-gradient(90deg, #F5911F, #F27021); color: #fff; font: inherit; font-weight: 800;
}

/* Karta celu: zmiana bez migania (app.js updateGoalCard) i roczny koszt energii wpisany przez polecającego */
.ring circle[data-ring="0"] { opacity: 0; }
/* podmieniona karta bez animacji wejścia i bez przyciemnienia (wcześniej goal-soft od 0,6: mignięcie) */
#goal-card.no-enter { animation: none !important; }
#goal-card.no-enter * { animation: none !important; }
@keyframes goal-soft { from { opacity: .6; } }
.goal-status-text.goal-cost { flex: 1 1 auto; display: flex; flex-direction: column; gap: 8px; }
.goal-cost label { display: block; color: #DFEBF5; font-size: 14px; font-weight: 700; line-height: 1.3; }
.goal-cost-row { display: flex; align-items: center; gap: 8px; }
.goal-cost-row .input { flex: 1 1 auto; min-width: 0; width: 100%; padding: 10px 12px; font-size: 17px; font-weight: 700; background: #fff; }
.goal-cost-unit { color: #fff; font-weight: 700; }
.goal-cost .btn { align-self: stretch; }
.goal-cost-hint { margin: 2px 0 0; font-size: 12.5px; line-height: 1.45; color: #A9C3DD; }
.goal-cost-edit { margin-left: 6px; font-size: 12.5px; color: #A9D0F5; }
@media (max-width: 360px) { .goal-status:has(.goal-cost) { flex-direction: column; align-items: stretch; } .goal-status:has(.goal-cost) .ring { align-self: center; } }

/* ---------- Przegląd 07.11.2026: Saldo, Profil, szczegóły, etapy poleceń ---------- */

/* Saldo: karta progu nie przykleja się do granatowej karty */
.hero-card + .card, .hero-card + .btn { margin-top: 14px; }

/* Profil: ustawienia w grupach, jedna karta na grupę i linie między wierszami */
.menu-group {
  gap: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md);
  box-shadow: var(--shadow-card); overflow: hidden;
}
.menu-group > .menu-item { position: relative; border: 0; border-radius: 0; box-shadow: none; min-height: 54px; background: transparent; }
.menu-group > .menu-item + .menu-item::before {
  content: ''; position: absolute; top: 0; left: 46px; right: 0; height: 1px; background: var(--line);
}
.menu-group > .menu-item:focus-visible { outline-offset: -3px; border-radius: 0; }
.menu-item.menu-danger, .menu-item.menu-danger svg:first-child { color: #B3261E; }
.menu-group + .section-row { margin-top: 22px; }
.app-version { font-size: 12.5px; }

/* opieka DGE bez przypisanego doradcy */
.team-card .advisor-head { margin-bottom: 10px; }
.team-card .team-ic { background: var(--blue-50); color: var(--blue); }
.team-text { margin: 0; color: var(--muted); font-size: 13.5px; line-height: 1.55; }

/* szczegóły: przyszłe etapy wyszarzone, bez daty */
.tl-item.pending .tl-label { font-weight: 600; color: var(--muted); }
/* linia za nami ciemna, przed nami jasna */
.tl-item.done::before { background: var(--ink-2); }

/* etap, który przyszedł od ostatniej wizyty: karta rozbłyska i zostaje wyróżniona do końca wizyty */
.ref-card.ms-hit, .lead-head.ms-hit { border-color: rgba(245, 145, 31, .65); }
.ref-card.ms-hit.ms-cashback, .lead-head.ms-hit.ms-cashback { border-color: rgba(31, 157, 85, .6); }
.ref-card.ms-hit, .lead-head.ms-hit { animation: ms-hit 1500ms cubic-bezier(.22, .7, .28, 1) 1200ms both; }
.ms-hit .chip { animation: ms-chip 520ms cubic-bezier(.34, 1.56, .64, 1) 1450ms both; }
@keyframes ms-hit {
  0% { box-shadow: var(--shadow-card); }
  30% { box-shadow: 0 0 0 5px rgba(245, 145, 31, .22), 0 10px 26px rgba(245, 145, 31, .22); }
  100% { box-shadow: 0 0 0 2px rgba(245, 145, 31, .12), var(--shadow-card); }
}
@keyframes ms-chip {
  0% { transform: scale(.7); }
  100% { transform: scale(1); }
}

/* świętowanie umowy: zielone pierścienie i poświata */
.referral-celebration.tone-green .celebration-ring { border-color: rgba(31, 157, 85, .55); }
.referral-celebration.tone-green .celebration-aura {
  background: radial-gradient(circle, rgba(31, 157, 85, .2), rgba(31, 157, 85, .08) 38%, rgba(0, 74, 143, .035) 57%, transparent 72%);
}

@media (prefers-reduced-motion: reduce) {
  .ref-card.ms-hit, .lead-head.ms-hit, .ms-hit .chip { animation: none; }
}

/* Niewidoczne pole, które trzyma otwartą klawiaturę między „Wyślij kod” a ekranem kodu (js/app.js holdKeyboard).
   16 px, żeby iPhone nie powiększał strony przy fokusie. */
.kb-proxy { position: fixed; top: 0; left: 0; width: 1px; height: 1px; padding: 0; border: 0; opacity: 0; font-size: 16px; pointer-events: none; caret-color: transparent; }

/* Ekran zaproszenia (09.11.2026): zamiast jednego poszarpanego akapitu dwa krótkie bloki;
   nazwa programu nie dzieli się między wiersze, więc na wąskim ekranie łamie się po „programu”. */
.invite-lead + .invite-lead { margin-top: -12px; }
.invite-lead strong { white-space: nowrap; font-weight: 600; color: var(--ink); }

/* Strona polecanego (09.11.2026, „ikonki średnio wyrównane”): każda ikona w takim samym kwadracie,
   więc tytuły wszystkich korzyści zaczynają się w jednej linii; ikona na środku wysokości kafelka. */
.benefit { grid-template-columns: 40px 1fr; }
.benefit-ic { width: 40px; height: 40px; min-width: 0; padding: 0; align-self: center; }
/* tytuł i opis jako jedna całość: bez odstępu 12 px z wcześniejszego układu flex (gap), tylko 4 px nad opisem */
.benefit { row-gap: 0; }
.benefit > span:last-child { margin-top: 4px; }

/* Stopka strony polecanego (09.11.2026): logo programu z napisami w granacie zamiast znaku DGE;
   bez cienia, który jest tylko pod białą wersję na granacie. */
.program-logo.on-light { width: min(210px, 58vw); filter: none; }

/* Strona polecanego (09.11.2026, „a wyrównanie w tych przyciskach?”): trzy przyciski decyzji
   mają treść na środku jak zielony; gdzie indziej białe przyciski z ikoną zostają przy lewej. */
.landing-view .btn-stack .btn-outline { justify-content: center; }

/* Strona polecanego, krok numeru (09.11.2026): nowa treść zgody z informacją pod spodem,
   nieobowiązkowy wybór godzin kontaktu (przełącznik bez zaznaczenia, dopóki ktoś nie wybierze)
   i przycisk „Polityka prywatności” prowadzący na stronę DGE. */
.consent-hint { margin: 6px 2px 0; }
.consent-hint a { color: var(--blue); font-weight: 600; }
.hours-field { margin: 16px 0 16px; }
.hours-field .field-label { display: block; margin-bottom: 8px; }
.seg.hours-seg { margin-bottom: 0; }
.seg.hours-seg .seg-btn { font-size: 13.5px; }
.seg.none::before { opacity: 0; }
.landing-view a.btn { text-decoration: none; }
.landing-view a.btn-outline { justify-content: center; }

/* Kalkulator celu na granatowej karcie (09.11.2026): zamiast „Szczegółów obliczeń” i pola rocznego kosztu.
   Pola białe jak dawne pole kosztu (16 px i więcej, żeby iPhone nie powiększał strony). */
.goal-calc summary { font-weight: 700; }
.goal-calc-body { padding: 2px 0 6px; }
.goal-calc-title { margin: 8px 0 10px; font-size: 14px; font-weight: 800; color: #fff; }
.goal-calc .field { margin-bottom: 12px; }
.goal-calc .field-label { color: #DFEBF5; }
.goal-panel .goal-calc .field-hint { margin-top: 5px; color: #A9C3DD; }
.calc-row { display: flex; align-items: center; gap: 8px; }
.calc-row .input { flex: 1 1 auto; min-width: 0; width: 100%; padding: 10px 12px; font-size: 17px; font-weight: 700; background: #fff; }
.calc-row .input.has-error { border-color: #FF8A7A; box-shadow: 0 0 0 3px rgba(255, 138, 122, .25); }
.calc-unit { flex: 0 0 auto; min-width: 54px; color: #fff; font-size: 13.5px; font-weight: 700; }
.goal-calc .kv.calc-cost { margin: 0 0 6px; }
.calc-opt { font-size: 12.5px; font-weight: 600; color: #A9C3DD; }
.calc-result { margin: 2px 0 12px; color: #fff; font-size: 15px; font-weight: 600; }
.calc-result b { color: var(--orange-soft); font-size: 20px; font-weight: 800; }
.calc-error { margin: 0 0 12px; padding: 10px 12px; border-radius: 10px; background: rgba(255, 120, 100, .16); color: #FFD9D3; font-size: 13px; line-height: 1.45; }
.calc-result:empty, .calc-error:empty { display: none; }
.goal-calc .btn { width: 100%; }
.goal-calc .field .calc-error { margin: 8px 0 0; }
.goal-calc .field .calc-error:not(:empty) + .field-hint { display: none; }

/* Cel „Chcę oszczędzać / Chcę zarabiać” (13.11.2026): niższy przełącznik rodzaju nad paskiem celów,
   pasek trzech kwot jak pasek procentów (własna kwota z „Oblicz cel” zastępuje najbliższą, 13.11.2026). */
.goal-panel .earn-calc-rule { margin: 6px 0 12px; }

/* zmiana budowy karty (app.js morphGoalCard, 12.11.2026): kopia starej części leży dokładnie na nowej i gaśnie */
#goal-card .has-ghost { position: relative; }
#goal-card .goal-ghost {
  position: absolute; z-index: 3; margin: 0 !important; box-shadow: none !important;
  overflow: hidden; pointer-events: none;
}
@media (prefers-reduced-motion: reduce) {
  .lead-tail > span, .seg.kind-switch::before, .kind-switch .kind-opt, .kind-switch .kind-ic { transition: none; }
}
.seg.goal-amounts { margin-bottom: 10px; }
.seg.goal-amounts .seg-btn { padding: 10px 1px; font-size: 13px; font-weight: 700; white-space: nowrap; letter-spacing: -.01em; }
.goal-panel .seg.goal-amounts { background: rgba(255, 255, 255, .09); }
/* własna treść zaproszenia w Profilu (13.11.2026): pole, przyciski znaczników i podgląd */
.textarea.invite-tpl { min-height: 150px; resize: vertical; }
.tpl-tools { display: flex; gap: 8px; margin: 2px 0 4px; }
.chip-btn {
  appearance: none; border: 1px solid var(--line); background: var(--blue-50); color: var(--blue);
  border-radius: 999px; padding: 7px 12px; min-height: 36px; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer;
}
.sheet .msg-preview .found-label { display: block; margin-bottom: 6px; }
#invite-tpl-err:empty { display: none; }
/* okno „Zmienić cel?”: obecny i nowy cel */
.sheet .goal-change { padding: 4px 16px; margin: 4px 0 0; }
.sheet .goal-change .kv b { font-weight: 800; color: var(--blue); }

/* Logo programu w białym pasku u góry (09.11.2026): wyższe niż znak DGE, ale bez podnoszenia paska
   (ujemny margines zjada część odstępu nad i pod logo). */
.program-logo.in-bar { width: auto; height: 42px; margin: -6px 0; filter: none; }

/* Logo programu zamiast znaku DGE we wszystkich paskach (09.11.2026, „wszędzie ma być logo Cashbacku”):
   ta sama wielkość co na pulpicie (.program-logo.in-bar), bez podnoszenia paska. */
.logo img { height: 42px; margin: -6px 0; }
.logo.lg img { height: 64px; margin: 0; }
.celebration-preview-logo .logo img { width: 200px; height: auto; margin: 0; }

/* Branże (09.11.2026): obok „Tylko ulubione” suma szacunkowego cashbacku zaznaczonych branż */
.fav-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.fav-sum { display: flex; flex-direction: column; align-items: flex-end; font-size: 12.5px; font-weight: 600; color: var(--muted); line-height: 1.25; text-align: right; }
.fav-sum > span { white-space: nowrap; }
.fav-sum b { margin-left: 4px; font-size: 17px; font-weight: 800; color: var(--blue); }
.fav-sum small { font-size: 11.5px; font-weight: 500; }
.fav-sum[hidden] { display: none; }

/* Pulpit, dół (09.11.2026): „Cashback do wypłaty” na granatowej karcie jak cel oszczędności */
.card.dash-money { color: #fff; border: 1px solid rgba(255, 255, 255, .14); background: linear-gradient(160deg, #0D4F92 0%, #0A2E5C 100%); box-shadow: 0 14px 34px rgba(10, 46, 92, .3); }
.dash-money .dash-money-label, .dash-money .dash-money-row span, .dash-money .dash-money-price { color: #C6DCEC; }
.dash-money .dash-money-value, .dash-money .dash-money-row b, .dash-money .dash-money-price b { color: #fff; }
.dash-money .link { color: #A9D0F5; }
.dash-money .dash-money-row { border-top-color: rgba(255, 255, 255, .14); }

/* Etapy „Jak działa polecenie” na pulpicie jako przyciski do listy poleceń z filtrem etapu */
button.status-step { appearance: none; background: none; border: 0; padding: 0; font: inherit; cursor: pointer; border-radius: 12px; }
button.status-step:active .status-ic { transform: scale(.94); }
button.status-step:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

/* Lista poleceń: plakietka filtra etapu (stuknięcie zdejmuje filtr) */
.stage-chip { display: inline-flex; align-items: center; gap: 6px; margin: 0 0 12px; padding: 8px 12px; border-radius: 999px; border: 1px solid var(--blue); background: var(--blue-50); color: var(--ink); font: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer; }
.stage-chip b { color: var(--blue); }
.stage-chip-n { min-width: 20px; padding: 1px 6px; border-radius: 6px; background: #fff; color: var(--blue); font-size: 12px; font-weight: 800; text-align: center; }
.stage-chip svg { color: var(--muted); }

/* Lista poleceń (09.11.2026): filtr po statusach jako przewijany rząd pigułek zamiast trzech segmentów */
.status-chips { display: flex; gap: 8px; margin: 0 -20px 14px; padding: 2px 20px 4px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; }
.status-chips::-webkit-scrollbar { display: none; }
.status-chip { flex: 0 0 auto; scroll-snap-align: start; display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--ink-2); font: inherit; font-size: 13.5px; font-weight: 700; cursor: pointer; white-space: nowrap; }
.status-chip b { min-width: 20px; padding: 1px 6px; border-radius: 6px; background: #EEF1F5; color: var(--ink-2); font-size: 12px; text-align: center; }
.status-chip.on { border-color: var(--blue); background: var(--blue); color: #fff; }
.status-chip.on b { background: rgba(255, 255, 255, .2); color: #fff; }

/* Logo w paskach u góry (10.11.2026, mail Artura): icons/program-logo-bar.svg, sygnet i napis „Energetyczny Cashback”
   w jego wysokości (proporcje 4,46 : 1). Wysokość jak dotąd (.logo img 42 px), więc sygnet ma tę samą wielkość.
   Dół Profilu: pełne logo programu zamiast napisu „DGE · Poleć i nie płać” */
.profile-brand { margin: 32px 0 4px; }
.profile-brand .program-logo.on-light { width: min(190px, 52vw); }
.profile-brand + .app-version { margin-top: 4px; }

/* Regulamin (PDF) w aplikacji, 10.11.2026: warstwa na cały ekran z paskiem „Wstecz”,
   strony dopasowane do szerokości; powiększanie dwoma palcami jak na stronie */
.doc-viewer {
  position: absolute;
  inset: 0;
  z-index: 70;
  display: flex;
  flex-direction: column;
  background: var(--bg);
}
.doc-viewer .appbar { box-shadow: 0 1px 0 var(--line); }
.docv-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding: 12px 12px calc(24px + env(safe-area-inset-bottom));
}
.doc-pages { display: flex; flex-direction: column; gap: 12px; max-width: 900px; margin: 0 auto; }
.doc-page {
  position: relative;
  width: 100%;
  background: #fff;
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(8, 14, 40, .14);
  overflow: hidden;
}
.doc-page canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.doc-hint { margin: 0; font-size: 13px; color: var(--muted); text-align: center; }
.doc-error { padding: 24px 8px; }

/* Strona polecanego (zaproszenie, prośba Artura 12.11.2026): znak DGE w pasku u góry i w stopce zamiast logo programu */
.logo.dge-bar img { height: 30px; margin: 0; }
.legal-footer .legal-dge { display: block; width: auto; height: 30px; }

/* Lista poleceń: wyszukiwanie i kolejność w jednym rzędzie (Artur 13.11.2026), na wąskim ekranie kolejność pod spodem */
.ref-tools { display: flex; flex-wrap: wrap; gap: 8px; margin: 2px 0 10px; }
.ref-tools .search-field { flex: 1 1 190px; margin: 0; }
.ref-tools .select-wrap { flex: 0 0 auto; min-width: 156px; }
.ref-tools .select-wrap select { width: 100%; }

/* ---------- Zgłoś błąd (23.11.2026) ---------- */
.report-preview { grid-column: 1 / -1; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.report-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.report-head .h1 { margin-bottom: 12px; }
.report-text { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.55; }
.report-err { margin: 6px 0 0; font-size: 12.5px; line-height: 1.45; color: var(--ink-2); overflow-wrap: anywhere; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.report-ua { margin: 12px 2px 4px; font-size: 12.5px; color: var(--muted); }
.report-ua summary { cursor: pointer; font-weight: 600; min-height: 32px; display: flex; align-items: center; }
.report-ua p { margin: 4px 0 0; overflow-wrap: anywhere; }
