/* ============================================================
   Tailored Beauty — all-pink edition
   Primary font: Montserrat · Secondary font: Arial
   Mobile-first.
   ============================================================ */
:root {
  /* Pink spectrum — lightest to deepest */
  --pink-bg:   #FFF0F8;   /* page background          */
  --pink-50:   #FFE1F2;   /* card tints, soft fills   */
  --pink-100:  #FFBFE0;   /* borders, dividers        */
  --pink-200:  #FF94C8;   /* chip fills, light accent */
  --pink-300:  #FF6DB3;   /* secondary accent         */
  --pink-400:  #FF4D96;   /* primary brand pink       */
  --pink-500:  #F7206E;   /* deep CTA                 */
  --pink-600:  #D4105A;   /* hover / pressed          */
  --pink-700:  #A80A45;   /* dark accent              */
  --pink-800:  #6E0030;   /* near-black body text     */
  --white:     #FFFFFF;
  --danger:    #C0392B;
  --warn-bg:   #FFF0F0;
  --warn-border:#F5A0A0;

  /* Typography */
  --font-primary:   "Montserrat", Arial, sans-serif;
  --font-secondary: Arial, sans-serif;

  /* Spacing */
  --sp-1: 4px;  --sp-2: 8px;   --sp-3: 12px; --sp-4: 16px;
  --sp-5: 24px; --sp-6: 32px;  --sp-7: 48px;

  /* Radius */
  --r-sm:  10px; --r-md: 18px; --r-lg: 28px; --r-pill: 999px;

  /* Shadows */
  --shadow-sm:   0 2px 14px rgba(247, 32, 110, .10);
  --shadow-md:   0 8px 32px  rgba(247, 32, 110, .16);
  --shadow-lg:   0 -12px 48px rgba(247, 32, 110, .18);
  --shadow-pink: 0 6px 24px  rgba(247, 32, 110, .32);

  /* Layout */
  --maxw:   520px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top,    0px);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; }

body {
  font-family: var(--font-secondary);
  background: var(--pink-bg);
  background-image:
    radial-gradient(ellipse 120% 50% at 50% 0%,
      rgba(255, 77, 150, .18) 0%, transparent 65%);
  color: var(--pink-800);
  line-height: 1.5;
  min-height: 100vh;
  padding-bottom: calc(100px + var(--safe-b));
}

/* ─── Header ──────────────────────────────────────────────── */
.app-header {
  padding: calc(var(--sp-5) + var(--safe-t)) var(--sp-5) var(--sp-4);
  max-width: var(--maxw);
  margin: 0 auto;
}
.brand { display: flex; align-items: center; gap: var(--sp-3); }

.brand__mark {
  width: 50px; height: 50px; flex: none;
  display: grid; place-items: center;
  border-radius: var(--r-pill);
  background: linear-gradient(145deg, var(--pink-200), var(--pink-400));
  color: var(--white);
  box-shadow: var(--shadow-sm), 0 0 0 3px rgba(255, 77, 150, .15);
}

.brand__name {
  font-family: var(--font-primary);
  font-weight: 800;
  font-size: 26px;
  letter-spacing: -.02em;
  margin: 0;
  line-height: 1;
  background: linear-gradient(135deg, var(--pink-500), var(--pink-700));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.brand__sub {
  margin: 5px 0 0;
  font-family: var(--font-primary);
  font-size: 10px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--pink-300);
  font-weight: 600;
}

/* ─── Bookings list ───────────────────────────────────────── */
.bookings {
  max-width: var(--maxw); margin: 0 auto; padding: 0 var(--sp-5);
}
.bookings__list { display: flex; flex-direction: column; gap: var(--sp-5); }

.day-group__label {
  font-family: var(--font-primary);
  font-size: 17px;
  font-weight: 700;
  color: var(--pink-600);
  margin: var(--sp-4) 0 var(--sp-3);
  display: flex; align-items: center; gap: var(--sp-3);
  letter-spacing: -.01em;
}
.day-group__label::after {
  content: ""; flex: 1; height: 1.5px;
  background: linear-gradient(90deg, var(--pink-200), transparent);
}

/* ─── Cards ───────────────────────────────────────────────── */
.card {
  position: relative;
  background: var(--white);
  border-radius: var(--r-md);
  padding: var(--sp-4);
  box-shadow: var(--shadow-sm);
  border: 1.5px solid var(--pink-50);
  border-left: 4px solid var(--pink-400);
  display: flex; gap: var(--sp-4);
  transition: transform .18s ease, box-shadow .18s ease;
  cursor: pointer;
}
.card:active { transform: scale(.985); box-shadow: var(--shadow-md); }

/* Lashes = lighter/hotter pink accent to distinguish */
.card--lashes { border-left-color: var(--pink-200); }

.card.is-past { opacity: .5; }
.card.is-clash {
  border-color: var(--warn-border);
  border-left-color: var(--danger);
  box-shadow: 0 0 0 2px rgba(192, 57, 43, .12);
}

.card__time {
  flex: none; width: 60px; text-align: center;
  border-right: 1.5px solid var(--pink-50);
  padding-right: var(--sp-3);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
}
.card__time-h {
  font-family: var(--font-primary);
  font-size: 20px; font-weight: 800; line-height: 1;
  color: var(--pink-500);
}
.card__time-m {
  font-size: 10px; letter-spacing: .12em;
  color: var(--pink-300); text-transform: uppercase; margin-top: 3px;
  font-family: var(--font-primary); font-weight: 600;
}

.card__body { flex: 1; min-width: 0; }
.card__name {
  font-family: var(--font-primary);
  font-weight: 700; font-size: 16px;
  margin: 0 0 6px; color: var(--pink-800);
  letter-spacing: -.01em;
}
.card__meta { display: flex; flex-wrap: wrap; gap: var(--sp-2); align-items: center; }

/* Hair chip */
.chip {
  font-family: var(--font-primary);
  font-size: 10px; font-weight: 700; letter-spacing: .06em;
  padding: 4px 11px; border-radius: var(--r-pill);
  background: linear-gradient(135deg, var(--pink-50), var(--pink-100));
  color: var(--pink-500);
  text-transform: uppercase;
}
/* Lashes chip — hotter shade */
.chip--lashes {
  background: linear-gradient(135deg, var(--pink-100), var(--pink-200));
  color: var(--pink-700);
}

.card__sub {
  color: var(--pink-300); font-size: 13px;
  margin: 6px 0 0; display: flex; flex-wrap: wrap; gap: 10px;
}
.card__sub a { color: var(--pink-300); text-decoration: none; }
.card__sub a:active { color: var(--pink-500); }

.card__notes {
  margin: var(--sp-2) 0 0;
  font-size: 13px; color: var(--pink-700); line-height: 1.45;
}
.card__flag {
  margin-top: var(--sp-2);
  font-size: 12px; font-weight: 600;
  color: var(--danger);
  background: var(--warn-bg); border: 1px solid var(--warn-border);
  padding: 4px 9px; border-radius: var(--r-sm);
  display: inline-block;
  font-family: var(--font-primary);
}

/* ─── Empty state ─────────────────────────────────────────── */
.empty {
  text-align: center; padding: var(--sp-7) var(--sp-5);
  color: var(--pink-300);
}
.empty__mark {
  font-size: 38px; display: block; margin-bottom: var(--sp-3);
  animation: pulse 2.8s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: .85; }
  50%       { transform: scale(1.14); opacity: 1; }
}
.empty h2 {
  font-family: var(--font-primary);
  font-weight: 800; font-size: 22px;
  color: var(--pink-600); margin: 0 0 var(--sp-2);
  letter-spacing: -.02em;
}
.empty p { margin: 0 auto; max-width: 30ch; font-size: 14px; line-height: 1.6; }

/* ─── Bottom dock (Bookings): inline assistant + action bar ─── */
.bookings-dock {
  position: fixed; left: 0; right: 0; bottom: 0;
  max-width: var(--maxw); margin: 0 auto;
  display: flex; flex-direction: column;
  z-index: 30;
}
.bookings-dock[hidden] { display: none; }

.chat-inline {
  display: flex; flex-direction: column;
  background: rgba(255, 240, 248, .96);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-top: 1.5px solid rgba(255, 191, 224, .6);
  padding: var(--sp-3) var(--sp-5) var(--sp-2);
  animation: slideup .22s cubic-bezier(.2,.8,.2,1);
}
.chat-inline[hidden] { display: none; }
.chat-inline .chat-log { max-height: 34vh; flex: none; }

/* ─── Action bar ──────────────────────────────────────────── */
.actionbar {
  display: flex; gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-5) calc(var(--sp-3) + var(--safe-b));
  background: rgba(255, 240, 248, .88);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-top: 1.5px solid rgba(255, 191, 224, .6);
}
.actionbar .btn { flex: 1; }
.actionbar__icon { font-size: 15px; margin-right: 6px; }

/* ─── Buttons ─────────────────────────────────────────────── */
.btn {
  font-family: var(--font-primary);
  font-weight: 700; font-size: 14px; letter-spacing: .01em;
  border: none; border-radius: var(--r-pill);
  padding: 14px 18px; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  transition: transform .12s ease, box-shadow .2s ease, filter .2s ease;
}
.btn:active { transform: scale(.96); }

.btn--primary {
  background: linear-gradient(145deg, var(--pink-400), var(--pink-600));
  color: var(--white);
  box-shadow: var(--shadow-pink);
}
.btn--primary:active { filter: brightness(.9); }

.btn--ghost {
  background: var(--white);
  color: var(--pink-600);
  border: 1.5px solid var(--pink-100);
  box-shadow: var(--shadow-sm);
}
.btn--ghost:active { background: var(--pink-50); }

/* ─── Sheets ──────────────────────────────────────────────── */
.sheet { position: fixed; inset: 0; z-index: 40; }
.sheet[hidden] { display: none; }

.sheet__backdrop {
  position: absolute; inset: 0;
  background: rgba(110, 0, 48, .3);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  animation: fade .2s ease;
}
.sheet__panel {
  position: absolute; left: 0; right: 0; bottom: 0;
  max-width: var(--maxw); margin: 0 auto;
  background: var(--pink-bg);
  border-radius: var(--r-lg) var(--r-lg) 0 0;
  padding: var(--sp-3) var(--sp-5) calc(var(--sp-5) + var(--safe-b));
  box-shadow: var(--shadow-lg);
  max-height: 92vh; overflow-y: auto;
  animation: slideup .28s cubic-bezier(.2,.8,.2,1);
}
.sheet__panel--tall { height: 88vh; display: flex; flex-direction: column; }

.sheet__handle {
  position: relative;
  width: 38px; height: 4px; border-radius: var(--r-pill);
  background: linear-gradient(90deg, var(--pink-300), var(--pink-200));
  margin: var(--sp-1) auto var(--sp-4);
  touch-action: none;
  cursor: grab;
}
.sheet__handle:active { cursor: grabbing; }
/* Invisible larger hit area for the drag-to-dismiss gesture — doesn't affect layout */
.sheet__handle::before {
  content: '';
  position: absolute;
  inset: -16px -40px;
}
.sheet__title {
  font-family: var(--font-primary);
  font-weight: 800; font-size: 24px;
  color: var(--pink-700);
  letter-spacing: -.02em;
  margin: 0 0 var(--sp-4);
}

@keyframes slideup { from { transform: translateY(100%); } to { transform: translateY(0); } }
@keyframes fade    { from { opacity: 0; } to { opacity: 1; } }

/* ─── Form ────────────────────────────────────────────────── */
.form { display: flex; flex-direction: column; gap: var(--sp-4); }
.field { display: flex; flex-direction: column; gap: 6px; }
.field-row { display: flex; gap: var(--sp-3); }
.field-row .field { flex: 1; }

.field__label {
  font-family: var(--font-primary);
  font-size: 10px; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--pink-400);
}
.field input,
.field textarea {
  font-family: var(--font-secondary);
  font-size: 16px; color: var(--pink-800);
  background: var(--white);
  border: 1.5px solid var(--pink-100);
  border-radius: var(--r-sm);
  padding: 13px 14px; width: 100%;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { resize: vertical; min-height: 64px; line-height: 1.5; }
.field input::placeholder,
.field textarea::placeholder { color: var(--pink-200); }

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--pink-400);
  box-shadow: 0 0 0 3px rgba(255, 77, 150, .14);
}

.segmented { display: flex; gap: var(--sp-2); }
.segmented__opt {
  flex: 1;
  font-family: var(--font-primary);
  font-size: 14px; font-weight: 600;
  padding: 13px; border-radius: var(--r-sm);
  background: var(--white);
  border: 1.5px solid var(--pink-100);
  color: var(--pink-300);
  cursor: pointer; transition: all .15s ease;
}
.segmented__opt.is-active {
  background: linear-gradient(135deg, var(--pink-50), var(--pink-100));
  border-color: var(--pink-400);
  color: var(--pink-500);
}

.form__actions { display: flex; gap: var(--sp-3); margin-top: var(--sp-2); }
.form__actions .btn { flex: 1; }

.link-danger {
  background: none; border: none;
  color: var(--danger);
  font-family: var(--font-primary);
  font-size: 13px; font-weight: 600;
  padding: var(--sp-3); cursor: pointer; opacity: .8;
}
.link-danger:active { opacity: 1; }

/* ─── Warning ─────────────────────────────────────────────── */
.warning {
  background: var(--warn-bg);
  border: 1px solid var(--warn-border);
  border-radius: var(--r-sm);
  padding: var(--sp-3) var(--sp-4);
  font-size: 14px; color: #8a2730;
}
.warning strong { color: #6e1c24; }
.warning--danger { background: #FBE6E8; border-color: #E5A8AE; color: #8a2730; }
.warning--danger strong { color: #6e1c24; }

/* ─── Chat ────────────────────────────────────────────────── */
.chat-log {
  flex: 1; overflow-y: auto;
  display: flex; flex-direction: column; gap: var(--sp-3);
  padding: var(--sp-2) 0;
}
.msg {
  max-width: 82%; padding: 11px 14px; border-radius: var(--r-md);
  font-size: 15px; line-height: 1.45;
  white-space: pre-wrap; word-wrap: break-word;
}
.msg--ai {
  align-self: flex-start;
  background: var(--white);
  border: 1.5px solid var(--pink-100);
  border-bottom-left-radius: 6px;
  box-shadow: var(--shadow-sm);
  color: var(--pink-800);
}
.msg--me {
  align-self: flex-end;
  background: linear-gradient(145deg, var(--pink-400), var(--pink-600));
  color: var(--white);
  border-bottom-right-radius: 6px;
}
.msg--me img, .msg--ai img {
  max-width: 160px; border-radius: var(--r-sm);
  display: block; margin-top: 6px;
}
.msg__action {
  margin-top: var(--sp-3); width: 100%;
  background: linear-gradient(145deg, var(--pink-400), var(--pink-600));
  color: var(--white); border: none;
  border-radius: var(--r-pill); padding: 10px 14px;
  font-family: var(--font-primary);
  font-weight: 700; font-size: 13px; cursor: pointer;
}
.msg__action:active { transform: scale(.97); }
.msg--typing { color: var(--pink-300); font-style: italic; }

.chat-image-preview { position: relative; align-self: flex-start; margin-top: var(--sp-2); }
.chat-image-preview img { max-width: 90px; border-radius: var(--r-sm); display: block; }
.chat-image-preview button {
  position: absolute; top: -8px; right: -8px;
  width: 24px; height: 24px; border-radius: var(--r-pill);
  border: none;
  background: var(--pink-500); color: var(--white);
  font-size: 12px; cursor: pointer;
}

.chat-input {
  display: flex; align-items: center; gap: var(--sp-2);
  padding-top: var(--sp-3);
  border-top: 1.5px solid var(--pink-100);
}
.chat-attach {
  width: 44px; height: 44px; flex: none;
  display: grid; place-items: center;
  border-radius: var(--r-pill);
  background: var(--white);
  border: 1.5px solid var(--pink-100);
  font-size: 18px; cursor: pointer;
}
.chat-input input[type=text] {
  flex: 1;
  font-family: var(--font-secondary);
  font-size: 16px;
  background: var(--white);
  border: 1.5px solid var(--pink-100);
  border-radius: var(--r-pill);
  padding: 12px 16px;
  color: var(--pink-800);
  transition: border-color .15s;
}
.chat-input input[type=text]::placeholder { color: var(--pink-200); }
.chat-input input[type=text]:focus {
  outline: none; border-color: var(--pink-400);
}
.chat-send {
  width: 44px; height: 44px; flex: none; border: none;
  border-radius: var(--r-pill);
  background: linear-gradient(145deg, var(--pink-400), var(--pink-600));
  color: var(--white); font-size: 16px; cursor: pointer;
}
.chat-send:active { transform: scale(.95); }

/* ─── Toast ───────────────────────────────────────────────── */
.toast {
  position: fixed; left: 50%;
  bottom: calc(114px + var(--safe-b));
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--pink-500), var(--pink-700));
  color: var(--white);
  padding: 11px 20px; border-radius: var(--r-pill);
  font-family: var(--font-primary);
  font-size: 13px; font-weight: 600;
  box-shadow: var(--shadow-pink); z-index: 60;
  animation: fade .2s ease; max-width: 90%; text-align: center;
  white-space: nowrap;
}
.toast[hidden] { display: none; }

/* ─── Meme Modal ──────────────────────────────────────────── */
.meme-modal {
  position: fixed; inset: 0; z-index: 80;
  display: flex; align-items: flex-end; justify-content: center;
  padding: var(--sp-5) var(--sp-5) calc(var(--sp-6) + var(--safe-b));
  background: rgba(110, 0, 48, .45);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  animation: fade .22s ease;
  cursor: pointer;
}
.meme-modal[hidden] { display: none; }

.meme-modal__card {
  background: var(--white);
  border-radius: var(--r-lg);
  overflow: hidden;
  width: 100%; max-width: 320px;
  box-shadow: 0 -8px 48px rgba(247, 32, 110, .3);
  animation: meme-pop .32s cubic-bezier(.18,.9,.24,1.1);
  cursor: default;
}
@keyframes meme-pop {
  from { transform: translateY(60px) scale(.92); opacity: 0; }
  to   { transform: translateY(0)    scale(1);   opacity: 1; }
}

.meme-modal__img {
  width: 100%; height: 210px;
  object-fit: cover; object-position: center top;
  display: block;
}
.meme-modal__caption {
  font-family: var(--font-secondary);
  font-size: 14px; font-weight: 500;
  color: var(--pink-800);
  padding: var(--sp-3) var(--sp-4) var(--sp-2);
  margin: 0; line-height: 1.5; text-align: center;
}
.meme-modal__close {
  display: block;
  width: calc(100% - var(--sp-5));
  margin: var(--sp-2) auto var(--sp-4);
  font-size: 13px; padding: 12px;
}

/* ─── Finances ────────────────────────────────────────────── */

.app-header { position: relative; }
.app-header__back {
  position: absolute;
  top: calc(var(--sp-5) + var(--safe-t) + 6px);
  left: var(--sp-4);
  width: 34px; height: 34px;
  border: none; border-radius: var(--r-pill);
  background: var(--white);
  color: var(--pink-500);
  font-size: 20px; line-height: 1;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  display: grid; place-items: center;
}
.app-header__back[hidden] { display: none; }

.app-header__switch {
  position: absolute;
  top: calc(var(--sp-5) + var(--safe-t) + 6px);
  right: var(--sp-4);
  display: flex; align-items: center; gap: 6px;
  border: none; border-radius: var(--r-pill);
  padding: 9px 14px;
  background: var(--white);
  color: var(--pink-600);
  font-family: var(--font-primary);
  font-weight: 700; font-size: 12px;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
}
.app-header__switch:active { transform: scale(.96); background: var(--pink-50); }
.app-header__switch[hidden] { display: none; }

/* Home view */
.home {
  max-width: var(--maxw); margin: 0 auto; padding: var(--sp-6) var(--sp-5);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-height: calc(100vh - 140px);
}
.home[hidden] { display: none; }
.home__greeting {
  font-family: var(--font-primary); font-weight: 700; font-size: 15px;
  color: var(--pink-400); margin: 0 0 var(--sp-6); letter-spacing: -.01em;
}
.home__cards { display: flex; flex-direction: column; gap: var(--sp-4); width: 100%; }
.home-card {
  display: flex; flex-direction: column; align-items: flex-start; gap: 6px;
  border: none; border-radius: var(--r-lg);
  padding: var(--sp-6) var(--sp-5);
  cursor: pointer; text-align: left;
  box-shadow: var(--shadow-md);
  transition: transform .15s ease;
}
.home-card:active { transform: scale(.98); }
.home-card--money {
  background: linear-gradient(145deg, var(--pink-400), var(--pink-600));
  color: var(--white);
}
.home-card--bookings {
  background: var(--white);
  border: 1.5px solid var(--pink-100);
}
.home-card__icon { font-size: 34px; line-height: 1; }
.home-card__label {
  font-family: var(--font-primary); font-weight: 800; font-size: 22px; letter-spacing: -.02em;
}
.home-card--bookings .home-card__label { color: var(--pink-700); }
.home-card__sub { font-size: 13px; opacity: .85; }
.home-card--bookings .home-card__sub { color: var(--pink-300); }

/* Bookings view-mode toggle + Money tabs (both reuse .segmented) */
.view-toggle, .money-tabs { margin: var(--sp-4) 0 var(--sp-3); }

/* Range / period pager (Bookings week-month, Money month) */
.range-pager {
  display: flex; align-items: center; justify-content: center; gap: var(--sp-3);
  margin: 0 0 var(--sp-4);
}
.range-pager__btn {
  width: 34px; height: 34px; border-radius: var(--r-pill);
  border: 1.5px solid var(--pink-100); background: var(--white);
  color: var(--pink-500); font-size: 18px; cursor: pointer;
  display: grid; place-items: center;
}
.range-pager__btn:active { background: var(--pink-50); }
.range-pager__label {
  font-family: var(--font-primary); font-weight: 700; font-size: 14px;
  color: var(--pink-700); text-align: center; min-width: 160px;
}
.range-pager[hidden] { display: none; }

/* Money view shell */
.money { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--sp-5) var(--sp-6); }
.money-actions { display: flex; gap: var(--sp-3); margin-bottom: var(--sp-4); }
.money-actions .btn { flex: 1; }
.chat-attach-btn { display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.money-list { display: flex; flex-direction: column; gap: var(--sp-3); }
.money-subhead {
  font-family: var(--font-primary); font-size: 13px; font-weight: 700;
  letter-spacing: .04em; text-transform: uppercase; color: var(--pink-400);
  margin: var(--sp-5) 0 var(--sp-3);
}
.money-card__body { flex: 1; min-width: 0; }
.money-card__amount {
  font-family: var(--font-primary); font-weight: 800; font-size: 16px;
  color: var(--pink-600); white-space: nowrap; padding-left: var(--sp-3);
}
.service-total-row {
  display: flex; justify-content: space-between; align-items: center;
  background: var(--white); border: 1.5px solid var(--pink-50);
  border-radius: var(--r-sm); padding: var(--sp-3) var(--sp-4);
  font-size: 14px; color: var(--pink-800);
}
.service-total-row span:first-child { font-weight: 600; }
.service-total-row span:last-child { color: var(--pink-500); font-weight: 700; }

/* Stat card (Money hero) + shared progress bar (also used in Report) */
.card--stat {
  flex-direction: column; align-items: flex-start; gap: 6px;
  background: linear-gradient(145deg, var(--pink-400), var(--pink-600));
  color: var(--white); border: none; cursor: default;
  padding: var(--sp-5); margin-bottom: var(--sp-2);
}
.card--stat:active { transform: none; }
.stat__label {
  font-family: var(--font-primary); font-size: 11px; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; opacity: .85;
}
.stat__value {
  font-family: var(--font-primary); font-weight: 800; font-size: 34px;
  letter-spacing: -.02em; line-height: 1;
}
.stat__sub { font-size: 13px; opacity: .9; margin: 2px 0 8px; }
.stat__track {
  width: 100%; height: 6px; border-radius: var(--r-pill);
  background: var(--pink-50); overflow: hidden;
}
.stat__fill {
  height: 100%; border-radius: var(--r-pill); transition: width .3s ease;
  background: linear-gradient(90deg, var(--pink-400), var(--pink-600));
}
.stat__fill--alt { background: linear-gradient(90deg, var(--pink-200), var(--pink-400)); }
.card--stat .stat__track { background: rgba(255, 255, 255, .3); }
.card--stat .stat__fill { background: var(--white); }

/* Report tab */
.report-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-3);
  margin: var(--sp-2) 0 var(--sp-5);
}
.report-cell {
  background: var(--white); border: 1.5px solid var(--pink-50);
  border-radius: var(--r-md); padding: var(--sp-4);
  display: flex; flex-direction: column; gap: 4px;
}
.report-cell__label {
  font-family: var(--font-primary); font-size: 10px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; color: var(--pink-300);
}
.report-cell__value {
  font-family: var(--font-primary); font-size: 20px; font-weight: 800; color: var(--pink-700);
}
.report-bar-row { margin-bottom: var(--sp-3); }
.report-bar-row__head {
  display: flex; justify-content: space-between; font-size: 13px;
  color: var(--pink-800); margin-bottom: 6px; font-weight: 600;
}

/* Category quick-select chips (Expenses) */
.chip-grid { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin-bottom: var(--sp-4); }
.chip--select {
  cursor: pointer; border: 1.5px solid var(--pink-100);
  background: var(--white); color: var(--pink-600);
  text-transform: none; font-weight: 600; font-size: 12px; padding: 8px 14px;
}
.chip--select.is-active {
  background: linear-gradient(135deg, var(--pink-400), var(--pink-600));
  border-color: var(--pink-500); color: var(--white);
}

/* Select dropdowns (Sale service/payment, price list category uses .segmented) */
.field select,
.select {
  font-family: var(--font-secondary);
  font-size: 16px; color: var(--pink-800);
  background-color: var(--white);
  border: 1.5px solid var(--pink-100);
  border-radius: var(--r-sm);
  padding: 13px 36px 13px 14px; width: 100%;
  transition: border-color .15s ease, box-shadow .15s ease;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23F7206E' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}
.field select:focus,
.select:focus {
  outline: none; border-color: var(--pink-400);
  box-shadow: 0 0 0 3px rgba(255, 77, 150, .14);
}

/* Tutorial */
.tutorial-fab {
  position: fixed; right: var(--sp-4);
  bottom: calc(24px + var(--safe-b));
  width: 44px; height: 44px; border-radius: var(--r-pill);
  border: none; background: var(--white);
  color: var(--pink-500); font-size: 18px; font-weight: 700;
  box-shadow: var(--shadow-md); cursor: pointer;
  display: grid; place-items: center;
  z-index: 20;
}
.tutorial-fab:active { transform: scale(.95); }
.tutorial-modal { align-items: center; }
.tutorial-modal__card { padding: var(--sp-6) var(--sp-5) var(--sp-5); text-align: center; }
.tutorial-modal__step {
  font-family: var(--font-primary); font-size: 11px; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; color: var(--pink-300);
  margin-bottom: var(--sp-3);
}
.tutorial-modal__title {
  font-family: var(--font-primary); font-weight: 800; font-size: 22px;
  color: var(--pink-700); margin: 0 0 var(--sp-3); letter-spacing: -.02em;
}
.tutorial-modal__body {
  font-size: 14px; line-height: 1.6; color: var(--pink-800); margin: 0 0 var(--sp-5);
}
.tutorial-modal__actions { display: flex; gap: var(--sp-3); }
.tutorial-modal__actions .btn { flex: 1; }
