/*
 * Pricing page styles.
 *
 * These were 618 lines inside a <style> block in pricing.php, which meant
 * 40KB re-sent on every single visit because inline CSS cannot be cached.
 * Nothing in here was ever generated by PHP, so it had no business being
 * inline. Out here it is fetched once and then kept for a year.
 */
/* ── Page-level overrides (pricing only) ────────────────── */
.pricing-hero { padding: 60px 0 48px; text-align: center; background: var(--surface-alt); border-bottom: 1px solid var(--border); }
.pricing-hero h1 { font-family: var(--font-display); font-size: clamp(1.8rem, 5vw, 2.8rem); font-weight: 800; margin-bottom: 10px; }
.pricing-hero p { color: var(--text-muted); font-size: clamp(.88rem, 2vw, 1rem); max-width: 520px; margin: 0 auto; }

/* ── Currency bar ───────────────────────────────────────── */
.currency-bar {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 10px 0;
  position: sticky; top: var(--header-h, 64px); z-index: 90;
}
.currency-bar-inner {
  display: flex; align-items: center; gap: 10px;
  flex-wrap: wrap;
}
.cur-label { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--text-muted); white-space: nowrap; }
.cur-pills { display: flex; gap: 6px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; flex: 1; }
.cur-pills::-webkit-scrollbar { display: none; }
.cur-pill {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 5px 11px; border-radius: 50px; font-size: .78rem; font-weight: 700;
  border: 1.5px solid var(--border); color: var(--text-muted);
  cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: all .15s; flex-shrink: 0;
}
.cur-pill:hover { border-color: var(--primary); color: var(--primary); background: rgba(0,188,212,.06); }
.cur-pill.active { background: var(--primary-ink); border-color: var(--primary-ink); color: #fff; }
.cur-more {
  display: inline-flex; align-items: center; gap: 6px;
  margin-left: 4px; flex-shrink: 0;
}
.cur-more select {
  background: var(--surface-alt); color: var(--text); border: 1.5px solid var(--border);
  border-radius: 8px; padding: 5px 8px; font-size: .78rem; cursor: pointer;
  transition: border-color .15s;
}
.cur-more select:focus { border-color: var(--primary); outline: none; }

/* ── Section headings ───────────────────────────────────── */
.pricing-section { padding: 64px 0; }
.pricing-section.alt { background: var(--surface-alt); }
.pricing-section .s-label { font-size:.72rem; font-weight:800; text-transform:uppercase; letter-spacing:.1em; color:var(--link-ink); display:block; margin-bottom:8px; }
.pricing-section .s-title { font-family:var(--font-display); font-size:clamp(1.5rem,4vw,2.2rem); font-weight:800; margin-bottom:8px; }
.pricing-section .s-sub { color:var(--text-muted); font-size:clamp(.85rem,2vw,.95rem); max-width:560px; margin:0 auto 40px; }

/* ── Package cards ──────────────────────────────────────── */
.pkg-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:20px; align-items:start; }
.pkg-card {
  background:var(--surface); border:1.5px solid var(--border);
  border-radius:var(--radius-lg); padding:28px 24px;
  text-align:left; position:relative;
  box-shadow:var(--shadow-sm);
  transition:transform .2s, box-shadow .2s;
  display:flex; flex-direction:column; gap:14px;
}
.pkg-card:hover { transform:translateY(-5px); box-shadow:var(--shadow-md); }
.pkg-featured { border-color:var(--primary); box-shadow:0 0 0 2px var(--primary-glow),var(--shadow-md); transform:translateY(-5px); }
.pkg-featured:hover { transform:translateY(-9px); }
.pkg-badge { position:absolute; top:-13px; left:50%; transform:translateX(-50%); background:var(--primary); color:#fff; font-size:.72rem; font-weight:800; padding:4px 16px; border-radius:50px; white-space:nowrap; }
.pkg-icon { font-size:1.8rem; line-height:1; }
.pkg-name { font-family:var(--font-display); font-size:1.2rem; font-weight:800; }
.pkg-desc { font-size:.82rem; color:var(--text-muted); line-height:1.5; }
.pkg-price { display:flex; align-items:baseline; gap:3px; margin:4px 0; }
.pkg-from { font-size:.72rem; color:var(--text-muted); font-weight:600; align-self:flex-end; margin-bottom:3px; }
.pkg-sym { font-size:1rem; font-weight:700; color:var(--primary); margin-top:4px; }
.pkg-num { font-family:var(--font-display); font-size:2.4rem; font-weight:800; color:var(--text); line-height:1; }
.pkg-features { list-style:none; padding:0; margin:0; display:flex; flex-direction:column; gap:8px; flex:1; }
.pkg-features li { display:flex; align-items:flex-start; gap:9px; font-size:.83rem; color:var(--text); line-height:1.4; }
.pkg-features li i { color:var(--primary); font-size:.72rem; flex-shrink:0; margin-top:3px; }
.pkg-divider { border:none; border-top:1px solid var(--border); margin:4px 0; }

/* ── Add-ons ────────────────────────────────────────────── */
.addon-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:16px; margin-top:8px; }
.addon-card {
  background:var(--surface); border:1.5px solid var(--border);
  border-radius:var(--radius); padding:20px 18px;
  transition:border-color .2s, transform .2s;
  display:flex; flex-direction:column; gap:8px;
  /* Said out loud rather than inherited. The section around these cards is
     centred, so the description came out centred while the header and the
     price row sat left, because those two are flex and ignore text-align.
     One card, one alignment, and it no longer depends on what a parent does. */
  text-align:left;
}
.addon-card:hover { border-color:var(--primary); transform:translateY(-3px); }
.addon-header { display:flex; align-items:center; gap:10px; }
.addon-icon { width:38px; height:38px; border-radius:10px; background:rgba(0,188,212,.1); color:var(--primary); display:flex; align-items:center; justify-content:center; font-size:1rem; flex-shrink:0; }
.addon-name { font-weight:700; font-size:.9rem; }
.addon-body { font-size:.78rem; color:var(--text-muted); line-height:1.4; flex:1; }
.addon-price-row { display:flex; align-items:baseline; gap:3px; margin-top:4px; }
.addon-price-row strong { font-family:var(--font-display); font-size:1.1rem; font-weight:800; color:var(--text); }
.addon-price-row span { font-size:.75rem; color:var(--text-muted); }

/* Academy billing-cycle toggle, mirrors the one on /plans */
.ac-cycle-toggle{display:inline-flex;background:rgba(255,255,255,.10);border-radius:999px;padding:4px;margin:0 0 26px}
.ac-expiry{display:flex;align-items:center;justify-content:center;gap:6px;margin-top:10px;
  font-size:.76rem;color:rgba(255,255,255,.55);text-align:center;line-height:1.45}
.ac-switch-note{display:flex;align-items:flex-start;gap:6px;margin-top:8px;
  font-size:.74rem;color:rgba(255,255,255,.5);line-height:1.5}
.ac-switch-note[hidden]{display:none}
.academy-plan-cta.is-current{opacity:.7;cursor:default;pointer-events:none}
.ac-cycle-toggle button{border:0;background:transparent;padding:9px 20px;border-radius:999px;cursor:pointer;
  font-weight:600;font-size:.9rem;color:rgba(255,255,255,.72);transition:.18s}
.ac-cycle-toggle button.on{background:rgba(255,255,255,.95);color:#0f172a;box-shadow:0 2px 8px rgba(0,0,0,.25)}
.ac-cycle-toggle .ac-save{font-size:.72rem;color:#16a34a;font-weight:700;margin-left:6px}
.ac-cycle-toggle button.on .ac-save{color:#15803d}

/* ── Calculator / Pay section ───────────────────────────── */
.est-layout { display:grid; grid-template-columns:1fr 1fr; gap:24px; }

/* ── Academy grid ───────────────────────────────────────── */
.academy-pricing-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:20px; max-width:980px; margin:40px auto 0; }

/* ── FAQ ────────────────────────────────────────────────── */
.faq-section { padding:64px 0; background:var(--surface-alt); }
.faq-search-wrap { display:flex; align-items:center; gap:10px; max-width:460px; margin:0 auto 10px; min-height:48px; padding:0 6px 0 16px; background:var(--surface); border:1.5px solid var(--border); border-radius:50px; transition:border-color .15s, box-shadow .15s; }
.faq-search-wrap:focus-within { border-color:var(--primary); box-shadow:0 0 0 3px rgba(27,107,58,.12); }
.faq-search-wrap > i { color:var(--text-muted); font-size:.9rem; flex-shrink:0; }
.faq-search-wrap input { flex:1; min-width:0; padding:12px 0; border:0; outline:none; background:none; color:var(--text); font-family:var(--font-body); font-size:.95rem; }
.faq-search-wrap input::placeholder { color:var(--text-muted); opacity:.75; }
.faq-search-clear { display:none; flex-shrink:0; width:32px; height:32px; padding:0; border:0; border-radius:50%; background:var(--surface-alt); color:var(--text-muted); font-size:.8rem; line-height:1; cursor:pointer; transition:color .15s, background .15s; }
.faq-search-clear:hover { color:var(--primary); }
.faq-search-wrap.has-value .faq-search-clear { display:inline-flex; align-items:center; justify-content:center; }
.faq-search-hint { min-height:18px; margin:0 0 20px; text-align:center; font-size:.8rem; color:var(--text-muted); }

/* Category tab pills */
.faq-tabs { display:flex; gap:6px; flex-wrap:wrap; justify-content:center; margin-bottom:28px; }
.faq-tab { display:inline-flex; align-items:center; gap:6px; padding:8px 16px; border-radius:50px; border:1.5px solid var(--border); background:var(--surface); color:var(--text-muted); font-size:.82rem; font-weight:600; cursor:pointer; font-family:var(--font-body); white-space:nowrap; transition:all .15s; }
.faq-tab:hover { border-color:var(--primary); color:var(--primary); }
.faq-tab.active { background:var(--primary); border-color:var(--primary); color:#fff; }

/* Category group */
.faq-group { border:1.5px solid var(--border); border-radius:16px; overflow:hidden; margin-bottom:14px; background:var(--surface); transition:box-shadow .2s; }
.faq-group:hover { box-shadow:var(--shadow); }
.faq-group.hidden { display:none; }

/* Category group header */
.faq-group-header { display:flex; align-items:center; justify-content:space-between; padding:16px 20px; cursor:pointer; user-select:none; background:var(--surface); transition:background .15s; gap:12px; }
.faq-group-header:hover { background:var(--surface-alt); }
.faq-group-left { display:flex; align-items:center; gap:12px; flex:1; min-width:0; }
.faq-group-icon { width:38px; height:38px; border-radius:10px; background:var(--primary-light); color:var(--primary); display:flex; align-items:center; justify-content:center; font-size:.9rem; flex-shrink:0; }
.faq-group-name { font-weight:700; font-size:.95rem; color:var(--text); }
.faq-group-count { font-size:.72rem; font-weight:700; background:var(--primary); color:#fff; padding:2px 8px; border-radius:50px; margin-left:8px; }
.faq-group-chevron { color:var(--text-muted); font-size:.8rem; transition:transform .25s; flex-shrink:0; }
.faq-group.open .faq-group-chevron { transform:rotate(180deg); }

/* Group body */
.faq-group-body { display:none; border-top:1px solid var(--border); }
.faq-group.open .faq-group-body { display:block; }

/* Individual question */
.faq-item { border-bottom:1px solid var(--border); }
.faq-item:last-child { border-bottom:none; }
.faq-item.hidden { display:none; }
.faq-question { width:100%; display:flex; align-items:center; justify-content:space-between; gap:12px; padding:14px 20px; background:none; border:none; cursor:pointer; font-family:var(--font-body); font-size:.88rem; font-weight:600; color:var(--text); text-align:left; transition:background .15s; }
.faq-question:hover { background:var(--surface-alt); }
.faq-toggle { width:22px; height:22px; border-radius:50%; background:var(--surface-alt); border:1.5px solid var(--border); display:flex; align-items:center; justify-content:center; font-size:.85rem; color:var(--primary); flex-shrink:0; transition:transform .2s, background .15s; font-weight:700; line-height:1; }
.faq-item.open .faq-toggle { background:var(--primary); color:#fff; border-color:var(--primary); transform:rotate(45deg); }
.faq-answer { display:none; padding:0 20px 16px 20px; }
.faq-item.open .faq-answer { display:block; }
.faq-answer p { font-size:.87rem; color:var(--text-muted); line-height:1.7; margin:0; }
.faq-no-results { text-align:center; padding:40px 20px; color:var(--text-muted); font-size:.9rem; display:none; }

/* ═══════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════ */
@media (max-width:960px) {
  .pkg-grid, .academy-pricing-grid { grid-template-columns:1fr 1fr; }
  .addon-grid { grid-template-columns:1fr 1fr; }
  .est-layout { grid-template-columns:1fr; }
  .pkg-featured { transform:none; }
}
@media (max-width:600px) {
  .pricing-hero { padding:40px 0 32px; }
  .pricing-section { padding:44px 0; }
  .pkg-grid, .academy-pricing-grid, .addon-grid { grid-template-columns:1fr; }
  .pkg-card { padding:22px 18px; }
  .pkg-num { font-size:2rem; }
  .pkg-badge { font-size:.65rem; padding:3px 12px; }
  .addon-grid { gap:12px; }
  .addon-card { padding:16px 14px; }
  .cur-pill { padding:4px 9px; font-size:.72rem; }
  .pkg-icon { font-size:1.4rem; }

  /* FAQ search + tabs */
  .faq-section { padding:48px 0; }
  .faq-search-wrap { max-width:100%; min-height:46px; padding-left:14px; }
  /* 16px stops iOS zooming the whole page when the field is focused */
  .faq-search-wrap input { font-size:16px; padding:11px 0; }
  .faq-tabs {
    flex-wrap:nowrap; justify-content:flex-start;
    overflow-x:auto; -webkit-overflow-scrolling:touch;
    scroll-snap-type:x proximity;
    scrollbar-width:none;
    padding:2px 2px 8px; margin-bottom:20px;
  }
  .faq-tabs::-webkit-scrollbar { display:none; }
  .faq-tab { flex:0 0 auto; scroll-snap-align:start; }
}

/* ── Merik Property Pricing ─────────────────────────────── */
.mp-billing-toggle { display:flex; gap:4px; background:var(--surface-alt); border:1.5px solid var(--border); border-radius:50px; padding:4px; width:fit-content; margin:0 auto 36px; }
.mp-billing-btn { padding:8px 22px; border-radius:50px; border:none; background:none; font-size:.82rem; font-weight:700; color:var(--text-muted); cursor:pointer; transition:all .2s; white-space:nowrap; }
.mp-billing-btn.active { background:var(--primary); color:#fff; }
.mp-plan-price-block { margin:4px 0; }
.mp-plan-kes { font-size:.72rem; font-weight:700; color:var(--primary); margin-top:4px; }
.mp-plan-amount { font-family:var(--font-display); font-size:2.4rem; font-weight:800; color:var(--text); line-height:1; }
.mp-plan-period { font-size:.72rem; color:var(--text-muted); font-weight:600; margin-top:2px; }
.mp-feature-list { list-style:none; padding:0; margin:0; display:flex; flex-direction:column; gap:7px; flex:1; }
.mp-feature-list li { display:flex; align-items:center; gap:8px; font-size:.82rem; line-height:1.4; }
.mp-feature-yes { color:var(--primary); font-size:.72rem; flex-shrink:0; }
.mp-feature-no { color:var(--text-muted); font-size:.72rem; flex-shrink:0; opacity:.45; }
.mp-feature-val { color:var(--link-ink); font-weight:700; margin-left:auto; white-space:nowrap; }
.mp-note { font-size:.78rem; color:var(--text-muted); margin-top:20px; display:flex; align-items:center; justify-content:center; gap:7px; }
@media (max-width:600px) {
  .mp-billing-toggle { flex-wrap:wrap; border-radius:16px; }
  .mp-billing-btn { padding:7px 14px; font-size:.78rem; }
  .mp-plan-amount { font-size:2rem; }
}

/* ============================================================
   PRICING PAGE
   ------------------------------------------------------------
   Measured on a phone at 390x780 before this: 14,240px, 18.3 screens, selling
   four separate products in one scroll. Somebody who came for the Academy
   passed 9.7 screens of agency pricing to reach it.
   ============================================================ */

/* --- the jump bar ------------------------------------------------------
   Sticky under the site header, so it is still there at screen fourteen. The
   row scrolls sideways on a phone and is given a fading edge, because a row
   that simply cuts off looks like the end of the list rather than the middle
   of it. */
.pjump {
  position: sticky;
  top: var(--header-h, 68px);
  z-index: 40;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 10px rgba(0,0,0,.04);
}
.pjump-row {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding: 8px 0;
  scroll-snap-type: x proximity;
}
.pjump-row::-webkit-scrollbar { display: none; }

/* A row that simply stops looks like the end of the list rather than the
   middle of it. Fading the right edge says there is more along. */
.pjump-row, .cur-pills {
  -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 26px), transparent);
          mask-image: linear-gradient(90deg, #000 calc(100% - 26px), transparent);
}

.pjump-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: none;
  scroll-snap-align: start;
  padding: 10px 15px;
  min-height: 44px;
  border-radius: 50px;
  font-size: 0.86rem;
  font-weight: 600;
  white-space: nowrap;
  color: var(--text-muted);
  background: var(--surface-alt);
  border: 1px solid var(--border);
  text-decoration: none;
  transition: color .18s ease, background .18s ease, border-color .18s ease;
}
.pjump-link:hover {
  color: var(--primary-ink);
  border-color: var(--primary);
  background: rgba(0,188,212,.07);
}
.pjump-link i { font-size: .82rem; opacity: .8; }
.pjump-link.is-here {
  color: #fff;
  background: var(--primary-ink);
  border-color: var(--primary-ink);
}
.pjump-link.is-here i { opacity: 1; }
.pjump-link:focus-visible { outline: 2px solid var(--primary-ink); outline-offset: 2px; }

/* Anchors land under two sticky bars, so the headings need the clearance or
   they arrive hidden behind them. */
#websites, #addons, #quote, #property, #academy, #faq, #guides {
  scroll-margin-top: calc(var(--header-h, 68px) + 64px);
}

/* --- currency pills ----------------------------------------------------
   Eight of them at 11.5px in a row that scrolls with nothing to say so: on a
   phone you saw five and would not know the other three existed. */
.cur-pills {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding: 2px 0;
}
.cur-pills::-webkit-scrollbar { display: none; }
.cur-pill {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 8px 14px;
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
}

@media (max-width: 640px) {
  /* --- text that had been shrunk to fit --- */
  .addon-body { font-size: 0.86rem; line-height: 1.55; }
  .s-sub, .academy-plan-desc { font-size: 0.875rem; }
  .faq-group-count { font-size: 0.75rem; }
  .faq-toggle { font-size: 1rem; }

  /* --- things a finger has to hit --- */
  .mp-billing-btn {
    min-height: 44px;
    padding: 10px 16px;
    font-size: 0.85rem;
  }
  /* The label around each one is the real target, but a 16px box reads as
     untappable on the single screen where people commit money. */

  .est-select, .est-field input { min-height: 46px; font-size: 1rem; }

  /* --- the jump bar on a phone --- */
  .pjump-row { padding: 7px 0; gap: 5px; }
  .pjump-link { padding: 9px 13px; font-size: 0.82rem; }
}

/* These repeat what is set above because pricing.php shrinks them again in
   its own mobile blocks further up the file. Later wins at equal weight. */
@media (max-width: 640px) {
  .cur-pill { padding: 8px 14px; font-size: 0.85rem; min-height: 40px; }
  .addon-body { font-size: 0.86rem; line-height: 1.55; }
  .mp-billing-btn { padding: 11px 18px; font-size: 0.85rem; min-height: 44px; }
  .pkg-desc { font-size: 0.86rem; }
  .pkg-from { font-size: 0.78rem; }
  .faq-group-count { font-size: 0.75rem; }
  .faq-tab { min-height: 40px; }
  .mp-plan-period { font-size: 0.78rem; }
  .addon-price-row span,
  .est-checkboxes span { font-size: 0.8rem; }
  .mp-plan-note { font-size: 0.78rem; color: var(--text-muted); margin-top: 3px; }
  .mp-plan-kes { font-size: 0.8rem; }
  .mp-feature-val { font-size: 0.82rem; }

  /*
   * The currency row, stacked.
   *
   * In one line the label took 90px and the more-currencies dropdown took
   * 163px, leaving 66px for eight pills holding 623px of content. Measured
   * it: not one pill was fully visible. Label and dropdown share the first
   * line, the pills get a full-width row of their own underneath.
   */
  .currency-bar-inner { flex-wrap: wrap; gap: 9px 10px; }
  .cur-label { flex: 0 0 auto; order: 1; }
  .cur-more  { flex: 1 1 auto; order: 2; min-width: 0; }
  .cur-more select { width: 100%; min-height: 44px; font-size: 0.88rem; }
  .cur-pills { flex: 1 1 100%; order: 3; }
}

/* Was an inline 0.68rem, which is 10.9px: the smallest thing on the page and
   sitting under a price, which is the one place a number has to be read. */
.mp-plan-note { font-size: 0.76rem; color: var(--text-muted); margin-top: 3px; }


/* ============================================================
   PAY NOW
   ------------------------------------------------------------
   Three methods, introduced by who they are for. The card that works
   everywhere leads; the regional one says which region. Nothing here is
   fetched from another company's server.
   ============================================================ */
.pay-methods h3 {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-size: 1.15rem; font-weight: 800;
  margin-bottom: 6px;
}
.pay-methods h3 i { color: var(--primary-ink); }
.pay-intro { font-size: 0.88rem; color: var(--text-muted); line-height: 1.6; margin-bottom: 18px; }

.pay-field { margin-bottom: 16px; }
.pay-field label {
  display: flex; align-items: center; gap: 7px;
  font-size: 0.82rem; font-weight: 700; color: var(--text-muted);
  margin-bottom: 6px;
}
.pay-field input { width: 100%; box-sizing: border-box; }

.pay-card {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 12px;
  background: var(--surface);
  transition: border-color .18s ease, box-shadow .18s ease;
}
.pay-card:hover { border-color: var(--primary); box-shadow: 0 4px 16px rgba(0,0,0,.05); }

.pay-card-top { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.pay-mark {
  width: 42px; height: 42px; flex: none;
  display: flex; align-items: center; justify-content: center;
  border-radius: 11px; font-size: 1.05rem; color: #fff;
}
.pay-mark-card   { background: linear-gradient(135deg, #0f62fe, #4589ff); }
.pay-mark-mpesa  { background: linear-gradient(135deg, #0f9d58, #34c36d); }
.pay-mark-crypto { background: linear-gradient(135deg, #f7931a, #ffb347); }

.pay-card-title { flex: 1; min-width: 0; }
.pay-card-title strong { display: block; font-size: 0.97rem; font-weight: 700; line-height: 1.25; }
.pay-card-title span { font-size: 0.8rem; color: var(--text-muted); line-height: 1.45; }

.pay-where {
  flex: none; align-self: flex-start;
  font-size: 0.68rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  color: var(--primary-ink);
  background: rgba(0,188,212,.10);
  border: 1px solid rgba(0,188,212,.28);
  padding: 4px 9px; border-radius: 50px;
  white-space: nowrap;
}
.pay-note { font-size: 0.8rem; color: var(--text-muted); line-height: 1.55; margin-bottom: 12px; }

.pay-go {
  width: 100%; justify-content: center;
  min-height: 46px; margin-top: 10px;
  display: inline-flex; align-items: center; gap: 9px;
}
.pay-go-mpesa  { background: #0b7a44; border-color: #0b7a44; color: #fff; }
.pay-go-mpesa:hover  { background: #0c8449; border-color: #0c8449; color: #fff; }
.pay-go-crypto { background: #a85c06; border-color: #a85c06; color: #fff; }
.pay-go-crypto:hover { background: #b45309; border-color: #b45309; color: #fff; }

.pay-status { font-size: 0.82rem; min-height: 18px; margin-top: 9px; text-align: center; color: var(--text-muted); }

.pay-foot {
  display: flex; align-items: flex-start; gap: 9px;
  font-size: 0.8rem; line-height: 1.55; color: var(--text-muted);
  margin-top: 16px; padding-top: 14px;
  border-top: 1px solid var(--border);
}
.pay-foot i { color: var(--primary-ink); margin-top: 2px; }

/* the coin disc, in place of seven hotlinked PNGs */
.coin-mark {
  width: 26px; height: 26px; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--coin, #64748b);
  color: var(--coin-ink, #fff); font-size: .78rem;
  vertical-align: middle; margin-right: 8px;
}
.coin-tick { font-size: .52rem; font-weight: 800; letter-spacing: .02em; }
.crypto-loading { display: inline-flex; align-items: center; gap: 8px; padding: 12px 14px;
                  font-size: .85rem; color: var(--text-muted); }

@media (max-width: 640px) {
  .pay-card { padding: 14px; }
  .pay-card-top { flex-wrap: wrap; }
  .pay-where { order: 3; }
  .pay-card-title { flex: 1 1 calc(100% - 56px); }
}

/* ============================================================
   PRICE CALCULATOR
   ------------------------------------------------------------
   The add-on rows were a flex row holding a checkbox, a bare text node and a
   nowrap price. A long name plus a long unit left nothing able to shrink, so
   the row wrapped and the tick sat on its own line above the words. Three
   named parts now: the tick, a name that may wrap, a price that may not.
   ============================================================ */
.est-head { display: flex; align-items: flex-start; gap: 13px; margin-bottom: 22px; }
.est-head-mark {
  width: 44px; height: 44px; flex: none;
  display: flex; align-items: center; justify-content: center;
  border-radius: 12px; font-size: 1.05rem;
  color: #fff; background: linear-gradient(135deg, var(--primary-ink), var(--primary));
}
.est-head h3 { font-family: var(--font-display); font-size: 1.12rem; font-weight: 800; margin: 0 0 3px; }
.est-head p  { font-size: 0.85rem; color: var(--text-muted); margin: 0; line-height: 1.5; }

.est-field label { font-size: 0.83rem; font-weight: 700; letter-spacing: .01em; }

/* --- the add-on rows --- */
.est-checkboxes { display: flex; flex-direction: column; gap: 8px; }
.est-field label.est-check {
  display: grid;
  grid-template-columns: 22px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  min-height: 52px;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: 12px;
  cursor: pointer;
  transition: border-color .16s ease, background .16s ease;
}
.est-check:hover { border-color: var(--primary); }
.est-check:focus-within { border-color: var(--primary-ink); box-shadow: 0 0 0 3px var(--primary-glow); }

/* The real control stays, it just stops being the thing you look at. */
.est-check input { position: absolute; opacity: 0; width: 0; height: 0; }
.est-check-box {
  width: 22px; height: 22px;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--border);
  border-radius: 7px;
  background: var(--surface);
  color: #fff;
  font-size: .64rem;
  transition: background .16s ease, border-color .16s ease;
}
.est-check-box i { opacity: 0; transform: scale(.6); transition: opacity .16s ease, transform .16s ease; }
.est-check input:checked ~ .est-check-box { background: var(--primary-ink); border-color: var(--primary-ink); }
.est-check input:checked ~ .est-check-box i { opacity: 1; transform: scale(1); }

.est-check-name  { font-size: 0.89rem; font-weight: 600; line-height: 1.35; min-width: 0; }
.est-check-price { font-size: 0.82rem; font-weight: 700; color: var(--text-muted); white-space: nowrap; }

/* A ticked row should look ticked without having to find the box. */
.est-check:has(input:checked) {
  background: rgba(0,188,212,.07);
  border-color: rgba(0,188,212,.42);
}
.est-check:has(input:checked) .est-check-price { color: var(--primary-ink); }

/* --- totals --- */
.est-totals { margin: 22px 0 14px; }
.est-total-num { font-size: 1.6rem; }
.est-partial-row strong { color: var(--primary-ink); font-weight: 800; }

/* --- where the calculator answers back, instead of a popup --- */
.est-notice {
  display: flex; align-items: flex-start; gap: 9px;
  margin: 0 0 12px;
  padding: 11px 14px;
  border-radius: 10px;
  font-size: 0.85rem; line-height: 1.5;
  background: rgba(180,83,9,.08);
  border: 1px solid rgba(180,83,9,.26);
  color: var(--text);
}
.est-notice[hidden] { display: none; }
.est-notice i { color: #b45309; margin-top: 2px; flex: none; }
.est-notice.is-good { background: rgba(0,131,143,.08); border-color: rgba(0,131,143,.26); }
.est-notice.is-good i { color: var(--primary-ink); }

.est-cta { width: 100%; justify-content: center; min-height: 48px; display: inline-flex; align-items: center; gap: 9px; }
.est-foot { font-size: 0.78rem; color: var(--text-muted); line-height: 1.5; margin: 11px 0 0; text-align: center; }

@media (max-width: 640px) {
  .est-check { padding: 11px 12px; gap: 10px; min-height: 50px; }
  .est-check-name { font-size: 0.86rem; }
  .est-check-price { font-size: 0.79rem; }
  .est-total-num { font-size: 1.4rem; }
}

/* --- our own dropdown, in place of the OS one -------------------------------
   The <select> is still there underneath, still the value that counts. This is
   only what you look at and touch. */
.mksel { position: relative; }
.mksel select { position: absolute; opacity: 0; pointer-events: none; width: 1px; height: 1px; }

.mksel-btn {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  width: 100%; min-height: 50px;
  padding: 13px 15px;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  font-family: var(--font-body); font-size: 0.95rem; font-weight: 600;
  color: var(--text); text-align: left; cursor: pointer;
  transition: border-color .16s ease, box-shadow .16s ease;
}
.mksel-btn:hover { border-color: var(--primary); }
.mksel-btn:focus-visible,
.mksel.is-open .mksel-btn { border-color: var(--primary-ink); box-shadow: 0 0 0 3px var(--primary-glow); outline: none; }
.mksel-btn i { color: var(--text-muted); font-size: .8rem; transition: transform .18s ease; flex: none; }
.mksel.is-open .mksel-btn i { transform: rotate(180deg); }
.mksel-val { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.mksel-list {
  position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% + 6px);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 14px 38px rgba(0,0,0,.16);
  padding: 6px;
  max-height: 264px; overflow-y: auto;
  display: none;
}
.mksel.is-open .mksel-list { display: block; }

.mksel-opt {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  width: 100%; min-height: 44px;
  padding: 11px 12px;
  border: 0; border-radius: 9px;
  background: none; cursor: pointer;
  font-family: var(--font-body); font-size: 0.9rem; color: var(--text);
  text-align: left;
}
.mksel-opt:hover, .mksel-opt.is-cursor { background: var(--surface-alt); }
.mksel-opt[aria-selected="true"] { color: var(--primary-ink); font-weight: 700; }
.mksel-opt[aria-selected="true"]::after { content: '\f00c'; font-family: 'Font Awesome 6 Free'; font-weight: 900; font-size: .72rem; }
