:root {
  --bg: #ffffff;
  --surface: #faf7f0;
  --surface-2: #f3ecdb;
  --gold: #b0892b;
  --gold-soft: #8f6e1f;
  --text: #1c1a17;
  --muted: #6f6a60;
  --line: #e8e2d4;
  --radius: 12px;
  --maxw: 1140px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Jost', 'Segoe UI', sans-serif;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: 'Cormorant Garamond', Georgia, serif; font-weight: 500; line-height: 1.2; }

a { color: inherit; text-decoration: none; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 15px; padding: 12px 24px; border-radius: 8px;
  cursor: pointer; border: none; transition: .2s; font-family: inherit;
}
.btn-gold { background: var(--gold); color: var(--bg); font-weight: 600; }
.btn-gold:hover { background: var(--gold-soft); }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--gold); }
.btn-ghost:hover { background: rgba(201,162,75,.12); }

/* ---------- Header ---------- */
header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo { font-family: 'Cormorant Garamond', serif; font-size: 24px; font-weight: 600; letter-spacing: .5px; display: flex; align-items: center; gap: 10px; }
.logo-mark { color: var(--gold); font-size: 26px; }
.nav-links { display: flex; gap: 28px; font-size: 14px; color: var(--muted); }
.nav-links a:hover { color: var(--gold); }
.nav-cta { display: flex; align-items: center; gap: 16px; }
.nav-login { font-size: 14px; color: var(--muted); }
.nav-login:hover { color: var(--gold); }
.burger { display: none; font-size: 26px; color: var(--text); background: none; border: none; cursor: pointer; }

/* ---------- Hero ---------- */
.hero { padding: 80px 0 70px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.hero .eyebrow { color: var(--gold); font-size: 13px; letter-spacing: 3px; text-transform: uppercase; margin-bottom: 18px; }
.hero h1 { font-size: 56px; margin-bottom: 20px; }
.hero p { color: var(--muted); font-size: 17px; max-width: 460px; margin-bottom: 30px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-photo {
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px;
  aspect-ratio: 4/3; display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: #7a756a; gap: 10px;
}
.hero-photo .ph-icon { font-size: 44px; color: var(--gold); opacity: .8; }

/* ---------- Sections ---------- */
section { padding: 64px 0; }
.section-head { text-align: center; margin-bottom: 44px; }
.section-head h2 { font-size: 40px; margin-bottom: 8px; }
.section-head p { color: var(--muted); font-size: 15px; }

/* ---------- Treatments ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 22px; transition: .2s;
}
.card:hover { border-color: var(--gold); transform: translateY(-3px); }
.card-icon { font-size: 30px; color: var(--gold); }
.card h3 { font-size: 24px; margin: 14px 0 4px; }
.card .meta { color: var(--muted); font-size: 13px; margin-bottom: 16px; }
.price-lock { color: var(--gold); font-size: 14px; display: flex; align-items: center; gap: 6px; }

/* ---------- Categories strip ---------- */
.cats { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.cat {
  border: 1px solid var(--line); border-radius: 30px; padding: 10px 22px;
  color: var(--muted); font-size: 14px; transition: .2s; cursor: pointer;
}
.cat:hover { border-color: var(--gold); color: var(--gold); }

/* ---------- Reviews ---------- */
.reviews { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.review-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.review { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.stars { color: var(--gold); font-size: 15px; letter-spacing: 2px; }
.review p { color: var(--muted); font-size: 14px; margin-top: 10px; font-style: italic; }
.review .who { color: var(--text); font-style: normal; margin-top: 10px; font-size: 13px; }

/* ---------- Loyalty ---------- */
.loyalty-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.tier { text-align: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 20px; }
.tier .ticon { font-size: 34px; color: var(--gold); }
.tier h3 { font-size: 26px; margin: 10px 0 2px; }
.tier .pct { font-size: 30px; color: var(--gold); font-family: 'Cormorant Garamond', serif; }
.tier span { color: var(--muted); font-size: 13px; }

/* ---------- CTA band ---------- */
.cta-band { text-align: center; }
.cta-band h2 { font-size: 40px; margin-bottom: 14px; }
.cta-band p { color: var(--muted); margin-bottom: 26px; }

/* ---------- Footer ---------- */
footer { background: var(--surface-2); border-top: 1px solid var(--line); padding: 50px 0 30px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 30px; }
.foot-col h4 { color: var(--gold); font-family: inherit; font-size: 13px; letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 14px; }
.foot-col p, .foot-col a { color: var(--muted); font-size: 14px; display: block; margin-bottom: 8px; }
.foot-col a:hover { color: var(--gold); }
.foot-brand { font-family: 'Cormorant Garamond', serif; font-size: 22px; margin-bottom: 10px; }
.copyright { text-align: center; color: var(--muted); font-size: 12px; margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line); }

/* ---------- Price reveal (login-gated) ---------- */
.price-value { display: none; align-items: center; gap: 6px; color: var(--gold); font-size: 18px; font-family: 'Cormorant Garamond', serif; }
body.logged-in .price-lock { display: none; }
body.logged-in .price-value { display: flex; }

/* ---------- Account chip ---------- */
.nav-guest { display: flex; align-items: center; gap: 16px; }
.nav-account { display: none; align-items: center; gap: 14px; }
body.logged-in .nav-guest { display: none; }
body.logged-in .nav-account { display: flex; }
.nav-account .who { font-size: 14px; color: var(--text); display: flex; align-items: center; gap: 7px; }
.nav-account .who i { color: var(--gold); }
.logout { font-size: 13px; color: var(--muted); cursor: pointer; background: none; border: none; font-family: inherit; }
.logout:hover { color: var(--gold); }

/* ---------- Auth page ---------- */
.auth-wrap { min-height: calc(100vh - 72px); display: flex; align-items: center; justify-content: center; padding: 50px 24px; }
.auth-card { width: 100%; max-width: 440px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 36px 32px; }
.auth-card h1 { font-size: 36px; text-align: center; margin-bottom: 6px; }
.auth-sub { text-align: center; color: var(--muted); font-size: 14px; margin-bottom: 26px; }
.tabs { display: flex; gap: 6px; background: var(--surface-2); padding: 5px; border-radius: 10px; margin-bottom: 24px; }
.tab { flex: 1; text-align: center; padding: 10px; border-radius: 7px; font-size: 14px; color: var(--muted); cursor: pointer; transition: .2s; border: none; background: none; font-family: inherit; }
.tab.active { background: var(--gold); color: #fff; font-weight: 600; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.field input {
  width: 100%; background: var(--bg); border: 1px solid var(--line); border-radius: 8px;
  padding: 12px 14px; font-size: 15px; color: var(--text); font-family: inherit; transition: .2s;
}
.field input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(176,137,43,.15); }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 12px; color: var(--muted); margin-bottom: 20px; line-height: 1.5; }
.consent input { margin-top: 3px; accent-color: var(--gold); }
.auth-card .btn-gold { width: 100%; justify-content: center; padding: 14px; }
.auth-foot { text-align: center; font-size: 13px; color: var(--muted); margin-top: 18px; }
.auth-foot a { color: var(--gold); }
.hidden { display: none; }

/* ---------- Social login ---------- */
.social-btns { display: flex; flex-direction: column; gap: 10px; margin-bottom: 22px; }
.social-btn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; padding: 12px; border-radius: 8px; font-size: 14px; font-weight: 500;
  cursor: pointer; font-family: inherit; border: 1px solid var(--line); transition: .2s;
}
.social-btn i { font-size: 19px; }
.social-google { background: #fff; color: #3c4043; }
.social-google:hover { background: #f6f6f6; }
.social-google i { color: #ea4335; }
.social-facebook { background: #1877F2; color: #fff; border-color: #1877F2; }
.social-facebook:hover { background: #1466d4; }
.divider { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 12px; margin-bottom: 22px; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* ---------- Booking creator ---------- */
.booking { max-width: 920px; margin: 0 auto; padding: 40px 24px 80px; }
.booking h1 { font-size: 40px; text-align: center; margin-bottom: 4px; }
.booking .lead { text-align: center; color: var(--muted); margin-bottom: 30px; }

.steps { display: flex; align-items: center; justify-content: center; gap: 6px; flex-wrap: wrap; margin-bottom: 36px; }
.step-pill { display: flex; align-items: center; gap: 7px; font-size: 13px; color: var(--muted); border: 1px solid var(--line); padding: 7px 14px; border-radius: 30px; }
.step-pill .num { width: 20px; height: 20px; border-radius: 50%; background: var(--surface-2); color: var(--muted); display: flex; align-items: center; justify-content: center; font-size: 11px; }
.step-pill.active { background: var(--gold); border-color: var(--gold); color: #fff; }
.step-pill.active .num { background: rgba(255,255,255,.3); color: #fff; }
.step-pill.done { color: var(--gold); border-color: var(--gold); }
.step-sep { color: var(--line); }

.step-panel { display: none; }
.step-panel.active { display: block; }

.bk-cats { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 20px; }
.bk-cat { border: 1px solid var(--line); border-radius: 30px; padding: 9px 18px; color: var(--muted); font-size: 14px; cursor: pointer; background: none; font-family: inherit; transition: .2s; }
.bk-cat.active { background: var(--gold); color: #fff; border-color: var(--gold); }

.svc-list { display: flex; flex-direction: column; gap: 10px; }
.svc {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px 16px; cursor: pointer; transition: .2s;
}
.svc:hover { border-color: var(--gold); }
.svc.selected { border-color: var(--gold); background: var(--surface-2); }
.svc-left { display: flex; align-items: center; gap: 12px; }
.svc-check { width: 22px; height: 22px; border-radius: 6px; border: 1px solid var(--muted); display: flex; align-items: center; justify-content: center; color: transparent; flex-shrink: 0; }
.svc.selected .svc-check { background: var(--gold); border-color: var(--gold); color: #fff; }
.svc-name { font-size: 15px; }
.svc-meta { font-size: 12px; color: var(--muted); }
.svc-price { font-size: 16px; color: var(--gold); font-family: 'Cormorant Garamond', serif; white-space: nowrap; }

.cart {
  position: sticky; bottom: 16px; margin-top: 24px; background: var(--surface);
  border: 1px solid var(--gold); border-radius: var(--radius); padding: 16px 18px;
}
.cart-row { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); margin-bottom: 4px; }
.cart-total { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--line); padding-top: 10px; margin-top: 8px; }
.cart-total .big { font-size: 18px; color: var(--text); }
.cart-total .big b { color: var(--gold); font-weight: 600; }

.bk-actions { display: flex; justify-content: space-between; align-items: center; margin-top: 24px; gap: 12px; }

/* day strip & slots */
.days { display: grid; grid-template-columns: repeat(auto-fill, minmax(90px,1fr)); gap: 8px; margin-bottom: 26px; }
.day { text-align: center; border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 4px; cursor: pointer; transition: .2s; }
.day:hover { border-color: var(--gold); }
.day.active { background: var(--gold); border-color: var(--gold); }
.day.active * { color: #fff !important; }
.day .dow { font-size: 11px; color: var(--muted); text-transform: uppercase; }
.day .dnum { font-size: 18px; margin: 2px 0; }
.day .dfree { font-size: 10px; color: var(--gold); }
.day.closed { opacity: .4; cursor: not-allowed; }
.day.closed .dfree { color: var(--muted); }

.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px,1fr)); gap: 8px; }
.slot { text-align: center; border: 1px solid var(--line); border-radius: 8px; padding: 11px 0; font-size: 14px; cursor: pointer; transition: .2s; }
.slot:hover { border-color: var(--gold); color: var(--gold); }
.slot.active { background: var(--gold); border-color: var(--gold); color: #fff; }
.slots-empty { color: var(--muted); font-size: 14px; padding: 20px 0; }

.summary-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; margin-bottom: 20px; }
.summary-card h3 { font-size: 22px; margin-bottom: 14px; }
.sum-line { display: flex; justify-content: space-between; font-size: 14px; color: var(--muted); padding: 6px 0; }
.sum-line.total { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 12px; color: var(--text); font-size: 16px; }
.deposit-box { background: var(--surface-2); border-radius: var(--radius); padding: 16px; display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.deposit-box .dep-amt { font-size: 26px; color: var(--gold); font-family: 'Cormorant Garamond', serif; }
.pay-methods { display: flex; gap: 10px; margin-bottom: 20px; }
.pay { flex: 1; border: 1px solid var(--line); border-radius: 8px; padding: 14px; text-align: center; font-size: 13px; cursor: pointer; }
.pay.active { border-color: var(--gold); background: var(--surface-2); color: var(--gold); }

.done-wrap { text-align: center; padding: 30px 0; }
.done-ico { font-size: 64px; color: var(--gold); }
.done-wrap h2 { font-size: 34px; margin: 10px 0; }
.done-detail { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; max-width: 420px; margin: 22px auto; text-align: left; }

/* ---------- Client panel: Moje wizyty ---------- */
.panel { max-width: 820px; margin: 0 auto; padding: 40px 24px 80px; }
.panel h1 { font-size: 40px; margin-bottom: 4px; }
.panel .lead { color: var(--muted); margin-bottom: 28px; }
.panel-tabs { display: flex; gap: 24px; border-bottom: 1px solid var(--line); margin-bottom: 26px; }
.panel-tab { padding-bottom: 12px; font-size: 14px; color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.panel-tab.active { color: var(--gold); border-bottom-color: var(--gold); }

.visit { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin-bottom: 14px; }
.visit.next { border-color: var(--gold); }
.visit-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.visit-badge { font-size: 11px; padding: 3px 10px; border-radius: 20px; background: var(--gold); color: #fff; }
.visit-badge.soft { background: var(--surface-2); color: var(--muted); }
.visit h3 { font-size: 20px; margin: 8px 0 4px; }
.visit-meta { font-size: 13px; color: var(--muted); }
.visit-price { font-size: 20px; color: var(--gold); font-family: 'Cormorant Garamond', serif; white-space: nowrap; }
.visit-actions { display: flex; gap: 8px; align-items: center; border-top: 1px solid var(--line); margin-top: 14px; padding-top: 14px; }
.visit-actions .paid { margin-left: auto; font-size: 12px; color: var(--muted); }
.btn-sm { font-size: 13px; padding: 8px 14px; }
.empty-state { text-align: center; color: var(--muted); padding: 50px 20px; }
.empty-state i { font-size: 44px; color: var(--line); display: block; margin-bottom: 12px; }

/* ---------- Admin panel ---------- */
.admin { max-width: 1040px; margin: 0 auto; padding: 30px 24px 80px; }
.admin-bar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; gap: 12px; flex-wrap: wrap; }
.admin-date { display: flex; align-items: center; gap: 12px; }
.admin-date h2 { font-size: 22px; }
.admin-grid { display: grid; grid-template-columns: 1.7fr 1fr; gap: 24px; }

.timeline { position: relative; border: 1px solid var(--line); border-radius: var(--radius); padding: 0 0 0 52px; background: var(--surface); overflow: hidden; }
.tl-hour { position: absolute; left: 0; width: 46px; text-align: right; font-size: 11px; color: var(--muted); transform: translateY(-7px); }
.tl-line { position: absolute; left: 52px; right: 0; border-top: 1px dashed var(--line); }
.tl-visit { position: absolute; left: 60px; right: 12px; background: var(--surface-2); border: 1px solid var(--gold); border-left: 3px solid var(--gold); border-radius: 8px; padding: 7px 10px; overflow: hidden; }
.tl-visit.block { border-color: var(--muted); border-left-color: var(--muted); background: var(--bg); }
.tl-visit .v-name { font-size: 13px; font-weight: 500; }
.tl-visit .v-svc { font-size: 11px; color: var(--gold); }
.tl-visit .v-time { font-size: 11px; color: var(--muted); }
.tl-closed { text-align: center; color: var(--muted); padding: 60px 20px; }
.tl-tools { position: absolute; top: 6px; right: 8px; display: flex; gap: 10px; opacity: 0; transition: .15s; }
.tl-visit:hover .tl-tools { opacity: 1; }
.tl-tools i { cursor: pointer; color: var(--muted); font-size: 15px; }
.tl-tools i:hover { color: var(--gold); }
.edit-banner { display: none; align-items: center; gap: 8px; background: var(--surface-2); border: 1px solid var(--gold); border-radius: 8px; padding: 8px 12px; font-size: 12px; color: var(--gold); margin-bottom: 10px; }

.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 18px; }
.stat { background: var(--surface); border-radius: var(--radius); padding: 14px; }
.stat .l { font-size: 12px; color: var(--muted); }
.stat .v { font-size: 24px; font-family: 'Cormorant Garamond', serif; margin-top: 2px; }
.stat .v.gold { color: var(--gold); }
.admin-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin-bottom: 16px; }
.admin-box h3 { font-size: 16px; margin-bottom: 12px; }
.admin-box .field { margin-bottom: 10px; }
.admin-box select, .admin-box input { width: 100%; background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; font-size: 14px; color: var(--text); font-family: inherit; }
.mini-slots { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.mini-slot { font-size: 12px; border: 1px solid var(--line); border-radius: 6px; padding: 6px 10px; cursor: pointer; }
.mini-slot.active { background: var(--gold); color: #fff; border-color: var(--gold); }
.seg-toggle { display: flex; gap: 6px; margin-bottom: 10px; }
.seg-toggle button { flex: 1; padding: 8px; font-size: 13px; border: 1px solid var(--line); background: none; border-radius: 8px; cursor: pointer; color: var(--muted); font-family: inherit; }
.seg-toggle button.active { background: var(--surface-2); border-color: var(--gold); color: var(--gold); }

/* ---------- Settings ---------- */
.set-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; margin-bottom: 18px; max-width: 620px; }
.set-card h3 { font-size: 18px; margin-bottom: 16px; }
.hours-row { display: flex; align-items: center; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--line); }
.hours-row:last-child { border-bottom: none; }
.day-toggle { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.day-toggle input { accent-color: var(--gold); }
.h-times { display: flex; align-items: center; gap: 8px; }
.set-card input[type="time"], .set-card input[type="text"], .set-card input[type="number"] {
  background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 9px 11px; font-size: 14px; color: var(--text); font-family: inherit;
}
.set-field { margin-bottom: 14px; }
.set-field label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.set-field input { width: 100%; }
.set-inline { display: flex; gap: 16px; }
.set-inline .set-field { flex: 1; }
.save-ok { display: none; align-items: center; gap: 6px; color: var(--gold); font-size: 14px; margin-left: 12px; }

/* ---------- Vouchery ---------- */
.amt-opts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 16px; }
.amt { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 8px; text-align: center; cursor: pointer; font-family: 'Cormorant Garamond', serif; font-size: 22px; transition: .2s; }
.amt:hover { border-color: var(--gold); }
.amt.active { border-color: var(--gold); background: var(--surface-2); color: var(--gold); }
.ticket { background: var(--surface-2); border: 1px dashed var(--gold); border-radius: var(--radius); padding: 22px; text-align: center; margin: 10px 0; }
.ticket .t-label { font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); }
.ticket .t-val { font-size: 40px; color: var(--gold); font-family: 'Cormorant Garamond', serif; }
.ticket .t-code { font-family: monospace; font-size: 20px; letter-spacing: 3px; background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 8px 14px; display: inline-block; margin-top: 8px; }
.voucher-li { display: flex; justify-content: space-between; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; margin-bottom: 10px; }
.voucher-li.used { opacity: .55; }
.v-code { font-family: monospace; letter-spacing: 2px; font-size: 15px; }
.v-status { font-size: 12px; padding: 3px 10px; border-radius: 20px; }
.v-status.act { background: var(--surface-2); color: var(--gold); }
.v-status.use { background: var(--surface-2); color: var(--muted); }

/* ---------- Loyalty ---------- */
.loy-card { text-align: center; background: var(--surface); border: 1px solid var(--gold); border-radius: var(--radius); padding: 26px; margin-bottom: 16px; }
.loy-tier { font-size: 30px; font-family: 'Cormorant Garamond', serif; color: var(--gold); }
.loy-bar { background: var(--surface-2); border-radius: 20px; height: 10px; margin: 14px 0 8px; overflow: hidden; }
.loy-bar > div { height: 10px; background: var(--gold); border-radius: 20px; }
.loy-tiers { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; }
.loy-mini { text-align: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 8px; }
.loy-mini.cur { border-color: var(--gold); }
.loy-mini .p { font-size: 24px; font-family: 'Cormorant Garamond', serif; color: var(--gold); }

/* ---------- Gallery ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.gal-item { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 1/1; background: var(--surface); }
.gal-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gal-ph { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: var(--gold); font-size: 34px; background: var(--surface-2); }
.gal-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 8px 12px; font-size: 13px; color: #fff; background: linear-gradient(transparent, rgba(0,0,0,.6)); }

/* ---------- Blog ---------- */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.blog-card { display: block; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: .2s; }
.blog-card:hover { border-color: var(--gold); transform: translateY(-3px); }
.blog-thumb { background: var(--surface-2); height: 130px; display: flex; align-items: center; justify-content: center; color: var(--gold); font-size: 38px; overflow: hidden; }
.blog-body { padding: 16px 18px; }
.blog-tag { font-size: 11px; color: var(--gold); letter-spacing: 1px; text-transform: uppercase; }
.blog-body h3 { font-size: 20px; margin: 6px 0 8px; }
.blog-body p { font-size: 14px; color: var(--muted); margin-bottom: 10px; }

/* ---------- Shop ---------- */
.shop-layout { display: grid; grid-template-columns: 1fr 280px; gap: 24px; align-items: start; }
.shop-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.shop-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; text-align: center; }
.shop-thumb { background: var(--surface-2); border-radius: 8px; height: 90px; display: flex; align-items: center; justify-content: center; color: var(--gold); font-size: 32px; margin-bottom: 10px; }
.shop-cat { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; }
.shop-card h3 { font-size: 16px; margin: 4px 0; }
.shop-price { font-size: 20px; color: var(--gold); font-family: 'Cormorant Garamond', serif; margin-bottom: 10px; }
.qty { display: flex; align-items: center; justify-content: center; gap: 12px; }
.qty button { width: 30px; height: 30px; border: 1px solid var(--line); background: none; border-radius: 6px; cursor: pointer; color: var(--text); font-size: 16px; }
.qty button:hover { border-color: var(--gold); color: var(--gold); }
.shop-cart { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; position: sticky; top: 90px; }
.cart-line { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); padding: 5px 0; }
.cart-line.total { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 10px; color: var(--text); font-size: 15px; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .nav { flex-wrap: wrap; height: auto; min-height: 72px; position: relative; padding-right: 44px; }
  .logo { font-size: 17px; white-space: nowrap; }
  .nav-links { display: none; }
  .nav-cta { display: none; }
  /* hamburger przypięty w rogu — nie spada na dół po otwarciu menu */
  .burger { display: block; position: absolute; top: 18px; right: 0; }
  header.nav-open .nav-links,
  header.nav-open .nav-cta {
    display: flex; flex-direction: column; align-items: stretch;
    gap: 12px; width: 100%; padding: 6px 0 16px;
    border-top: 0.5px solid var(--line); margin-top: 8px;
  }
  header.nav-open .nav-links a { padding: 6px 2px; font-size: 15px; }
  header.nav-open .nav-account,
  header.nav-open .nav-guest { display: flex; flex-direction: column; align-items: stretch; gap: 10px; width: 100%; }
  /* w otwartym menu pokazuj tylko właściwy wariant: gość albo zalogowany */
  body.logged-in header.nav-open .nav-guest { display: none; }
  body:not(.logged-in) header.nav-open .nav-account { display: none; }
  header.nav-open .nav-cta .btn { justify-content: center; }
  header.nav-open .who { justify-content: flex-start; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero { padding: 50px 0; }
  .hero h1 { font-size: 40px; }
  .cards, .review-grid, .loyalty-grid, .blog-grid { grid-template-columns: 1fr; }
  .shop-layout { grid-template-columns: 1fr; }
  .shop-grid, .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .shop-cart { position: static; }
  .foot-grid { grid-template-columns: 1fr; }
  .section-head h2, .cta-band h2 { font-size: 32px; }

  /* ---- Panel admina i panel klienta na telefonie ---- */
  .container { padding: 0 16px; }
  .admin { padding: 22px 14px 60px; }
  .admin-grid { grid-template-columns: 1fr; }                 /* oś czasu i formularz jeden pod drugim */
  .stat-grid { grid-template-columns: 1fr 1fr !important; }   /* statystyki 2 w rzędzie (bije inline 3/4) */
  .admin-bar h2 { font-size: 20px; }
  /* zakładki panelu klienta — przewijane w bok zamiast wystawać */
  .panel-tabs { gap: 16px; overflow-x: auto; flex-wrap: nowrap; -webkit-overflow-scrolling: touch; padding-bottom: 2px; }
  .panel-tabs::-webkit-scrollbar { height: 0; }
  .panel-tab { flex: 0 0 auto; white-space: nowrap; }
  /* szerokie listy/tabele admina — przewijanie w poziomie zamiast łamania układu */
  #klienci, #zabiegi, #v-list, #changes-log, #notif-log, #bp-list { overflow-x: auto; }
  /* własna kwota/pola generatora voucherów — pełna szerokość */
  .set-card .set-field input, .set-card .set-field select, .set-card .set-field textarea { max-width: 100%; }
}

/* Bardzo wąskie ekrany (małe telefony) */
@media (max-width: 420px) {
  .hero h1 { font-size: 34px; }
  .stat-grid .v { font-size: 18px; }
  .shop-grid, .gallery-grid { grid-template-columns: 1fr; }
  .section-head h2, .cta-band h2 { font-size: 28px; }
}

/* ---- Pasek dni w panelu (tydzień wstecz + 4 tygodnie w przód) ---- */
.day-strip {
  display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 12px;
  margin-bottom: 14px; scroll-behavior: smooth; -webkit-overflow-scrolling: touch;
}
.day-strip::-webkit-scrollbar { height: 7px; }
.day-strip::-webkit-scrollbar-thumb { background: var(--line); border-radius: 6px; }
.day-chip {
  flex: 0 0 auto; min-width: 62px; display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 8px 10px; border: 1px solid var(--line); border-radius: var(--border-radius-md, 12px);
  background: var(--surface); color: var(--text); cursor: pointer; font-family: inherit;
  transition: border-color .15s, background .15s, transform .1s;
}
.day-chip:hover { border-color: var(--gold); transform: translateY(-1px); }
.day-chip.past { opacity: .55; }
.day-chip.today { border-color: var(--gold); }
.day-chip.active { background: var(--gold); border-color: var(--gold); color: #1a1305; }
.day-chip.active .dc-dot, .day-chip.active .dc-dow { color: #1a1305; }
.dc-dow { font-size: 11px; letter-spacing: .4px; text-transform: uppercase; color: var(--muted); }
.dc-num { font-size: 16px; font-weight: 600; }
.dc-dot { font-size: 10px; color: var(--gold); min-height: 13px; }

/* ---- Widok tygodnia w panelu (przełącznik Dzień/Tydzień) ---- */
.week-grid { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 10px; margin-bottom: 14px; }
.wk-col { flex: 1 1 0; min-width: 96px; display: flex; flex-direction: column; }
.wk-axis { flex: 0 0 46px; min-width: 46px; }
.wk-head { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 7px 4px;
  border: 1px solid var(--line); border-radius: 10px 10px 0 0; background: var(--surface); color: var(--text);
  font-size: 11px; text-transform: uppercase; letter-spacing: .4px; cursor: pointer; font-family: inherit; }
.wk-head b { font-size: 14px; }
.wk-head:hover { border-color: var(--gold); color: var(--gold); }
.wk-axis .wk-head { background: transparent; border: none; cursor: default; }
.wk-col.today .wk-head { border-color: var(--gold); color: var(--gold); }
.wk-col.past { opacity: .6; }
.wk-body { position: relative; border: 1px solid var(--line); border-top: none; border-radius: 0 0 10px 10px; background: var(--surface); }
.wk-axis .wk-body { border: none; background: transparent; }
.wk-axis-hour { position: absolute; right: 4px; font-size: 10px; color: var(--muted); transform: translateY(-50%); }
.wk-line { position: absolute; left: 0; right: 0; border-top: 1px dashed var(--line); opacity: .5; }
.wk-closed { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 11px; color: var(--muted); }
.wk-visit { position: absolute; left: 3px; right: 3px; background: var(--gold); color: #1a1305; border-radius: 6px;
  padding: 2px 5px; font-size: 10.5px; line-height: 1.25; overflow: hidden; cursor: default; }
.wk-visit.block { background: var(--surface-2); color: var(--muted); border: 1px dashed var(--line); }
.wkv-t { font-weight: 600; }

/* ---- Baner zaplanowanych przerw/urlopów (panel admina) ---- */
.vacation-notice { background: var(--surface-2); border: 1px solid var(--gold); border-radius: 10px;
  padding: 10px 14px; margin-bottom: 14px; font-size: 13px; color: var(--text); line-height: 2; }
.vacation-notice > i { color: var(--gold); }
.vac-chip { background: var(--surface); border: 1px solid var(--line); border-radius: 20px;
  padding: 4px 12px; font-size: 12px; color: var(--text); cursor: pointer; font-family: inherit; margin: 0 2px; }
.vac-chip:hover { border-color: var(--gold); color: var(--gold); }
