/* ==========================================================================
   ActivPaisa — Partner app (partner/index.html)
   Built on css/styles.css: its tokens, buttons and form fields carry the
   brand, so this file only lays out the app. A phone-width column, full
   bleed on a phone and a centred card on a desktop.
   ========================================================================== */
.pa-body {
  min-height: 100vh; margin: 0;
  background:
    radial-gradient(900px 600px at 0% 0%, rgba(0, 96, 176, .10), transparent 60%),
    radial-gradient(800px 600px at 100% 100%, rgba(32, 0, 80, .08), transparent 60%),
    var(--bg);
}
.pa-noscript { padding: 24px; text-align: center; }
.pa-app { display: flex; justify-content: center; min-height: 100vh; padding: 32px 16px; }
.pa-screen {
  position: relative; width: 100%; max-width: 440px;
  display: flex; flex-direction: column;
  padding: 28px 26px 32px;
  background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--r-xl);
  box-shadow: 0 24px 60px rgba(15, 23, 42, .08);
  animation: pa-in .28s var(--ease) both;
}
@keyframes pa-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (max-width: 520px) {
  .pa-app { padding: 0; }
  .pa-screen { max-width: none; min-height: 100vh; border: 0; border-radius: 0; box-shadow: none; padding: 20px 20px 28px; }
}
@media (prefers-reduced-motion: reduce) { .pa-screen { animation: none; } }

/* ---------- top bar, stepper ---------- */
.pa-topbar { display: grid; grid-template-columns: 40px 1fr 40px; align-items: center; margin: -6px -6px 14px; }
.pa-back { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; color: var(--ink); background: none; border: 0; cursor: pointer; }
.pa-back:hover { background: var(--surface-alt); }
.pa-step-label { text-align: center; font-size: var(--text-caption); font-weight: 600; color: var(--ink-3); letter-spacing: .02em; }
.pa-stepper { display: flex; align-items: center; margin: 0 0 26px; padding: 0; list-style: none; }
/* Each step owns the line that leads out of it, so every gap is the same
   8px either side and the line turns blue once that step is done. */
.pa-stepper li { display: flex; align-items: center; gap: 8px; flex: 1 1 0; min-width: 0; font-size: var(--text-caption); color: var(--ink-3); }
.pa-stepper li:last-child { flex: 0 0 auto; }
.pa-stepper li:not(:last-child)::after { content: ""; flex: 1 1 auto; min-width: 10px; height: 2px; margin-right: 8px; border-radius: 2px; background: var(--line); }
.pa-stepper li.is-done::after { background: var(--primary); }
.pa-stepper-dot {
  display: grid; place-items: center; width: 26px; height: 26px; flex: 0 0 auto;
  border-radius: 50%; border: 2px solid var(--line-strong); background: var(--surface);
  font-size: 12px; font-weight: 600;
}
.pa-stepper li.is-now .pa-stepper-dot { border-color: var(--primary); color: var(--primary); box-shadow: 0 0 0 4px var(--tint); }
.pa-stepper li.is-done .pa-stepper-dot { background: var(--primary); border-color: var(--primary); color: #fff; }
.pa-stepper li.is-now .pa-stepper-label { color: var(--ink); font-weight: 600; }
.pa-stepper-label { white-space: nowrap; }
/* Four steps do not fit a small phone with every label; the current one keeps its name. */
@media (max-width: 420px) {
  .pa-stepper:has(li:nth-child(4)) li:not(.is-now) .pa-stepper-label { display: none; }
}

/* The word that matches the wordmark: the lockup's own two stops. Used by
   the pitch panel's heading in partner/index.html. */
.pa-grad {
  background: linear-gradient(100deg, #4B2D83 0%, #0075C2 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
/* The arrow rides with the label rather than sitting at the far edge, and
   the fill is the lockup's own two stops rather than flat primary blue. */
.pa-cta {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: linear-gradient(100deg, #4B2D83 0%, #0075C2 100%); border-color: transparent;
}
.pa-cta:hover { background: linear-gradient(100deg, #412775 0%, #0068AE 100%); }

/* ---------- type ---------- */
.pa-logo { display: flex; justify-content: center; margin: 6px 0 26px; }
.pa-logo img { width: 200px; height: auto; }
.pa-title { font-size: 1.5rem; line-height: 1.2; letter-spacing: -.025em; font-weight: 600; color: var(--ink); }
.pa-title-lg { font-size: clamp(1.75rem, 6vw, 2.1rem); text-align: center; }
.pa-sub { margin: 10px 0 24px; color: var(--ink-2); line-height: 1.55; }
.pa-hero .pa-sub { text-align: center; }
.pa-fine { margin-top: 14px; font-size: var(--text-caption); color: var(--ink-3); line-height: 1.5; }
.pa-fine a, .pa-legal a { color: var(--primary); }
.pa-center-text { text-align: center; }
.pa-hint { margin-top: 6px; font-size: var(--text-caption); color: var(--ink-3); }
.pa-error { min-height: 1.2em; margin: 2px 0 10px; font-size: var(--text-small); color: var(--danger); }
.pa-error:empty { margin: 0; min-height: 0; }
.pa-mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .08em; }

/* ---------- controls ---------- */
.pa-field { margin-bottom: 16px; }
.pa-btn { margin-top: 6px; }
.pa-btn svg { margin-right: 4px; }
.pa-link { background: none; border: 0; padding: 0; color: var(--primary); font: inherit; font-weight: 600; cursor: pointer; }
.pa-link:hover { text-decoration: underline; }
.pa-alt { margin-top: 18px; text-align: center; color: var(--ink-2); }
.pa-phone { display: flex; align-items: stretch; border: 1px solid var(--line-strong); border-radius: var(--r-md); overflow: hidden; background: var(--surface); }
.pa-phone:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(0, 96, 176, .14); }
.pa-phone-cc { display: grid; place-items: center; padding: 0 16px; background: var(--surface-alt); border-right: 1px solid var(--line); font-weight: 600; color: var(--ink-2); }
.pa-phone input { border: 0 !important; border-radius: 0 !important; box-shadow: none !important; }
.pa-consent { display: flex; gap: 12px; align-items: flex-start; margin: 4px 0 14px; font-size: var(--text-small); color: var(--ink-2); line-height: 1.5; cursor: pointer; }
.pa-consent input { width: 18px; height: 18px; flex: 0 0 auto; margin-top: 2px; accent-color: var(--primary); }

/* ---------- OTP ---------- */
.pa-otp { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; margin-bottom: 12px; }
.pa-otp input { height: 56px; padding: 0; text-align: center; font-size: 1.4rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.pa-resend { margin: 4px 0 14px; text-align: center; font-size: var(--text-small); color: var(--ink-3); }

/* ---------- welcome ---------- */
.pa-welcome { padding-top: 34px; }
.pa-hero { display: flex; flex-direction: column; align-items: center; }
.pa-points { display: grid; gap: 10px; margin: 4px 0 26px; padding: 18px 20px; list-style: none; border-radius: var(--r-lg); background: var(--surface-alt); }
.pa-points li { display: flex; align-items: center; gap: 10px; color: var(--ink); font-size: var(--text-small); }
.pa-points svg { flex: 0 0 auto; padding: 3px; width: 20px; height: 20px; border-radius: 50%; color: var(--success); background: var(--success-bg); }
.pa-legal { margin-top: auto; padding-top: 26px; text-align: center; font-size: var(--text-caption); color: var(--ink-3); }

/* ---------- KYC list ---------- */
.pa-kyc { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; margin: 0 0 22px; padding: 0; list-style: none; }
.pa-kyc-row { display: flex; align-items: center; gap: 12px; padding: 14px; border: 1px solid var(--line); border-radius: var(--r-md); }
.pa-kyc-row.is-done { background: #FAFDFB; }
.pa-kyc-row > :nth-child(2) { flex: 1 1 auto; min-width: 0; }
.pa-kyc-row .pa-pill { flex: 0 0 auto; }
.pa-kyc-ic { display: grid; place-items: center; width: 40px; height: 40px; flex: 0 0 auto; border-radius: 12px; color: var(--primary); background: var(--tint); }
.pa-kyc-row.is-done .pa-kyc-ic { color: var(--success); background: var(--success-bg); }
.pa-kyc-text { flex: 1; min-width: 0; }
.pa-kyc-text strong { display: block; font-weight: 600; color: var(--ink); }
.pa-kyc-text span { display: block; font-size: var(--text-caption); color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.pa-pill { flex: 0 0 auto; padding: 4px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 600; white-space: nowrap; }
.pa-pill.is-done { background: var(--success-bg); color: var(--success); }
.pa-pill.is-pending { background: var(--warning-bg); color: #9A5B00; }
.pa-pill.is-todo { background: var(--surface-alt); color: var(--ink-2); }
.pa-pill.is-rejected { background: var(--danger-bg); color: var(--danger); }

/* ---------- results ---------- */
.pa-result { align-items: stretch; text-align: center; }
.pa-result .pa-sub { margin-bottom: 22px; }
.pa-result-ic { display: grid; place-items: center; width: 68px; height: 68px; margin: 12px auto 20px; border-radius: 50%; }
.pa-result-ic.is-ok { color: var(--success); background: var(--success-bg); }
.pa-result-ic.is-pending { color: #9A5B00; background: var(--warning-bg); }
.pa-result-ic.is-lock { color: var(--secondary); background: #EEEAF6; }
.pa-pin.is-ok { color: var(--primary); background: var(--tint); }
.pa-details { margin: 0 0 6px; padding: 4px 16px; text-align: left; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface-alt); }
.pa-details div { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; }
.pa-details div + div { border-top: 1px solid var(--line); }
.pa-details dt { color: var(--ink-3); font-size: var(--text-small); }
.pa-details dd { margin: 0; text-align: right; font-weight: 600; color: var(--ink); font-size: var(--text-small); }
.pa-place { display: flex; align-items: center; justify-content: center; gap: 8px; margin-bottom: 8px; padding: 16px; border-radius: var(--r-md); background: var(--tint); color: var(--primary); }
.pa-place strong { color: var(--ink); }
.pa-place span { color: var(--ink-3); font-size: var(--text-small); }
.pa-summary { display: grid; margin: 0 0 18px; padding: 4px 16px; list-style: none; text-align: left; border: 1px solid var(--line); border-radius: var(--r-md); }
.pa-summary li { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; font-size: var(--text-small); color: var(--ink); }
.pa-summary li + li { border-top: 1px solid var(--line); }
.pa-verified-tag { margin: 0 0 10px; font-size: 12px; font-weight: 700; letter-spacing: .14em; color: var(--success); }
.pa-secure { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 18px; font-size: var(--text-caption); color: var(--ink-3); }
.pa-manual { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); text-align: left; }

.pa-spinner { width: 44px; height: 44px; margin: 18px auto 22px; border-radius: 50%; border: 3px solid var(--tint); border-top-color: var(--primary); animation: pa-spin .8s linear infinite; }
.pa-spinner-sm { width: 28px; height: 28px; margin: 28px auto; border-width: 3px; }
@keyframes pa-spin { to { transform: rotate(360deg); } }
.pa-center { align-items: center; justify-content: center; }

/* ---------- banners ---------- */
.pa-banner { display: flex; gap: 12px; align-items: flex-start; margin: 4px 0 18px; padding: 14px 16px; border-radius: var(--r-md); text-align: left; font-size: var(--text-small); line-height: 1.5; }
.pa-banner svg { flex: 0 0 auto; margin-top: 1px; }
.pa-banner strong { display: block; color: var(--ink); }
.pa-banner p { margin: 2px 0 0; color: var(--ink-2); }
.pa-banner.is-warn { background: var(--warning-bg); color: #9A5B00; }
.pa-banner.is-info { background: var(--tint); color: var(--primary); }
.pa-banner-btn { margin-top: 10px; padding: 8px 14px; border: 0; border-radius: 999px; background: var(--ink); color: #fff; font: inherit; font-size: var(--text-caption); font-weight: 600; cursor: pointer; }

/* ---------- home shell ---------- */
.pa-home { padding: 0; overflow: hidden; }
.pa-home-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.pa-home-brand img { width: 110px; height: auto; display: block; }
.pa-avatar { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; border: 0; background: var(--secondary); color: #fff; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.pa-avatar-lg { width: 60px; height: 60px; font-size: 20px; cursor: default; }
.pa-page-title { padding: 20px 22px 0; font-size: 1.35rem; font-weight: 600; letter-spacing: -.02em; }
.pa-home-body { flex: 1; padding: 18px 22px 24px; }
.pa-greet h1 { font-size: 1.35rem; font-weight: 600; letter-spacing: -.02em; }
.pa-greet p { margin: 4px 0 18px; font-size: var(--text-small); color: var(--ink-3); }
.pa-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.pa-stat { padding: 14px; border: 1px solid var(--line); border-radius: var(--r-md); }
.pa-stat span { display: block; font-size: var(--text-caption); color: var(--ink-3); }
.pa-stat strong { display: block; margin-top: 6px; font-size: 1.25rem; letter-spacing: -.02em; color: var(--ink); font-weight: 600; }
.pa-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 16px 0 6px; }
.pa-actions .pa-btn { margin: 0; }
.pa-section-title { margin: 22px 0 10px; font-size: var(--text-small); font-weight: 600; letter-spacing: .02em; color: var(--ink-2); text-transform: uppercase; }
.pa-leads { margin: 8px 0 0; padding: 0; list-style: none; }
.pa-lead { display: flex; align-items: center; gap: 12px; padding: 12px 0; }
.pa-lead + .pa-lead { border-top: 1px solid var(--line); }
.pa-lead-av { display: grid; place-items: center; width: 36px; height: 36px; flex: 0 0 auto; border-radius: 50%; background: var(--tint); color: var(--primary); font-weight: 600; }
.pa-lead-text { flex: 1; min-width: 0; }
.pa-lead-text strong { display: block; font-weight: 600; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pa-lead-text span { display: block; font-size: var(--text-caption); color: var(--ink-3); }
.pa-status { flex: 0 0 auto; padding: 4px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 600; background: var(--tint); color: var(--primary); }
.pa-status.is-disbursed { background: var(--success-bg); color: var(--success); }
.pa-status.is-closed { background: var(--surface-alt); color: var(--ink-3); }
.pa-status.is-with-lender { background: #EEEAF6; color: var(--secondary); }
.pa-empty { margin-top: 10px; padding: 26px 16px; text-align: center; border: 1px dashed var(--line-strong); border-radius: var(--r-md); }
.pa-empty strong { color: var(--ink); }
.pa-empty p { margin: 6px 0 0; font-size: var(--text-small); color: var(--ink-3); }

.pa-tabs { position: sticky; bottom: 0; margin-top: auto; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); background: var(--surface); padding-bottom: env(safe-area-inset-bottom); }
.pa-tabs a { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 10px 0 12px; font-size: 11.5px; font-weight: 500; color: var(--ink-3); text-decoration: none; }
.pa-tabs a.is-on { color: var(--primary); }
.pa-tabs a:hover { text-decoration: none; color: var(--ink); }

/* ---------- cards, profile ---------- */
.pa-card { padding: 20px; border: 1px solid var(--line); border-radius: var(--r-lg); }
.pa-card .pa-title { font-size: 1.2rem; }
.pa-status-box { display: flex; justify-content: space-between; align-items: center; margin: 4px 0 16px; padding: 14px 16px; border-radius: var(--r-md); background: var(--surface-alt); font-size: var(--text-small); font-weight: 600; color: var(--ink-2); }
.pa-profile-head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.pa-profile-head strong { display: block; font-size: 1.1rem; font-weight: 600; }
.pa-profile-head div span { display: block; font-size: var(--text-small); color: var(--ink-3); }
.pa-kyc-status { margin-bottom: 16px; }
.pa-kyc-status-top { display: flex; justify-content: space-between; align-items: center; font-size: var(--text-small); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }
.pa-kyc-status p { margin: 8px 0 4px; color: var(--ink-2); font-size: var(--text-small); }
.pa-menu { border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.pa-menu-item { display: block; width: 100%; border: 0; background: var(--surface); }
.pa-menu-item + .pa-menu-item { border-top: 1px solid var(--line); }
.pa-menu-item summary, .pa-menu-link { display: flex; align-items: center; gap: 12px; width: 100%; padding: 15px 16px; cursor: pointer; list-style: none; font: inherit; font-weight: 500; color: var(--ink); text-align: left; background: none; border: 0; }
.pa-menu-item summary::-webkit-details-marker { display: none; }
.pa-menu-item summary span, .pa-menu-link span { flex: 1; }
.pa-menu-item summary > svg:first-child, .pa-menu-link > svg:first-child { color: var(--ink-3); }
.pa-menu-item summary > svg:last-child { color: var(--ink-3); transition: transform var(--dur) var(--ease); }
.pa-menu-item[open] summary > svg:last-child { transform: rotate(90deg); }
.pa-menu-body { padding: 0 16px 16px; }
.pa-menu-link.is-danger, .pa-menu-link.is-danger > svg:first-child { color: var(--danger); }

/* ---------- desktop ----------
   A phone-width card alone on a wide screen reads as a mobile page that
   got lost. From 960px the onboarding screens sit beside a brand panel,
   and the signed-in app widens to use the room. */
.pa-aside { display: none; }
@media (min-width: 960px) {
  .pa-layout { display: grid; grid-template-columns: minmax(380px, 1fr) minmax(520px, 1.1fr); min-height: 100dvh; }
  /* Light, not the old violet-to-blue fill. The lockup is a violet and blue
     wordmark; on a saturated panel it had to be knocked out to white, which
     threw away the brand's own colours on the one screen whose whole job is
     to introduce the brand. */
  .pa-aside {
    position: sticky; top: 0; align-self: stretch; min-height: 100dvh;
    display: flex; flex-direction: column; justify-content: center;
    gap: 0; padding: 48px clamp(40px, 5vw, 86px);
    background:
      radial-gradient(900px 700px at 8% 0%, rgba(75, 45, 131, .10), transparent 62%),
      radial-gradient(760px 620px at 100% 100%, rgba(0, 117, 194, .10), transparent 62%),
      #F7F6FD;
    color: var(--ink);
    overflow: hidden;
  }
  /* The arc from the artwork: one large soft ring bleeding off the left. */
  .pa-aside::before {
    content: ""; position: absolute; left: -36%; top: -14%;
    width: 128%; aspect-ratio: 1; border-radius: 50%;
    border: 1px solid rgba(75, 45, 131, .10);
    background: radial-gradient(circle at 70% 30%, rgba(255, 255, 255, .7), transparent 62%);
    pointer-events: none;
  }
  .pa-aside > * { position: relative; }
  .pa-aside-logo { width: 220px; height: auto; margin-bottom: 40px; mix-blend-mode: multiply; }
  .pa-aside-copy { max-width: 540px; }
  .pa-aside-eyebrow {
    display: inline-block; padding: 6px 14px; border-radius: var(--r-pill);
    font-size: 12px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase;
    color: #4B2D83; background: rgba(75, 45, 131, .10);
  }
  .pa-aside h2 {
    margin-top: 20px; font-size: clamp(2.1rem, 3.2vw, 3.1rem); line-height: 1.08;
    letter-spacing: -.03em; font-weight: 700; color: var(--ink);
  }
  .pa-aside-copy > p:not(.pa-aside-eyebrow) {
    margin-top: 18px; font-size: 1.0625rem; line-height: 1.62; color: var(--ink-2);
  }

  /* Three steps as icon tiles across, the way the artwork reads them. */
  .pa-aside-steps {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 24px 22px; margin: 38px 0 0; padding: 0; list-style: none;
  }
  .pa-aside-steps li { display: block; }
  .pa-aside-ic {
    display: grid; place-items: center; width: 54px; height: 54px; margin-bottom: 12px;
    border-radius: 16px;
  }
  .pa-aside-ic.is-violet { color: #4B2D83; background: rgba(75, 45, 131, .11); }
  .pa-aside-ic.is-blue   { color: #0075C2; background: rgba(0, 117, 194, .11); }
  .pa-aside-ic.is-green  { color: var(--success); background: var(--success-bg); }
  .pa-aside-steps strong { display: block; font-size: 1rem; font-weight: 600; color: var(--ink); }
  .pa-aside-steps div { font-size: var(--text-small); line-height: 1.5; color: var(--ink-2); }

  .pa-aside-stats {
    display: flex; flex-wrap: wrap; gap: 16px 34px;
    margin: 38px 0 0; padding: 26px 0 0;
    border-top: 1px solid rgba(75, 45, 131, .14); list-style: none;
  }
  .pa-aside-stats li { display: flex; align-items: center; gap: 11px; color: #4B2D83; }
  .pa-aside-stats span { display: flex; flex-direction: column; line-height: 1.25; }
  .pa-aside-stats strong { font-size: 1.0625rem; font-weight: 700; color: var(--ink); }
  .pa-aside-stats span { font-size: var(--text-small); color: var(--ink-2); }

  .pa-aside-foot { position: absolute; left: clamp(40px, 5vw, 86px); bottom: 34px; font-size: var(--text-caption); color: var(--ink-3); }
  .pa-app { align-items: center; padding: 48px 40px; }

  /* Signed in: the portal shell takes the whole page. */
  .is-app .pa-layout { grid-template-columns: 1fr; }
  .is-app .pa-aside { display: none; }
}

/* The signed-in portal (css/partner-portal.css) brings its own full-page
   shell — sidebar, topbar, content — so the app column steps aside. */
.is-app .pa-app { display: block; padding: 0; min-height: 0; }

/* ---------- choosers: individual / company, GST yes / no ---------- */
.pa-choices { display: grid; gap: 12px; }
.pa-choice {
  display: flex; align-items: center; gap: 14px; width: 100%;
  padding: 18px 16px; text-align: left; cursor: pointer;
  border: 1.5px solid var(--line); border-radius: var(--r-md); background: var(--surface);
  font: inherit; color: var(--ink);
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.pa-choice:hover, .pa-choice:focus-visible { border-color: var(--primary); background: var(--tint); }
.pa-choice > svg:last-child { flex: 0 0 auto; color: var(--ink-3); }
.pa-choice-text { flex: 1; min-width: 0; }
.pa-choice-text strong { display: block; font-weight: 600; font-size: 1.05rem; }
.pa-choice-text span { display: block; margin-top: 3px; font-size: var(--text-small); color: var(--ink-3); line-height: 1.45; }
.pa-seg { display: inline-flex; gap: 4px; padding: 4px; margin-bottom: 18px; border-radius: 999px; background: var(--surface-alt); }
.pa-seg button { padding: 8px 16px; border: 0; border-radius: 999px; background: none; font: inherit; font-size: var(--text-small); font-weight: 600; color: var(--ink-2); cursor: pointer; }
.pa-seg button.is-on { background: var(--surface); color: var(--primary); box-shadow: 0 1px 3px rgba(15, 23, 42, .12); }
.pa-field[hidden] { display: none; }

/* ---------- Aadhaar Secure QR ---------- */
.pa-btn svg { vertical-align: -3px; margin-right: 4px; }
.pa-btn + .pa-btn { margin-top: 10px; }
.pa-file { display: none; }
.pa-or {
  display: flex; align-items: center; gap: 12px; margin: 18px 0 4px;
  font-size: var(--text-caption); color: var(--ink-3);
}
.pa-or::before, .pa-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.pa-or[hidden] { display: none; }

.pa-scan { position: fixed; inset: 0; z-index: 1000; background: #000; display: flex; flex-direction: column; }
.pa-scan video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* The guide sits over the centre square the reader actually searches. */
.pa-scan-frame {
  position: absolute; left: 50%; top: 45%; width: min(78vw, 78vh); aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 18px; box-shadow: 0 0 0 100vmax rgba(0, 0, 0, .55);
  outline: 3px solid #fff; outline-offset: -3px;
}
.pa-scan-hint {
  position: absolute; left: 16px; right: 16px; bottom: calc(96px + env(safe-area-inset-bottom));
  margin: 0; text-align: center; color: #fff; font-size: var(--text-small); line-height: 1.45;
}
.pa-scan-close {
  position: absolute; left: 50%; bottom: calc(28px + env(safe-area-inset-bottom)); transform: translateX(-50%);
  min-width: 160px; padding: 13px 28px; border: 0; border-radius: var(--r-pill);
  background: #fff; color: var(--ink); font: inherit; font-weight: 600; cursor: pointer;
}
