/* =====================================================================
   LOCALBUDDY — UPGRADE YOUR PLAN (upgrades.php)
   Page-only stylesheet. Needs style.css (tokens, header, footer).
   ===================================================================== */

.up-body { background: #fff; }
.up [hidden] { display: none !important; }
.up { --up-line: #e4ebe6; --up-soft: #eef8f1; --up-gold: #f8c51c; --up-gold-dark: #d9a908; color: var(--lb-ink); }
.up-wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }

.up-test {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 9px 16px; background: #fffaeb; border-bottom: 1px solid #fedf89; color: #93370d; font-size: 14.5px;
}

/* Buttons */
.up-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 12px 22px; border-radius: 12px;
  border: 1.5px solid var(--lb-green); background: var(--lb-green); color: #fff;
  font-size: 15.5px; font-weight: 800; cursor: pointer; text-decoration: none;
  transition: background .15s ease, transform .15s ease, box-shadow .15s ease;
}
.up-btn:hover { background: var(--lb-green-dark); border-color: var(--lb-green-dark); color: #fff; }
.up-btn-gold { background: var(--up-gold); border-color: var(--up-gold); color: #0d3b1f; box-shadow: 0 4px 0 var(--up-gold-dark); }
.up-btn-gold:hover { background: #ffd23d; border-color: #ffd23d; color: #0d3b1f; transform: translateY(-1px); box-shadow: 0 5px 0 var(--up-gold-dark); }
.up-btn-ghost { background: #fff; color: var(--lb-green); }
.up-btn-ghost:hover { background: var(--up-soft); color: var(--lb-green); border-color: var(--lb-green); }
.up-btn-disabled { background: #f2f4f7; border-color: #e4e7ec; color: #667085; cursor: default; }
.up-btn-disabled:hover { background: #f2f4f7; border-color: #e4e7ec; color: #667085; }
.up-btn-block { width: 100%; }
.up-btn-soon { background: #fffaeb; border-color: #fedf89; color: #93370d; }
.up-btn-soon:hover { background: #fef0c7; border-color: #fec84b; color: #93370d; }
.up-soon-note i { margin-right: 6px; }
.up-soon-note { display: inline-block; margin: -6px 0 16px !important; padding: 8px 14px; border-radius: 999px; background: #fffaeb; border: 1px solid #fedf89; color: #93370d !important; font-size: 14.5px !important; }
.up-soon-dialog h2 { margin: 0 0 8px; }
.up-btn-sm { padding: 8px 14px; font-size: 14px; }
.up-btn:disabled { opacity: .6; cursor: wait; }

/* ---------- Hero ---------- */
.up-hero {
  overflow: hidden;
  background:
    radial-gradient(520px 260px at 92% 30%, rgba(248,197,28,.22), transparent 70%),
    radial-gradient(640px 260px at 10% 100%, rgba(11,107,52,.10), transparent 70%),
    linear-gradient(180deg, #f2faf4 0%, #ffffff 100%);
}
.up-hero-inner { display: grid; grid-template-columns: minmax(0, 1fr) 460px; align-items: center; gap: 32px; padding-top: 34px; padding-bottom: 26px; }
.up-kicker { display: inline-flex; align-items: center; gap: 8px; padding: 6px 13px; border-radius: 999px; background: #fff; box-shadow: 0 2px 8px rgba(11,107,52,.1); color: var(--lb-green); font-size: 14px; font-weight: 800; }
.up-kicker i { color: var(--up-gold-dark); }
.up-hero h1 { font-size: clamp(31.5px, 3.6vw, 49.5px); line-height: 1.07; margin: 14px 0 12px; letter-spacing: -.03em; }
.up-hero h1 span { color: var(--lb-green); }
.up-hero p { font-size: clamp(16px, 1.3vw, 18.5px); color: var(--lb-text); margin: 0 0 16px; max-width: 560px; }
.up-perks { list-style: none; margin: 0 0 18px; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, max-content)); gap: 8px 22px; }
.up-perks li { display: flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 700; }
.up-perks i { color: var(--lb-green); font-size: 18px; }
.up-current { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 12px; background: #fff; border: 1px solid var(--up-line); font-size: 15px; margin-bottom: 18px !important; }
.up-current i { color: var(--lb-green); }
.up-hero-art img { display: block; width: 100%; height: auto; filter: drop-shadow(0 18px 30px rgba(11,107,52,.16)); }

/* Pending order */
.up-pending {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  margin: 18px 0 0; padding: 14px 18px; border-radius: 14px;
  background: #fffaeb; border: 1px solid #fedf89;
}
.up-pending > i { color: #b54708; font-size: 21.5px; }
.up-pending > div:first-of-type { flex: 1; min-width: 200px; display: flex; flex-direction: column; }
.up-pending strong { font-size: 16px; }
.up-pending span { font-size: 14.5px; color: #7a2e0e; }
.up-pending-actions { display: flex; gap: 8px; }

/* ---------- Plans ---------- */
.up-plans { padding: 40px 0 20px; scroll-margin-top: calc(var(--lb-header-h) + 10px); }
.up-plans-head { text-align: center; margin-bottom: 26px; }
.up-plans-head h2 { font-size: clamp(25.5px, 2.4vw, 33.5px); margin: 0 0 6px; letter-spacing: -.02em; }
.up-plans-head p { margin: 0 0 16px; color: var(--lb-muted); font-size: 16px; }
.up-cycle { display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 4px; padding: 5px; background: #f2f4f7; border-radius: 14px; }
.up-cycle label { cursor: pointer; }
.up-cycle input { position: absolute; opacity: 0; pointer-events: none; }
.up-cycle span { display: inline-flex; align-items: center; gap: 7px; padding: 9px 15px; border-radius: 10px; font-size: 15px; font-weight: 700; color: var(--lb-text); }
.up-cycle em { font-style: normal; font-size: 12px; font-weight: 800; padding: 2px 7px; border-radius: 999px; background: #dcfae6; color: #067647; }
.up-cycle input:checked + span { background: #fff; color: var(--lb-ink); box-shadow: 0 1px 3px rgba(16,24,40,.12); }
.up-cycle input:focus-visible + span { outline: 3px solid rgba(11,107,52,.3); }

.up-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.up-card {
  position: relative; display: flex; flex-direction: column;
  padding: 24px 20px 20px; background: #fff;
  border: 1.5px solid #e9eeea; border-radius: 18px;
  box-shadow: 0 1px 2px rgba(16,24,40,.04), 0 8px 24px rgba(16,24,40,.06);
  transition: transform .2s ease, box-shadow .2s ease;
}
.up-card:hover { transform: translateY(-3px); box-shadow: 0 4px 10px rgba(16,24,40,.06), 0 18px 36px rgba(16,24,40,.10); }
.up-card.is-popular { border-color: var(--lb-green); background: linear-gradient(180deg, #f3fbf6 0%, #fff 34%); }
.up-card.is-current { border-color: #b2ddc0; }
.up-ribbon { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); padding: 4px 14px; border-radius: 999px; background: var(--up-gold); color: #0d3b1f; font-size: 13px; font-weight: 800; white-space: nowrap; box-shadow: 0 3px 8px rgba(217,169,8,.35); }
.up-ribbon-current { background: var(--lb-green); color: #fff; box-shadow: none; }
.up-card.is-popular.is-current .up-ribbon-current { top: 18px; left: auto; right: 14px; transform: none; font-size: 12px; }
.up-card-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.up-plan-ico { flex: 0 0 46px; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 14px; background: var(--up-soft); color: var(--lb-green); font-size: 19.5px; }
.up-card[data-plan="PLAN_PREMIUM"] .up-plan-ico, .up-card.is-popular .up-plan-ico { background: var(--lb-green); color: var(--up-gold); }
.up-card[data-plan="PLAN_PRESTIGE"] .up-plan-ico { background: #101828; color: var(--up-gold); }
.up-card-head small { display: block; font-size: 13.5px; font-weight: 700; color: var(--lb-muted); margin-top: 2px; }
.up-card h3 { font-size: 21.5px; margin: 0; line-height: 1.15; }
.up-price { display: flex; align-items: baseline; gap: 4px; }
.up-price strong { font-size: 37.5px; line-height: 1; letter-spacing: -.03em; color: var(--lb-ink); }
.up-card.is-popular .up-price strong { color: var(--lb-green); }
.up-price > span { font-size: 15px; color: var(--lb-muted); font-weight: 700; }
.up-total { margin: 6px 0 0; font-size: 13.5px; color: var(--lb-muted); min-height: 20px; }
.up-total s { color: #98a2b3; margin-right: 4px; }
.up-features { list-style: none; margin: 18px 0 20px; padding: 18px 0 0; border-top: 1px solid var(--up-line); display: grid; gap: 10px; flex: 1; align-content: start; }
.up-features li { display: flex; gap: 10px; font-size: 15px; line-height: 1.4; color: var(--lb-text); }
.up-features i { flex: 0 0 20px; width: 20px; height: 20px; display: grid; place-items: center; border-radius: 50%; background: var(--up-soft); color: var(--lb-green); font-size: 11px; margin-top: 1px; }
.up-cta { margin-top: auto; }
.up-note { text-align: center; color: var(--lb-muted); }

/* ---------- FAQ ---------- */
.up-faq { max-width: 780px; margin: 20px auto 60px; }
.up-faq h2 { text-align: center; font-size: 25.5px; margin: 0 0 14px; }
.up-faq details { border: 1px solid var(--up-line); border-radius: 14px; background: #fff; margin-bottom: 10px; }
.up-faq summary { list-style: none; cursor: pointer; padding: 16px 18px; font-size: 16.5px; font-weight: 800; display: flex; justify-content: space-between; gap: 12px; }
.up-faq summary::-webkit-details-marker { display: none; }
.up-faq summary::after { content: "\2b"; font-family: "Font Awesome 6 Free"; font-weight: 900; color: var(--lb-green); transition: transform .2s ease; }
.up-faq details[open] summary::after { transform: rotate(45deg); }
.up-faq details p { margin: 0; padding: 0 18px 16px; color: var(--lb-text); font-size: 15.5px; line-height: 1.6; }

/* ---------- Checkout dialog ---------- */
.up-dialog { width: min(480px, calc(100vw - 24px)); max-height: calc(100vh - 32px); padding: 0; border: 0; border-radius: 20px; box-shadow: 0 30px 80px rgba(16,24,40,.25); color: var(--lb-ink); }
.up-dialog::backdrop { background: rgba(16,24,40,.55); }
.up-dialog-box { position: relative; padding: 26px 24px 22px; }
.up-x { position: absolute; top: 12px; right: 12px; width: 34px; height: 34px; border: 0; border-radius: 50%; background: #f2f4f7; cursor: pointer; font-size: 15px; }
.up-x:hover { background: #e4e7ec; }
.up-step h2 { font-size: 22.5px; margin: 0 36px 14px 0; }
.up-step h2 span { color: var(--lb-green); }
.up-summary { border: 1px solid var(--up-line); border-radius: 14px; padding: 4px 14px; margin-bottom: 16px; }
.up-summary div { display: flex; justify-content: space-between; gap: 10px; padding: 9px 0; font-size: 15px; }
.up-summary div + div { border-top: 1px dashed var(--up-line); }
.up-summary span { color: var(--lb-muted); }
.up-summary-save strong { color: #067647; }
.up-summary-total strong { font-size: 21.5px; color: var(--lb-green); }
.up-methods { border: 0; margin: 0 0 14px; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.up-methods legend { font-size: 14px; font-weight: 800; margin-bottom: 8px; }
.up-method { cursor: pointer; }
.up-method input { position: absolute; opacity: 0; pointer-events: none; }
.up-method span { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 11px 6px; border: 1.5px solid var(--up-line); border-radius: 12px; font-size: 14.5px; font-weight: 700; text-align: center; }
.up-method input:checked + span { border-color: var(--lb-green); background: #f3fbf6; }
.up-method input:focus-visible + span { outline: 3px solid rgba(11,107,52,.3); }
.up-method.is-soon { cursor: not-allowed; opacity: .5; }
.up-method small { font-size: 11.5px; font-weight: 800; color: #b54708; }
.up-logo { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; color: #fff; font-size: 14px; font-style: normal; }
.up-logo-gcash { background: #007dfe; }
.up-logo-maya { background: #01d26f; }
.up-method span i { font-size: 21px; color: #475467; }
.up-error { margin: 0 0 12px; padding: 10px 12px; border-radius: 10px; background: #fef3f2; color: #b42318; font-weight: 600; font-size: 14.5px; }
.up-fine { margin: 10px 0 0; text-align: center; font-size: 13px; color: var(--lb-muted); }
.up-lead { font-size: 15.5px; line-height: 1.6; color: var(--lb-text); margin: 0 0 14px; }
.up-amount { text-align: center; font-size: 37.5px; font-weight: 800; color: var(--lb-green); margin: 6px 0 16px; letter-spacing: -.02em; }
.up-account { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1.5px solid var(--up-line); border-radius: 14px; margin-bottom: 8px; }
.up-account div { flex: 1; min-width: 0; }
.up-account strong { display: block; font-size: 18.5px; letter-spacing: .02em; }
.up-account small { color: var(--lb-muted); font-size: 13.5px; }
.up-copy { border: 0; background: var(--up-soft); color: var(--lb-green); font-weight: 800; padding: 8px 12px; border-radius: 9px; cursor: pointer; font-size: 13.5px; }
.up-how { margin: 12px 0 14px; padding-left: 20px; font-size: 15px; line-height: 1.6; color: var(--lb-text); }
.up-field { display: block; margin-bottom: 12px; }
.up-field span { display: block; font-size: 14px; font-weight: 800; margin-bottom: 6px; }
.up-field input { width: 100%; padding: 12px 14px; border: 1.5px solid #d0d5dd; border-radius: 12px; font-size: 16.5px; letter-spacing: .04em; }
.up-field input:focus { outline: 0; border-color: var(--lb-green); box-shadow: 0 0 0 4px rgba(11,107,52,.12); }
.up-done { text-align: center; }
.up-done-ico { display: inline-grid; place-items: center; width: 68px; height: 68px; border-radius: 50%; background: var(--up-soft); color: var(--lb-green); font-size: 29.5px; margin: 6px 0 12px; }
.up-done-ico.is-wait { background: #fffaeb; color: #b54708; }
.up-done h2 { margin: 0 0 8px; }
.up-done p { color: var(--lb-text); font-size: 15.5px; line-height: 1.6; margin: 0 0 18px; }

.up-toast { position: fixed; left: 50%; bottom: 24px; z-index: 3000; transform: translateX(-50%); max-width: calc(100vw - 32px); padding: 12px 20px; border-radius: 12px; background: #101828; color: #fff; font-weight: 600; font-size: 15px; box-shadow: var(--lb-shadow-lg); }

/* ---------- Responsive ---------- */
@media (max-width: 1099.98px) {
  .up-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 26px; }
  .up-hero-inner { grid-template-columns: minmax(0, 1fr) 360px; }
}
@media (max-width: 767px) {
  .up-wrap { padding: 0 16px; }
  .up-hero-inner { grid-template-columns: 1fr; gap: 6px; padding-top: 22px; }
  .up-hero-art { order: -1; max-width: 280px; margin: 0 auto; }
  .up-hero-text { text-align: center; }
  .up-hero p { margin-left: auto; margin-right: auto; }
  .up-perks { grid-template-columns: repeat(2, minmax(0, 1fr)); text-align: left; }
  .up-perks li { font-size: 14.5px; }
  .up-grid { grid-template-columns: 1fr; }
  .up-cycle { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
  .up-cycle span { width: 100%; justify-content: center; padding: 9px 6px; font-size: 14px; }
  .up-current { display: flex; flex-wrap: wrap; justify-content: center; text-align: center; }
  .up-hero-text .up-btn { width: 100%; }
  .up-test { font-size: 13.5px; text-align: left; }
  .up-pending-actions { width: 100%; }
  .up-pending-actions .up-btn { flex: 1; }
  .up-dialog { width: 100vw; max-width: 100vw; max-height: 100dvh; height: auto; margin: auto 0 0; border-radius: 20px 20px 0 0; }
  .up-methods span { font-size: 13.5px; }
}
@media (prefers-reduced-motion: reduce) {
  .up-card, .up-btn { transition: none; }
}
