/* =====================================================================
   NinjaFauna — Revamp layer
   Loaded AFTER style.css. Overrides the base look and styles the new
   layout. Class names generated by app.js (.card, .btn, .pill, .grid-3,
   .modal-box, .chat-messages, …) are restyled here too.
   ===================================================================== */

:root {
  /* Brand */
  --nf-plum-900: #24102f;
  --nf-plum-800: #3b1d4a;
  --nf-plum-700: #55296a;
  --nf-plum-600: #6d3888;
  --nf-plum-100: #f3ecf7;
  --nf-plum-50:  #faf6fc;
  --nf-gold-500: #e9b949;
  --nf-gold-600: #d4a12e;
  --nf-gold-100: #fcf3dc;

  /* Neutrals */
  --nf-ink:    #1d1726;
  --nf-body:   #4a4453;
  --nf-muted:  #7a7384;
  --nf-line:   #e8e3ee;
  --nf-bg:     #f8f7fa;
  --nf-white:  #ffffff;
  --nf-green:  #1f9d63;

  --nf-radius-sm: 8px;
  --nf-radius:    14px;
  --nf-radius-lg: 20px;
  --nf-shadow-sm: 0 1px 2px rgba(36, 16, 47, .06);
  --nf-shadow:    0 4px 20px rgba(36, 16, 47, .07);
  --nf-shadow-lg: 0 20px 50px rgba(36, 16, 47, .18);
  --nf-header-h:  68px;
  --nf-max:       1200px;

  /* Map legacy variables used by style.css / app.js to the new palette */
  --plum-dark:    var(--nf-plum-800);
  --plum-primary: var(--nf-plum-600);
  --plum-accent:  var(--nf-plum-600);
  --plum-soft:    var(--nf-plum-50);
  --gold-cta:     var(--nf-gold-500);
  --text-muted:   var(--nf-muted);
  --border-color: var(--nf-line);
  --bg-page:      var(--nf-bg);
  --success:      var(--nf-green);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nf-header-h) + 16px); }
body.nf {
  margin: 0;
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--nf-body);
  background: var(--nf-bg);
  -webkit-font-smoothing: antialiased;
}
.nf h1, .nf h2, .nf h3, .nf h4 { color: var(--nf-ink); line-height: 1.2; margin: 0; letter-spacing: -0.015em; }
.nf p { margin: 0; }
.nf a { color: var(--nf-plum-600); }
.nf img { max-width: 100%; height: auto; }
.nf :focus-visible { outline: 3px solid var(--nf-gold-500); outline-offset: 2px; border-radius: 4px; }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 1000;
  background: var(--nf-ink); color: #fff !important; padding: .6rem 1rem; border-radius: var(--nf-radius-sm);
  text-decoration: none; font-weight: 700;
}
.skip-link:focus { top: 1rem; }

.nf .container { max-width: var(--nf-max); margin: 0 auto; padding: 0 1.5rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.site-header.is-scrolled { border-color: var(--nf-line); box-shadow: var(--nf-shadow-sm); }
.header-inner {
  max-width: var(--nf-max); margin: 0 auto; padding: 0 1.5rem;
  height: var(--nf-header-h); display: flex; align-items: center; gap: 1.25rem;
}
.nf .brand {
  display: inline-flex; align-items: center; gap: .6rem; flex-shrink: 0;
  text-decoration: none; color: var(--nf-ink); font-weight: 800; font-size: 1.15rem; letter-spacing: -0.02em;
}
.nf .brand-logo { display: block; height: 51px; width: auto; max-width: 200px; object-fit: contain; }
.nf .brand-text { font-size: 1.2rem; font-weight: 800; letter-spacing: .02em; line-height: 1; }
.nf .brand-ninja { color: #372145; }
.nf .brand-fauna { color: #1f9d63; }
.nf .brand-badge {
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px;
  background: linear-gradient(135deg, var(--nf-plum-700), var(--nf-plum-900));
  color: var(--nf-gold-500); font-size: .8rem; font-weight: 800; letter-spacing: .02em;
}

.nf .search-bar { position: relative; flex: 1 1 220px; min-width: 0; max-width: 320px; margin: 0; padding: 0; background: none; border: 0; }
.nf .search-bar .search-icon { position: absolute; left: .85rem; top: 50%; transform: translateY(-50%); color: var(--nf-muted); pointer-events: none; }
.nf .search-bar input {
  width: 100%; height: 40px; padding: 0 .9rem 0 2.5rem;
  border: 1px solid var(--nf-line); border-radius: 999px; background: var(--nf-bg);
  font: inherit; font-size: .9rem; color: var(--nf-ink); transition: border-color .15s, background .15s, box-shadow .15s;
}
.nf .search-bar input:focus { outline: none; background: #fff; border-color: var(--nf-plum-600); box-shadow: 0 0 0 4px var(--nf-plum-100); }

.nf .nav-links {
  display: flex; flex-wrap: nowrap; align-items: center; gap: .25rem; margin: 0 0 0 auto; padding: 0;
  flex-shrink: 0; background: none; border: 0; box-shadow: none; position: static;
}
.nf .nav-links a {
  padding: .5rem .7rem; border-radius: var(--nf-radius-sm);
  color: var(--nf-body); text-decoration: none; font-size: .9rem; font-weight: 600; white-space: nowrap; line-height: 1.2;
  transition: color .15s, background .15s;
}
.nf .nav-links a:hover, .nf .nav-links a.is-active { color: var(--nf-plum-700); background: var(--nf-plum-50); }

.nf .header-actions { display: flex; align-items: center; gap: .5rem; flex-shrink: 0; }
.nf .icon-btn {
  position: relative; display: grid; place-items: center; width: 40px; height: 40px;
  border: 1px solid var(--nf-line); border-radius: 999px; background: #fff; color: var(--nf-ink); cursor: pointer;
  transition: border-color .15s, background .15s;
}
.nf .icon-btn:hover { border-color: var(--nf-plum-600); background: var(--nf-plum-50); }
.nf .cart-badge {
  position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 999px; background: var(--nf-gold-500); color: var(--nf-plum-900);
  font-size: .68rem; font-weight: 800; line-height: 18px; text-align: center; border: 2px solid #fff;
}
.nf .account-pill {
  display: inline-flex; align-items: center; gap: .5rem; height: 40px; padding: 0 .9rem 0 .35rem;
  border: 1px solid var(--nf-line); border-radius: 999px; background: #fff; color: var(--nf-ink);
  font: inherit; font-size: .88rem; font-weight: 700; cursor: pointer; max-width: 200px;
  transition: border-color .15s, background .15s;
}
.nf .account-pill:hover { border-color: var(--nf-plum-600); background: var(--nf-plum-50); }
.nf .account-pill.is-guest { background: var(--nf-plum-800); border-color: var(--nf-plum-800); color: #fff; }
.nf .account-pill.is-guest:hover { background: var(--nf-plum-700); }
.nf .account-avatar-wrap {
  position: relative; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
  background: var(--nf-plum-100); color: var(--nf-plum-700);
}
.nf .account-pill.is-guest .account-avatar-wrap { background: rgba(255,255,255,.15); color: #fff; }
.nf .account-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nf .online-indicator {
  position: absolute; right: -1px; bottom: -1px; width: 10px; height: 10px; border-radius: 50%;
  border: 2px solid #fff; background: #c8c2cf; display: none;
}
.nf .online-indicator.active { display: block; background: var(--nf-green); }
.nf .nav-toggle { display: none; }

/* ---------- Buttons ---------- */
.nf .btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  height: 44px; padding: 0 1.2rem; border-radius: 10px; border: 1px solid transparent;
  font: inherit; font-size: .92rem; font-weight: 700; line-height: 1; text-decoration: none; white-space: nowrap;
  cursor: pointer; transition: background .15s, border-color .15s, color .15s, transform .05s, box-shadow .15s;
}
.nf .btn:active { transform: translateY(1px); }
.nf .btn:disabled { opacity: .55; cursor: not-allowed; }
.nf .btn-sm { height: 36px; padding: 0 .9rem; font-size: .84rem; border-radius: 8px; }
.nf .btn-lg { height: 52px; padding: 0 1.6rem; font-size: 1rem; border-radius: 12px; }
.nf .btn-block { width: 100%; }
.nf .btn-plum { background: var(--nf-plum-800); color: #fff; }
.nf .btn-plum:hover { background: var(--nf-plum-700); }
.nf .btn-gold { background: var(--nf-gold-500); color: var(--nf-plum-900); }
.nf .btn-gold:hover { background: var(--nf-gold-600); }
.nf .btn-outline { background: #fff; border-color: var(--nf-line); color: var(--nf-ink); }
.nf .btn-outline:hover { border-color: var(--nf-plum-600); color: var(--nf-plum-700); background: var(--nf-plum-50); }
.nf .btn-outline-light { background: transparent; border-color: rgba(255,255,255,.35); color: #fff; }
.nf .btn-outline-light:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.6); }
.nf .btn-ghost { background: transparent; color: var(--nf-body); }
.nf .btn-ghost:hover { background: var(--nf-plum-50); color: var(--nf-plum-700); }
.nf .link-btn {
  background: none; border: 0; padding: 0; font: inherit; font-weight: 700;
  color: var(--nf-plum-600); cursor: pointer; text-decoration: underline; text-underline-offset: 3px;
}

/* ---------- Eyebrows / section heads ---------- */
.nf .eyebrow {
  display: inline-block; margin-bottom: .6rem;
  font-size: .74rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--nf-plum-600);
}
.nf .eyebrow-light { color: var(--nf-gold-500); }

.nf .section { padding: 4.5rem 0 0; }
.nf .section-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap;
  margin-bottom: 1.75rem;
}
.nf .section-head h2 { font-size: clamp(1.5rem, 2.4vw, 2rem); font-weight: 800; }
.nf .section-head p { margin-top: .45rem; color: var(--nf-muted); max-width: 600px; }
.nf .section-head-center { flex-direction: column; align-items: center; text-align: center; }
.nf .section-head-center p { margin-left: auto; margin-right: auto; }

/* ---------- Hero ---------- */
.nf .hero {
  position: relative; overflow: hidden; color: rgba(255,255,255,.82);
  background:
    radial-gradient(900px 400px at 85% -10%, rgba(233,185,73,.18), transparent 60%),
    radial-gradient(700px 500px at -10% 110%, rgba(109,56,136,.55), transparent 60%),
    linear-gradient(160deg, var(--nf-plum-800), var(--nf-plum-900));
  padding: 0; display: block; min-height: 0; border-radius: 0;
  margin: 0; width: 100%; max-width: none; box-shadow: none;
}
.nf .hero-inner {
  max-width: var(--nf-max); margin: 0 auto; padding: 5rem 1.5rem 5.5rem;
  display: grid; grid-template-columns: 1.25fr .9fr; gap: 3.5rem; align-items: center;
}
.nf .hero h1 { color: #fff; font-size: clamp(2.2rem, 4.6vw, 3.5rem); font-weight: 800; letter-spacing: -0.03em; margin-bottom: 1.1rem; }
.nf .hero h1 .accent { color: var(--nf-gold-500); }
.nf .hero .lead { font-size: 1.1rem; max-width: 560px; margin-bottom: 2rem; }
.nf .hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-bottom: 2rem; }
.nf .hero-points { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; padding: 0; margin: 0; list-style: none; font-size: .88rem; font-weight: 600; }
.nf .hero-points li { display: inline-flex; align-items: center; gap: .45rem; }
.nf .hero-points li::before {
  content: ""; width: 16px; height: 16px; border-radius: 50%; flex-shrink: 0;
  background: var(--nf-gold-500) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2324102f' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/10px no-repeat;
}

.nf .hero-panel {
  background: #fff; color: var(--nf-body); border-radius: var(--nf-radius-lg);
  padding: 1.75rem; box-shadow: var(--nf-shadow-lg);
}
.nf .hero-panel-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: .75rem; }
.nf .hero-panel-kicker { font-size: .74rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--nf-muted); }
.nf .status-chip {
  display: inline-flex; align-items: center; gap: .35rem; padding: .2rem .65rem; border-radius: 999px;
  background: var(--nf-bg); color: var(--nf-muted); font-size: .75rem; font-weight: 700;
}
.nf .status-chip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #c8c2cf; }
.nf .status-chip.is-on { background: #e7f6ee; color: var(--nf-green); }
.nf .status-chip.is-on::before { background: var(--nf-green); }
.nf .hero-panel-title { font-size: 1.25rem; font-weight: 800; color: var(--nf-ink); line-height: 1.3; margin-bottom: 1.1rem; }
.nf .hero-panel-list { list-style: none; padding: 0; margin: 0 0 1.4rem; display: grid; gap: .7rem; font-size: .92rem; }
.nf .hero-panel-list li { display: flex; align-items: flex-start; gap: .6rem; }
.nf .tick {
  flex-shrink: 0; margin-top: 3px; width: 18px; height: 18px; border-radius: 6px;
  background: var(--nf-plum-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236d3888' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/11px no-repeat;
}

/* ---------- Pillars ---------- */
.nf .pillar-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; }
.nf .pillar {
  display: flex; flex-direction: column; gap: .35rem; padding: 1.4rem;
  background: #fff; border: 1px solid var(--nf-line); border-radius: var(--nf-radius);
  text-decoration: none; color: inherit; transition: border-color .2s, box-shadow .2s, transform .2s;
}
.nf .pillar:hover { border-color: var(--nf-plum-100); box-shadow: var(--nf-shadow); transform: translateY(-3px); }
.nf .pillar-icon {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; margin-bottom: .6rem;
  background: var(--nf-plum-50); color: var(--nf-plum-600);
}
.nf .pillar-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.nf .pillar-tag { font-size: .7rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--nf-muted); }
.nf .pillar h3 { font-size: 1.02rem; font-weight: 800; }
.nf .pillar p { font-size: .86rem; color: var(--nf-muted); line-height: 1.55; }

/* ---------- TeleVet steps strip ---------- */
.nf .steps-strip {
  list-style: none; margin: 0 0 1.5rem; padding: 1rem;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem;
  background: #fff; border: 1px solid var(--nf-line); border-radius: var(--nf-radius);
}
.nf .steps-strip li { display: flex; align-items: center; gap: .8rem; }
.nf .steps-strip strong { display: block; color: var(--nf-ink); font-size: .92rem; }
.nf .steps-strip small { color: var(--nf-muted); font-size: .8rem; }
.nf .step-num {
  display: grid; place-items: center; flex-shrink: 0; width: 34px; height: 34px; border-radius: 50%;
  background: var(--nf-gold-100); color: var(--nf-plum-800); font-weight: 800; font-size: .88rem;
}

/* ---------- Filter pills ---------- */
.nf .filter-pills { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.5rem; }
.nf .pill {
  height: 36px; padding: 0 1rem; border-radius: 999px; border: 1px solid var(--nf-line);
  background: #fff; color: var(--nf-body); font: inherit; font-size: .85rem; font-weight: 600; cursor: pointer;
  transition: all .15s;
}
.nf .pill:hover { border-color: var(--nf-plum-600); color: var(--nf-plum-700); }
.nf .pill.active { background: var(--nf-plum-800); border-color: var(--nf-plum-800); color: #fff; }

/* ---------- Cards (incl. app.js-generated) ---------- */
.nf .grid-3 { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 1.25rem; }
.nf .grid-3:empty {
  min-height: 140px; border: 1px dashed var(--nf-line); border-radius: var(--nf-radius);
  background: repeating-linear-gradient(90deg, #fff 0 40%, var(--nf-plum-50) 50%, #fff 60%) 0 0 / 300% 100%;
  animation: nf-shimmer 1.6s linear infinite;
}
@keyframes nf-shimmer { to { background-position: -150% 0; } }
.nf .card {
  background: #fff; border: 1px solid var(--nf-line); border-radius: var(--nf-radius);
  padding: 1.4rem; box-shadow: var(--nf-shadow-sm); transition: box-shadow .2s, border-color .2s, transform .2s;
}
.nf .card:hover { box-shadow: var(--nf-shadow); border-color: var(--nf-plum-100); }
.nf .card h3, .nf .card h4 { color: var(--nf-ink); }

/* ---------- Education / feature cards ---------- */
.nf .feature-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
.nf .feature-card {
  display: flex; flex-direction: column; align-items: flex-start; gap: .7rem; padding: 2rem;
  background: #fff; border: 1px solid var(--nf-line); border-radius: var(--nf-radius-lg);
}
.nf .feature-card-alt { background: linear-gradient(160deg, var(--nf-plum-50), #fff); }
.nf .feature-card h3 { font-size: 1.3rem; font-weight: 800; }
.nf .feature-card p { color: var(--nf-muted); font-size: .94rem; margin-bottom: .5rem; }
.nf .feature-label {
  padding: .25rem .7rem; border-radius: 999px; background: var(--nf-gold-100); color: #8a6512;
  font-size: .74rem; font-weight: 800; letter-spacing: .03em;
}

/* ---------- History table ---------- */
.nf .history-card { background: #fff; border: 1px solid var(--nf-line); border-radius: var(--nf-radius); overflow: hidden; padding: 0; }
.nf .table-scroll { overflow-x: auto; }
.nf .history-card table { width: 100%; border-collapse: collapse; font-size: .9rem; min-width: 720px; }
.nf .history-card th {
  text-align: left; padding: .85rem 1.1rem; background: var(--nf-bg); color: var(--nf-muted);
  font-size: .74rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; border-bottom: 1px solid var(--nf-line);
}
.nf .history-card td { padding: .95rem 1.1rem; border-bottom: 1px solid var(--nf-line); color: var(--nf-body); vertical-align: middle; }
.nf .history-card tbody tr:last-child td { border-bottom: 0; }
.nf .history-card tbody tr:hover td { background: var(--nf-plum-50); }
.nf .table-empty { text-align: center; padding: 2.5rem 1rem !important; color: var(--nf-muted); }

/* ---------- CTA band ---------- */
.nf .cta-band {
  margin: 5rem 0 4.5rem; padding: 2.5rem; border-radius: var(--nf-radius-lg);
  display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap;
  background: linear-gradient(135deg, var(--nf-plum-800), var(--nf-plum-900)); color: rgba(255,255,255,.8);
}
.nf .cta-band h2 { color: #fff; font-size: 1.6rem; font-weight: 800; margin-bottom: .4rem; }

/* ---------- Status dots (legacy) ---------- */
.nf .status-dot { display: inline-flex; align-items: center; gap: .4rem; font-size: .8rem; font-weight: 700; }
.nf .status-online::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--nf-green); }

/* ---------- Modals ---------- */
.nf .modal-backdrop {
  position: fixed; inset: 0; z-index: 500; display: none;
  align-items: center; justify-content: center; padding: 1.25rem;
  background: rgba(29, 23, 38, .55); backdrop-filter: blur(3px);
}
.nf .modal-backdrop.open { display: flex; animation: nf-fade .15s ease-out; }
.nf .modal-box {
  position: relative; width: 100%; max-width: 460px; max-height: calc(100vh - 2.5rem); overflow-y: auto;
  background: #fff; border-radius: var(--nf-radius-lg); padding: 1.75rem; box-shadow: var(--nf-shadow-lg);
  animation: nf-pop .18s ease-out;
}
.nf .modal-wide { max-width: 560px; }
.nf .modal-center { text-align: center; padding-top: 2.25rem; }
@keyframes nf-fade { from { opacity: 0; } }
@keyframes nf-pop { from { opacity: 0; transform: translateY(8px) scale(.98); } }

.nf .modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: 1.25rem; }
.nf .modal-head h3 { font-size: 1.2rem; font-weight: 800; }
.nf .modal-head-bordered { padding-bottom: 1rem; border-bottom: 1px solid var(--nf-line); margin-bottom: 0; }
.nf .modal-close {
  flex-shrink: 0; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  border: 0; background: var(--nf-bg); color: var(--nf-muted); font-size: 1.35rem; line-height: 1; cursor: pointer;
}
.nf .modal-close:hover { background: var(--nf-plum-100); color: var(--nf-ink); }
.nf .modal-center .modal-close { position: absolute; top: 1rem; right: 1rem; }
.nf .modal-icon {
  display: grid; place-items: center; width: 56px; height: 56px; margin: 0 auto 1rem; border-radius: 16px;
  background: var(--nf-plum-50); color: var(--nf-plum-600);
}
.nf .modal-icon svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.nf .modal-center h3 { font-size: 1.35rem; font-weight: 800; margin-bottom: .4rem; }
.nf .modal-sub { color: var(--nf-muted); font-size: .9rem; margin-bottom: 1.25rem; }
.nf .modal-later { display: block; margin: 1rem auto 0; color: var(--nf-muted); text-decoration: none; }
.nf .modal-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding-top: 1rem; margin-top: 1rem; border-top: 1px solid var(--nf-line);
}

.nf .context-card {
  text-align: left; padding: .9rem 1rem; margin-bottom: 1rem;
  background: var(--nf-plum-50); border: 1px solid var(--nf-plum-100); border-radius: var(--nf-radius-sm);
}
.nf .context-card strong { display: block; color: var(--nf-ink); font-size: .92rem; }
.nf .context-card small { color: var(--nf-muted); }
.nf .check-list { list-style: none; padding: 0; margin: 0 0 1.4rem; text-align: left; display: grid; gap: .55rem; font-size: .88rem; }
.nf .check-list li { display: flex; gap: .55rem; }
.nf .check-list li::before {
  content: ""; flex-shrink: 0; margin-top: 3px; width: 16px; height: 16px; border-radius: 50%;
  background: #e7f6ee url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231f9d63' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/10px no-repeat;
}

/* ---------- Forms ---------- */
.nf .form-group { margin-bottom: 1rem; }
.nf .form-group label { display: block; margin-bottom: .4rem; font-size: .85rem; font-weight: 700; color: var(--nf-ink); }
.nf .form-group .optional { font-weight: 500; color: var(--nf-muted); }
.nf .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; }
.nf .form-control {
  width: 100%; min-height: 44px; padding: .6rem .85rem; border: 1px solid var(--nf-line); border-radius: 10px;
  background: #fff; font: inherit; font-size: .93rem; color: var(--nf-ink); transition: border-color .15s, box-shadow .15s;
}
.nf textarea.form-control { resize: vertical; min-height: 96px; }
.nf .form-control:focus { outline: none; border-color: var(--nf-plum-600); box-shadow: 0 0 0 4px var(--nf-plum-100); }
.nf .form-control::placeholder { color: #a9a2b3; }
.nf .otp-input { text-align: center; font-size: 1.5rem; font-weight: 800; letter-spacing: .5rem; }
.nf .fine-print { margin-top: .85rem; font-size: .76rem; color: var(--nf-muted); text-align: center; }
.nf .notice { padding: .8rem 1rem; margin-bottom: 1rem; border-radius: 10px; background: var(--nf-plum-50); color: var(--nf-plum-800); font-size: .86rem; }
.nf .notice:empty { display: none; }
.nf #verifyOtpForm .btn + .btn { margin-top: .5rem; }

/* ---------- Booking ---------- */
.nf .stepper { display: grid; grid-template-columns: repeat(4, 1fr); gap: .4rem; margin-bottom: 1.5rem; }
.nf .step-item {
  display: flex; align-items: center; gap: .45rem; padding-top: .6rem; border-top: 3px solid var(--nf-line);
  font-size: .78rem; font-weight: 700; color: var(--nf-muted); background: none;
}
.nf .step-item span {
  display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%;
  background: var(--nf-bg); font-size: .7rem;
}
.nf .step-item.active { border-color: var(--nf-plum-600); color: var(--nf-plum-700); }
.nf .step-item.active span { background: var(--nf-plum-600); color: #fff; }
.nf .fee-box {
  display: flex; align-items: center; justify-content: space-between; padding: .9rem 1rem;
  background: var(--nf-bg); border-radius: 10px; font-size: .9rem;
}
.nf .fee-box strong, .nf #modalCartTotal { color: var(--nf-plum-700); font-size: 1.05rem; }
.nf .summary-box { padding: 1.1rem; background: var(--nf-bg); border-radius: 10px; font-size: .9rem; line-height: 1.8; }
.nf .step-nav { display: flex; justify-content: space-between; gap: .75rem; margin-top: 1.5rem; }
.nf .step-nav-end { justify-content: flex-end; }

/* ---------- Cart ---------- */
.nf .cart-list { font-size: .92rem; min-height: 60px; }
.nf .cart-list:empty::after { content: "Your cart is empty."; display: block; padding: 1.5rem 0; text-align: center; color: var(--nf-muted); }
.nf .cart-total { font-size: .92rem; color: var(--nf-muted); }
.nf .cart-total strong { margin-left: .4rem; }

/* ---------- Chat ---------- */
.nf .live-label { display: inline-flex; align-items: center; gap: .4rem; font-size: .78rem; font-weight: 700; color: var(--nf-green); }
.nf .live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--nf-green); box-shadow: 0 0 0 0 rgba(31,157,99,.5); animation: nf-pulse 1.8s infinite; }
@keyframes nf-pulse { 70% { box-shadow: 0 0 0 8px rgba(31,157,99,0); } 100% { box-shadow: 0 0 0 0 rgba(31,157,99,0); } }
.nf .chat-messages { height: 340px; overflow-y: auto; padding: 1rem 0; display: flex; flex-direction: column; gap: .6rem; }
.nf .chat-compose { display: flex; gap: .5rem; padding-top: .75rem; border-top: 1px solid var(--nf-line); }

/* ---------- Responsive ---------- */
/* Collapse menu to hamburger before it can run out of room */
@media (max-width: 1280px) {
  .nf .nav-toggle { display: grid; }
  .nf .nav-links {
    position: absolute; top: var(--nf-header-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0; margin: 0; padding: .5rem 1rem 1rem;
    background: #fff; border-bottom: 1px solid var(--nf-line); box-shadow: var(--nf-shadow);
    display: none;
  }
  .nf .nav-links.open { display: flex; }
  .nf .nav-links a { padding: .8rem .75rem; font-size: .95rem; }
  .nf .search-bar { max-width: 420px; }
  .nf .header-actions { margin-left: auto; }
}
@media (max-width: 1024px) {
  .nf .pillar-grid { grid-template-columns: repeat(3, 1fr); }
  .nf .hero-inner { grid-template-columns: 1fr; gap: 2.5rem; padding: 3.5rem 1.5rem 4rem; }
  .nf .hero-panel { max-width: 520px; }
}
@media (max-width: 720px) {
  :root { --nf-header-h: 60px; }
  .header-inner { gap: .6rem; padding: 0 1rem; }
  .nf .brand-logo { height: 32px; max-width: 140px; }
  .nf .brand-text { font-size: 1rem; }
  .nf .search-bar { flex: 1 1 auto; }
  .nf .account-label { display: none; }
  .nf .account-pill { padding: 0 .35rem; }
  .nf #logoutBtn { display: none; }
  .nf .container { padding: 0 1rem; }
  .nf .section { padding-top: 3.25rem; }
  .nf .pillar-grid { grid-template-columns: 1fr 1fr; }
  .nf .steps-strip { grid-template-columns: 1fr; }
  .nf .feature-grid { grid-template-columns: 1fr; }
  .nf .filter-pills { flex-wrap: nowrap; overflow-x: auto; margin: 0 -1rem 1.5rem; padding: 0 1rem; scrollbar-width: none; }
  .nf .filter-pills::-webkit-scrollbar { display: none; }
  .nf .pill { flex-shrink: 0; }
  .nf .cta-band { padding: 1.75rem; margin: 3.5rem 0; }
  .nf .hero-actions .btn { flex: 1 1 100%; }
  .nf .modal-backdrop { align-items: flex-end; padding: 0; }
  .nf .modal-box { max-width: none; border-radius: var(--nf-radius-lg) var(--nf-radius-lg) 0 0; max-height: 92vh; }
  .nf .form-row { grid-template-columns: 1fr; gap: 0; }
  .nf .stepper .step-item { font-size: 0; gap: 0; }
  .nf .stepper .step-item span { font-size: .7rem; }
}
@media (max-width: 420px) {
  .nf .pillar-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
