/* ============================================================
   YehPay — public.css  (info pages: cách hoạt động, phí, hướng dẫn,
   liên hệ, điều khoản, bảo mật)
   ============================================================ */

body.is-public { background: #FFFFFF; }
body.is-public .app { background: #FFFFFF; min-height: 100vh; }

/* =====================================================
   TOP BAR (back + title + optional CTA)
   ===================================================== */
.pb-bar {
  position: sticky;
  top: 0;
  z-index: 30;
  height: 56px;
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  align-items: center;
  padding: 0 12px;
  background: rgba(255, 255, 255, .88);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
  transition: box-shadow var(--t-base) var(--ease), border-color var(--t-base) var(--ease);
  border-bottom: 1px solid transparent;
}
.pb-bar.is-scrolled { border-bottom-color: var(--ink-100); }
.pb-bar__back {
  width: 40px; height: 40px;
  border-radius: 50%;
  display: grid; place-items: center;
  color: var(--ink-800);
  background: var(--surface-2);
}
.pb-bar__back:active { transform: scale(.95); }
.pb-bar__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  color: var(--ink-800);
  letter-spacing: -.01em;
  text-align: center;
}

/* =====================================================
   PAGE LAYOUT
   ===================================================== */
.pb-page {
  padding: 0 0 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* =====================================================
   HERO SECTION (page intro)
   ===================================================== */
.pb-hero {
  padding: 20px var(--app-pad) 24px;
  background:
    radial-gradient(100% 60% at 50% 0%, var(--brand-50) 0%, transparent 80%);
  text-align: center;
}
.pb-hero__icon {
  width: 56px; height: 56px;
  margin: 0 auto 14px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--brand-500), var(--brand-700));
  color: #fff;
  display: grid; place-items: center;
  box-shadow: 0 14px 28px -10px rgba(2, 132, 199, .5);
}
.pb-hero h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 24px;
  color: var(--ink-800);
  letter-spacing: -.025em;
  margin-bottom: 8px;
  line-height: 1.15;
}
.pb-hero__lead {
  font-size: 14px;
  color: var(--text-2);
  max-width: 340px;
  margin: 0 auto;
  line-height: 1.55;
}

/* =====================================================
   STEP (numbered card for "Cách hoạt động")
   ===================================================== */
.pb-step {
  margin: 0 16px;
  padding: 18px;
  background: #fff;
  border: 1px solid var(--ink-100);
  border-radius: 18px;
  box-shadow: 0 4px 14px -6px rgba(15, 23, 42, .05);
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.pb-step__num {
  width: 36px; height: 36px;
  flex-shrink: 0;
  border-radius: 12px;
  display: grid; place-items: center;
  background: linear-gradient(160deg, var(--brand-400), var(--brand-700));
  color: #fff;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 14px;
  box-shadow: 0 6px 14px -4px rgba(2, 132, 199, .45);
}
.pb-step__body { flex: 1; min-width: 0; }
.pb-step__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  color: var(--ink-800);
  margin-bottom: 4px;
  letter-spacing: -.01em;
}
.pb-step__desc { font-size: 13px; color: var(--text-2); line-height: 1.6; }

/* =====================================================
   FEE TIER (for phí-dịch-vụ)
   ===================================================== */
.pb-tier {
  margin: 0 16px;
  padding: 18px;
  background: #fff;
  border: 1px solid var(--ink-100);
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.pb-tier--featured {
  background: linear-gradient(135deg, var(--brand-50), var(--brand-100));
  border-color: var(--brand-300);
  box-shadow: 0 8px 20px -8px rgba(2, 132, 199, .25);
}
.pb-tier__range b {
  display: block;
  font-family: var(--font-display);
  font-size: 15px;
  color: var(--ink-800);
  font-weight: 700;
  margin-bottom: 2px;
}
.pb-tier__range span { font-size: 11.5px; color: var(--text-3); }
.pb-tier__fee {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 26px;
  color: var(--brand-700);
  font-variant-numeric: tabular-nums;
  letter-spacing: -.02em;
}
.pb-tier__fee small { font-size: 11px; font-weight: 600; color: var(--text-3); }

/* =====================================================
   ACCORDION FAQ
   ===================================================== */
.pb-faq { margin: 0 16px; display: flex; flex-direction: column; gap: 8px; }
.pb-faq details {
  background: #fff;
  border: 1px solid var(--ink-100);
  border-radius: 14px;
}
.pb-faq details[open] { border-color: var(--brand-300); }
.pb-faq summary {
  list-style: none;
  cursor: pointer;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-weight: 600;
  color: var(--ink-800);
  font-size: 14px;
  line-height: 1.4;
}
.pb-faq summary::-webkit-details-marker { display: none; }
.pb-faq summary::after {
  content: '';
  width: 9px; height: 9px;
  border-right: 2px solid var(--text-3);
  border-bottom: 2px solid var(--text-3);
  transform: rotate(45deg);
  flex-shrink: 0;
  transition: transform var(--t-fast) var(--ease);
}
.pb-faq details[open] summary::after { transform: rotate(-135deg); }
.pb-faq__body {
  padding: 0 16px 14px;
  color: var(--text-2);
  font-size: 13.5px;
  line-height: 1.65;
}
.pb-faq__body b { color: var(--ink-800); }
.pb-faq__body a { color: var(--brand-700); font-weight: 600; }

/* =====================================================
   CONTACT CARDS (lien-he)
   ===================================================== */
.pb-contact {
  margin: 0 16px 8px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.pb-contact__card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid var(--ink-100);
  border-radius: 16px;
  text-decoration: none;
  color: inherit;
  transition: background var(--t-fast) var(--ease);
}
.pb-contact__card:active { background: var(--surface-2); }
.pb-contact__icon {
  width: 44px; height: 44px;
  border-radius: 14px;
  display: grid; place-items: center;
  flex-shrink: 0;
  color: #fff;
}
.pb-contact__icon--phone { background: linear-gradient(135deg, #10B981, #047857); }
.pb-contact__icon--mail  { background: linear-gradient(135deg, #DC2626, #991B1B); }
.pb-contact__icon--chat  { background: linear-gradient(135deg, #0EA5E9, #0284C7); }
.pb-contact__title { font-weight: 700; font-size: 14px; color: var(--ink-800); }
.pb-contact__sub   { font-size: 12px; color: var(--text-3); margin-top: 2px; }

/* =====================================================
   LEGAL ARTICLE (dieu-khoan / bao-mat)
   ===================================================== */
.pb-article {
  margin: 0 16px 24px;
  padding: 20px 22px;
  background: #fff;
  border: 1px solid var(--ink-100);
  border-radius: 18px;
}
.pb-article__meta {
  font-size: 11.5px;
  color: var(--text-3);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--ink-100);
}
.pb-article h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  color: var(--ink-800);
  margin: 22px 0 10px;
  letter-spacing: -.015em;
}
.pb-article h2:first-of-type { margin-top: 0; }
.pb-article h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  color: var(--ink-800);
  margin: 16px 0 6px;
}
.pb-article p {
  font-size: 13.5px;
  color: var(--text-2);
  line-height: 1.7;
  margin-bottom: 10px;
}
.pb-article ul { padding-left: 20px; margin-bottom: 10px; }
.pb-article ul li {
  font-size: 13.5px;
  color: var(--text-2);
  line-height: 1.7;
  margin-bottom: 4px;
  list-style: disc;
}
.pb-article a { color: var(--brand-700); font-weight: 600; }
.pb-article b { color: var(--ink-800); }

/* =====================================================
   CTA BAND (bottom of each public page)
   ===================================================== */
.pb-cta {
  margin: 8px 16px 24px;
  padding: 24px 22px;
  border-radius: 20px;
  background:
    radial-gradient(70% 80% at 100% 0%, rgba(56, 189, 248, .35), transparent 60%),
    linear-gradient(155deg, var(--ink-800), var(--ink-900));
  color: #fff;
  text-align: center;
  box-shadow: 0 18px 36px -16px rgba(10, 37, 64, .42);
}
.pb-cta h3 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 20px;
  color: #fff;
  margin-bottom: 6px;
  letter-spacing: -.02em;
}
.pb-cta p { font-size: 13px; color: rgba(255, 255, 255, .72); margin-bottom: 16px; }
.pb-cta__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 24px;
  background: #fff;
  color: var(--ink-800);
  border-radius: var(--r-full);
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  box-shadow: 0 10px 22px -8px rgba(0, 0, 0, .35);
}
.pb-cta__btn:active { transform: scale(.97); }

/* =====================================================
   FOOTER (minimal)
   ===================================================== */
.pb-foot {
  text-align: center;
  padding: 8px 20px 32px;
  font-size: 11px;
  color: var(--text-3);
}
.pb-foot a { color: var(--text-2); margin: 0 8px; }
.pb-foot a:hover { color: var(--brand-700); }
