/* ============================================================
   SEMAI v2 · "Kebun Pintar" — friendly, warm, hand-crafted theme
   Inspired by morning markets, sun on leaves, hand-stamped struk
   ============================================================ */

:root {
  /* ---- Warm cream-based base ---- */
  --bg:           #FBF7EE;       /* paper-cream background */
  --bg-deep:      #F4ECD8;       /* deeper cream for bands */
  --surface:      #FFFFFF;
  --surface-warm: #FFFCF3;       /* off-white card */
  --ink:          #2A3A2C;       /* warm dark green-black */
  --ink-soft:     #4A5C4D;
  --muted:        #7A8A7D;
  --line:         #E8DFC9;       /* warm border */
  --line-soft:    #F0E8D2;

  /* ---- Greens ---- */
  --sage:         #84B95C;       /* friendly leaf */
  --sage-soft:    #C5DDA0;
  --forest:       #1F6F43;       /* primary action */
  --forest-deep:  #145234;
  --mint:         #DCEFC8;
  --mint-deep:    #B5D89A;

  /* ---- Warm accents ---- */
  --sun:          #F7B538;       /* sunshine yellow */
  --sun-deep:     #E59500;
  --sun-soft:     #FCE4A8;
  --tomato:       #E76F51;       /* warm danger / expense */
  --tomato-soft:  #F8D5C9;
  --chili:        #C53030;
  --chili-soft:   #FBD5D0;
  --sky:          #BEE0F0;       /* soft sky */
  --sky-deep:     #2E86AB;
  --soil:         #8D6E63;
  --soil-soft:    #E8DBD3;

  /* ---- Shadows (soft + colored) ---- */
  --shadow-sm:   0 2px 6px rgba(74, 92, 77, .07);
  --shadow:      0 8px 24px rgba(74, 92, 77, .10);
  --shadow-pop:  0 16px 38px rgba(31, 111, 67, .16);
  --shadow-sun:  0 12px 30px rgba(247, 181, 56, .25);
  --shadow-card: 0 4px 0 rgba(232, 223, 201, .9), 0 6px 16px rgba(74, 92, 77, .08);

  /* ---- Radii (more generous + organic) ---- */
  --r-sm: 14px;
  --r-md: 20px;
  --r-lg: 28px;
  --r-xl: 36px;
  --r-pill: 999px;

  /* ---- Spacing ---- */
  --s-1:4px; --s-2:8px; --s-3:12px; --s-4:16px;
  --s-5:20px; --s-6:24px; --s-8:32px; --s-10:40px; --s-12:48px; --s-16:64px;

  /* ---- Type ---- */
  --font: 'Plus Jakarta Sans', 'Inter', system-ui, -apple-system, sans-serif;
  --font-hand: 'Caveat', cursive;
  --font-num: 'Plus Jakarta Sans', system-ui, sans-serif;
}

/* ----- Base ----- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; width: 100%; overflow-x: hidden; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  background-image:
    radial-gradient(circle at 8% 0%, rgba(247,181,56,.08), transparent 35%),
    radial-gradient(circle at 92% 12%, rgba(190,224,240,.25), transparent 40%);
  background-attachment: fixed;
}

a { color: var(--forest-deep); text-decoration: none; }
a:hover { text-decoration: underline; }
img, svg { display: block; max-width: 100%; }

h1, h2, h3, h4, h5 { color: var(--ink); margin: 0; line-height: 1.18; font-weight: 800; letter-spacing: -.015em; }
h1 { font-size: 40px; }
h2 { font-size: 28px; }
h3 { font-size: 19px; }
h4 { font-size: 15px; font-weight: 700; }

p { margin: 0; }

/* Hand-written accent text */
.hand {
  font-family: var(--font-hand);
  font-size: 26px;
  font-weight: 700;
  color: var(--forest);
  line-height: 1;
}
.hand-sun { color: var(--sun-deep); }
.hand-tomato { color: var(--tomato); }

/* Numbers */
.num { font-variant-numeric: tabular-nums; font-weight: 800; }
.amount-pos { color: var(--forest-deep); }
.amount-neg { color: var(--tomato); }

/* Common utilities */
.muted { color: var(--muted); }
.center { text-align: center; }
.row { display: flex; gap: var(--s-3); }
.row-between { display: flex; align-items: center; justify-content: space-between; }
.row-wrap { display: flex; flex-wrap: wrap; gap: var(--s-3); }
.col { display: flex; flex-direction: column; gap: var(--s-3); }
.gap-2 { gap: var(--s-2); } .gap-4 { gap: var(--s-4); } .gap-6 { gap: var(--s-6); } .gap-8 { gap: var(--s-8); }

:focus-visible {
  outline: 3px solid var(--sage);
  outline-offset: 3px;
  border-radius: 8px;
}

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: #d6cfb6; border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background: #b8b08f; }

/* ============================================================
   COMPONENTS — Buttons
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 48px; padding: 0 22px;
  font-family: var(--font); font-weight: 700; font-size: 15px;
  border: none; border-radius: var(--r-pill);
  cursor: pointer; transition: all .2s cubic-bezier(.34,1.56,.64,1);
  white-space: nowrap; line-height: 1; text-decoration: none;
  position: relative;
  max-width: 100%;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn,
.btn:hover,
.btn:focus,
.btn:hover *,
.btn:focus *,
.btn-icon,
.btn-icon:hover,
.btn-icon:focus,
.btn-icon:hover *,
.btn-icon:focus * {
  text-decoration: none !important;
}

.btn-primary {
  background: var(--forest); color: #fff;
  box-shadow: 0 4px 0 var(--forest-deep), 0 8px 16px rgba(31,111,67,.3);
}
.btn-primary:hover { background: var(--forest-deep); box-shadow: 0 6px 0 var(--forest-deep), 0 12px 24px rgba(31,111,67,.35); }
.btn-primary:active { box-shadow: 0 2px 0 var(--forest-deep), 0 4px 8px rgba(31,111,67,.25); }

.btn-sun {
  background: var(--sun); color: #6B4500;
  box-shadow: 0 4px 0 var(--sun-deep), 0 8px 16px rgba(247,181,56,.35);
}
.btn-sun:hover { background: #FFC75A; }

.btn-secondary {
  background: var(--surface); color: var(--ink);
  border: 2px solid var(--line);
  box-shadow: 0 3px 0 var(--line);
}
.btn-secondary:hover { background: var(--mint); border-color: var(--sage); box-shadow: 0 4px 0 var(--sage); }

.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--mint); }

.btn-soft {
  background: var(--mint); color: var(--forest-deep);
  box-shadow: 0 3px 0 var(--mint-deep);
}
.btn-soft:hover { background: var(--mint-deep); }

.btn-danger {
  background: var(--tomato); color: #fff;
  box-shadow: 0 4px 0 #B14A35, 0 8px 16px rgba(231,111,81,.3);
}
.btn-danger:hover { background: #D85A3D; box-shadow: 0 6px 0 #B14A35, 0 12px 24px rgba(231,111,81,.35); }
.btn-danger:active { box-shadow: 0 2px 0 #B14A35, 0 4px 8px rgba(231,111,81,.25); }

.btn-sm { height: 38px; padding: 0 16px; font-size: 13px; }
.btn-lg { height: 56px; padding: 0 30px; font-size: 16px; }
.btn-block { width: 100%; }

.btn-icon {
  width: 44px; height: 44px; padding: 0;
  border-radius: 14px; background: var(--surface); border: 2px solid var(--line);
  color: var(--ink); cursor: pointer; box-shadow: 0 2px 0 var(--line);
  display: inline-flex; align-items: center; justify-content: center;
  transition: all .15s ease;
}
.btn-icon:hover { background: var(--mint); border-color: var(--sage); box-shadow: 0 3px 0 var(--sage); transform: translateY(-1px); }

/* ============================================================
   Cards — soft, with bottom shadow like a paper card on a table
   ============================================================ */
.card {
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: var(--r-md);
  padding: 24px;
  box-shadow: var(--shadow-card);
  position: relative;
  min-width: 0;
}
.action-card {
  color: inherit;
  text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.action-card:hover {
  transform: translateY(-2px);
  border-color: var(--mint-deep);
  box-shadow: 0 6px 0 rgba(181,216,154,.9), 0 10px 20px rgba(74,92,77,.10);
}
.action-card,
.action-card:hover,
.action-card:focus,
.action-card:hover *,
.action-card:focus * {
  text-decoration: none !important;
}
.card-warm { background: var(--surface-warm); }
.card-tilt-l { transform: rotate(-.6deg); }
.card-tilt-r { transform: rotate(.6deg); }

.card-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 16px; padding-bottom: 14px;
  border-bottom: 1.5px dashed var(--line);
}
.card-header h3 { font-size: 18px; }

/* ============================================================
   Sticker chips — slightly tilted, colorful
   ============================================================ */
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  height: 30px; padding: 0 13px;
  border-radius: 999px; font-size: 13px; font-weight: 700;
  background: var(--mint); color: var(--forest-deep);
  border: 1.5px solid transparent;
  white-space: nowrap;
  box-shadow: 0 2px 0 rgba(0,0,0,.04);
}
.chip-tomato  { background: var(--tomato-soft); color: #A03A1F; }
.chip-chili   { background: var(--chili-soft);  color: var(--chili); }
.chip-sun     { background: var(--sun-soft);    color: #6B4500; }
.chip-sky     { background: var(--sky);          color: var(--sky-deep); }
.chip-soil    { background: var(--soil-soft);   color: #5C4438; }
.chip-leaf    { background: var(--mint);         color: var(--forest-deep); }
.chip-outline { background: var(--surface); border-color: var(--line); color: var(--ink); }

/* Big sticker badges */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px; border-radius: 999px;
  font-size: 11px; font-weight: 800; text-transform: uppercase;
  letter-spacing: .05em;
}
.badge-success { background: var(--mint);         color: var(--forest-deep); }
.badge-danger  { background: var(--tomato-soft);  color: #A03A1F; }
.badge-warn    { background: var(--sun-soft);     color: #7A5800; }
.badge-info    { background: var(--sky);          color: var(--sky-deep); }
.badge-low     { background: #FFE0B2;             color: #7A5800; }
.badge-muted   { background: #E6E6E6;             color: #555; }

/* ============================================================
   Forms
   ============================================================ */
.field { display: flex; flex-direction: column; gap: 8px; }
.field-row { display: flex; gap: 14px; flex-wrap: wrap; }
.field-row > .field { flex: 1; min-width: 180px; }
.card > form > .field + .field,
.card > form > .field-row + .field,
.card > form > .field + .field-row,
.card > form > .field-row + .field-row,
.card > form > .divider-dashed + .field,
.card > form > .divider-dashed + .field-row,
.card > form > .field + .checkline,
.card > form > .checkline + .field,
.card > form > .field + .alert,
.card > form > .field-row + .alert,
.card > form > .checkline + .alert,
.card > form > .helper + .alert,
.card > form > .alert + .field,
.card > form > .helper + .field {
  margin-top: 14px;
}
.card > form > .mobile-form-step > .field + .field,
.card > form > .mobile-form-step > .field-row + .field,
.card > form > .mobile-form-step > .field + .field-row,
.card > form > .mobile-form-step > .field-row + .field-row,
.card > form > .mobile-form-step > .divider-dashed + .field,
.card > form > .mobile-form-step > .divider-dashed + .field-row,
.card > form > .mobile-form-step > .field + .checkline,
.card > form > .mobile-form-step > .checkline + .field,
.card > form > .mobile-form-step > .field + .alert,
.card > form > .mobile-form-step > .field-row + .alert,
.card > form > .mobile-form-step > .checkline + .alert,
.card > form > .mobile-form-step > .helper + .alert,
.card > form > .mobile-form-step > .alert + .field,
.card > form > .mobile-form-step > .helper + .field {
  margin-top: 14px;
}
.card > form > .btn,
.card > form > button.btn,
.card > form > .field + .btn,
.card > form > .field-row + .btn,
.card > form > .checkline + .btn,
.card > form > .alert + .btn,
.card > form > .helper + .btn {
  margin-top: 18px !important;
}
.card > form > .mobile-form-step > .btn,
.card > form > .mobile-form-step > button.btn,
.card > form > .mobile-form-step > .field + .btn,
.card > form > .mobile-form-step > .field-row + .btn,
.card > form > .mobile-form-step > .checkline + .btn,
.card > form > .mobile-form-step > .alert + .btn,
.card > form > .mobile-form-step > .helper + .btn {
  margin-top: 18px !important;
}
.card > form > .row {
  margin-top: 18px !important;
}
.card > form > .mobile-form-step > .row {
  margin-top: 18px !important;
}
.card > form > .btn-block,
.card > form > button.btn-block {
  width: 100%;
}
.card > form > .mobile-form-step > .btn-block,
.card > form > .mobile-form-step > button.btn-block {
  width: 100%;
}
.label {
  font-size: 13px; font-weight: 700; color: var(--ink);
  letter-spacing: .005em;
}
.input, .select, .textarea {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  height: 50px; padding: 0 16px;
  border: 2px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--surface); color: var(--ink);
  font-family: var(--font); font-size: 15px; font-weight: 500;
  transition: all .15s ease;
}
.textarea { height: auto; padding: 14px 16px; resize: vertical; min-height: 96px; }
.input:focus, .select:focus, .textarea:focus {
  outline: none; border-color: var(--sage);
  box-shadow: 0 0 0 4px rgba(132,185,92,.18);
}
.input-prefix { position: relative; }
.input-prefix .pfx {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  font-weight: 700; color: var(--muted); pointer-events: none; font-size: 14px;
}
.input-prefix .input { padding-left: 46px; }
.helper { font-size: 12px; color: var(--muted); }

/* ============================================================
   Tables
   ============================================================ */
.tbl { width: 100%; border-collapse: separate; border-spacing: 0; }
.tbl thead th {
  text-align: left; font-size: 11px; font-weight: 800;
  text-transform: uppercase; letter-spacing: .07em;
  color: var(--muted); padding: 14px 16px;
  border-bottom: 2px dashed var(--line);
  background: var(--surface-warm);
}
.tbl tbody td {
  padding: 16px; font-size: 14px; color: var(--ink);
  border-bottom: 1px solid var(--line-soft);
}
.tbl tbody tr:hover td { background: #fdf9ec; }
.tbl tbody tr:last-child td { border-bottom: none; }
.tbl-wrap {
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

/* ============================================================
   Alerts — friendly speech-bubble style
   ============================================================ */
.alert {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 16px 18px; border-radius: var(--r-md);
  border: 2px solid transparent;
}
.alert-success { background: var(--mint);        color: var(--forest-deep); border-color: var(--mint-deep); }
.alert-warn    { background: var(--sun-soft);    color: #7A5800;            border-color: #F0CB7A; }
.alert-info    { background: var(--sky);         color: var(--sky-deep);    border-color: #94CCE3; }
.alert-danger  { background: var(--tomato-soft); color: #A03A1F;            border-color: #ECB5A5; }
.alert strong { display: block; font-weight: 800; }
.alert .ico { flex-shrink: 0; margin-top: 1px; }

/* ============================================================
   Tabs / chip groups
   ============================================================ */
.tabs {
  display: inline-flex; gap: 4px; padding: 5px;
  background: var(--bg-deep); border-radius: 999px;
  border: 1.5px solid var(--line);
}
.tab {
  padding: 9px 20px; border-radius: 999px;
  font-size: 13px; font-weight: 700; color: var(--muted);
  cursor: pointer; border: none; background: transparent;
  transition: all .15s ease;
}
.tab:hover { color: var(--ink); }
.tab.active {
  background: var(--surface); color: var(--forest-deep);
  box-shadow: 0 2px 6px rgba(0,0,0,.08);
}

/* ============================================================
   Modal + Toast
   ============================================================ */
.modal-backdrop {
  position: fixed; inset: 0; background: rgba(40,55,40,.55);
  display: none; align-items: center; justify-content: center;
  z-index: 200; padding: 20px;
  backdrop-filter: blur(4px);
}
.modal-backdrop.open { display: flex; }
.modal {
  background: var(--surface); border-radius: var(--r-lg);
  width: 100%; max-width: 540px; padding: 32px;
  box-shadow: var(--shadow-pop);
  max-height: 90vh; overflow-y: auto;
  border: 2px solid var(--line);
}

.toast {
  position: fixed; bottom: 28px; left: 50%;
  transform: translate(-50%, 100px); opacity: 0;
  background: var(--forest-deep); color: #fff;
  padding: 14px 22px; border-radius: 999px;
  display: flex; align-items: center; gap: 10px;
  box-shadow: var(--shadow-pop);
  transition: all .35s cubic-bezier(.34,1.56,.64,1);
  z-index: 300; font-weight: 600; font-size: 14px;
  max-width: 90%;
}
.toast.show { transform: translate(-50%, 0); opacity: 1; }

/* ============================================================
   Day chips for water plan
   ============================================================ */
.day-chip {
  width: 60px; height: 70px;
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center;
  background: var(--surface); border: 2px solid var(--line);
  border-radius: 18px; cursor: pointer;
  transition: all .15s cubic-bezier(.34,1.56,.64,1);
  box-shadow: 0 3px 0 var(--line);
  gap: 2px;
}
.day-chip:hover { transform: translateY(-2px); box-shadow: 0 5px 0 var(--line); }
.day-chip .d-label { font-size: 10px; color: var(--muted); text-transform: uppercase; font-weight: 800; letter-spacing: .08em; }
.day-chip .d-num { font-size: 20px; font-weight: 800; color: var(--ink); }
.day-chip .d-icon { margin-top: 2px; opacity: .8; }

.day-chip.scheduled { background: var(--sky); border-color: #94CCE3; box-shadow: 0 3px 0 #94CCE3; }
.day-chip.scheduled .d-label, .day-chip.scheduled .d-num { color: var(--sky-deep); }

.day-chip.done { background: var(--mint); border-color: var(--mint-deep); box-shadow: 0 3px 0 var(--mint-deep); }
.day-chip.done .d-label, .day-chip.done .d-num { color: var(--forest-deep); }

.day-chip.today { background: var(--sun-soft); border-color: var(--sun); box-shadow: 0 3px 0 var(--sun-deep); }
.day-chip.today .d-label, .day-chip.today .d-num { color: #6B4500; }

/* ============================================================
   Progress bars (organic, with rounded fill)
   ============================================================ */
.progress {
  height: 12px; background: var(--bg-deep); border-radius: 999px; overflow: hidden;
  border: 1.5px solid var(--line-soft);
}
.progress > span {
  display: block; height: 100%; background: linear-gradient(90deg, var(--sage), var(--forest));
  border-radius: 999px; position: relative;
}
.progress.warn > span { background: linear-gradient(90deg, var(--sun), var(--sun-deep)); }
.progress.danger > span { background: linear-gradient(90deg, var(--tomato), var(--chili)); }

/* ============================================================
   Activity feed
   ============================================================ */
.activity-item {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 14px 0; border-bottom: 1px dashed var(--line);
}
.activity-item:last-child { border-bottom: none; }
.act-icon {
  width: 40px; height: 40px; border-radius: 14px;
  background: var(--mint); color: var(--forest-deep);
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.act-icon.expense { background: var(--tomato-soft); color: var(--tomato); }
.act-icon.water   { background: var(--sky);         color: var(--sky-deep); }
.act-icon.harvest { background: var(--sun-soft);    color: var(--sun-deep); }

/* Helpers */
.divider { height: 1.5px; background: var(--line); margin: 16px 0; border: none; }
.divider-dashed { border: 0; border-top: 1.5px dashed var(--line); margin: 16px 0; }

.grid { display: grid; gap: 18px; }
.grid > * { min-width: 0; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1024px) { .grid-4, .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* ============================================================
   Mobile PWA install + stepped forms
   ============================================================ */
.semai-install-bar,
.mobile-stepper,
.mobile-step-actions,
.mobile-card-toggle {
  display: none;
}

.mobile-form-step {
  display: contents;
}

@media (max-width: 760px) {
  body.has-pwa-install-bar {
    padding-bottom: 96px;
  }

  .semai-install-bar.is-visible {
    position: fixed;
    left: 10px;
    right: 10px;
    bottom: 10px;
    z-index: 240;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border: 1.5px solid var(--line);
    border-radius: 22px;
    background: rgba(255, 252, 243, .98);
    box-shadow: 0 14px 34px rgba(42, 58, 44, .18);
    backdrop-filter: blur(12px);
  }

  body.has-mobile-bottom-nav .semai-install-bar.is-visible {
    bottom: 84px;
  }

  .semai-install-icon {
    width: 42px;
    height: 42px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    color: var(--forest-deep);
    background: var(--mint);
    box-shadow: 0 3px 0 var(--mint-deep);
  }

  .semai-install-copy {
    min-width: 0;
    flex: 1;
    display: grid;
    gap: 1px;
  }

  .semai-install-copy strong {
    font-size: 13px;
    line-height: 1.15;
  }

  .semai-install-copy span {
    color: var(--muted);
    font-size: 11px;
    line-height: 1.25;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .semai-install-action,
  .semai-install-close {
    border: 0;
    font-family: var(--font);
    cursor: pointer;
  }

  .semai-install-action {
    min-height: 38px;
    padding: 0 14px;
    border-radius: 999px;
    background: var(--forest);
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    box-shadow: 0 3px 0 var(--forest-deep);
  }

  .semai-install-close {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    background: var(--bg-deep);
    color: var(--muted);
    font-size: 22px;
    line-height: 1;
  }

  form[data-mobile-stepper] {
    scroll-margin-top: 90px;
  }

  form[data-mobile-stepper] .mobile-form-step {
    display: none;
  }

  form[data-mobile-stepper] .mobile-form-step.is-active {
    display: block;
    animation: grow .24s cubic-bezier(.34,1.56,.64,1);
  }

  .mobile-stepper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
    padding: 12px 14px;
    border: 1.5px solid var(--line);
    border-radius: 18px;
    background: var(--surface-warm);
    box-shadow: 0 3px 0 rgba(232, 223, 201, .9);
  }

  .mobile-stepper-copy {
    display: grid;
    gap: 2px;
    min-width: 0;
  }

  .mobile-stepper-kicker {
    color: var(--sun-deep);
    font-family: var(--font-hand);
    font-size: 19px;
    font-weight: 700;
    line-height: 1;
  }

  .mobile-stepper-copy strong {
    color: var(--ink);
    font-size: 14px;
    line-height: 1.2;
  }

  .mobile-stepper-dots {
    display: inline-flex;
    gap: 5px;
    align-items: center;
    flex-shrink: 0;
  }

  .mobile-step-dot {
    width: 10px;
    height: 10px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: var(--line);
  }

  .mobile-step-dot.is-done {
    background: var(--mint-deep);
  }

  .mobile-step-dot.is-active {
    width: 24px;
    background: var(--forest);
  }

  .mobile-step-actions {
    display: flex;
    gap: 10px;
    margin-top: 16px;
  }

  .mobile-step-actions .btn {
    flex: 1;
  }
}

/* ============================================================
   Animations
   ============================================================ */
@keyframes drift { from { transform: translateX(0); } to { transform: translateX(20px); } }
@keyframes spin-slow { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes grow {
  0%   { transform: translateY(8px) scale(.95); opacity: 0; }
  100% { transform: translateY(0) scale(1); opacity: 1; }
}
@keyframes wave { 0%,100% { transform: rotate(0); } 50% { transform: rotate(8deg); } }

.spin-slow { animation: spin-slow 60s linear infinite; }
.float     { animation: float 4s ease-in-out infinite; }
.float-slow{ animation: float 6s ease-in-out infinite; }
.drift     { animation: drift 8s ease-in-out infinite alternate; }

/* Print receipt */
@media print {
  body * { visibility: hidden; }
  .receipt, .receipt * { visibility: visible; }
  .receipt { position: absolute; left: 0; top: 0; }
}

/* Link-wrapped cards must feel like premium touch targets, not browser links. */
a.card,
a.card:hover,
a.card:focus,
a.card:focus-visible,
a.card:active,
a.card *,
a.card:hover *,
a.card:focus *,
a.card:focus-visible *,
a.card:active *,
a.action-card,
a.action-card:hover,
a.action-card:focus,
a.action-card:focus-visible,
a.action-card:active,
a.action-card *,
a.action-card:hover *,
a.action-card:focus *,
a.action-card:focus-visible *,
a.action-card:active * {
  text-decoration: none !important;
  text-decoration-line: none !important;
}
