/* Kwiatek – Panel Klientek. Pudrowy róż + złoto. */
:root {
  color-scheme: light;
  --bg: #fbf1f1;
  --bg-2: #f7e3e5;
  --powder: #f2d4d8;
  --powder-strong: #e8b9c0;
  --rose: #c98a95;
  --card: #ffffff;
  --ink: #3a2a2d;
  --ink-2: #6e575c;
  --ink-3: #9a8488;
  --line: #efdcdf;
  --gold: #b88a3a;
  --gold-dark: #8f6522;
  --gold-light: #e9d3a6;
  --gold-soft: #f8efdc;
  --gold-grad: linear-gradient(135deg, #d4b06a 0%, #b88a3a 55%, #a07425 100%);
  --ok: #26704f; --ok-bg: #e2f2e9;
  --warn: #8a5a00; --warn-bg: #fff0d1;
  --bad: #ad2a22; --bad-bg: #fde3e0;
  --info: #7a5a2c; --info-bg: #f6ecdb;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 2px 10px rgba(120, 70, 80, .08), 0 1px 2px rgba(120, 70, 80, .06);
  --shadow-lg: 0 10px 30px rgba(120, 70, 80, .18);
  --serif: "Playfair Display", "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-l: env(safe-area-inset-left, 0px);
  --safe-r: env(safe-area-inset-right, 0px);
  --gutter: 16px;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.45;
  min-height: 100vh;
  overflow-x: hidden;
}
body.no-scroll { overflow: hidden; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
img { max-width: 100%; display: block; }
.hidden { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- nagłówek ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  background: rgba(251, 241, 241, .94);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  padding: calc(10px + var(--safe-t)) calc(var(--gutter) + var(--safe-r)) 10px calc(var(--gutter) + var(--safe-l));
}
.topbar-inner { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; flex: 1; }
.brand-logo { width: 42px; height: 42px; flex: none; }
.brand-text { min-width: 0; }
.brand-name { font-family: var(--serif); font-size: 22px; font-weight: 600; line-height: 1.1; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand-sub { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-dark); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.icon-btn {
  width: 46px; height: 46px; flex: none;
  border-radius: 50%; border: 1px solid var(--line);
  background: var(--card); color: var(--ink-2);
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow);
}
.icon-btn svg { width: 22px; height: 22px; }
.icon-btn:active { transform: scale(.96); }

/* ---------- układ ---------- */
.main {
  max-width: 1200px; margin: 0 auto;
  padding: 16px calc(var(--gutter) + var(--safe-r)) calc(120px + var(--safe-b)) calc(var(--gutter) + var(--safe-l));
}
.section-title {
  font-family: var(--serif); font-weight: 600; font-size: 21px;
  margin: 22px 0 12px; display: flex; align-items: center; gap: 10px;
}
.section-title::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, var(--gold-light), transparent); }

.greeting { margin: 2px 0 14px; }
.greeting h1 { font-family: var(--serif); font-size: 26px; line-height: 1.2; margin: 0; font-weight: 600; }
.greeting p { margin: 4px 0 0; color: var(--ink-2); font-size: 15px; }

/* ---------- baner ---------- */
.banner {
  display: flex; align-items: center; gap: 12px;
  background: var(--card); border: 1px solid var(--gold-light);
  border-radius: var(--radius); padding: 12px 14px; margin-bottom: 12px;
  box-shadow: var(--shadow);
}
.banner .b-ico { font-size: 24px; flex: none; }
.banner .b-text { flex: 1; font-size: 15px; min-width: 0; }
.banner .b-text strong { display: block; font-size: 16px; }
.banner .btn { flex: none; }

/* ---------- kafelki podsumowania ---------- */
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.stat {
  position: relative; text-align: left;
  border: 1px solid var(--line); background: var(--card);
  border-radius: var(--radius); padding: 14px 14px 12px;
  box-shadow: var(--shadow); min-height: 104px;
  display: flex; flex-direction: column; justify-content: space-between; gap: 6px;
  transition: transform .12s ease, box-shadow .12s ease;
}
.stat:active { transform: scale(.98); }
.stat .s-num { font-family: var(--serif); font-size: 34px; line-height: 1; font-weight: 700; color: var(--ink); }
.stat .s-label { font-size: 14.5px; line-height: 1.25; color: var(--ink-2); font-weight: 500; }
.stat .s-ico { position: absolute; top: 12px; right: 12px; width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 15px; }
.stat.tone-gold { background: var(--gold-grad); border-color: transparent; }
.stat.tone-gold .s-num, .stat.tone-gold .s-label { color: #fff; }
.stat.tone-gold .s-ico { background: rgba(255,255,255,.22); }
.stat.tone-bad .s-ico { background: var(--bad-bg); }
.stat.tone-warn .s-ico { background: var(--warn-bg); }
.stat.tone-info .s-ico { background: var(--powder); }
.stat.has-alert.tone-bad { border-color: #f0b8b2; }
.stat.has-alert.tone-bad .s-num { color: var(--bad); }
.stat.has-alert.tone-warn .s-num { color: var(--warn); }
.stat.active { outline: 3px solid var(--gold); outline-offset: 1px; }

/* ---------- wyszukiwarka i filtry ---------- */
.search-wrap { position: relative; margin-top: 4px; }
.search-wrap svg { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); width: 22px; height: 22px; color: var(--ink-3); pointer-events: none; }
.search {
  width: 100%; height: 54px; border-radius: 27px;
  border: 1.5px solid var(--line); background: var(--card);
  padding: 0 48px 0 48px; font-size: 17px; box-shadow: var(--shadow);
  outline: none;
}
.search:focus { border-color: var(--gold); }
.search-clear { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 42px; height: 42px; border: 0; background: none; color: var(--ink-3); font-size: 22px; }

.chips {
  display: flex; gap: 8px; overflow-x: auto; padding: 12px 2px 6px;
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
  margin: 0 calc(-1 * var(--gutter)); padding-left: var(--gutter); padding-right: var(--gutter);
  scroll-padding-left: var(--gutter);
}
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; height: 42px; padding: 0 16px; border-radius: 21px;
  border: 1.5px solid var(--line); background: var(--card); color: var(--ink-2);
  font-size: 15px; font-weight: 600; white-space: nowrap;
}
.chip.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.chip .cnt { display: inline-block; min-width: 22px; margin-left: 6px; padding: 0 6px; border-radius: 11px; background: var(--powder); color: var(--ink); font-size: 13px; line-height: 22px; text-align: center; }
.chip.on .cnt { background: rgba(255,255,255,.2); color: #fff; }

.list-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 10px 0 10px; flex-wrap: wrap; }
.list-head .lh-title { font-family: var(--serif); font-size: 20px; font-weight: 600; }
.list-head .lh-title small { font-family: var(--sans); font-size: 14px; color: var(--ink-3); font-weight: 500; margin-left: 6px; }
.sort { height: 42px; border-radius: 21px; border: 1.5px solid var(--line); background: var(--card); padding: 0 14px; font-size: 15px; color: var(--ink-2); max-width: 100%; }

/* ---------- kafelki klientek ---------- */
.clients { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.ccard {
  background: var(--card); border-radius: var(--radius);
  border: 1px solid var(--line); box-shadow: var(--shadow);
  overflow: hidden; position: relative; text-align: left; width: 100%; padding: 0;
  border-left: 6px solid var(--ok);
}
.ccard.lvl-red { border-left-color: var(--bad); }
.ccard.lvl-amber { border-left-color: #e0a526; }
.ccard.lvl-info { border-left-color: var(--gold-light); }
.ccard.done { border-left-color: var(--ink-3); opacity: .92; }
.cc-top { padding: 14px 14px 10px; display: flex; gap: 12px; align-items: flex-start; cursor: pointer; }
.avatar {
  width: 48px; height: 48px; border-radius: 50%; flex: none;
  background: var(--powder); color: var(--gold-dark);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-weight: 700; font-size: 19px;
  border: 2px solid var(--gold-light);
}
.cc-id { flex: 1; min-width: 0; }
.cc-name { font-size: 19px; font-weight: 700; line-height: 1.2; word-break: break-word; }
.demo-tag { display: inline-block; white-space: nowrap; font-size: 11px; font-weight: 800; letter-spacing: .06em; color: var(--gold-dark); background: var(--gold-soft); border: 1px solid var(--gold-light); border-radius: 6px; padding: 1px 6px; margin: 3px 0 1px; }
.cc-meta { font-size: 14.5px; color: var(--ink-2); margin-top: 2px; }
.cc-visit { flex: none; text-align: center; background: var(--gold-soft); border: 1px solid var(--gold-light); border-radius: 14px; padding: 6px 10px; min-width: 74px; }
.cc-visit .v-day { font-family: var(--serif); font-size: 22px; font-weight: 700; line-height: 1; color: var(--gold-dark); }
.cc-visit .v-mon { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--gold-dark); font-weight: 700; }
.cc-visit .v-rel { font-size: 12px; color: var(--ink-2); margin-top: 2px; white-space: nowrap; }
.cc-visit.none { background: var(--bg); border-style: dashed; border-color: var(--powder-strong); }
.cc-visit.none .v-rel { white-space: normal; font-size: 12px; line-height: 1.2; color: var(--ink-3); }

.cc-warns { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 14px 10px; }
.wpill { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; border-radius: 10px; padding: 5px 10px; line-height: 1.25; }
.wpill.red { background: var(--bad-bg); color: var(--bad); }
.wpill.amber { background: var(--warn-bg); color: var(--warn); }
.wpill.info { background: var(--info-bg); color: var(--info); }
.wpill.ok { background: var(--ok-bg); color: var(--ok); }

.cc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); cursor: pointer; }
.cc-cell { padding: 10px 12px 12px 14px; border-bottom: 1px solid var(--line); min-width: 0; }
.cc-cell:nth-child(odd) { border-right: 1px solid var(--line); }
.cc-cell .cl { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); font-weight: 700; margin-bottom: 5px; display: flex; align-items: center; gap: 5px; }
.cc-cell .cv { font-size: 14.5px; color: var(--ink); line-height: 1.35; word-break: break-word; }
.cc-cell .cv .muted { color: var(--ink-2); }
.cc-cell.wide { grid-column: 1 / -1; border-right: 0; }
.st { display: inline-block; font-size: 13.5px; font-weight: 700; border-radius: 8px; padding: 3px 8px; margin: 0 4px 4px 0; line-height: 1.25; }
.st.ok { background: var(--ok-bg); color: var(--ok); }
.st.warn { background: var(--warn-bg); color: var(--warn); }
.st.bad { background: var(--bad-bg); color: var(--bad); }
.st.neutral { background: var(--bg-2); color: var(--ink-2); }
.cc-money { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.cc-money span { min-width: 0; }
.cc-money small { display: block; font-size: 12.5px; color: var(--ink-2); }
.cc-money b { font-size: 16px; white-space: nowrap; }
.cc-money .rem { color: var(--gold-dark); font-weight: 800; }

.cc-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding: 10px 12px 12px; background: #fffafa; }
.cc-actions .btn { min-width: 0; padding: 0 10px; }
.cc-actions .btn.pink { grid-column: 1 / -1; }

/* ---------- przyciski ---------- */
.btn {
  height: 48px; padding: 0 18px; border-radius: 24px;
  border: 1.5px solid var(--line); background: var(--card); color: var(--ink);
  font-weight: 700; font-size: 16px; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn:active { transform: scale(.98); }
.btn.gold { background: var(--gold-grad); color: #fff; border-color: transparent; box-shadow: 0 4px 14px rgba(184, 138, 58, .35); text-shadow: 0 1px 1px rgba(90, 60, 10, .25); }
.btn.pink { background: var(--powder); border-color: var(--powder-strong); color: var(--ink); }
.btn.ghost { background: transparent; }
.btn.danger { background: var(--bad-bg); border-color: #f2bdb7; color: var(--bad); }
.btn.small { height: 40px; font-size: 14.5px; padding: 0 14px; border-radius: 20px; }
.btn.block { width: 100%; }
.btn.big { height: 56px; font-size: 18px; border-radius: 28px; }
.btn[disabled] { opacity: .45; pointer-events: none; }

.fab {
  position: fixed; z-index: 30;
  right: calc(16px + var(--safe-r)); bottom: calc(18px + var(--safe-b));
  height: 60px; padding: 0 24px 0 18px; border-radius: 30px;
  background: var(--gold-grad); color: #fff; border: 0;
  font-size: 18px; font-weight: 800; display: flex; align-items: center; gap: 10px;
  box-shadow: 0 8px 24px rgba(160, 116, 37, .45);
  text-shadow: 0 1px 1px rgba(90, 60, 10, .25);
}
.fab svg { width: 26px; height: 26px; }
.fab:active { transform: scale(.97); }

/* ---------- pusty stan ---------- */
.empty { text-align: center; padding: 34px 18px; background: var(--card); border: 1.5px dashed var(--powder-strong); border-radius: var(--radius); }
.empty .e-ico { font-size: 44px; }
.empty h3 { font-family: var(--serif); font-size: 22px; margin: 8px 0 6px; }
.empty p { color: var(--ink-2); margin: 0 auto 16px; max-width: 420px; }
.empty .e-actions { display: flex; flex-direction: column; gap: 10px; max-width: 340px; margin: 0 auto; }

/* ---------- arkusze (pełny ekran) ---------- */
.sheet {
  position: fixed; inset: 0; z-index: 50;
  background: var(--bg);
  display: flex; flex-direction: column;
  animation: sheetIn .22s ease;
}
@keyframes sheetIn { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }
.sheet-bar {
  flex: none; display: flex; align-items: center; gap: 10px;
  padding: calc(10px + var(--safe-t)) calc(var(--gutter) + var(--safe-r)) 10px calc(var(--gutter) + var(--safe-l));
  background: rgba(251, 241, 241, .96); border-bottom: 1px solid var(--line);
}
.sheet-bar .back {
  height: 46px; padding: 0 16px 0 10px; border-radius: 23px; border: 1px solid var(--line);
  background: var(--card); font-weight: 700; display: flex; align-items: center; gap: 4px; flex: none; box-shadow: var(--shadow);
}
.sheet-bar .back svg { width: 22px; height: 22px; }
.sheet-bar .s-title { flex: 1; min-width: 0; font-family: var(--serif); font-size: 20px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sheet-bar .saved { font-size: 13px; color: var(--ok); font-weight: 700; opacity: 0; transition: opacity .2s; flex: none; }
.sheet-bar .saved.show { opacity: 1; }
.sheet-body {
  flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch;
  padding: 16px calc(var(--gutter) + var(--safe-r)) calc(40px + var(--safe-b)) calc(var(--gutter) + var(--safe-l));
}
.sheet-inner { max-width: 760px; margin: 0 auto; }
.sheet-foot {
  flex: none; padding: 12px calc(var(--gutter) + var(--safe-r)) calc(12px + var(--safe-b)) calc(var(--gutter) + var(--safe-l));
  background: var(--card); border-top: 1px solid var(--line);
}
.sheet-foot .sheet-inner { display: flex; gap: 10px; }
.sheet-foot .btn { flex: 1; }

/* ---------- karta klientki ---------- */
.hero {
  background: var(--card); border-radius: var(--radius); border: 1px solid var(--line);
  box-shadow: var(--shadow); padding: 16px; position: relative; overflow: hidden;
}
.hero::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 6px; background: var(--gold-grad); }
.hero-top { display: flex; gap: 12px; align-items: center; }
.hero .avatar { width: 58px; height: 58px; font-size: 23px; }
.hero-name { font-family: var(--serif); font-size: 25px; font-weight: 700; line-height: 1.15; word-break: break-word; }
.hero-sub { color: var(--ink-2); font-size: 15px; margin-top: 2px; }
.hero-visit { margin-top: 14px; display: flex; align-items: center; gap: 12px; background: var(--gold-soft); border: 1px solid var(--gold-light); border-radius: 14px; padding: 10px 14px; }
.hero-visit .hv-ico { font-size: 24px; }
.hero-visit .hv-main { font-weight: 800; font-size: 17px; }
.hero-visit .hv-rel { font-size: 14px; color: var(--gold-dark); font-weight: 700; }
.hero-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
.hero-actions .btn { padding: 0 6px; font-size: 14.5px; gap: 5px; }
.hero-actions .btn svg { width: 17px; height: 17px; }
.hero-warns { display: flex; flex-direction: column; gap: 6px; margin-top: 12px; }
.hero-warns .wpill { font-size: 15px; padding: 8px 12px; }

.progress { margin-top: 14px; }
.progress .p-row { display: flex; justify-content: space-between; font-size: 14px; color: var(--ink-2); font-weight: 600; margin-bottom: 6px; }
.progress .p-bar { height: 10px; border-radius: 5px; background: var(--bg-2); overflow: hidden; }
.progress .p-fill { height: 100%; background: var(--gold-grad); border-radius: 5px; transition: width .3s ease; }

.acc { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); margin-top: 14px; overflow: hidden; }
.acc-head {
  width: 100%; border: 0; background: none; text-align: left;
  display: flex; align-items: center; gap: 12px; padding: 16px; min-height: 64px;
}
.acc-head .a-ico { width: 40px; height: 40px; border-radius: 12px; background: var(--powder); display: flex; align-items: center; justify-content: center; font-size: 20px; flex: none; }
.acc-head .a-txt { flex: 1; min-width: 0; }
.acc-head .a-title { font-weight: 800; font-size: 17.5px; display: block; }
.acc-head .a-sum { display: block; margin-top: 3px; }
.acc-head .a-sum .st { margin-bottom: 0; }
.acc-head .chev { width: 26px; height: 26px; color: var(--ink-3); transition: transform .2s; flex: none; }
.acc.open .acc-head .chev { transform: rotate(180deg); }
.acc-body { display: none; padding: 4px 16px 18px; border-top: 1px solid var(--line); }
.acc.open .acc-body { display: block; }

/* lista kontrolna */
.checklist { display: flex; flex-direction: column; gap: 8px; padding-top: 12px; }
.check {
  display: flex; align-items: center; gap: 14px; min-height: 56px;
  padding: 8px 14px; border-radius: 14px; border: 1.5px solid var(--line); background: #fff; cursor: pointer;
  user-select: none;
}
.check input { position: absolute; opacity: 0; pointer-events: none; }
.check .box { width: 30px; height: 30px; border-radius: 9px; border: 2px solid var(--powder-strong); flex: none; display: flex; align-items: center; justify-content: center; background: #fff; transition: all .15s; }
.check .box svg { width: 20px; height: 20px; color: #fff; opacity: 0; }
.check .c-label { flex: 1; font-weight: 600; font-size: 16.5px; }
.check .c-num { font-size: 13px; color: var(--ink-3); font-weight: 700; }
.check.on { background: var(--ok-bg); border-color: #b9dfca; }
.check.on .box { background: var(--ok); border-color: var(--ok); }
.check.on .box svg { opacity: 1; }
.check.on .c-label { color: var(--ok); }

/* formularz */
.fgrid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; padding-top: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > span { font-size: 14px; font-weight: 700; color: var(--ink-2); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 52px; border-radius: 14px; border: 1.5px solid var(--line);
  background: #fffdfd; padding: 12px 14px; font-size: 17px; outline: none; min-width: 0;
  -webkit-appearance: none; appearance: none;
}
.field select { background-image: linear-gradient(45deg, transparent 50%, var(--ink-3) 50%), linear-gradient(135deg, var(--ink-3) 50%, transparent 50%); background-position: calc(100% - 22px) 22px, calc(100% - 16px) 22px; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 40px; }
.field input[type="date"], .field input[type="time"] { min-height: 52px; line-height: 1.2; }
.field textarea { min-height: 96px; resize: vertical; line-height: 1.4; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(184, 138, 58, .15); }
.field .hint { font-size: 13px; color: var(--ink-3); }
.suffix { position: relative; }
.suffix input { padding-right: 52px; }
.suffix em { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); font-style: normal; color: var(--ink-3); font-weight: 700; pointer-events: none; }

.toggle {
  display: flex; align-items: center; gap: 12px; min-height: 58px; padding: 10px 14px;
  border-radius: 14px; border: 1.5px solid var(--line); background: #fff; cursor: pointer; user-select: none;
}
.toggle input { position: absolute; opacity: 0; pointer-events: none; }
.toggle .t-label { flex: 1; font-weight: 700; font-size: 16.5px; }
.toggle .t-label small { display: block; font-weight: 500; color: var(--ink-3); font-size: 13.5px; }
.toggle .sw { width: 56px; height: 32px; border-radius: 16px; background: #e6d4d7; position: relative; flex: none; transition: background .2s; }
.toggle .sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 26px; height: 26px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .2s; }
.toggle.on { background: var(--ok-bg); border-color: #b9dfca; }
.toggle.on .sw { background: var(--ok); }
.toggle.on .sw::after { transform: translateX(24px); }

.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.seg button { min-height: 52px; border-radius: 14px; border: 1.5px solid var(--line); background: #fff; font-weight: 700; font-size: 16px; padding: 6px; }
.seg button.on { background: var(--powder); border-color: var(--rose); color: var(--ink); box-shadow: inset 0 0 0 1px var(--rose); }

.moneybox { margin-top: 14px; border-radius: 16px; background: var(--gold-soft); border: 1px solid var(--gold-light); padding: 14px 16px; }
.moneybox .m-row { display: flex; justify-content: space-between; gap: 10px; padding: 4px 0; font-size: 16px; }
.moneybox .m-row span:first-child { color: var(--ink-2); }
.moneybox .m-row b { white-space: nowrap; }
.moneybox .m-total { border-top: 1px dashed var(--gold); margin-top: 6px; padding-top: 10px; font-size: 18px; }
.moneybox .m-total b { font-family: var(--serif); font-size: 26px; color: var(--gold-dark); }
.moneybox .m-status { margin-top: 8px; }

/* etapy włosów */
.steps { display: flex; flex-direction: column; gap: 6px; padding-top: 14px; }
.step {
  display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 8px 12px;
  border-radius: 14px; border: 1.5px solid var(--line); background: #fff; text-align: left; width: 100%;
}
.step .n { width: 32px; height: 32px; border-radius: 50%; flex: none; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 14px; background: var(--bg-2); color: var(--ink-2); }
.step .t { flex: 1; font-weight: 600; font-size: 16px; }
.step.done { background: #fbfdfb; }
.step.done .n { background: var(--ok); color: #fff; }
.step.done .t { color: var(--ok); }
.step.cur { border-color: var(--gold); background: var(--gold-soft); box-shadow: inset 0 0 0 1px var(--gold); }
.step.cur .n { background: var(--gold-grad); color: #fff; }
.step.cur .t { color: var(--gold-dark); font-weight: 800; }
.step .now { font-size: 12px; font-weight: 800; color: var(--gold-dark); letter-spacing: .05em; text-transform: uppercase; }

.sub-title { font-weight: 800; font-size: 15px; color: var(--gold-dark); text-transform: uppercase; letter-spacing: .08em; margin: 22px 0 0; }

/* zdjęcia */
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding-top: 12px; }
.gallery .ph { position: relative; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: var(--bg-2); border: 0; padding: 0; }
.gallery .ph img { width: 100%; height: 100%; object-fit: cover; }
.gallery .add {
  aspect-ratio: 1; border-radius: 12px; border: 2px dashed var(--powder-strong); background: #fff;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  color: var(--gold-dark); font-weight: 700; font-size: 13.5px; text-align: center; padding: 6px;
}
.gallery .add svg { width: 28px; height: 28px; }

.viewer { position: fixed; inset: 0; z-index: 80; background: rgba(20, 10, 12, .95); display: flex; flex-direction: column; }
.viewer .v-bar { display: flex; justify-content: space-between; gap: 10px; padding: calc(12px + var(--safe-t)) calc(16px + var(--safe-r)) 12px calc(16px + var(--safe-l)); }
.viewer .v-img { flex: 1; display: flex; align-items: center; justify-content: center; padding: 8px 16px calc(16px + var(--safe-b)); min-height: 0; }
.viewer .v-img img { max-height: 100%; max-width: 100%; object-fit: contain; border-radius: 8px; }

/* ---------- dialog ---------- */
.dialog-wrap { position: fixed; inset: 0; z-index: 250; background: rgba(58, 42, 45, .45); display: flex; align-items: center; justify-content: center; padding: 20px calc(20px + var(--safe-r)) calc(20px + var(--safe-b)) calc(20px + var(--safe-l)); animation: fadeIn .15s ease; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.dialog { background: var(--card); border-radius: 22px; width: 100%; max-width: 420px; padding: 22px 20px 18px; box-shadow: var(--shadow-lg); max-height: 100%; overflow-y: auto; }
.dialog h3 { font-family: var(--serif); font-size: 22px; margin: 0 0 8px; }
.dialog p { margin: 0 0 16px; color: var(--ink-2); }
.dialog .d-actions { display: flex; flex-direction: column; gap: 10px; }
.dialog .field { margin-bottom: 14px; }

/* ---------- powiadomienie ---------- */
.toast {
  position: fixed; left: 50%; bottom: calc(96px + var(--safe-b)); transform: translateX(-50%) translateY(20px); width: max-content;
  z-index: 300; background: var(--ink); color: #fff; padding: 12px 20px; border-radius: 24px;
  font-weight: 700; font-size: 15.5px; opacity: 0; transition: all .25s ease; pointer-events: none;
  max-width: calc(100% - 32px); text-align: center; box-shadow: var(--shadow-lg);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- ustawienia ---------- */
.set-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; margin-bottom: 14px; }
.set-card h3 { margin: 0 0 4px; font-family: var(--serif); font-size: 20px; }
.set-card > p { margin: 0 0 12px; color: var(--ink-2); font-size: 15px; }
.set-card .stack { display: flex; flex-direction: column; gap: 10px; }
.set-card .fgrid { padding-top: 4px; }

/* ---------- blokada PIN ---------- */
.lock { position: fixed; inset: 0; z-index: 200; background: linear-gradient(180deg, #fbefef 0%, #f3d9dd 100%); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: calc(20px + var(--safe-t)) 20px calc(20px + var(--safe-b)); overflow-y: auto; }
.lock .l-logo { width: 84px; height: 84px; }
.lock h2 { font-family: var(--serif); font-size: 26px; margin: 12px 0 4px; text-align: center; }
.lock p { color: var(--ink-2); margin: 0 0 18px; text-align: center; }
.dots { display: flex; gap: 16px; margin-bottom: 22px; }
.dots i { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--gold); display: block; }
.dots i.f { background: var(--gold); }
.dots.shake { animation: shake .35s; }
@keyframes shake { 0%,100% { transform: none; } 25% { transform: translateX(-10px); } 75% { transform: translateX(10px); } }
.keypad { display: grid; grid-template-columns: repeat(3, 76px); gap: 14px; }
.keypad button { width: 76px; height: 76px; border-radius: 50%; border: 1px solid var(--gold-light); background: rgba(255,255,255,.85); font-size: 28px; font-weight: 600; box-shadow: var(--shadow); }
.keypad button:active { background: var(--gold-soft); }
.keypad .k-fn { background: transparent; border: 0; box-shadow: none; font-size: 15px; font-weight: 700; color: var(--ink-2); }
.lock .forgot { margin-top: 18px; background: none; border: 0; color: var(--gold-dark); font-weight: 700; text-decoration: underline; padding: 10px; }

/* ---------- samouczek ---------- */
.tut { position: fixed; inset: 0; z-index: 150; background: linear-gradient(180deg, #fcf3f3 0%, #f4dade 100%); display: flex; flex-direction: column; }
.tut-top { flex: none; display: flex; justify-content: space-between; align-items: center; padding: calc(12px + var(--safe-t)) calc(16px + var(--safe-r)) 6px calc(16px + var(--safe-l)); }
.tut-top .t-step { font-size: 14px; font-weight: 700; color: var(--gold-dark); letter-spacing: .08em; text-transform: uppercase; }
.tut-top .skip { background: none; border: 0; font-weight: 700; color: var(--ink-2); padding: 10px 6px; font-size: 16px; }
.tut-body { flex: 1; overflow-y: auto; padding: 4px calc(20px + var(--safe-r)) 10px calc(20px + var(--safe-l)); }
.tut-inner { max-width: 520px; margin: 0 auto; }
.tut-illu { background: var(--card); border-radius: 22px; border: 1px solid var(--line); box-shadow: var(--shadow-lg); padding: 16px; margin: 6px 0 18px; overflow: hidden; }
.tut h2 { font-family: var(--serif); font-size: 26px; line-height: 1.2; margin: 0 0 10px; }
.tut .t-text { font-size: 17px; color: var(--ink-2); margin: 0 0 10px; }
.tut ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.tut li { display: flex; gap: 10px; align-items: flex-start; font-size: 16px; }
.tut li .dot { flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--gold-grad); color: #fff; font-size: 13px; font-weight: 800; display: flex; align-items: center; justify-content: center; margin-top: 1px; }
.tut-foot { flex: none; padding: 10px calc(20px + var(--safe-r)) calc(16px + var(--safe-b)) calc(20px + var(--safe-l)); }
.tut-foot .tut-inner { display: flex; flex-direction: column; gap: 14px; }
.pager { display: flex; justify-content: center; gap: 8px; }
.pager i { width: 9px; height: 9px; border-radius: 5px; background: var(--powder-strong); transition: all .2s; }
.pager i.on { width: 26px; background: var(--gold); }
.tut-btns { display: flex; gap: 10px; }
.tut-btns .btn { flex: 1; }
.tut-btns .btn.ghost { flex: 0 0 auto; }

/* mini-makiety w samouczku */
.mk-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.mk-stat { border: 1px solid var(--line); border-radius: 12px; padding: 10px; }
.mk-stat b { font-family: var(--serif); font-size: 24px; display: block; line-height: 1; }
.mk-stat span { font-size: 13px; color: var(--ink-2); }
.mk-stat.g { background: var(--gold-grad); border-color: transparent; color: #fff; }
.mk-stat.g span { color: #fff; }
.mk-stat.r b { color: var(--bad); }
.mk-stat.pulse { animation: pulse 1.6s infinite; }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(184,138,58,.0); } 50% { box-shadow: 0 0 0 5px rgba(184,138,58,.35); } }
.mk-card { border: 1px solid var(--line); border-left: 6px solid var(--bad); border-radius: 14px; padding: 10px 12px; }
.mk-card .mk-row { display: flex; gap: 10px; align-items: center; }
.mk-card .avatar { width: 38px; height: 38px; font-size: 15px; }
.mk-card .mk-name { font-weight: 800; }
.mk-card .mk-meta { font-size: 13px; color: var(--ink-2); }
.mk-legend { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.mk-legend div { display: flex; align-items: center; gap: 10px; font-size: 14.5px; }
.mk-legend i { width: 8px; height: 26px; border-radius: 4px; flex: none; }
.mk-fab { display: inline-flex; align-items: center; gap: 8px; background: var(--gold-grad); color: #fff; border-radius: 26px; padding: 12px 20px; font-weight: 800; box-shadow: 0 6px 18px rgba(160,116,37,.4); animation: pulse 1.6s infinite; }
.mk-center { display: flex; justify-content: center; padding: 14px 0; }
.mk-search { height: 44px; border-radius: 22px; border: 1.5px solid var(--line); display: flex; align-items: center; padding: 0 14px; gap: 8px; color: var(--ink-3); font-size: 15px; }
.mk-chips { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.mk-chips span { font-size: 13px; font-weight: 700; padding: 6px 10px; border-radius: 16px; border: 1.5px solid var(--line); }
.mk-chips span.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.mk-money { margin-top: 10px; }

/* ---------- responsywność ---------- */
@media (max-width: 360px) {
  :root { --gutter: 12px; }
  body { font-size: 16px; }
  .brand-name { font-size: 19px; }
  .stat .s-num { font-size: 30px; }
  .stat .s-label { font-size: 13.5px; }
  .fab { height: 56px; font-size: 16.5px; padding: 0 18px 0 14px; }
  .keypad { grid-template-columns: repeat(3, 68px); gap: 12px; }
  .keypad button { width: 68px; height: 68px; }
  .hero-actions .btn { font-size: 14px; }
  .hero-actions .btn svg, .cc-actions .btn svg { display: none; }
  .cc-visit { min-width: 66px; padding: 6px 8px; }
}
@media (min-width: 600px) {
  .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .fgrid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fgrid .full { grid-column: 1 / -1; }
  .gallery { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .dialog .d-actions { flex-direction: row-reverse; }
  .dialog .d-actions .btn { flex: 1; }
}
@media (min-width: 760px) {
  .clients { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .chips { flex-wrap: wrap; overflow: visible; margin: 0; padding-left: 2px; padding-right: 2px; }
}
@media (min-width: 1100px) {
  .stats { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .clients { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sheet { background: rgba(58, 42, 45, .35); align-items: center; justify-content: center; padding: 24px; }
  .sheet > .sheet-frame { width: 100%; max-width: 820px; height: 100%; max-height: 940px; background: var(--bg); border-radius: 24px; overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow-lg); }
}
.sheet > .sheet-frame { flex: 1; display: flex; flex-direction: column; min-height: 0; width: 100%; }
@media (hover: hover) {
  .ccard:hover, .stat:hover { box-shadow: var(--shadow-lg); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* =====================================================================
   NOWOCZESNY WYGLĄD 3D – wypukłe ikony, przyciski z połyskiem, miękkie cienie
   ===================================================================== */
:root {
  --radius: 22px;
  --shadow: 0 1px 2px rgba(122, 62, 76, .06), 0 8px 18px -8px rgba(150, 80, 98, .22), 0 22px 40px -22px rgba(150, 80, 98, .28);
  --shadow-lg: 0 2px 4px rgba(122, 62, 76, .08), 0 16px 32px -12px rgba(150, 80, 98, .32), 0 34px 64px -28px rgba(150, 80, 98, .34);
  --raise: inset 0 1px 0 rgba(255, 255, 255, .95), inset 0 -1px 0 rgba(210, 160, 172, .18);
  --card-bg: linear-gradient(180deg, #ffffff 0%, #fffafb 100%);
  --edge: rgba(236, 206, 213, .9);
}
body {
  background:
    radial-gradient(900px 520px at -10% -8%, #ffe1e9 0%, rgba(255, 225, 233, 0) 60%),
    radial-gradient(800px 480px at 115% 4%, #f8e3c4 0%, rgba(248, 227, 196, 0) 55%),
    radial-gradient(800px 600px at 50% 115%, #f5d6de 0%, rgba(245, 214, 222, 0) 60%),
    #fbf2f3;
  background-attachment: fixed;
}

/* ---- ikona 3D ---- */
.i3d {
  --c1: #fff; --c2: #ddd; --c3: #bbb; --sh: rgba(0, 0, 0, .3);
  position: relative; isolation: isolate; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: 15px; color: #fff;
  background: radial-gradient(130% 120% at 28% 18%, var(--c1) 0%, var(--c2) 52%, var(--c3) 100%);
  box-shadow: 0 10px 18px -8px var(--sh), 0 3px 6px -2px rgba(90, 40, 55, .22),
    inset 0 2px 1px rgba(255, 255, 255, .6), inset 0 -4px 7px rgba(60, 20, 30, .22);
}
.i3d::before {
  content: ""; position: absolute; z-index: -1; left: 10%; right: 10%; top: 5%; height: 46%;
  border-radius: 45% 45% 50% 50% / 65% 65% 35% 35%;
  background: linear-gradient(180deg, rgba(255, 255, 255, .72), rgba(255, 255, 255, 0));
}
.i3d svg { width: 54%; height: 54%; stroke-width: 2.3; filter: drop-shadow(0 1.5px 1.2px rgba(60, 20, 30, .35)); }
.i3d.sm { width: 26px; height: 26px; border-radius: 9px; box-shadow: 0 5px 9px -4px var(--sh), inset 0 1px 1px rgba(255, 255, 255, .6), inset 0 -2px 4px rgba(60, 20, 30, .2); }
.i3d.sm svg { width: 64%; height: 64%; stroke-width: 2.5; }
.i3d.lg { width: 58px; height: 58px; border-radius: 19px; }
.i3d.xl { width: 86px; height: 86px; border-radius: 27px; margin: 0 auto 8px; }
.i3d.xl svg { stroke-width: 2; }
.t-gold  { --c1: #fbe6b4; --c2: #d4a650; --c3: #a8782a; --sh: rgba(168, 120, 42, .6); }
.t-rose  { --c1: #ffd8e1; --c2: #ea93a8; --c3: #c5647d; --sh: rgba(197, 100, 125, .6); }
.t-berry { --c1: #ffc3c3; --c2: #e65c66; --c3: #b3303d; --sh: rgba(179, 48, 61, .55); }
.t-amber { --c1: #ffe7ad; --c2: #f3b23f; --c3: #c98410; --sh: rgba(201, 132, 16, .55); }
.t-mint  { --c1: #c9f3dc; --c2: #4dbb8b; --c3: #26865c; --sh: rgba(38, 134, 92, .5); }
.t-plum  { --c1: #eed8f7; --c2: #b685cf; --c3: #8656a3; --sh: rgba(134, 86, 163, .5); }
.t-cocoa { --c1: #f4d9c6; --c2: #c08d6b; --c3: #8d5d40; --sh: rgba(141, 93, 64, .5); }
.t-glass { --c1: rgba(255, 255, 255, .7); --c2: rgba(255, 255, 255, .34); --c3: rgba(255, 255, 255, .16); --sh: rgba(90, 60, 10, .4); border: 1px solid rgba(255, 255, 255, .55); }
.ic { display: inline-flex; width: 1.05em; height: 1.05em; vertical-align: -.16em; margin-right: 6px; flex: none; }
.ic svg { width: 100%; height: 100%; }
.dot-red { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 7px; background: radial-gradient(circle at 35% 30%, #ffa4a4, #d0303c); box-shadow: 0 2px 4px rgba(176, 40, 50, .5); }

/* ---- nagłówek (szkło) ---- */
.topbar { background: rgba(255, 245, 247, .74); backdrop-filter: blur(18px) saturate(1.3); -webkit-backdrop-filter: blur(18px) saturate(1.3); border-bottom: 1px solid rgba(255, 255, 255, .8); box-shadow: 0 10px 24px -18px rgba(150, 80, 98, .55); }
.brand-logo { filter: drop-shadow(0 5px 7px rgba(168, 120, 42, .38)); }
.icon-btn { background: linear-gradient(180deg, #ffffff, #f8edf0); border: 1px solid rgba(255, 255, 255, .95); box-shadow: 0 8px 14px -8px rgba(150, 80, 98, .55), inset 0 1px 0 #fff, inset 0 -2px 3px rgba(205, 160, 170, .3); color: var(--gold-dark); }
.greeting { display: flex; align-items: center; gap: 14px; }
.greeting h1 { font-size: 27px; }

/* ---- karty ---- */
.stat, .ccard, .acc, .set-card, .hero, .banner, .empty, .tut-illu, .dialog, .moneybox {
  box-shadow: var(--shadow), var(--raise);
}
.stat, .acc, .set-card, .hero, .banner, .tut-illu { background: var(--card-bg); border-color: rgba(255, 255, 255, .9); }
.empty { background: var(--card-bg); border: 1px solid rgba(255, 255, 255, .9); }
.ccard { background: var(--card-bg); border-top-color: rgba(255, 255, 255, .95); border-right-color: rgba(255, 255, 255, .95); border-bottom-color: rgba(255, 255, 255, .95); }
.ccard.lvl-ok { border-left-color: #3fae7c; }
.ccard.lvl-red { border-left-color: #d6404b; }
.ccard.lvl-amber { border-left-color: #eba52f; }
.banner { gap: 14px; }
.dialog { box-shadow: var(--shadow-lg); }

/* kafelki podsumowania */
.stat { min-height: 116px; padding: 14px 14px 13px; }
.stat .i3d.s-ico {
  position: absolute; top: 12px; right: 12px; width: 42px; height: 42px; border-radius: 14px; font-size: inherit;
  background: radial-gradient(130% 120% at 28% 18%, var(--c1) 0%, var(--c2) 52%, var(--c3) 100%);
}
.stat .s-num { font-size: 36px; text-shadow: 0 2px 0 rgba(255, 255, 255, .8); }
.stat .s-label { padding-right: 4px; }
.stat.tone-gold { background: linear-gradient(145deg, #e8c682 0%, #c6974a 50%, #a0722a 100%); box-shadow: 0 16px 30px -14px rgba(160, 110, 30, .75), inset 0 1px 0 rgba(255, 255, 255, .55), inset 0 -4px 8px rgba(110, 70, 10, .28); }
.stat.tone-gold .s-num { text-shadow: 0 2px 3px rgba(110, 70, 10, .4); }
.stat.active { outline: none; box-shadow: 0 0 0 3px #fff, 0 0 0 6px var(--gold), var(--shadow-lg); }

/* ---- wyszukiwarka, filtry ---- */
.search { background: #fff; border: 1px solid var(--edge); box-shadow: inset 0 2px 5px rgba(150, 80, 98, .1), 0 10px 18px -12px rgba(150, 80, 98, .45); }
.search:focus { border-color: var(--gold); box-shadow: inset 0 2px 5px rgba(150, 80, 98, .1), 0 0 0 4px rgba(212, 166, 80, .18); }
.chips { padding-top: 14px; padding-bottom: 14px; }
.chip, .sort, .seg button {
  background: linear-gradient(180deg, #ffffff, #fbf1f3); border: 1px solid var(--edge);
  box-shadow: 0 6px 12px -7px rgba(150, 80, 98, .45), inset 0 1px 0 #fff, inset 0 -2px 0 rgba(220, 185, 194, .3);
}
.chip { display: inline-flex; align-items: center; }
.chip.on { background: linear-gradient(180deg, #5d4348, #36272a); border-color: #2e2023; color: #fff; box-shadow: 0 10px 18px -8px rgba(58, 42, 45, .65), inset 0 1px 0 rgba(255, 255, 255, .2); }
.chip .cnt { box-shadow: inset 0 1px 2px rgba(150, 80, 98, .18); }
.seg button.on { background: linear-gradient(180deg, #fde3ea, #f0bfcb); border-color: #e4a6b6; box-shadow: 0 8px 14px -8px rgba(197, 100, 125, .65), inset 0 1px 0 rgba(255, 255, 255, .85), inset 0 -2px 0 rgba(197, 100, 125, .25); }

/* ---- kafelek klientki ---- */
.avatar {
  background: radial-gradient(130% 120% at 30% 20%, #ffe2e9 0%, #eba5b6 55%, #c96e86 100%);
  color: #fff; border: 2px solid rgba(255, 255, 255, .95); text-shadow: 0 1px 2px rgba(120, 40, 60, .45);
  box-shadow: 0 10px 16px -8px rgba(197, 100, 125, .7), inset 0 2px 2px rgba(255, 255, 255, .5), inset 0 -3px 5px rgba(120, 40, 60, .22);
}
.cc-visit, .hero-visit { background: linear-gradient(180deg, #fffaf0, #f7e7c6); border: 1px solid #ecd5a4; box-shadow: 0 8px 14px -8px rgba(168, 120, 42, .55), inset 0 1px 0 #fff; }
.cc-visit.none { background: linear-gradient(180deg, #fff, #fbf1f3); box-shadow: inset 0 2px 4px rgba(150, 80, 98, .1); }
.cc-cell .cl { gap: 8px; }
.cc-actions { background: linear-gradient(180deg, #fff6f8, #fbeef1); }
.wpill { display: inline-flex; align-items: center; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .65), 0 3px 6px -3px rgba(90, 40, 50, .25); }
.wpill .ic { margin-right: 6px; }
.st { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6), 0 2px 5px -3px rgba(90, 40, 50, .3); }
.cc-meta .ic, .hero-sub .ic, .mk-meta .ic { color: var(--rose); }

/* ---- przyciski z połyskiem ---- */
.btn {
  position: relative; background: linear-gradient(180deg, #ffffff 0%, #fbf0f3 100%); border: 1px solid var(--edge);
  box-shadow: 0 8px 14px -8px rgba(150, 80, 98, .5), inset 0 1px 0 #fff, inset 0 -2px 0 rgba(220, 180, 190, .35);
  transition: transform .1s ease, box-shadow .1s ease;
}
.btn:active { transform: translateY(1px); box-shadow: 0 3px 6px -3px rgba(150, 80, 98, .5), inset 0 2px 4px rgba(150, 80, 98, .18); }
.btn.gold, .fab {
  background: linear-gradient(180deg, #e8c780 0%, #ca9a4b 48%, #a6772a 100%); border: 1px solid #a6772a; color: #fff;
  box-shadow: 0 12px 22px -10px rgba(160, 110, 30, .8), inset 0 1px 0 rgba(255, 255, 255, .6), inset 0 -3px 0 rgba(110, 70, 15, .35);
}
.btn.gold::before, .fab::before {
  content: ""; position: absolute; left: 3%; right: 3%; top: 1px; height: 52%; border-radius: 999px 999px 45% 45% / 999px 999px 25% 25%; pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, .42), rgba(255, 255, 255, .04));
}
.fab { overflow: hidden; }
.fab svg, .btn.gold svg { filter: drop-shadow(0 1px 1px rgba(90, 60, 10, .4)); }
.btn.pink { background: linear-gradient(180deg, #fde5eb 0%, #f2c3ce 100%); border-color: #e9b1bf; box-shadow: 0 10px 18px -10px rgba(197, 100, 125, .7), inset 0 1px 0 rgba(255, 255, 255, .85), inset 0 -2px 0 rgba(197, 100, 125, .25); }
.btn.danger { background: linear-gradient(180deg, #fff1ef 0%, #fbd7d3 100%); border-color: #f2b9b2; box-shadow: 0 10px 18px -10px rgba(173, 42, 34, .5), inset 0 1px 0 #fff, inset 0 -2px 0 rgba(173, 42, 34, .15); }
.btn.ghost { background: transparent; border-color: transparent; box-shadow: none; }
.sheet-bar .back { background: linear-gradient(180deg, #fff, #f9eef1); border: 1px solid rgba(255, 255, 255, .95); box-shadow: 0 8px 14px -8px rgba(150, 80, 98, .55), inset 0 1px 0 #fff, inset 0 -2px 3px rgba(205, 160, 170, .3); }
.sheet-bar { background: rgba(255, 245, 247, .82); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.sheet { background: transparent; }
.sheet > .sheet-frame { background: radial-gradient(700px 400px at 0% 0%, #ffe6ec 0%, rgba(255, 230, 236, 0) 60%), radial-gradient(600px 400px at 100% 0%, #f9e7cc 0%, rgba(249, 231, 204, 0) 55%), #fbf2f3; }
.sheet-foot { background: rgba(255, 250, 251, .92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 -10px 24px -18px rgba(150, 80, 98, .5); }

/* ---- karta klientki ---- */
.acc-head { gap: 14px; }
.check { background: linear-gradient(180deg, #ffffff, #fcf5f7); border: 1px solid var(--edge); box-shadow: 0 6px 12px -8px rgba(150, 80, 98, .45), inset 0 1px 0 #fff; }
.check .box { background: linear-gradient(180deg, #fff, #f5e6ea); border: 1.5px solid #e6bcc6; box-shadow: inset 0 2px 3px rgba(150, 80, 98, .2); }
.check.on { background: linear-gradient(180deg, #f2fcf6, #dff3e8); border-color: #b9e0cb; }
.check.on .box { background: radial-gradient(130% 120% at 30% 20%, #93e2b9 0%, #35a374 55%, #23845a 100%); border-color: #23845a; box-shadow: 0 5px 9px -4px rgba(38, 134, 92, .7), inset 0 1px 1px rgba(255, 255, 255, .6); }
.check.on .box svg { filter: drop-shadow(0 1px 1px rgba(0, 60, 30, .4)); }
.toggle { background: linear-gradient(180deg, #ffffff, #fcf5f7); border: 1px solid var(--edge); box-shadow: 0 6px 12px -8px rgba(150, 80, 98, .45), inset 0 1px 0 #fff; }
.toggle.on { background: linear-gradient(180deg, #f2fcf6, #dff3e8); border-color: #b9e0cb; }
.toggle .sw { background: linear-gradient(180deg, #e2cfd3, #eddde0); box-shadow: inset 0 2px 4px rgba(120, 60, 70, .3); }
.toggle .sw::after { background: radial-gradient(circle at 35% 30%, #ffffff, #efe4e6); box-shadow: 0 3px 6px rgba(60, 20, 30, .35), inset 0 -1px 1px rgba(0, 0, 0, .08); }
.toggle.on .sw { background: linear-gradient(180deg, #2f8f63, #45b582); }
.field input, .field select, .field textarea { background-color: #fff; border: 1px solid var(--edge); box-shadow: inset 0 2px 4px rgba(150, 80, 98, .08); }
.progress .p-bar { height: 12px; border-radius: 6px; box-shadow: inset 0 2px 3px rgba(150, 80, 98, .22); }
.progress .p-fill { border-radius: 6px; background: linear-gradient(180deg, #ebcb87 0%, #c99a4b 55%, #a6772a 100%); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55), 0 2px 4px rgba(160, 110, 30, .4); }
.moneybox { background: linear-gradient(180deg, #fffaf0, #f7e8c8); border: 1px solid #ecd5a4; }
.step { background: linear-gradient(180deg, #ffffff, #fcf5f7); border: 1px solid var(--edge); box-shadow: 0 5px 10px -7px rgba(150, 80, 98, .45), inset 0 1px 0 #fff; }
.step .n { background: linear-gradient(180deg, #fff, #f2e3e7); box-shadow: inset 0 1px 0 #fff, 0 3px 6px -3px rgba(150, 80, 98, .5); }
.step.done .n { background: radial-gradient(130% 120% at 30% 20%, #93e2b9, #35a374 55%, #23845a); box-shadow: 0 5px 9px -4px rgba(38, 134, 92, .7), inset 0 1px 1px rgba(255, 255, 255, .6); }
.step.cur { background: linear-gradient(180deg, #fffaf0, #f7e8c8); border-color: #dcb56a; }
.step.cur .n { background: radial-gradient(130% 120% at 30% 20%, #fbe6b4, #d4a650 52%, #a8782a); box-shadow: 0 6px 10px -4px rgba(168, 120, 42, .75), inset 0 1px 1px rgba(255, 255, 255, .6); }
.gallery .ph { box-shadow: 0 10px 18px -10px rgba(120, 60, 70, .6); border: 2px solid #fff; }
.gallery .add { background: linear-gradient(180deg, #fff, #fcf3f5); box-shadow: inset 0 2px 5px rgba(150, 80, 98, .1); }
.set-card h3 { display: flex; align-items: center; gap: 10px; }

/* ---- PIN, samouczek, komunikat ---- */
.keypad button { background: radial-gradient(circle at 32% 25%, #ffffff 0%, #fbeff2 60%, #f2dde2 100%); border: 1px solid rgba(255, 255, 255, .95); box-shadow: 0 10px 18px -10px rgba(150, 80, 98, .65), inset 0 2px 1px #fff, inset 0 -3px 5px rgba(200, 150, 160, .3); }
.keypad button:active { transform: translateY(1px); box-shadow: 0 3px 6px -3px rgba(150, 80, 98, .5), inset 0 3px 6px rgba(150, 80, 98, .2); }
.keypad .k-fn, .keypad .k-fn:active { background: transparent; border: 0; box-shadow: none; }
.dots i.f { background: radial-gradient(circle at 35% 30%, #fbe6b4, #c99a4b 60%, #a6772a); box-shadow: 0 3px 6px -2px rgba(160, 110, 30, .7); }
.lock .l-logo, .tut-illu img { filter: drop-shadow(0 10px 14px rgba(168, 120, 42, .35)); }
.tut li .dot { box-shadow: 0 5px 9px -4px rgba(160, 110, 30, .75), inset 0 1px 1px rgba(255, 255, 255, .6); background: radial-gradient(130% 120% at 30% 20%, #fbe6b4, #d4a650 52%, #a8782a); }
.pager i.on { background: linear-gradient(90deg, #e2bf78, #a6772a); box-shadow: 0 2px 5px rgba(160, 110, 30, .5); }
.mk-stat { background: #fff; box-shadow: 0 6px 12px -8px rgba(150, 80, 98, .5), inset 0 1px 0 #fff; }
.mk-stat.g { background: linear-gradient(145deg, #e8c682, #c6974a 50%, #a0722a); }
.mk-card { background: #fff; box-shadow: 0 8px 16px -10px rgba(150, 80, 98, .55); }
.toast { background: rgba(48, 34, 37, .92); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }

@media (max-width: 360px) {
  .stat .i3d.s-ico { width: 36px; height: 36px; border-radius: 12px; }
  .greeting .i3d.lg { width: 48px; height: 48px; border-radius: 16px; }
  .greeting h1 { font-size: 24px; }
  .acc-head .i3d { width: 42px; height: 42px; }
}
@media (min-width: 1100px) {
  .sheet { background: rgba(58, 42, 45, .35); }
}
