/* =====================================================================
   PAWSONAL.CARE — design system
   Brand: Forest #0F352E · Paw Clay #D47B67 · Cream #FAF7F2 · White
   Type : Jost (latin) + Anuphan (Thai)
   ===================================================================== */
:root {
  --forest: #0F352E;
  --forest-2: #17483F;
  --forest-3: #24604F;
  --forest-ink: #0A241F;
  --clay: #D47B67;
  --clay-2: #E39A88;
  --clay-ink: #A9533F;
  --clay-soft: #F8E6DF;
  --cream: #FAF7F2;
  --sand: #EFEAE2;
  --sand-2: #E6DFD3;
  --line: #E3DCCF;
  --line-2: #D9D2C6;
  --ink: #0F352E;
  --text: #22332E;
  --muted: #5F6C66;
  --muted-2: #8A948F;
  --sage: #7FA593;
  --sage-soft: #E2EDE6;
  --sky-soft: #E3EEF4;
  --sky: #3F7C9A;
  --amber-soft: #FBEFD7;
  --amber: #A86F12;
  --red-soft: #F9E1DE;
  --red: #B6412F;
  --white: #FFFFFF;
  /* chart categorical palette — validated (CVD/contrast) on light surface, fixed order */
  --c1: #00876A; --c2: #4F6FD0; --c3: #D9694B;

  --r-xs: 8px; --r-sm: 12px; --r: 18px; --r-lg: 24px; --r-xl: 32px;
  --sh-1: 0 1px 2px rgba(15,53,46,.06), 0 1px 1px rgba(15,53,46,.04);
  --sh-2: 0 6px 18px -6px rgba(15,53,46,.16), 0 2px 6px rgba(15,53,46,.06);
  --sh-3: 0 24px 48px -18px rgba(15,53,46,.32), 0 8px 18px -10px rgba(15,53,46,.18);
  --sh-clay: 0 12px 26px -10px rgba(212,123,103,.6);
  --ease: cubic-bezier(.22,1,.36,1);
  --ease-back: cubic-bezier(.34,1.56,.64,1);
  --font: 'Jost', 'Anuphan', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --top-h: 64px;
  --tabs-h: 68px;
  --safe-b: env(safe-area-inset-bottom, 0px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--font); font-size: 15px; line-height: 1.55; color: var(--text);
  background: var(--cream); -webkit-font-smoothing: antialiased; min-height: 100vh;
}
img { max-width: 100%; display: block; }
a { color: var(--forest); text-decoration: none; }
a:hover { color: var(--clay-ink); }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.25; margin: 0 0 .4em; font-weight: 600; letter-spacing: -.005em; }
h1 { font-size: clamp(24px, 3.2vw, 32px); }
h2 { font-size: clamp(20px, 2.4vw, 24px); }
h3 { font-size: 18px; }
p { margin: 0 0 1em; }
small { font-size: 12.5px; }
hr { border: 0; border-top: 1px dashed var(--line-2); margin: 18px 0; }
.muted { color: var(--muted); }
.muted-2 { color: var(--muted-2); }
.hide { display: none !important; }
.nowrap { white-space: nowrap; }
.mono { font-family: 'Jost', ui-monospace, monospace; letter-spacing: .04em; }
.eyebrow { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--clay-ink); font-weight: 600; }
.ico { flex: none; vertical-align: middle; }
::selection { background: var(--clay); color: #fff; }

/* View transitions between pages (Chromium) */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vtOut .22s var(--ease) both; }
::view-transition-new(root) { animation: vtIn .38s var(--ease) both; }
@keyframes vtOut { to { opacity: 0; transform: translateY(-6px); } }
@keyframes vtIn { from { opacity: 0; transform: translateY(10px); } }

/* Page progress */
.page-progress { position: fixed; inset: 0 auto auto 0; height: 3px; width: 0; z-index: 9999;
  background: linear-gradient(90deg, var(--clay), var(--clay-2)); box-shadow: 0 0 10px var(--clay); transition: width .4s var(--ease), opacity .3s; }
.page-progress.go { width: 75%; transition: width 2.5s cubic-bezier(.1,.7,.2,1); }
.page-progress.done { width: 100%; opacity: 0; }

/* ---------------------------------------------------------------- layout utils */
.container { width: min(1180px, 100% - 32px); margin-inline: auto; }
.stack { display: flex; flex-direction: column; gap: var(--g, 14px); }
.row { display: flex; align-items: center; gap: var(--g, 12px); }
.row.wrap { flex-wrap: wrap; }
.between { justify-content: space-between; }
.grow { flex: 1; min-width: 0; }
.grid { display: grid; gap: var(--g, 16px); }
.g-2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.g-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.g-4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
.g-auto { grid-template-columns: repeat(auto-fill, minmax(var(--min, 240px), 1fr)); }
@media (max-width: 900px) { .g-3, .g-4 { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 560px) { .g-2:not(.keep), .g-3, .g-4:not(.keep) { grid-template-columns: 1fr; } .g-4.keep { grid-template-columns: repeat(2,1fr); } }
.mt-0{margin-top:0}.mt-1{margin-top:8px}.mt-2{margin-top:16px}.mt-3{margin-top:24px}.mt-4{margin-top:36px}
.mb-0{margin-bottom:0}.mb-1{margin-bottom:8px}.mb-2{margin-bottom:16px}.mb-3{margin-bottom:24px}
.tc { text-align: center; } .tr { text-align: right; }

/* ---------------------------------------------------------------- buttons */
.btn {
  --bg: var(--white); --fg: var(--forest); --bd: var(--line-2);
  position: relative; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 20px; border-radius: 999px; border: 1px solid var(--bd); background: var(--bg); color: var(--fg);
  font: 500 15px/1 var(--font); cursor: pointer; white-space: nowrap; user-select: none;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .2s, color .2s, border-color .2s;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--sh-2); color: var(--fg); }
.btn:active { transform: translateY(0) scale(.97); }
.btn[disabled], .btn.is-loading { opacity: .6; pointer-events: none; }
.btn.is-loading::after { content: ''; width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; }
.btn-primary { --bg: var(--forest); --fg: #fff; --bd: var(--forest); }
.btn-primary:hover { --bg: var(--forest-2); }
.btn-clay { --bg: var(--clay); --fg: #fff; --bd: var(--clay); }
.btn-clay:hover { --bg: var(--clay-ink); box-shadow: var(--sh-clay); }
.btn-ghost { --bg: transparent; --bd: transparent; }
.btn-ghost:hover { --bg: var(--sand); box-shadow: none; }
.btn-soft { --bg: var(--sand); --bd: transparent; }
.btn-danger { --bg: var(--red-soft); --fg: var(--red); --bd: transparent; }
.btn-line { --bg: #06C755; --fg: #fff; --bd: #06C755; }
.btn-line:hover { --bg: #05b34c; box-shadow: 0 12px 26px -10px rgba(6,199,85,.6); }
.btn-sm { min-height: 34px; padding: 0 14px; font-size: 13.5px; gap: 6px; }
.btn-lg { min-height: 54px; padding: 0 28px; font-size: 16.5px; }
.btn-block { width: 100%; }
.btn-icon { width: 40px; min-height: 40px; padding: 0; }
.ripple { position: absolute; border-radius: 50%; transform: scale(0); background: currentColor; opacity: .25; animation: ripple .6s var(--ease) forwards; pointer-events: none; }
@keyframes ripple { to { transform: scale(4); opacity: 0; } }
.link-btn { background: none; border: 0; padding: 0; color: var(--clay-ink); font: 500 13px var(--font); cursor: pointer; }
.icon-btn { position: relative; display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; border: 0; background: transparent; color: var(--forest); cursor: pointer; transition: background .2s, transform .2s var(--ease-back); }
.icon-btn:hover { background: var(--sand); color: var(--forest); }
.icon-btn:active { transform: scale(.9); }
.dot-count { position: absolute; top: 3px; right: 1px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--clay); color: #fff; font: 600 11px/18px var(--font); text-align: center; border: 2px solid var(--white); }
.dot-count.bump { animation: bump .5s var(--ease-back); }
@keyframes bump { 30% { transform: scale(1.5); } }

/* ---------------------------------------------------------------- cards & surfaces */
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; box-shadow: var(--sh-1); }
.card.pad-0 { padding: 0; }
.card.lift { transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .3s; }
.card.lift:hover { transform: translateY(-4px); box-shadow: var(--sh-3); border-color: transparent; }
.card-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.card-h h3 { margin: 0; display: flex; align-items: center; gap: 8px; }
.card-forest { background: var(--forest); color: #E9F0EC; border-color: var(--forest); }
.card-forest h1, .card-forest h2, .card-forest h3 { color: #fff; }
.card-sand { background: var(--sand); border-color: transparent; box-shadow: none; }
.section-h { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin: 28px 0 14px; }
.section-h h2 { margin: 0; }

/* badges */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font: 500 12.5px/1.5 var(--font); white-space: nowrap; }
.badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge-ok { background: var(--sage-soft); color: #2C6B4F; }
.badge-warn { background: var(--amber-soft); color: var(--amber); }
.badge-info { background: var(--sky-soft); color: var(--sky); }
.badge-bad { background: var(--red-soft); color: var(--red); }
.badge-mute { background: var(--sand); color: var(--muted); }
.badge-live { background: var(--clay-soft); color: var(--clay-ink); }
.badge-live::before { animation: livePulse 1.4s ease-in-out infinite; }
@keyframes livePulse { 0%,100% { box-shadow: 0 0 0 0 rgba(212,123,103,.6); } 50% { box-shadow: 0 0 0 5px rgba(212,123,103,0); } }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 999px; background: var(--white); border: 1px solid var(--line); font-size: 14px; color: var(--forest); cursor: pointer; transition: all .25s var(--ease); white-space: nowrap; }
.chip:hover { border-color: var(--forest); }
.chip.on, input:checked + .chip { background: var(--forest); color: #fff; border-color: var(--forest); }
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 8px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }

/* avatars */
.ava { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; overflow: hidden; background: var(--forest); color: #fff; font-weight: 600; flex: none; }
.ava img { width: 100%; height: 100%; object-fit: cover; }
.ava-sm { width: 34px; height: 34px; font-size: 13px; }
.ava-lg { width: 84px; height: 84px; font-size: 30px; }
.pet-ava { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; overflow: hidden; background: var(--clay-soft); font-size: 26px; flex: none; }
.pet-ava img { width: 100%; height: 100%; object-fit: cover; }
.pet-ava.lg { width: 96px; height: 96px; border-radius: 28px; font-size: 48px; }
.pet-ava.sm { width: 38px; height: 38px; border-radius: 12px; font-size: 20px; }

/* ---------------------------------------------------------------- forms */
.field { display: flex; flex-direction: column; gap: 6px; }
.field > label, .label { font-size: 13.5px; font-weight: 500; color: var(--muted); }
.field .hint { font-size: 12.5px; color: var(--muted-2); }
.input, select.input, textarea.input {
  width: 100%; min-height: 46px; padding: 11px 14px; border-radius: var(--r-sm); border: 1.5px solid var(--line); background: var(--white);
  font: 400 15px/1.4 var(--font); color: var(--text); transition: border-color .2s, box-shadow .2s, background .2s; appearance: none;
}
select.input { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%230F352E' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 40px; }
textarea.input { min-height: 96px; resize: vertical; }
.input:focus { outline: none; border-color: var(--forest); box-shadow: 0 0 0 4px rgba(15,53,46,.1); }
.input::placeholder { color: var(--muted-2); }
.input-ico { position: relative; }
.input-ico .ico { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted-2); pointer-events: none; }
.input-ico .input { padding-left: 42px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px 16px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 600px) { .form-grid { grid-template-columns: 1fr; } }
.switch { position: relative; display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-size: 14.5px; }
.switch input { position: absolute; opacity: 0; }
.switch i { width: 44px; height: 26px; border-radius: 13px; background: var(--line-2); position: relative; transition: background .25s; flex: none; }
.switch i::after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: var(--sh-1); transition: transform .3s var(--ease-back); }
.switch input:checked + i { background: var(--forest); }
.switch input:checked + i::after { transform: translateX(18px); }
.dropzone { display: grid; place-items: center; gap: 6px; padding: 22px; border: 2px dashed var(--line-2); border-radius: var(--r); background: var(--cream); color: var(--muted); text-align: center; cursor: pointer; transition: all .25s var(--ease); position: relative; overflow: hidden; }
.dropzone:hover, .dropzone.drag { border-color: var(--clay); background: var(--clay-soft); color: var(--clay-ink); }
.dropzone input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.dropzone img.preview { max-height: 180px; border-radius: var(--r-sm); }

/* option cards (radio/checkbox styled) */
.opt { position: relative; display: block; cursor: pointer; }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt-body { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: var(--r); background: var(--white); border: 1.5px solid var(--line); transition: all .3s var(--ease); height: 100%; }
.opt:hover .opt-body { border-color: var(--forest-3); transform: translateY(-2px); box-shadow: var(--sh-2); }
.opt input:checked + .opt-body { border-color: var(--forest); background: linear-gradient(135deg, #fff, var(--sage-soft)); box-shadow: 0 0 0 4px rgba(15,53,46,.08), var(--sh-2); }
.opt input:checked + .opt-body .opt-check { background: var(--forest); border-color: var(--forest); color: #fff; transform: scale(1); }
.opt input:checked + .opt-body .opt-check svg { animation: pop .4s var(--ease-back); }
.opt-check { margin-left: auto; width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid var(--line-2); display: grid; place-items: center; color: transparent; transition: all .25s; flex: none; }
.opt-ico { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--sand); color: var(--forest); flex: none; font-size: 24px; }
.opt-title { font-weight: 600; color: var(--ink); }
.opt-sub { font-size: 13px; color: var(--muted); }

/* ---------------------------------------------------------------- tables */
.table-wrap { overflow-x: auto; border-radius: var(--r); border: 1px solid var(--line); background: var(--white); }
table.tbl { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.tbl th { text-align: left; font-weight: 500; font-size: 12.5px; color: var(--muted); letter-spacing: .04em; padding: 12px 16px; background: var(--cream); border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl td { padding: 13px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tbody tr { transition: background .2s; }
.tbl tbody tr:hover { background: #FCFAF6; }
.tbl tbody tr.clickable { cursor: pointer; }
.cell-main { display: flex; align-items: center; gap: 12px; }
.cell-main b { display: block; color: var(--ink); font-weight: 500; }
.cell-main small { color: var(--muted); }

/* ---------------------------------------------------------------- empty / skeleton */
.empty-state { text-align: center; padding: 40px 20px; color: var(--muted); }
.empty-state.big { padding: 80px 20px; }
.empty-ico { width: 84px; height: 84px; margin: 0 auto 14px; border-radius: 28px; display: grid; place-items: center; background: var(--clay-soft); color: var(--clay-ink); animation: float 4s ease-in-out infinite; }
.skeleton-line { height: 54px; border-radius: 12px; margin: 10px 14px; background: linear-gradient(90deg, var(--sand) 25%, #f6f2ea 50%, var(--sand) 75%); background-size: 200% 100%; animation: shimmer 1.3s infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---------------------------------------------------------------- animations */
html.js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: calc(var(--i, 0) * 70ms); }
html.js [data-reveal="left"] { transform: translateX(-24px); }
html.js [data-reveal="zoom"] { transform: scale(.94); }
html.js [data-reveal].in { opacity: 1; transform: none; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes pop { 0% { transform: scale(.4); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes wiggle { 0%,100% { transform: rotate(0); } 25% { transform: rotate(-8deg); } 75% { transform: rotate(8deg); } }
@keyframes pawStep { 0% { opacity: 0; transform: scale(.5) rotate(var(--r,0deg)); } 20% { opacity: .9; transform: scale(1) rotate(var(--r,0deg)); } 70% { opacity: .5; } 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  html.js [data-reveal] { opacity: 1; transform: none; }
}

/* ---------------------------------------------------------------- toasts & dropdowns */
.toast-stack { position: fixed; top: 16px; right: 16px; z-index: 3000; display: flex; flex-direction: column; gap: 10px; pointer-events: none; }
.toast { pointer-events: auto; display: flex; align-items: flex-start; gap: 12px; min-width: 260px; max-width: 360px; padding: 14px 16px; border-radius: 16px; background: var(--forest); color: #F1F5F2; box-shadow: var(--sh-3); animation: toastIn .5s var(--ease-back) both; }
.toast.out { animation: toastOut .35s var(--ease) forwards; }
.toast .t-ic { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.12); flex: none; }
.toast.success .t-ic { background: #3E8E6A; } .toast.error .t-ic { background: var(--red); } .toast.warning .t-ic { background: var(--amber); }
.toast b { display: block; color: #fff; font-weight: 500; }
@keyframes toastIn { from { opacity: 0; transform: translateX(40px) scale(.9); } }
@keyframes toastOut { to { opacity: 0; transform: translateX(40px); } }
@media (max-width: 600px) { .toast-stack { left: 12px; right: 12px; top: 74px; } .toast { max-width: none; } }

.menu-wrap { position: relative; }
.dropdown { position: absolute; right: 0; top: calc(100% + 10px); min-width: 250px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--sh-3); padding: 8px; z-index: 200; opacity: 0; visibility: hidden; transform: translateY(-8px) scale(.97); transform-origin: top right; transition: all .25s var(--ease); }
.dropdown.open { opacity: 1; visibility: visible; transform: none; }
.dropdown a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; color: var(--text); font-size: 14.5px; }
.dropdown a:hover { background: var(--cream); color: var(--forest); }
.dropdown a.danger { color: var(--red); }
.dd-head { display: flex; gap: 12px; align-items: center; padding: 10px 10px 14px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.dd-head b { display: block; color: var(--ink); }
.dd-head small { display: flex; gap: 4px; align-items: center; color: #06A548; }
.ava-btn { border: 0; background: none; padding: 0; cursor: pointer; border-radius: 50%; transition: transform .2s var(--ease-back); }
.ava-btn:hover { transform: scale(1.06); }
.ava-btn .ava { box-shadow: 0 0 0 2px var(--white), 0 0 0 4px var(--clay-soft); }

.notif-panel { position: fixed; top: calc(var(--top-h) + 6px); right: 16px; width: min(380px, calc(100vw - 24px)); max-height: 70vh; display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-3); z-index: 400; opacity: 0; visibility: hidden; transform: translateY(-10px) scale(.98); transform-origin: top right; transition: all .3s var(--ease); }
.notif-panel.open { opacity: 1; visibility: visible; transform: none; }
.np-head { display: flex; justify-content: space-between; align-items: center; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.np-list { overflow-y: auto; padding: 6px; }
.np-item { display: flex; gap: 12px; padding: 12px; border-radius: 14px; color: var(--text); animation: fadeUp .4s var(--ease) both; animation-delay: calc(var(--i,0) * 40ms); }
.np-item:hover { background: var(--cream); color: var(--text); }
.np-item.unread { background: linear-gradient(90deg, var(--clay-soft), transparent 70%); }
.np-ic { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--sand); color: var(--forest); flex: none; }
.np-item b { display: block; font-weight: 500; font-size: 14px; color: var(--ink); }
.np-item small { color: var(--muted); display: block; }

/* ---------------------------------------------------------------- modal / drawer */
.modal { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 16px; visibility: hidden; }
.modal.open { visibility: visible; }
.modal-scrim { position: absolute; inset: 0; background: rgba(10,36,31,.45); backdrop-filter: blur(4px); opacity: 0; transition: opacity .3s; }
.modal.open .modal-scrim { opacity: 1; }
.modal-box { position: relative; width: min(var(--w, 560px), 100%); max-height: calc(100vh - 32px); overflow-y: auto; background: var(--white); border-radius: var(--r-lg); box-shadow: var(--sh-3); padding: 24px; opacity: 0; transform: translateY(24px) scale(.96); transition: all .4s var(--ease); }
.modal.open .modal-box { opacity: 1; transform: none; }
.modal-close { position: absolute; top: 14px; right: 14px; }
.drawer { place-items: stretch end; padding: 0; }
.drawer .modal-box { width: min(var(--w, 520px), 100%); height: 100vh; max-height: none; border-radius: var(--r-lg) 0 0 var(--r-lg); transform: translateX(40px); }
@media (max-width: 640px) {
  .modal:not(.drawer) { place-items: end stretch; padding: 0; }
  .modal:not(.drawer) .modal-box { border-radius: var(--r-lg) var(--r-lg) 0 0; transform: translateY(100%); max-height: 92vh; padding-bottom: calc(24px + var(--safe-b)); }
  .modal.open:not(.drawer) .modal-box { transform: none; }
  .drawer .modal-box { border-radius: 0; }
}

/* ---------------------------------------------------------------- USER AREA */
.area-user { padding-bottom: calc(var(--tabs-h) + var(--safe-b) + 12px); }
.u-top { position: sticky; top: 0; z-index: 300; background: rgba(250,247,242,.82); backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px); border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s; }
.u-top.scrolled { border-color: var(--line); box-shadow: 0 6px 20px -16px rgba(15,53,46,.4); }
.u-top-in { width: min(1180px, 100% - 24px); margin: 0 auto; height: var(--top-h); display: flex; align-items: center; gap: 10px; }
.brand { display: flex; align-items: center; gap: 10px; flex: none; }
.brand-mark { height: 40px; width: auto; transition: transform .5s var(--ease-back); }
.brand:hover .brand-mark { transform: rotate(-8deg) scale(1.06); }
.brand-word { height: 20px; width: auto; }
.u-desk-nav { display: none; flex: 1; justify-content: center; gap: 2px; }
.u-desk-nav a { position: relative; display: flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 999px; font-size: 14px; color: var(--muted); transition: all .25s; }
.u-desk-nav a:hover { color: var(--forest); background: var(--sand); }
.u-desk-nav a.on { color: #fff; background: var(--forest); }
.u-top-actions { margin-left: auto; display: flex; align-items: center; gap: 2px; }
@media (min-width: 1100px) { .u-desk-nav { display: flex; } .u-desk-nav a span { display: inline; } }
@media (min-width: 1100px) and (max-width: 1260px) { .u-desk-nav a .ico { display: none; } }
@media (max-width: 420px) { .brand-word { height: 16px; } .brand-mark { height: 34px; } }
.u-main { width: min(1180px, 100% - 32px); margin: 0 auto; padding: 18px 0 30px; animation: fadeUp .5s var(--ease) backwards; }

.u-tabs { position: fixed; left: 12px; right: 12px; bottom: calc(10px + var(--safe-b)); z-index: 300; height: var(--tabs-h); display: grid; grid-template-columns: repeat(5, 1fr); align-items: center; background: rgba(15,53,46,.94); backdrop-filter: blur(16px); border-radius: 24px; box-shadow: var(--sh-3); padding: 0 6px; max-width: 560px; margin: 0 auto; }
.u-tabs a { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; color: rgba(233,240,236,.62); font-size: 11.5px; transition: color .3s; }
.u-tabs a .t-ico { display: grid; place-items: center; transition: transform .35s var(--ease-back); }
.u-tabs a.on { color: #fff; }
.u-tabs a.on .t-ico { transform: translateY(-2px) scale(1.08); }
.u-tabs a.on::after { content: ''; position: absolute; bottom: -8px; width: 5px; height: 5px; border-radius: 50%; background: var(--clay); animation: pop .4s var(--ease-back); }
.u-tabs a.fab .t-ico { width: 56px; height: 56px; margin-top: -30px; border-radius: 20px; background: var(--clay); color: #fff; box-shadow: var(--sh-clay), 0 0 0 5px var(--cream); transform: rotate(45deg); }
.u-tabs a.fab .t-ico svg { transform: rotate(-45deg); }
.u-tabs a.fab:hover .t-ico { transform: rotate(135deg); }
.u-tabs a.fab .t-lb { color: #fff; }
@media (min-width: 1100px) { .u-tabs { display: none; } .area-user { padding-bottom: 30px; } }
.chat-fab { position: fixed; right: 18px; bottom: calc(var(--tabs-h) + 26px + var(--safe-b)); z-index: 290; display: flex; align-items: center; gap: 8px; height: 50px; padding: 0 14px; border-radius: 25px; background: var(--white); color: var(--forest); box-shadow: var(--sh-3); border: 1px solid var(--line); font-weight: 500; transition: all .35s var(--ease); }
.chat-fab span { max-width: 0; overflow: hidden; white-space: nowrap; transition: max-width .4s var(--ease); }
.chat-fab:hover span { max-width: 120px; }
.chat-fab::before { content: ''; position: absolute; top: 8px; left: 31px; width: 9px; height: 9px; border-radius: 50%; background: #3BB273; box-shadow: 0 0 0 2px #fff; }
@media (min-width: 1100px) { .chat-fab { bottom: 24px; } .chat-fab span { max-width: 120px; } }

/* hero greeting */
.hello { position: relative; overflow: hidden; border-radius: var(--r-xl); padding: 26px; background: var(--forest); color: #E3ECE7; isolation: isolate; }
.hello h1 { color: #fff; margin: 4px 0 6px; }
.hello .eyebrow { color: var(--clay-2); }
.hello::before { content: ''; position: absolute; width: 380px; height: 380px; right: -120px; top: -160px; border-radius: 50%; background: radial-gradient(circle, rgba(212,123,103,.55), transparent 65%); z-index: -1; animation: float 7s ease-in-out infinite; }
.hello-mark { position: absolute; right: 12px; bottom: -14px; height: 150px; opacity: .95; z-index: -1; animation: float 6s ease-in-out infinite; }
@media (max-width: 600px) { .hello-mark { height: 110px; opacity: .3; } }
.hello-stats { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.hello-stats div { padding: 8px 14px; border-radius: 14px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.1); font-size: 13px; }
.hello-stats b { color: #fff; font-size: 18px; margin-right: 4px; }

/* feature tiles */
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; }
@media (min-width: 900px) { .tiles { grid-template-columns: repeat(6, minmax(0,1fr)); } }
.tile { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 10px; padding: 16px 14px; border-radius: var(--r); background: var(--white); border: 1px solid var(--line); color: var(--ink); transition: transform .4s var(--ease), box-shadow .4s var(--ease); transform-style: preserve-3d; }
.tile:hover { box-shadow: var(--sh-3); color: var(--ink); }
.tile .ti { width: 46px; height: 46px; border-radius: 15px; display: grid; place-items: center; background: var(--tone-bg, var(--sand)); color: var(--tone, var(--forest)); transition: transform .4s var(--ease-back); }
.tile:hover .ti { transform: rotate(-10deg) scale(1.1); }
.tile b { font-weight: 600; font-size: 14.5px; line-height: 1.25; }
.tile small { color: var(--muted); line-height: 1.35; display: block; }
.tile::after { content: ''; position: absolute; right: -24px; bottom: -24px; width: 70px; height: 70px; border-radius: 50%; background: var(--tone-bg, var(--sand)); opacity: .6; transition: transform .5s var(--ease); }
.tile:hover::after { transform: scale(2.4); }
.tile > * { position: relative; z-index: 1; }
.tone-forest { --tone: var(--forest); --tone-bg: var(--sage-soft); }
.tone-clay { --tone: var(--clay-ink); --tone-bg: var(--clay-soft); }
.tone-sage { --tone: #2C6B4F; --tone-bg: #E5F0E9; }
.tone-sky { --tone: var(--sky); --tone-bg: var(--sky-soft); }
.tone-amber { --tone: var(--amber); --tone-bg: var(--amber-soft); }
.tone-ink { --tone: #fff; --tone-bg: var(--forest); }

/* list items */
.list { display: flex; flex-direction: column; gap: 10px; }
.li { display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: var(--r); background: var(--white); border: 1px solid var(--line); color: var(--text); transition: all .3s var(--ease); }
a.li:hover, .li.clickable:hover { transform: translateX(4px); border-color: var(--line-2); box-shadow: var(--sh-2); color: var(--text); }
.li-main { flex: 1; min-width: 0; }
.li-main b { display: block; color: var(--ink); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.li-main small { color: var(--muted); display: block; }
.li-ico { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--tone-bg, var(--sand)); color: var(--tone, var(--forest)); flex: none; }

/* progress bar */
.bar { height: 8px; border-radius: 4px; background: var(--sand); overflow: hidden; }
.bar i { display: block; height: 100%; width: var(--p, 0%); border-radius: 4px; background: linear-gradient(90deg, var(--forest-3), var(--clay)); transition: width 1.2s var(--ease); }
html.js .bar i { width: 0; }
html.js .bar.in i { width: var(--p, 0%); }

/* tabs (segmented) */
.seg { position: relative; display: inline-flex; padding: 4px; border-radius: 999px; background: var(--sand); gap: 2px; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.seg a, .seg button { position: relative; z-index: 1; border: 0; background: none; padding: 9px 16px; border-radius: 999px; color: var(--muted); font: 500 14px var(--font); cursor: pointer; white-space: nowrap; transition: color .3s; display: inline-flex; align-items: center; gap: 6px; }
.seg .on { color: var(--forest); }
.seg-ind { position: absolute; top: 4px; bottom: 4px; border-radius: 999px; background: var(--white); box-shadow: var(--sh-2); transition: left .45s var(--ease), width .45s var(--ease); z-index: 0; }
.seg .count { font-size: 11.5px; background: var(--clay); color: #fff; border-radius: 9px; padding: 0 6px; }

/* ---------------------------------------------------------------- booking wizard */
.wizard { max-width: 860px; margin: 0 auto; }
.steps-bar { display: flex; align-items: center; gap: 0; margin: 4px 0 22px; }
.sb-step { display: flex; align-items: center; gap: 8px; color: var(--muted-2); font-size: 13.5px; font-weight: 500; flex: none; }
.sb-dot { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--sand); color: var(--muted); font-weight: 600; transition: all .4s var(--ease-back); }
.sb-line { flex: 1; height: 3px; margin: 0 8px; border-radius: 2px; background: var(--sand); position: relative; overflow: hidden; }
.sb-line::after { content: ''; position: absolute; inset: 0; background: var(--forest); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease); }
.sb-step.done .sb-dot { background: var(--forest); color: #fff; }
.sb-step.cur .sb-dot { background: var(--clay); color: #fff; transform: scale(1.12); box-shadow: 0 0 0 6px var(--clay-soft); }
.sb-step.cur, .sb-step.done { color: var(--ink); }
.sb-line.done::after { transform: scaleX(1); }
@media (max-width: 640px) { .sb-step span:not(.sb-dot) { display: none; } .sb-step.cur span:not(.sb-dot) { display: inline; } .sb-line { margin: 0 4px; } }
.wz-panel { display: none; }
.wz-panel.on { display: block; animation: wzIn .5s var(--ease) both; }
.wz-panel.on.back { animation-name: wzInBack; }
@keyframes wzIn { from { opacity: 0; transform: translateX(30px); } }
@keyframes wzInBack { from { opacity: 0; transform: translateX(-30px); } }
.wz-nav { position: sticky; bottom: calc(var(--tabs-h) + var(--safe-b) + 16px); display: flex; gap: 10px; justify-content: space-between; align-items: center; margin-top: 22px; padding: 12px; border-radius: var(--r-lg); background: rgba(255,255,255,.9); backdrop-filter: blur(10px); border: 1px solid var(--line); box-shadow: var(--sh-2); z-index: 10; }
@media (min-width: 1100px) { .wz-nav { bottom: 16px; } }
.wz-total { font-size: 13px; color: var(--muted); }
.wz-total b { display: block; font-size: 20px; color: var(--ink); }
.svc-type { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
@media (max-width: 640px) { .svc-type { grid-template-columns: 1fr; } }
.svc-type .opt-body { flex-direction: column; align-items: flex-start; padding: 20px; min-height: 170px; }
.svc-type .opt-ico { width: 58px; height: 58px; border-radius: 18px; }
.svc-type .opt-check { position: absolute; top: 16px; right: 16px; }
.date-strip { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 10px; scrollbar-width: thin; }
.date-strip .opt-body { flex-direction: column; gap: 0; align-items: center; justify-content: center; width: 68px; padding: 10px 6px; }
.date-strip .d-w { font-size: 12px; color: var(--muted); }
.date-strip .d-d { font-size: 22px; font-weight: 600; color: var(--ink); }
.date-strip .d-m { font-size: 12px; color: var(--muted); }
.time-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(86px, 1fr)); gap: 8px; }
.time-grid .opt-body { justify-content: center; padding: 10px; font-weight: 500; }
.summary-row { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.summary-row:last-child { border: 0; }
.summary-row span { color: var(--muted); }
.summary-row b { color: var(--ink); font-weight: 500; text-align: right; }
.success-burst { text-align: center; padding: 30px 10px; }
.success-ring { width: 110px; height: 110px; margin: 0 auto 18px; border-radius: 50%; display: grid; place-items: center; background: var(--forest); color: #fff; animation: pop .6s var(--ease-back) both; box-shadow: 0 0 0 0 rgba(15,53,46,.3); position: relative; }
.success-ring::before, .success-ring::after { content: ''; position: absolute; inset: -10px; border-radius: 50%; border: 2px solid var(--clay); animation: ringOut 1.8s var(--ease) infinite; }
.success-ring::after { animation-delay: .6s; }
@keyframes ringOut { from { transform: scale(.85); opacity: 1; } to { transform: scale(1.5); opacity: 0; } }
.success-ring svg path { stroke-dasharray: 30; stroke-dashoffset: 30; animation: draw .6s .35s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* ---------------------------------------------------------------- Pet Passport */
.pets-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.passport { perspective: 1200px; height: 340px; cursor: pointer; }
.pp-inner { position: relative; width: 100%; height: 100%; transition: transform .9s var(--ease); transform-style: preserve-3d; }
.passport.flip .pp-inner { transform: rotateY(180deg); }
.pp-face { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sh-2); }
.pp-front { background: var(--forest); color: #E3ECE7; padding: 22px; display: flex; flex-direction: column; }
.pp-front::before { content: ''; position: absolute; inset: 10px; border: 1px solid rgba(250,247,242,.18); border-radius: calc(var(--r-lg) - 8px); pointer-events: none; }
.pp-front .pp-tag { font-size: 11px; letter-spacing: .3em; color: var(--clay-2); }
.pp-front .pp-photo { width: 120px; height: 120px; margin: 18px auto 12px; border-radius: 50%; overflow: hidden; border: 3px solid var(--clay); display: grid; place-items: center; font-size: 60px; background: rgba(255,255,255,.06); box-shadow: 0 0 0 8px rgba(212,123,103,.12); }
.pp-front .pp-photo img { width: 100%; height: 100%; object-fit: cover; }
.pp-front h3 { color: #fff; text-align: center; font-size: 24px; margin: 0; }
.pp-front .pp-sub { text-align: center; font-size: 13.5px; opacity: .8; }
.pp-front .pp-no { margin-top: auto; display: flex; justify-content: space-between; font-size: 12px; letter-spacing: .12em; opacity: .85; }
.pp-front .pp-mark { position: absolute; right: -30px; bottom: -40px; width: 160px; opacity: .08; }
.pp-back { transform: rotateY(180deg); background: var(--white); border: 1px solid var(--line); padding: 20px; display: flex; flex-direction: column; gap: 6px; }
.pp-back dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; margin: 0; font-size: 13.5px; }
.pp-back dt { color: var(--muted); }
.pp-back dd { margin: 0; color: var(--ink); font-weight: 500; text-align: right; }
.pp-back .pp-actions { margin-top: auto; display: flex; gap: 8px; }
.pp-hint { position: absolute; top: 18px; right: 18px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.1); color: #fff; animation: wiggle 2.4s ease-in-out infinite; }
.pp-add { height: 340px; border: 2px dashed var(--line-2); border-radius: var(--r-lg); display: grid; place-items: center; text-align: center; color: var(--muted); transition: all .3s var(--ease); background: transparent; }
.pp-add:hover { border-color: var(--clay); color: var(--clay-ink); background: var(--clay-soft); }
.pp-add .ic { width: 64px; height: 64px; margin: 0 auto 10px; border-radius: 22px; display: grid; place-items: center; background: var(--white); box-shadow: var(--sh-2); transition: transform .4s var(--ease-back); }
.pp-add:hover .ic { transform: rotate(90deg) scale(1.1); }

.pet-hero { display: grid; grid-template-columns: auto 1fr auto; gap: 20px; align-items: center; padding: 24px; border-radius: var(--r-xl); background: linear-gradient(135deg, var(--forest), var(--forest-2)); color: #E3ECE7; position: relative; overflow: hidden; }
.pet-hero h1 { color: #fff; margin: 0; }
.pet-hero .pet-ava.lg { box-shadow: 0 0 0 4px var(--clay), 0 0 0 10px rgba(212,123,103,.2); animation: pop .6s var(--ease-back); }
.pet-hero .pp-mark { position: absolute; right: -20px; bottom: -50px; width: 200px; opacity: .07; }
@media (max-width: 640px) { .pet-hero { grid-template-columns: auto 1fr; } .pet-hero .ph-actions { grid-column: 1 / -1; } }
.kv { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.kv div { padding: 12px 14px; border-radius: 14px; background: var(--cream); }
.kv span { display: block; font-size: 12px; color: var(--muted); }
.kv b { color: var(--ink); font-weight: 500; }
.hr-timeline { position: relative; padding-left: 28px; }
.hr-timeline::before { content: ''; position: absolute; left: 11px; top: 6px; bottom: 6px; width: 2px; background: linear-gradient(var(--line-2), transparent); }
.hr-item { position: relative; padding: 0 0 18px; }
.hr-item .dot { position: absolute; left: -28px; top: 2px; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--white); border: 2px solid var(--tone, var(--forest)); color: var(--tone, var(--forest)); }
.hr-item .hr-card { padding: 12px 14px; border-radius: 14px; background: var(--white); border: 1px solid var(--line); transition: all .3s var(--ease); }
.hr-item .hr-card:hover { box-shadow: var(--sh-2); transform: translateX(3px); }
.due { display: inline-flex; gap: 4px; align-items: center; font-size: 12.5px; padding: 2px 8px; border-radius: 8px; background: var(--amber-soft); color: var(--amber); }
.due.over { background: var(--red-soft); color: var(--red); }

/* ---------------------------------------------------------------- Track */
.track-card { position: relative; overflow: hidden; }
.track-head { display: flex; gap: 14px; align-items: center; }
.track-map { position: relative; height: 150px; margin: 16px 0; border-radius: var(--r); overflow: hidden; background:
  radial-gradient(circle at 20% 30%, rgba(127,165,147,.25) 0 40px, transparent 41px),
  radial-gradient(circle at 75% 70%, rgba(212,123,103,.18) 0 50px, transparent 51px),
  repeating-linear-gradient(0deg, transparent 0 28px, rgba(15,53,46,.05) 28px 29px),
  repeating-linear-gradient(90deg, transparent 0 28px, rgba(15,53,46,.05) 28px 29px), var(--cream); }
.track-map svg.route { position: absolute; inset: 0; width: 100%; height: 100%; }
.track-map .route-bg { stroke: var(--line-2); stroke-width: 6; fill: none; stroke-linecap: round; }
.track-map .route-fg { stroke: var(--forest); stroke-width: 6; fill: none; stroke-linecap: round; stroke-dasharray: 1000; stroke-dashoffset: 1000; transition: stroke-dashoffset 1.8s var(--ease); }
.track-map .pin-a, .track-map .pin-b { position: absolute; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: #fff; box-shadow: var(--sh-2); }
.track-map .pin-a { left: 6%; top: 62%; background: var(--forest); }
.track-map .pin-b { right: 6%; top: 18%; background: var(--clay); }
.track-map .mover { position: absolute; left: 0; top: 0; width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 50%; background: var(--white); color: var(--forest); display: grid; place-items: center; box-shadow: var(--sh-3); transition: left 1.8s var(--ease), top 1.8s var(--ease); z-index: 2; }
.track-map .mover::before { content: ''; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid var(--clay); animation: ringOut 1.6s var(--ease) infinite; }
.tl { position: relative; margin: 6px 0 0; padding: 0; list-style: none; }
.tl li { position: relative; display: flex; gap: 14px; padding-bottom: 18px; }
.tl li::before { content: ''; position: absolute; left: 17px; top: 38px; bottom: 2px; width: 2px; background: var(--line); }
.tl li:last-child::before { display: none; }
.tl li.done::before { background: var(--forest); }
.tl .tl-dot { position: relative; z-index: 1; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--sand); color: var(--muted-2); flex: none; transition: all .5s var(--ease-back); }
.tl li.done .tl-dot { background: var(--forest); color: #fff; }
.tl li.cur .tl-dot { background: var(--clay); color: #fff; box-shadow: 0 0 0 6px var(--clay-soft); animation: curPulse 2s ease-in-out infinite; }
@keyframes curPulse { 50% { box-shadow: 0 0 0 10px rgba(248,230,223,.4); } }
.tl .tl-body b { display: block; color: var(--ink); font-weight: 500; }
.tl li:not(.done):not(.cur) .tl-body b { color: var(--muted-2); font-weight: 400; }
.tl .tl-body small { color: var(--muted); display: block; }
.tl .tl-note { margin-top: 4px; padding: 8px 12px; border-radius: 10px; background: var(--cream); font-size: 13.5px; }
html.js .tl li { opacity: 0; transform: translateX(-10px); transition: all .5s var(--ease); transition-delay: calc(var(--i) * 90ms); }
html.js .tl.in li { opacity: 1; transform: none; }
.live-dot { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: #2C6B4F; }
.live-dot::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: #3BB273; animation: livePulse 1.4s infinite; box-shadow: 0 0 0 0 rgba(59,178,115,.5); }
.staff-card { display: flex; gap: 12px; align-items: center; padding: 12px; border-radius: 14px; background: var(--cream); }

/* ---------------------------------------------------------------- Shop */
.shop-hero { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 26px; border-radius: var(--r-xl); background: linear-gradient(120deg, var(--clay) 0%, #E2937F 100%); color: #fff; }
.shop-hero h1 { color: #fff; margin: 0; }
.shop-hero .emj { font-size: 64px; animation: float 4s ease-in-out infinite; }
.products { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; }
.prod { position: relative; display: flex; flex-direction: column; border-radius: var(--r); background: var(--white); border: 1px solid var(--line); overflow: hidden; transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.prod:hover { transform: translateY(-5px); box-shadow: var(--sh-3); }
.prod-img { aspect-ratio: 1; display: grid; place-items: center; font-size: 64px; background: radial-gradient(circle at 50% 60%, #fff 0 30%, var(--bgc, var(--sand)) 70%); overflow: hidden; }
.prod-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.prod-img .emj { transition: transform .5s var(--ease-back); }
.prod:hover .prod-img .emj { transform: scale(1.18) rotate(-6deg); }
.prod:hover .prod-img img { transform: scale(1.06); }
.prod-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.prod-body b { font-weight: 500; color: var(--ink); line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.7em; }
.prod-body small { color: var(--muted); }
.prod-price { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 6px; }
.prod-price b { font-size: 18px; color: var(--forest); min-height: 0; }
.prod-price s { font-size: 12.5px; color: var(--muted-2); margin-left: 4px; }
.add-btn { width: 38px; height: 38px; border-radius: 12px; border: 0; background: var(--forest); color: #fff; display: grid; place-items: center; cursor: pointer; transition: all .3s var(--ease-back); }
.add-btn:hover { background: var(--clay); transform: rotate(90deg) scale(1.08); }
.add-btn.added { background: #3E8E6A; transform: scale(1.1); }
.prod .ribbon { position: absolute; top: 10px; left: 10px; padding: 3px 9px; border-radius: 8px; background: var(--clay); color: #fff; font-size: 12px; font-weight: 600; z-index: 1; }
.fly { position: fixed; z-index: 5000; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--clay); color: #fff; font-size: 24px; pointer-events: none; box-shadow: var(--sh-3); }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; background: var(--white); }
.qty button { width: 34px; height: 34px; border: 0; background: none; cursor: pointer; color: var(--forest); display: grid; place-items: center; }
.qty button:hover { background: var(--sand); }
.qty input { width: 38px; text-align: center; border: 0; font: 500 15px var(--font); color: var(--ink); background: none; }
.cart-item { display: flex; gap: 14px; align-items: center; padding: 14px; border-radius: var(--r); background: var(--white); border: 1px solid var(--line); transition: all .4s var(--ease); }
.cart-item.removing { opacity: 0; transform: translateX(60px); height: 0; padding: 0; margin: -5px 0; border-width: 0; }
.cart-item .prod-img { width: 72px; height: 72px; border-radius: 14px; font-size: 36px; flex: none; }
.sticky-side { position: sticky; top: calc(var(--top-h) + 16px); }

/* ---------------------------------------------------------------- receipts */
.receipt { max-width: 720px; margin: 0 auto; background: var(--white); border-radius: var(--r-lg); box-shadow: var(--sh-3); overflow: hidden; }
.rc-head { padding: 28px; background: var(--forest); color: #E3ECE7; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.rc-head img { height: 64px; }
.rc-head h2 { color: #fff; margin: 0; letter-spacing: .06em; }
.rc-body { padding: 28px; }
.rc-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 20px; font-size: 14px; }
.rc-meta span { color: var(--muted); display: block; font-size: 12.5px; }
.rc-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.rc-table th { text-align: left; color: var(--muted); font-weight: 500; font-size: 12.5px; border-bottom: 2px solid var(--forest); padding: 8px 4px; }
.rc-table td { padding: 10px 4px; border-bottom: 1px dashed var(--line-2); }
.rc-total { margin-left: auto; width: min(300px, 100%); margin-top: 14px; }
.rc-total div { display: flex; justify-content: space-between; padding: 6px 0; }
.rc-total .grand { border-top: 2px solid var(--forest); margin-top: 6px; padding-top: 10px; font-size: 20px; font-weight: 600; color: var(--forest); }
.rc-stamp { display: inline-block; padding: 6px 16px; border: 3px solid #3E8E6A; color: #3E8E6A; border-radius: 10px; font-weight: 700; letter-spacing: .2em; transform: rotate(-8deg); animation: stamp .6s .3s var(--ease-back) both; }
.rc-stamp.unpaid { border-color: var(--amber); color: var(--amber); }
@keyframes stamp { from { opacity: 0; transform: rotate(-8deg) scale(2.2); } }
.rc-foot { padding: 18px 28px; background: var(--cream); font-size: 13px; color: var(--muted); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
@media print {
  body { background: #fff; }
  .u-top, .u-tabs, .chat-fab, .no-print, .toast-stack, .s-side, .s-top { display: none !important; }
  .u-main { padding: 0; width: 100%; }
  .receipt { box-shadow: none; border: 1px solid #ccc; }
  .rc-head { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* ---------------------------------------------------------------- Chat */
.chat-shell { display: grid; grid-template-columns: 330px 1fr; height: calc(100vh - var(--top-h) - 60px); min-height: 520px; border-radius: var(--r-lg); overflow: hidden; background: var(--white); border: 1px solid var(--line); box-shadow: var(--sh-2); }
.area-user .chat-shell { height: calc(100vh - var(--top-h) - var(--tabs-h) - 60px); }
@media (min-width: 1100px) { .area-user .chat-shell { height: calc(100vh - var(--top-h) - 56px); } }
.chat-list { border-right: 1px solid var(--line); display: flex; flex-direction: column; min-height: 0; background: var(--cream); }
.chat-list-h { padding: 16px; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.chat-threads { overflow-y: auto; flex: 1; padding: 8px; }
.thread { display: flex; gap: 12px; padding: 12px; border-radius: 14px; cursor: pointer; color: var(--text); transition: background .2s; position: relative; }
.thread:hover { background: var(--white); color: var(--text); }
.thread.on { background: var(--white); box-shadow: var(--sh-2); }
.thread.on::before { content: ''; position: absolute; left: 0; top: 14px; bottom: 14px; width: 3px; border-radius: 2px; background: var(--clay); }
.thread-main { flex: 1; min-width: 0; }
.thread-main b { display: flex; justify-content: space-between; gap: 6px; font-weight: 500; color: var(--ink); }
.thread-main b span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.thread-main b time { font-weight: 400; font-size: 11.5px; color: var(--muted-2); flex: none; }
.thread-main small { display: block; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.thread .unread { min-width: 20px; height: 20px; border-radius: 10px; background: var(--clay); color: #fff; font-size: 11.5px; display: grid; place-items: center; padding: 0 6px; align-self: center; }
.chat-main { display: flex; flex-direction: column; min-height: 0; min-width: 0; }
.chat-head { display: flex; gap: 12px; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.chat-head b { display: block; color: var(--ink); }
.chat-msgs { flex: 1; overflow-y: auto; padding: 20px; display: flex; flex-direction: column; gap: 6px; background:
  radial-gradient(circle at 15% 20%, rgba(212,123,103,.06) 0 80px, transparent 81px),
  radial-gradient(circle at 85% 70%, rgba(127,165,147,.08) 0 100px, transparent 101px), #FDFCF9; }
.msg { display: flex; gap: 8px; max-width: 78%; align-items: flex-end; animation: msgIn .45s var(--ease-back) both; }
.msg.me { align-self: flex-end; flex-direction: row-reverse; }
.msg .bubble { padding: 10px 14px; border-radius: 18px 18px 18px 6px; background: var(--white); border: 1px solid var(--line); color: var(--text); white-space: pre-wrap; word-break: break-word; box-shadow: var(--sh-1); }
.msg.me .bubble { background: var(--forest); color: #F1F5F2; border-color: var(--forest); border-radius: 18px 18px 6px 18px; }
.msg .bubble img { max-width: 240px; border-radius: 12px; margin-top: 4px; cursor: zoom-in; }
.msg time { font-size: 11px; color: var(--muted-2); flex: none; }
.msg.sys { align-self: center; max-width: 90%; }
.msg.sys .bubble { background: var(--sand); border: 0; font-size: 13px; color: var(--muted); border-radius: 12px; text-align: center; box-shadow: none; }
.msg-day { align-self: center; font-size: 12px; color: var(--muted); padding: 4px 12px; border-radius: 10px; background: var(--white); margin: 10px 0; border: 1px solid var(--line); }
@keyframes msgIn { from { opacity: 0; transform: translateY(12px) scale(.94); } }
@media (min-width: 861px) { #chatBack { display: none; } }
.chat-input { display: flex; gap: 8px; align-items: flex-end; padding: 12px; border-top: 1px solid var(--line); background: var(--white); }
.chat-input textarea { flex: 1; min-height: 44px; max-height: 140px; resize: none; border-radius: 22px; padding: 11px 16px; }
.chat-input .send { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--clay); color: #fff; display: grid; place-items: center; cursor: pointer; transition: transform .3s var(--ease-back), background .2s; flex: none; }
.chat-input .send:hover { transform: rotate(-20deg) scale(1.1); background: var(--clay-ink); }
.quick-replies { display: flex; gap: 6px; padding: 8px 12px 0; overflow-x: auto; scrollbar-width: none; background: var(--white); }
.quick-replies button { flex: none; border: 1px solid var(--line); background: var(--cream); border-radius: 999px; padding: 6px 12px; font: 13px var(--font); color: var(--forest); cursor: pointer; transition: all .2s; }
.quick-replies button:hover { background: var(--forest); color: #fff; }
.typing { display: inline-flex; gap: 4px; padding: 12px 14px; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted-2); animation: typing 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes typing { 0%,60%,100% { transform: translateY(0); opacity: .4; } 30% { transform: translateY(-5px); opacity: 1; } }
.chat-empty { flex: 1; display: grid; place-items: center; text-align: center; color: var(--muted); padding: 30px; }
@media (max-width: 860px) {
  .chat-shell { grid-template-columns: 1fr; }
  .chat-shell.has-thread .chat-list { display: none; }
  .chat-shell:not(.has-thread) .chat-main { display: none; }
}

/* ---------------------------------------------------------------- STAFF (partner/admin) */
.area-partner, .area-admin { background: #F4F1EA; }
.s-shell { display: grid; grid-template-columns: 268px 1fr; min-height: 100vh; }
.s-side { position: sticky; top: 0; height: 100vh; overflow-y: auto; background: var(--forest); color: #CFDDD6; padding: 18px 14px; display: flex; flex-direction: column; gap: 14px; z-index: 600; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.15) transparent; isolation: isolate; }
.s-brand { display: flex; align-items: center; gap: 10px; padding: 4px 6px 10px; }
.s-brand > img { height: 46px; width: auto; transition: transform .5s var(--ease-back); }
.s-brand:hover > img { transform: rotate(-8deg) scale(1.06); }
.s-brand span img { height: 17px; width: auto; }
.s-brand small { display: block; color: var(--clay-2); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; margin-top: 4px; }
.s-prov { display: flex; gap: 10px; align-items: center; padding: 12px; border-radius: 14px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.08); }
.s-prov b { display: block; color: #fff; font-weight: 500; font-size: 14px; line-height: 1.3; }
.s-prov small { color: #9FB8AD; }
.s-prov-ico { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--clay); color: #fff; flex: none; }
.s-switch { display: flex; flex-direction: column; gap: 6px; }
.s-switch label { font-size: 12px; color: #9FB8AD; display: flex; gap: 6px; align-items: center; }
.s-switch select { width: 100%; padding: 8px 10px; border-radius: 10px; border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.06); color: #fff; font: 13px var(--font); }
.s-switch select option { color: var(--text); }
.s-nav { display: flex; flex-direction: column; gap: 3px; }
.s-nav a { position: relative; display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 12px; color: #BFD0C8; font-size: 14.5px; transition: all .25s var(--ease); animation: fadeUp .5s var(--ease) both; animation-delay: calc(var(--i, 0) * 40ms); }
.s-nav a:hover { background: rgba(255,255,255,.06); color: #fff; transform: translateX(3px); }
.s-nav a.on { background: var(--cream); color: var(--forest); font-weight: 500; box-shadow: 0 10px 22px -12px rgba(0,0,0,.5); }
.s-nav a.on .ico { color: var(--clay); }
.s-pill { margin-left: auto; min-width: 22px; height: 20px; padding: 0 7px; border-radius: 10px; background: var(--clay); color: #fff; font-size: 11.5px; display: grid; place-items: center; }
.s-sep { height: 1px; background: rgba(255,255,255,.08); margin: 10px 4px; }
.s-paws { position: absolute; right: -30px; bottom: -20px; color: rgba(255,255,255,.04); transform: rotate(-20deg); z-index: -1; pointer-events: none; }
.s-body { min-width: 0; display: flex; flex-direction: column; }
.s-top { position: sticky; top: 0; z-index: 300; display: flex; align-items: center; gap: 12px; height: 72px; padding: 0 24px; background: rgba(244,241,234,.85); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.s-title { flex: 1; min-width: 0; }
.s-title h1 { font-size: 21px; margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.s-title small { color: var(--muted); }
.s-actions { display: flex; align-items: center; gap: 8px; }
.s-me { display: flex; align-items: center; gap: 10px; padding-left: 10px; border-left: 1px solid var(--line); }
.s-me b { display: block; font-size: 14px; font-weight: 500; color: var(--ink); line-height: 1.2; }
.s-me small { color: var(--muted); }
.s-burger { display: none; }
.s-main { padding: 24px; animation: fadeUp .5s var(--ease) backwards; }
.s-scrim { display: none; }
.area-partner .notif-panel, .area-admin .notif-panel { top: 78px; }
@media (max-width: 1000px) {
  .s-shell { grid-template-columns: 1fr; }
  .s-side { position: fixed; left: 0; top: 0; bottom: 0; width: 280px; transform: translateX(-105%); transition: transform .45s var(--ease); }
  .s-side.open { transform: none; box-shadow: var(--sh-3); }
  .s-scrim { display: block; position: fixed; inset: 0; z-index: 550; background: rgba(10,36,31,.4); opacity: 0; visibility: hidden; transition: all .3s; }
  .s-side.open + .s-scrim { opacity: 1; visibility: visible; }
  .s-burger { display: inline-grid; }
  .s-me div { display: none; }
  .s-main { padding: 16px; }
  .s-top { padding: 0 12px; }
}
@media (max-width: 560px) { .s-actions .btn span { display: none; } .s-actions .btn { padding: 0 12px; } }

/* stat cards */
.stat { position: relative; overflow: hidden; padding: 18px; border-radius: var(--r); background: var(--white); border: 1px solid var(--line); transition: transform .35s var(--ease), box-shadow .35s; }
.stat:hover { transform: translateY(-3px); box-shadow: var(--sh-2); }
.stat .s-ic { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; background: var(--tone-bg, var(--sand)); color: var(--tone, var(--forest)); margin-bottom: 12px; }
.stat .s-v { font-size: 28px; font-weight: 600; color: var(--ink); line-height: 1.1; font-variant-numeric: tabular-nums; }
.stat .s-l { color: var(--muted); font-size: 13.5px; }
.stat .s-d { position: absolute; top: 18px; right: 18px; font-size: 12.5px; padding: 2px 8px; border-radius: 8px; background: var(--sage-soft); color: #2C6B4F; }
.stat.dark { background: var(--forest); border-color: var(--forest); }
.stat.dark .s-v { color: #fff; } .stat.dark .s-l { color: #A9C0B6; }
.stat.dark .s-ic { background: rgba(255,255,255,.1); color: var(--clay-2); }

/* kanban */
.kanban { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(260px, 1fr); gap: 14px; overflow-x: auto; padding-bottom: 10px; align-items: start; }
.kb-col { background: rgba(255,255,255,.55); border: 1px solid var(--line); border-radius: var(--r); padding: 12px; min-height: 200px; }
.kb-h { display: flex; align-items: center; justify-content: space-between; padding: 2px 4px 10px; font-weight: 500; color: var(--ink); }
.kb-h .n { font-size: 12px; padding: 1px 8px; border-radius: 8px; background: var(--white); color: var(--muted); }
.kb-card { padding: 14px; border-radius: 14px; background: var(--white); border: 1px solid var(--line); margin-bottom: 10px; cursor: pointer; transition: all .3s var(--ease); animation: fadeUp .45s var(--ease) both; animation-delay: calc(var(--i, 0) * 50ms); }
.kb-card:hover { transform: translateY(-3px) rotate(-.4deg); box-shadow: var(--sh-2); border-color: var(--line-2); }
.kb-card .top { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); margin-bottom: 8px; }
.kb-card .who { display: flex; gap: 10px; align-items: center; }
.kb-card .who b { display: block; color: var(--ink); font-weight: 500; }
.kb-card .meta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 10px; font-size: 12.5px; color: var(--muted); }
.kb-card .meta span { display: inline-flex; gap: 4px; align-items: center; }

/* toolbar */
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 16px; }
.toolbar .input { min-height: 42px; width: auto; }
.toolbar .input-ico { flex: 1; min-width: 200px; max-width: 360px; }
.toolbar .input-ico .input { width: 100%; }

/* charts */
.chart-bars { display: flex; align-items: flex-end; gap: 6px; height: 200px; padding-top: 10px; border-bottom: 1px solid var(--line); }
.chart-bars .cb { position: relative; }
.chart-bars .cb { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; justify-content: flex-end; min-width: 0; }
.chart-bars .cb i { display: block; width: 100%; max-width: 28px; border-radius: 4px 4px 0 0; background: var(--c1); height: 0; transition: height 1s var(--ease); transition-delay: calc(var(--i) * 40ms); position: relative; }
.chart-bars .cb i.o { background: var(--c2); }
.chart-bars .cb:hover i { filter: brightness(1.15); }
.chart-bars .cb small { font-size: 11px; color: var(--muted); white-space: nowrap; }
.chart-bars .cb .tip { position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%) translateY(4px); padding: 4px 8px; border-radius: 8px; background: var(--forest-ink); color: #fff; font-size: 12px; white-space: nowrap; opacity: 0; pointer-events: none; transition: all .2s; z-index: 3; }
.chart-bars .cb:hover .tip { opacity: 1; transform: translateX(-50%); }
.stack-bar { display: flex; flex-direction: column; gap: 2px; width: 100%; max-width: 28px; position: relative; height: 0; transition: height 1s var(--ease); transition-delay: calc(var(--i) * 40ms); }
.stack-bar i { max-width: none !important; height: auto !important; flex: var(--f, 1) 1 0; min-height: 0; transition: none !important; }
.stack-bar i:not(:first-child) { border-radius: 0 !important; }
.legend { display: flex; gap: 16px; font-size: 13px; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 10px; height: 10px; border-radius: 3px; background: var(--c1); }
.legend i.o { background: var(--c2); }
.legend i.t { background: var(--c3); }
.donut { --size: 150px; width: var(--size); height: var(--size); border-radius: 50%; position: relative; flex: none; }
.donut::after { content: ''; position: absolute; inset: 22%; border-radius: 50%; background: var(--white); }
.donut-c { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; z-index: 1; font-size: 12px; color: var(--muted); }
.donut-c b { display: block; font-size: 22px; color: var(--ink); }

/* ---------------------------------------------------------------- PUBLIC / LANDING / LOGIN */
.area-public { background: var(--cream); }
.public-main { min-height: 100vh; }
.land-nav { position: absolute; top: 0; left: 0; right: 0; z-index: 10; }
.land-nav .container { display: flex; justify-content: space-between; align-items: center; height: 76px; }
.land-hero { position: relative; overflow: hidden; min-height: 100vh; display: grid; align-items: center; padding: 100px 0 60px; background:
  radial-gradient(900px 500px at 85% 20%, rgba(212,123,103,.18), transparent 60%),
  radial-gradient(700px 500px at 0% 100%, rgba(127,165,147,.22), transparent 60%), var(--cream); }
.land-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
@media (max-width: 860px) { .land-grid { grid-template-columns: 1fr; text-align: center; } .land-grid .hero-cta { justify-content: center; } }
.land-hero h1 { font-size: clamp(34px, 5.5vw, 62px); line-height: 1.12; letter-spacing: -.02em; margin: 14px 0; }
.land-hero h1 em { font-style: normal; color: var(--clay); position: relative; white-space: nowrap; }
.land-hero h1 em::after { content: ''; position: absolute; left: 0; right: 0; bottom: .06em; height: .18em; background: var(--clay-soft); z-index: -1; border-radius: 4px; transform: scaleX(0); transform-origin: left; animation: underline 1s .8s var(--ease) forwards; }
@keyframes underline { to { transform: scaleX(1); } }
.land-hero .lead { font-size: 18px; color: var(--muted); max-width: 540px; }
@media (max-width: 860px) { .land-hero .lead { margin-inline: auto; } }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.hero-art { position: relative; display: grid; place-items: center; }
.hero-art .blob { position: absolute; width: 88%; aspect-ratio: 1; border-radius: 42% 58% 63% 37% / 41% 44% 56% 59%; background: var(--forest); animation: blob 12s ease-in-out infinite; box-shadow: var(--sh-3); }
@keyframes blob { 0%,100% { border-radius: 42% 58% 63% 37% / 41% 44% 56% 59%; transform: rotate(0); } 50% { border-radius: 58% 42% 38% 62% / 55% 61% 39% 45%; transform: rotate(8deg); } }
.hero-art img.mk { position: relative; width: 62%; animation: float 6s ease-in-out infinite; filter: drop-shadow(0 20px 30px rgba(0,0,0,.25)); }
.hero-art .floaty { position: absolute; display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 16px; background: var(--white); box-shadow: var(--sh-3); font-size: 13.5px; animation: float 5s ease-in-out infinite; }
.hero-art .floaty b { display: block; color: var(--ink); }
.hero-art .f1 { left: -4%; top: 16%; animation-delay: -1s; }
.hero-art .f2 { right: -2%; bottom: 18%; animation-delay: -2.5s; }
.hero-art .f3 { left: 6%; bottom: 4%; animation-delay: -4s; }
@media (max-width: 860px) { .hero-art { max-width: 380px; margin: 0 auto; } }
.paw-trail { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 0; }
.paw-trail span { position: absolute; color: var(--clay); opacity: 0; animation: pawStep 4s ease-in-out infinite; }
.feat-sec { padding: 80px 0; }
.feat { padding: 26px; border-radius: var(--r-lg); background: var(--white); border: 1px solid var(--line); transition: all .4s var(--ease); }
.feat:hover { transform: translateY(-6px); box-shadow: var(--sh-3); }
.feat .fi { width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; background: var(--tone-bg); color: var(--tone); margin-bottom: 16px; transition: transform .5s var(--ease-back); }
.feat:hover .fi { transform: rotate(-12deg) scale(1.1); }
.roles-sec { padding: 70px 0; background: var(--forest); color: #CFDDD6; border-radius: var(--r-xl) var(--r-xl) 0 0; }
.roles-sec h2 { color: #fff; }
.role-card { padding: 24px; border-radius: var(--r-lg); background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); transition: all .4s var(--ease); }
.role-card:hover { background: rgba(255,255,255,.09); transform: translateY(-4px); }
.role-card h3 { color: #fff; }
.role-card .ri { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--clay); color: #fff; margin-bottom: 14px; }
.land-foot { padding: 30px 0 40px; background: var(--forest); color: #8FA89D; font-size: 13.5px; }

.login-wrap { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
@media (max-width: 900px) { .login-wrap { grid-template-columns: 1fr; } .login-art { display: none !important; } }
.login-art { position: relative; overflow: hidden; background: var(--forest); display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 40px; color: #CFDDD6; text-align: center; }
.login-art img.mk { width: min(300px, 60%); animation: float 6s ease-in-out infinite; position: relative; z-index: 1; }
.login-art img.wm { width: min(340px, 70%); margin-top: 26px; position: relative; z-index: 1; }
.login-art img.tg { width: min(300px, 62%); margin-top: 12px; opacity: .85; position: relative; z-index: 1; }
.login-art::before { content: ''; position: absolute; width: 600px; height: 600px; border-radius: 50%; background: radial-gradient(circle, rgba(212,123,103,.35), transparent 60%); top: -200px; right: -200px; animation: float 8s ease-in-out infinite; }
.login-art .paw-trail span { color: rgba(250,247,242,.25); }
.login-form { display: flex; flex-direction: column; justify-content: center; padding: 40px clamp(20px, 6vw, 80px); position: relative; }
.login-card { width: min(440px, 100%); margin: 0 auto; }
.login-card .mobile-logo { display: none; }
@media (max-width: 900px) { .login-card .mobile-logo { display: block; width: 120px; margin: 0 auto 10px; } }
.or { display: flex; align-items: center; gap: 12px; color: var(--muted-2); font-size: 13px; margin: 22px 0; }
.or::before, .or::after { content: ''; flex: 1; height: 1px; background: var(--line-2); }
.demo-accounts { display: grid; gap: 8px; }
.demo-accounts button { display: flex; gap: 12px; align-items: center; width: 100%; padding: 10px 12px; border-radius: 14px; border: 1px solid var(--line); background: var(--white); cursor: pointer; text-align: left; font: inherit; color: var(--text); transition: all .25s var(--ease); }
.demo-accounts button:hover { border-color: var(--forest); transform: translateX(4px); box-shadow: var(--sh-2); }
.demo-accounts b { display: block; font-weight: 500; color: var(--ink); }
.demo-accounts small { color: var(--muted); }

/* confetti canvas */
#confetti { position: fixed; inset: 0; pointer-events: none; z-index: 4000; }

/* sweetalert brand */
.swal2-popup { border-radius: 24px !important; font-family: var(--font) !important; padding: 1.6em 1.4em !important; }
.swal2-title { color: var(--ink) !important; font-weight: 600 !important; font-size: 1.35em !important; }
.swal2-html-container { color: var(--muted) !important; }
.swal2-styled.swal2-confirm { background: var(--forest) !important; border-radius: 999px !important; padding: .7em 1.8em !important; font-weight: 500 !important; }
.swal2-styled.swal2-cancel { background: var(--sand) !important; color: var(--forest) !important; border-radius: 999px !important; padding: .7em 1.6em !important; }
.swal2-styled.swal2-deny { background: var(--red) !important; border-radius: 999px !important; }
.swal2-icon.swal2-success [class^=swal2-success-line] { background-color: var(--forest) !important; }
.swal2-icon.swal2-success .swal2-success-ring { border-color: rgba(15,53,46,.25) !important; }
.swal2-input, .swal2-textarea, .swal2-select { border-radius: 12px !important; font-family: var(--font) !important; }

/* installer */
.install-wrap { max-width: 760px; margin: 0 auto; padding: 40px 16px 80px; }
.check-li { display: flex; gap: 10px; align-items: center; padding: 8px 0; }
.check-li .ok { color: #2C6B4F; } .check-li .no { color: var(--red); }

/* misc */
.pill-tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.divider-v { width: 1px; align-self: stretch; background: var(--line); }
.price-tag { font-size: 22px; font-weight: 600; color: var(--forest); }
.qr-box { display: grid; place-items: center; padding: 18px; border-radius: var(--r); background: var(--white); border: 1px solid var(--line); }
.qr-box canvas, .qr-box img { width: 220px; height: 220px; }
.pp-logo { height: 26px; margin: 0 auto 8px; }
.note-box { padding: 12px 14px; border-radius: 14px; background: var(--amber-soft); color: #7A5310; font-size: 14px; display: flex; gap: 10px; }
.note-box.info { background: var(--sky-soft); color: #2D5D75; }
.note-box.ok { background: var(--sage-soft); color: #2C6B4F; }
.rating { display: inline-flex; gap: 2px; color: #E0A63A; }
.star-input { display: inline-flex; flex-direction: row-reverse; gap: 4px; }
.star-input input { display: none; }
.star-input label { cursor: pointer; color: var(--line-2); transition: transform .2s var(--ease-back), color .2s; }
.star-input label:hover, .star-input label:hover ~ label, .star-input input:checked ~ label { color: #E0A63A; }
.star-input label:hover { transform: scale(1.2); }
.tilt { transform: perspective(800px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); }
