/* styles.css - ProofLedger basic UI */

* {
  box-sizing: border-box;
}
:root {
  /* Core brand */
  --pl-bg-dark: #020617;
  --pl-bg-dark-soft: #0b1220;
  --pl-bg-light: #f8fafc;
  --pl-bg-light-soft: #f1f5f9;

  --pl-surface-dark: #020617;
  --pl-surface-dark-soft: #0f172a;
  --pl-surface-light: #ffffff;
  --pl-surface-light-soft: #f9fafb;

  --pl-border-subtle: #e2e8f0;
  --pl-border-strong: #cbd5e1;

  --pl-text-strong: #1e293b;
  --pl-text-body: #334155;
  --pl-text-muted: #64748b;
  --pl-text-on-dark: #e5e7eb;
  --pl-text-muted-dark: #9ca3af;

  --pl-accent: #15a498;        /* primary action / trust - teal */
  --pl-accent-soft: #a7f3d0;
  --pl-accent-dark: #118677;

  --pl-link: #0ea5e9;          /* secondary accent */
  --pl-link-soft: #7dd3fc;

  --pl-bitcoin: #f7931a;       /* BTC premium color - orange */
  --pl-bitcoin-soft: #fed7aa;

  --pl-danger: #f97316;
  --pl-danger-soft: #fed7aa;
  --pl-warning: #facc15;
  --pl-success: #10b981;

  /* ==============================
     Mobile menu sizing (tweak here)
     ============================== */
  --pl-mobile-menu-width: 200px;     /* dropdown panel width cap */
  --pl-mobile-menu-pad: 16px;        /* panel padding */
  --pl-mobile-menu-gap: 6px;        /* space between buttons */

  --pl-mobile-menu-btn-minh: 28px;   /* button height */
  --pl-mobile-menu-btn-padx: 20px;   /* button left/right padding */
  --pl-mobile-menu-btn-pady: 6px;   /* button top/bottom padding */
  --pl-mobile-menu-btn-radius: 6px; /* button corner radius */

}


body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* Marketing (public) pages – light, legal/trust */
body.marketing {
  background: var(--pl-bg-light);
  color: var(--pl-text-body);
}
.header {
  /* Dashboard-style: logo left, nav centered */
  width: 100%;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;

  padding-top: 16px;
  padding-bottom: 16px;
  padding-left: max(28px, calc((100vw - 1200px) / 2));
  padding-right: max(28px, calc((100vw - 1200px) / 2));

  /* Solid white band; side fade handled by ::before overlay (prevents seams) */
  background: #ffffff;
  overflow: hidden;

  border-bottom: 0;

  position: sticky;
  top: 0;
  z-index: 100;
}

/* Inset divider line (aligned to content column, not viewport) */
.header::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  height: 1px;
  z-index: 2;

  /* longer line */
  width: min(1300px, calc(100% - 24px));

  /* fades at edges so it blends into the background */
  background: linear-gradient(
    to right,
    rgba(203, 213, 225, 0) 0%,
    rgba(203, 213, 225, 1) 18%,
    rgba(203, 213, 225, 1) 82%,
    rgba(203, 213, 225, 0) 100%
  );
}

/* Header side fade (NO gradient sheet — uses soft inset shadows) */
.header::before{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  z-index: 0;

  /* Pull fade toward center by increasing the shadow reach */
  box-shadow:
    inset 600px 0 120px -140px rgba(248,250,252,1),
    inset -600px 0 120px -140px rgba(248,250,252,1);
}

.header > *{
  position: relative;
  z-index: 1;
}




/* (removed duplicate) header-logo is defined in canonical header section below */


/* (removed) duplicate .header-nav block — canonical header-nav lives in the
   "HEADER (CANONICAL, SITEWIDE)" section below */


.pricing-page-header {
  text-align: center;
  margin-bottom: 32px;
}


.pricing-page-subtitle {
  font-size: 16px;
  color: var(--pl-text-body);
  margin: 0 0 8px;
  max-width: 800px;
}

.pricing-page-detail {
  font-size: 14px;
  color: var(--pl-text-muted);
  margin: 0 0 24px;
  max-width: 640px;
}

.pricing-feature-row {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.pricing-feature-pill {
  background: var(--pl-surface-light-soft);
  color: var(--pl-text-muted);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 13px;
  border: 1px solid var(--pl-border-subtle);
}

.badge-neutral {
  background: var(--pl-surface-light-soft);
  color: var(--pl-text-muted);
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  border: 1px solid var(--pl-border-subtle);
}

.pricing-plan-features {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
  font-size: 14px;
  color: var(--pl-text-body);
  line-height: 1.5;
}

.pricing-plan-features li {
  padding: 6px 0;
  position: relative;
  padding-left: 18px;
  line-height: 1.6;
}

.pricing-plan-features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.3em;                 /* baseline-aligned dot */
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--pl-accent);
  transform: translateY(-50%);
}

.pricing-footnotes {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--pl-border-subtle);
  font-size: 13px;
  color: var(--pl-text-muted);
}

.pricing-footnotes p {
  margin: 8px 0;
}


/* legacy footer styles removed */

/* (removed duplicate — keep the single .pl-reference-block definition at the bottom of this file) */



/* App (logged-in) pages – dark, dashboard/tools */
body.app {
  background: var(--pl-bg-dark);
  color: var(--pl-text-on-dark);
}

/* Certificate pages – white, print-style (mostly handled in cert.html) */
body.certificate {
  background: #ffffff;
  color: #111827;
}

/* Typography helpers */
.h1 {
  font-size: 28px;
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-weight: 650;
}

.h2 {
  font-size: 22px;
  line-height: 1.3;
  letter-spacing: -0.01em;
  font-weight: 600;
}

.h3 {
  font-size: 18px;
  line-height: 1.35;
  font-weight: 600;
}

.text-body {
  font-size: 14px;
  line-height: 1.6;
}

/* (removed — reference block styling is owned exclusively by .pl-reference-block) */



.text-muted {
  font-size: 13px;
  color: var(--pl-text-muted);
}

.text-muted-dark {
  font-size: 13px;
  color: var(--pl-text-muted-dark);
}

.text-mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 12px;
}

/* Page shells */
.marketing-shell {
  max-width: 1040px;
  margin: 0 auto;

  /* Remove the default “air” above hero so the first section
     can butt up to the header divider when desired. */
  padding: 0 16px 40px;
}

/* ==========================================================
   SUPPORT PAGE (CANONICAL LAYOUT)
   ========================================================== */

.pl-support-shell {
  background: var(--pl-surface-light);
  padding: 32px 32px 56px;
  border-radius: 16px;
  border: 1px solid var(--pl-border-subtle);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.10);
}

@media (max-width: 768px) {
  .pl-support-shell {
    padding: 20px 18px 40px;
  }
}

/* ==========================================================
   LEGAL / POLICY PAGES (CANONICAL LAYOUT)
   ========================================================== */

body.legal-page {
  background: var(--pl-bg-light);
  color: var(--pl-text-body);
}

.pl-legal-shell {
  background: var(--pl-surface-light);
  padding: 32px 32px 56px;
  border-radius: 16px;
  border: 1px solid var(--pl-border-subtle);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.10);
}

/* Canonical legal typography (NO page-level duplicates) */
.legal-eyebrow {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--pl-text-muted);
  margin-bottom: 6px;
}

.legal-title {
  font-size: 28px;
  font-weight: 650;
  letter-spacing: -0.02em;
  color: var(--pl-text-strong);
  margin-bottom: 4px;
}

.legal-updated {
  font-size: 13px;
  color: var(--pl-text-muted);
  margin-bottom: 20px;
}

.legal-intro {
  font-size: 15px;
  line-height: 1.6;
  color: var(--pl-text-body);
  margin-bottom: 28px;
}

.legal-section {
  margin-bottom: 24px;
}

.legal-section h2 {
  font-size: 17px;
  font-weight: 600;
  color: var(--pl-text-strong);
  margin-bottom: 6px;
}

.legal-section p,
.legal-section ul {
  font-size: 14px;
  line-height: 1.7;
  color: var(--pl-text-body);
}

.legal-section ul {
  padding-left: 18px;
  margin: 6px 0 0;
}

.legal-section li {
  margin-bottom: 4px;
}


/* ==========================================================
   AI INGESTION PAGE (CANONICAL LAYOUT)
   ========================================================== */

.pl-ai-shell {
  max-width: 1040px;
  margin: 40px auto 70px;
  background: var(--pl-surface-light);
  padding: 32px 32px 46px;
  border-radius: 16px;
  border: 1px solid var(--pl-border-subtle);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.06);
}

@media (max-width: 640px) {
  .pl-ai-shell {
    margin: 18px auto 44px;
    padding: 22px 16px 34px;
    border-radius: 14px;
  }
}


@media (max-width: 768px) {
  .pl-legal-shell {
    padding: 20px 18px 40px;
  }
}

/* Small legal subheads (replaces inline styles in legal pages) */
.pl-legal-subhead {
  font-size: 14px;
  font-weight: 600;
  margin-top: 8px;
  margin-bottom: 4px;
  color: var(--pl-text-strong);
}

.pl-legal-subhead-spaced {
  margin-top: 10px;
}



.app-shell {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 16px 48px;
}


/* Page headers */
.page-header {
  margin-bottom: 32px;
}

.page-header-title {
  font-size: 28px;
  font-weight: 650;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
}

body.marketing .page-header-title {
  color: var(--pl-text-strong);
}

body.app .page-header-title {
  color: var(--pl-text-on-dark);
}

.page-header-subtitle {
  font-size: 14px;
  color: var(--pl-text-muted);
  max-width: 720px;

  margin: 0 auto;        /* centers horizontally */
  text-align: center;    /* centers text */
}
/* Upload page subtitle — allow natural wrapping for clarity */
.upload-subtitle {
  max-width: 1000px;
  white-space: normal;
}



/* Button variants */
.btn-primary {
  background: var(--pl-accent);
  border: 1px solid var(--pl-accent);
  color: #ffffff;
  font-weight: 600;
  border-radius: 6px;
  padding: 10px 20px;
  text-decoration: none;
  display: inline-block;
  transition: all 0.15s ease;
}

/* Premium button motion: calmer, tighter */
.btn-primary:hover{
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(21, 164, 152, 0.22);
}
body.marketing .btn-secondary:hover{
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.06);
}

/* Secondary action (keep existing .btn-secondary as base, but tune light mode) */
body.marketing .btn-secondary {
  background: #ffffff;
  color: var(--pl-text-strong);
  border: 1px solid var(--pl-border-subtle);
  font-weight: 500;
  border-radius: 6px;
  padding: 10px 20px;
  text-decoration: none;
  display: inline-block;
  transition: all 0.15s ease;
}

body.marketing .btn-secondary:hover {
  background: var(--pl-accent-soft);
  border-color: var(--pl-accent);
  color: var(--pl-accent-dark);
}

/* Ghost buttons for subtle inline actions */
.btn-ghost {
  background: transparent;
  border-color: transparent;
  color: var(--pl-link);
}

.btn-ghost:hover {
  background: rgba(148, 163, 184, 0.12);
  border-color: transparent;
}

/* Cards: elevated (marketing) vs surface (app) */
.card-elevated {
  border-radius: 16px;
  padding: 20px 20px 22px;
  background: var(--pl-surface-light);
  border: 1px solid #e5e7eb;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.10);
}

.card-surface {
  border-radius: 12px;
  padding: 16px 16px 18px;
  background: var(--pl-surface-dark-soft);
  border: 1px solid var(--pl-border-subtle);
}

/* Badges: reusable status tags */
.badge-success {
  background: rgba(22, 163, 74, 0.16);
  color: #bbf7d0;
  border: 1px solid rgba(34, 197, 94, 0.7);
}

body.marketing .badge-success {
  background: rgba(22, 163, 74, 0.08);
  color: #166534;
}

.badge-warning {
  background: rgba(250, 204, 21, 0.12);
  color: #eab308;
}

.badge-danger {
  background: rgba(239, 68, 68, 0.18);
  color: #fecaca;
}

body.marketing .badge-danger {
  background: rgba(239, 68, 68, 0.10);
  color: #b91c1c;
}

.badge-neutral {
  background: rgba(148, 163, 184, 0.15);
  color: #e5e7eb;
}

body.marketing .badge-neutral {
  background: transparent;
  color: var(--pl-text-body);
  border: none;
}

/* Bitcoin premium badge */
.badge-btc {
  background: rgba(247, 147, 26, 0.12);
  color: #f97316;
  border: 1px solid rgba(248, 171, 65, 0.7);
}

/* Evidence table */
.table-evidence {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;   /* columns share consistent widths */
}


.table-evidence thead {
  background: #020617;
}

body.marketing .table-evidence thead {
  background: #f3f4f6;
}

.table-evidence th,
.table-evidence td {
  border-bottom: 1px solid #1f2937;
  padding: 6px 10px;
  font-size: 12px;
}


body.marketing .table-evidence th,
body.marketing .table-evidence td {
  border-bottom: 1px solid #e5e7eb;
}
body.marketing .table-evidence thead {
  background: #f9fafb;
}

body.marketing .table-evidence thead th {
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #111827;
}
/* Make comparison columns consistent so identical text wraps the same */
.table-evidence th:first-child {
  width: 10%;
}


.table-evidence th:not(:first-child) {
  width: 13%;
}

/* Override specific columns */
.table-evidence th:nth-child(2) {
  width: 28%;   /* Filename column — wide */
}

.table-evidence th:nth-child(n+3) {
  width: 11%;   /* Created, Status, Bitcoin, TX, Cert, Flags */
}

/* Bitcoin batch result messaging */
.force-result {
  margin-top: 12px;
  font-size: 12px;
  color: var(--pl-text-muted);
  white-space: pre-wrap;
}

.force-result-ok {
  color: #166534;   /* deep green */
}

.force-result-warn {
  color: #b45309;   /* amber/brown */
}

.force-result-error {
  color: #b91c1c;   /* red */
}

/* Admin users table column widths */
.admin-users-table th:first-child {
  width: 6%;    /* ID */
}

.admin-users-table th:nth-child(2) {
  width: 22%;   /* Email */
}

.admin-users-table th:nth-child(3),
.admin-users-table th:nth-child(5) {
  width: 10%;   /* Current plans */
}

.admin-users-table th:nth-child(4),
.admin-users-table th:nth-child(6) {
  width: 12%;   /* Change plan selects */
}

/* Ensure admin user inputs match light 2.0 form styling */
.admin-users-table input[type="number"] {
  background: #ffffff;
  color: var(--pl-text-body);
  border: 1px solid var(--pl-border-subtle);
  border-radius: 6px;
  padding: 4px 6px;
  font-size: 12px;
}


/* Certificate helpers (used in cert.html) */
.certificate-shell {
  max-width: 800px;
  margin: 40px auto 60px;
  padding: 40px 48px 48px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.18);
}

.certificate-title {
  font-family: "Georgia", "Times New Roman", serif;
  font-size: 32px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 24px;
}

.certificate-section-title {
  font-family: "Georgia", "Times New Roman", serif;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #6b7280;
  margin-bottom: 6px;
}

.certificate-meta-grid {
  display: grid;
  grid-template-columns: 160px 1fr;
  row-gap: 4px;
  column-gap: 16px;
  font-size: 13px;
}

.certificate-meta-label {
  color: #6b7280;
}

.certificate-meta-value {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
}

a {
  color: #38bdf8;            /* ProofLedger default link color */
  text-decoration: none;     /* No underline anywhere */
  transition: color 0.15s ease, opacity 0.15s ease;
}

a:hover {
  color: #7fd9ff;            /* Subtle brighten */
  opacity: 0.92;             /* Slight emphasis */
}
a:visited {
  color: #38bdf8;
}


/* ==========================================================
   FOOTER (CANONICAL, SITEWIDE)
   No manual offsets. Deterministic alignment.
   ========================================================== */

.footer {
  background: transparent; /* inherits page background visually */
  border-top: 0;
  margin-top: 0;
  padding: 26px 0;
  font-size: 13px;
  color: var(--pl-text-muted);
  position: relative;
}

/* Inset divider line (aligned to content column, not viewport) */
/* Divider removed — footer now blends into page background */
.footer::before {
  display: none;
}
.footer-inner {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 24px;

  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  column-gap: 44px;
}


.footer-logo img {
  height: 52px;
  width: auto;
  display: block;
  opacity: 0.95;
}

.footer-meta {
  text-align: center;          /* keep centered */
  font-size: 12px;
  line-height: 1.55;
  color: var(--pl-text-muted);

  position: relative;          /* nudge container only */
  left: -34px;                 /* tweak: -12px to -24px */
}




/* Footer links — canonical spacing (ALL pages) */
.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;     /* keep centered */
  gap: 12px 14px;              /* horizontal | vertical */
  margin-top: 8px;

  position: relative;          /* nudge entire link row */
  left: -12px;                 /* match .footer-meta */
}



.footer-links a {
  white-space: nowrap;
}

@media (max-width: 720px) {
  .footer-inner {
    grid-template-columns: 1fr;
    justify-items: center;
    row-gap: 18px;
    text-align: center;
  }

  .footer-logo img {
    height: 46px;
  }

  .footer-meta {
    max-width: 520px;
    left: 0;                   /* reset nudge on mobile */
  }


  .footer-meta > div:first-child {
    margin-bottom: 6px;
  }

  .footer-meta > div:nth-child(2) {
    margin-bottom: 8px;
  }

  .footer-links {
    left: 0;                   /* reset nudge on mobile */
  }

}








/* ==========================================================
   HEADER (CANONICAL, SITEWIDE)
   One system. No page-level overrides.
   ========================================================== */

.header-title {
  display: flex;
  align-items: center;
  text-decoration: none;
  justify-self: start; /* keep logo pinned left */
}


.header-logo {
  height: 58px;          /* canonical desktop logo height */
  width: auto;
  display: block;
}

.header-nav{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:36px;
  padding-right: 12px;
}





.header-nav a {
  font-size: 14px;
  text-decoration: none;
  color: #64748b;        /* muted slate */
  white-space: nowrap;   /* prevent label splitting */
}

.header-nav a:hover {
  color: var(--pl-text-strong);
}

.header-nav a.active {
  color: var(--pl-text-strong);
  font-weight: 600;
}

/* Mobile menu button default */
.mobile-menu-btn{
  display: none;
  background: #fff;
  border: 1px solid var(--pl-border-subtle);
  border-radius: 12px;
  padding: 6px 8px;
  line-height: 0;
  color: var(--pl-text-body);
}

/* ==========================================================
   MOBILE NAV (CANONICAL)
   ========================================================== */
/* Mobile tightening (page-scoped) */
@media (max-width: 640px) {

  /* ==========================================================
     Canonical mobile header micro-adjust (logo + padding)
     Desktop locked (mobile-only)
     ========================================================== */
  header.header{
    padding-left: 14px !important;
    padding-right: 14px !important;
  }

  header.header > .header-title{
    justify-content: flex-start !important;
    gap: 10px !important;
  }

  .header-logo{
    height: 52px !important;
    width: auto !important;
  }

}

/* Canonical mobile header (mobile-only). Desktop untouched. */
@media (max-width: 820px){



  /* Show hamburger on mobile */
  .mobile-menu-btn{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    background:#fff;
    border:1px solid var(--pl-border-subtle);
    border-radius:12px;
    padding:6px 8px;
    line-height:0;
    color:var(--pl-text-body);
  }

/* Keep header stable on mobile */
.header{
  position:relative;
  z-index:110;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:16px 14px;     /* more vertical space for logo */
  min-height:88px;      /* prevents logo compression */
  overflow: visible;     /* IMPORTANT: allow dropdown to extend outside header */
}


  /* Dropdown panel (flush right) */
  .header-nav{
    position:absolute;
    top:calc(100% + 6px);
    right:0;
    left:auto;

    width:min(var(--pl-mobile-menu-width), calc(100vw - 24px));
    max-height:calc(100vh - 140px);


    display:none;
    flex-direction:column;
    align-items:stretch; /* IMPORTANT: allow buttons to fill panel width */
    gap:var(--pl-mobile-menu-gap);
    padding:var(--pl-mobile-menu-pad);


    background:#ffffff;
    border:1px solid rgba(15, 23, 42, 0.12);
    border-radius:18px;
    box-shadow:0 16px 34px rgba(15, 23, 42, 0.14);
    z-index:120;
    overflow:auto;
    -webkit-overflow-scrolling:touch;
  }

  body.mobile-menu-open .header-nav{ display:flex; }

  /* Dropdown title */
  .header-nav::before{
    content:"MENU";
    display:block;
    text-align:left;
    padding-left:8px;
    font-size:14px;
    font-weight:700;
    letter-spacing:0.16em;
    color:#64748b;
    margin-bottom:10px;
  }

  /* FULL-WIDTH buttons (wider) */
  .header-nav a{
    display:flex;
    align-items:center;
    justify-content:flex-start; /* LEFT align label */

    width:100% !important;
    box-sizing:border-box;

    /* extra right padding so the indicator line never overlaps text */
    padding:var(--pl-mobile-menu-btn-pady) calc(var(--pl-mobile-menu-btn-padx) + 14px) var(--pl-mobile-menu-btn-pady) var(--pl-mobile-menu-btn-padx);
    min-height:var(--pl-mobile-menu-btn-minh);

    border-radius:var(--pl-mobile-menu-btn-radius);

    border:1px solid rgba(15, 23, 42, 0.12);
    background:#f8fafc;

    font-weight:700;
    font-size:16px;
    line-height:1.15;
    color:#334155;
    text-decoration:none;

    position:relative; /* needed for the right-side indicator */
  }




  .header-nav a:hover{
    background:rgba(21, 164, 152, 0.10);
    border-color:rgba(21, 164, 152, 0.35);
    color:#0f5f55;
  }

  .header-nav a.active{
    background:rgba(21, 164, 152, 0.14);
    border-color:rgba(21, 164, 152, 0.55);
    color:#0f5f55;
  }

  /* Active right-side indicator bar (green line) */
  .header-nav a.active::after{
    content:"";
    position:absolute;
    right:10px;
    top:8px;
    bottom:8px;
    width:5px;
    border-radius:999px;
    background:rgba(21, 164, 152, 0.85);
  }


  .header-nav a:focus-visible{
    outline:none;
    box-shadow:0 0 0 3px rgba(21, 164, 152, 0.22);
    border-color:rgba(21, 164, 152, 0.45);
  }

  /* Dim background behind open menu */
  body.mobile-menu-open::before{
    content:"";
    position:fixed;
    inset:0;
    background:rgba(15, 23, 42, 0.18);
    z-index:80;
  }
}





.main {
  max-width: 960px;
  margin: 32px auto;
  padding: 0 16px 48px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1.5fr);
  gap: 32px;
  align-items: center;
}

@media (max-width: 768px) {
  .hero {
    grid-template-columns: 1fr;
  }
}

.hero-title {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 12px;
}

.hero-subtitle {
  font-size: 16px;
  color: #9ca3af;
  margin-bottom: 20px;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.badge {
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid #1f2937;
  background: rgba(15, 23, 42, 0.8);
  color: #9ca3af;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: 4px;
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  background: #3aafe0;
  color: #020617;
}


.btn-secondary {
  background: transparent;
  color: #e5e7eb;
  border-color: #374151;
}

.btn:hover {
  opacity: 0.9;
}

.btn-compact {
  padding: 4px 10px;
  font-size: 12px;
}

/* Ensure primary buttons override the base .btn color */

.btn.btn-primary {
  background: #15a498;
  border-color: #15a498;
  color: #ffffff;
}

.btn.btn-primary:hover {
  background: #118677;   /* darker shade for hover */
  border-color: #118677;
  color: #ffffff;
}
/* Teal hover for secondary buttons on marketing pages */
body.marketing .btn-secondary.btn-teal-hover {
  background: #ffffff;
  color: #111827;
  border-color: #d1d5db;
  transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

body.marketing .btn-secondary.btn-teal-hover:hover {
  /* Match the subtle tab hover animation */
  background: #e5f7f5;    /* very light teal tint */
  border-color: #d1d5db;
  color: #0f5f55;
  box-shadow: none;
}




.card {
  background: var(--pl-surface-dark-soft);
  border-radius: 12px;
  border: 1px solid var(--pl-border-subtle);
  padding: 16px 16px 18px;
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.55);
}

/* (removed) body.marketing .card-elevated override — keep one canonical
   .card-elevated system sitewide */




body.marketing .card-subtitle {
  color: var(--pl-text-muted);
}

.card-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 6px;
  margin-top: 6px;
}

.card-subtitle {
  font-size: 12px;
  color: #9ca3af;
  margin-bottom: 4px;
}

.card-metadata {
  font-size: 11px;
  color: #6b7280;
  margin-top: 8px;
}

/* Shared page layout */

.page-title {
  font-size: 28px;
  font-weight: 650;
  letter-spacing: -0.02em;
  text-transform: none;
  margin-bottom: 8px;
}



.page-subtitle {
  font-size: 14px;
  color: #9ca3af;
  margin-bottom: 20px;
}

/* Forms */

form {
  margin-bottom: 16px;
}

input[type="file"],
input[type="text"],
input[type="email"] {
  width: 100%;
  max-width: 420px;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid #374151;
  background: #020617;
  color: #e5e7eb;
  font-size: 14px;
}
body.marketing input[type="file"],
body.marketing input[type="text"],
body.marketing input[type="email"] {
  background: #ffffff;
  color: var(--pl-text-body);
  border-color: var(--pl-border-subtle);
}


input::placeholder {
  color: #6b7280;
}

label {
  font-size: 13px;
  color: #9ca3af;
  display: block;
  margin-bottom: 6px;
}
body.marketing label {
  color: var(--pl-text-body);
  font-weight: 500;
}


.form-row {
  margin-bottom: 14px;
}
/* Upload page helpers */
.upload-btc-help {
  font-size: 12px;
  color: var(--pl-text-muted);
  margin-top: 4px;
  max-width: 520px;
  line-height: 1.5;
}
.upload-card {
  max-width: 640px;
  margin: 0 auto;
}


.upload-status-line {
  margin-top: 10px;
  font-size: 13px;
}

.upload-status-subline {
  margin-top: 6px;
  font-size: 13px;
  color: var(--pl-text-muted);
}


/* Result / logs */

pre {
  background: #020617;
  border-radius: 8px;
  border: 1px solid #1f2937;
  padding: 10px 12px;
  font-size: 12px;
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-word;
}
body.marketing pre {
  background: var(--pl-surface-light-soft);
  border-color: var(--pl-border-subtle);
  color: var(--pl-text-body);
}


/* Admin table */

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 12px;
  font-size: 12px;
}

thead {
  background: #020617;
}

th, td {
  border-bottom: 1px solid #1f2937;
  padding: 6px 8px;
  text-align: left;
}

th {
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #9ca3af;
}

tbody tr:hover {
  background: rgba(15, 23, 42, 0.7);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
}

.status-approved {
  background: rgba(34, 197, 94, 0.1);
  color: #4ade80;
}

.status-pending {
  background: rgba(250, 204, 21, 0.1);
  color: #facc15;
}

.status-denied {
  background: rgba(248, 113, 113, 0.1);
  color: #fca5a5;
}

/* Footer */

/* (footer styles consolidated lower in file) */

/* Account / Verify alignment helpers */
.mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 13px;
  letter-spacing: 0.03em;
}

.badge-plan {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.account-note {
  margin-top: 10px;
  font-size: 12px;
  color: #9ca3af;
  line-height: 1.5;
}
/* Large page title to match Verify heading */
.page-hero-title {
  font-size: 28px;
  font-weight: 650;
  letter-spacing: -0.02em;
  text-transform: none;
  margin-bottom: 4px;
}

/* Account / data typography helpers */
.mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 13px;
  letter-spacing: 0.03em;
}

.badge-plan {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.account-note {
  margin-top: 10px;
  font-size: 12px;
  color: #9ca3af;
  line-height: 1.5;
}
/* Generic card grid (desktop) */
.card-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  align-items: stretch;
}
.card-grid .card-elevated {
  height: 100%;
  display: flex;
  flex-direction: column;
}


/* Pricing page header */
.pricing-page-header {
  margin-bottom: 24px;
}

.pricing-page-title {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 8px 0;
  color: var(--pl-text-strong);
}

.pricing-page-subtitle {
  font-size: 18px;
  color: #4b5563;
  margin: 0 0 12px 0;
  max-width: 1040px;   /* let the line run all the way across */
  line-height: 1.45;
}

.pricing-page-detail {
  font-size: 14px;
  color: var(--pl-text-muted);
  margin: 0;
  max-width: 1040px;   /* consistent width with subtitle */
  line-height: 1.6;
}



.pricing-feature-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 16px 0 28px;
}

.pricing-feature-pill {
  font-size: 12px;
  color: #4b5563;
  background: var(--pl-bg-light-soft);
  padding: 4px 10px;
  border-radius: 999px;
}
/* Admin tables should still highlight rows on hover, even on marketing shell */
body.marketing .table-evidence.admin-table tbody tr:hover {
  background: #f3f4f6;
}

/* Pricing page – security & footnotes */
.pricing-security {
  margin-top: 32px;
  font-size: 13px;
  color: #374151;
  line-height: 1.7;
  max-width: 720px;
}

.pricing-security h3 {
  font-size: 14px;
  font-weight: 600;
  margin: 0 0 6px 0;
}

.pricing-security ul {
  padding-left: 18px;
  margin: 4px 0 0 0;
  color: #4b5563;
  font-size: 12px;
  display: grid;
  /* Let each column size to its content instead of forcing equal fractions */
  grid-template-columns: repeat(3, auto);
  column-gap: 32px;         /* more horizontal room between bullets */
  row-gap: 4px;
  list-style-position: outside;
}

.pricing-security li {
  margin-bottom: 2px;
  white-space: nowrap;       /* keep each bullet on a single line on desktop */
}


.pricing-footnotes {
  margin-top: 16px;
  font-size: 11px;
  color: #6b7280;
  line-height: 1.5;
  max-width: 720px;
}
/* Force equal-height subscription cards */
.pricing-subscription-grid .card-elevated {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.pricing-subscription-grid .card-elevated ul {
  flex-grow: 1;
}

/* Pricing sections */
.pricing-section-heading {
  font-size: 18px;
  font-weight: 600;
  margin: 24px 0 12px;
}
.pricing-table-heading {
  text-align: center;
  margin-top: 16px;      /* more space above the bar */
  margin-bottom: 20px;   /* more space before "Included features" row */
}



/* Plan card internals */
.pricing-plan-price {
  /* Pull the price closer to the subtitle */
  margin-top: 6px;
  margin-bottom: 2px;
  font-size: 18px;
  font-weight: 600;
}

.pricing-plan-features {
  font-size: 13px;
  color: #4b5563;
  padding-left: 18px;
  /* Push the feature list a bit further away from the price */
  margin-top: 6px;
}


/* Slightly tighter top margin for stacked lists in pricing cards */
.pricing-plan-features-tight {
  margin-top: 6px;
}

/* Tight variant used for compact detail lists (e.g., Bitcoin add-on) */
.pricing-plan-features-tight li {
  margin-bottom: 3px;
}


.pricing-plan-button {
  margin-top: 10px;
}

.pricing-plan-note {
  font-size: 11px;
  color: #6b7280;
  margin-top: 6px;
}


/* Extra helpers for pricing cards */
.pricing-plan-card-free {
  opacity: 0.9;
}

.pricing-plan-price-small {
  margin-top: 8px;
  font-size: 13px;
  font-weight: 500;
  color: #4b5563;
}

.pricing-plan-button-stack {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
}

.pricing-plan-button-stack .btn {
  font-size: 13px;
  padding: 8px 14px;
}


.pricing-plan-note-muted {
  font-size: 11px;
  color: #9ca3af;
  margin-top: 8px;
  max-width: 420px;
}


.pricing-plan-btc-button {
  background-color: #F7931A;
  border-color: #F7931A;
}

/* Ensure subscription cards stretch to equal height in the grid */
.pricing-subscription-grid {
  align-items: stretch;
}


/* Compact PAYG buttons (smaller, lower visual weight) */
.btn-payg {
  padding: 6px 10px;
  font-size: 13px;
  border-radius: 6px;
  background: #15a498;
  border-color: #15a498;
  color: #ffffff;
}

.btn-payg:hover {
  background: #118677;
  border-color: #118677;
  color: #ffffff;
}

/* 2-column layout for PAYG buttons */
.payg-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 10px;
}
/* Add-ons grid – match card heights without changing overall layout */
.pricing-addons-grid .card-elevated {
  height: 100%;
  display: flex;
  flex-direction: column;
}
/* Persuasion block in blank space next to Legal plan */
.pricing-subscription-grid .pricing-wide-benefits {
  grid-column: 2 / -1;
  align-self: center;
  margin: -80px 0px 0 50px; /* mild lift, no overlap */
  text-align: left;
    max-width: 620px;         /* controls where the line wraps */
}


.pricing-wide-benefits h2 {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0 0 px 0;
  color: var(--pl-text-strong);
}

.pricing-wide-benefits ul {
  list-style: disc;
  padding-left: 20px;
  margin: 0;
  font-size: 16px;        /* Slightly smaller so it fits cleanly */
  line-height: 1.6;
  color: #374151;
}

.pricing-wide-benefits li {
  margin-bottom: 2px;
}

/* Plan highlight row inside comparison table */
.table-evidence .plan-summary-row td {
  font-size: 12px;
  color: #4b5563;
  line-height: 1.5;
}
/* Divider lines above and below pricing comparison table */
.pricing-table-divider {
  border-top: 1px solid #cbd5e1;   /* darker, cleaner */
  margin: 24px 0;
}

.pricing-table-divider-bottom {
  border-bottom: 1px solid #cbd5e1; /* darker, cleaner */
  margin: 24px 0;
}


.table-evidence .plan-summary-row td:first-child {
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #6b7280;
}
/* Prevent hover styling on the active tab */
.pricing-tabs-row .btn.active-tab:hover {
  background: #15A498 !important;
  color: #ffffff !important;
  box-shadow: 0 0 0 1px #118677 !important;
}
.pricing-tabs-row .btn.active-tab {
  pointer-events: none;
}
/* Admin queue tabs */
.admin-queue-tabs {
  display: flex;
  gap: 8px;
  margin: 16px 0;
}

/* Admin sub-tabs (used for "Bitcoin queue / Polygon queue" toggle on admin_bitcoin.html) */
.admin-subtabs {
  display: flex;
  gap: 8px;
  margin: 16px 0;
}

/* ==========================================================
   ADMIN — CHAINS PAGE (HIGH-IMPACT VISUAL POLISH)
   ========================================================== */

/* Top status row becomes a real grid (consistent spacing, no inline drift) */
.pl-status-grid{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
  align-items: stretch;
}

/* Each status card looks identical */
.pl-status-card{
  border:1px solid var(--pl-border-subtle);
  border-radius: 12px;
  padding: 12px;
  background: var(--pl-surface-light);
}

/* Compact key/value rhythm inside cards */
.pl-kv{
  font-size: 12px;
  margin-top: 10px;
  line-height: 1.7;
}

.pl-kv-spacer{
  margin-top: 8px;
}

/* Unified “preformatted” box used for Merkle + JSON policy */
.pl-pre{
  font-size:11px;
  color: var(--pl-text-muted);
  word-break: break-all;
  background: var(--pl-surface-light-soft);
  border-radius: 8px;
  padding: 8px;
  border:1px solid var(--pl-border-subtle);
  white-space: pre-wrap;
}

/* Status pills for YES/NO */
.pl-pill{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: rgba(15, 23, 42, 0.04);
  color: var(--pl-text-body);
  min-width: 44px;
}

.pl-pill.ok{
  background: rgba(16, 185, 129, 0.10);
  border-color: rgba(16, 185, 129, 0.35);
  color: #065f46;
}

.pl-pill.bad{
  background: rgba(239, 68, 68, 0.10);
  border-color: rgba(239, 68, 68, 0.30);
  color: #991b1b;
}

.pl-pill.neutral{
  opacity: 0.9;
}

/* Emergency label before override button */
.pl-emergency-label{
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--pl-text-muted);
  padding: 0 2px 0 6px;
}

/* Admin chains page: top “status cards” row polish */
.admin-queue-card > div[style*="display:flex"][style*="gap:12px"]{
  gap: 14px !important;
}

/* ==========================================================
   ADMIN — ACTION BAR POLISH (Chains page)
   ========================================================== */

/* Unified action row: buttons + inputs align cleanly */
.pl-admin-actions{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  align-items:center;
  justify-content:flex-end;
}

/* Make TXID inputs behave like “one flexible slot” */
.pl-admin-input{
  min-width: 260px;
  flex: 1 1 260px;
}

/* Make buttons/inputs look like one system */
body.marketing .pl-admin-actions .btn{
  border-radius: 10px;
  padding: 9px 14px;
}

body.marketing .pl-admin-actions .input{
  height: 38px;
  border-radius: 10px;
  padding: 8px 12px;
  border: 1px solid var(--pl-border-subtle);
  background: #ffffff;
  color: var(--pl-text-body);
}

/* Warning button for “Override policy” (deliberate + obvious) */
body.marketing .btn-warning{
  border-color: rgba(247, 147, 26, 0.55) !important;
  background: rgba(247, 147, 26, 0.10) !important;
  color: #9a3412 !important;
  font-weight: 700;
}

body.marketing .btn-warning:hover{
  border-color: rgba(247, 147, 26, 0.80) !important;
  background: rgba(247, 147, 26, 0.16) !important;
  color: #7c2d12 !important;
}


.admin-tab-btn {
  font-size: 12px;
  padding: 6px 14px;
}

.admin-tab-btn.admin-tab-active {
  background: #15a498 !important;
  border-color: #15a498 !important;
  color: #ffffff !important;
}

/* ==========================================================
   ADMIN (CANONICAL)
   Admin-only layout helpers (NO header/footer/menu overrides)
   ========================================================== */

/* ==========================================================
   ADMIN — OVERVIEW PAGE (admin.html)
   ========================================================== */

.pl-badge {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  border: 1px solid rgba(0,0,0,.08);
  background: #f2f4f7;
  color: #344054;
  white-space: nowrap;
}
.pl-badge-success { background: #e9fbf1; color: #0f7a42; }
.pl-badge-warn    { background: #fff6e6; color: #a66300; }
.pl-badge-danger  { background: #fdecea; color: #b42318; }
.pl-badge-muted   { background: #f2f4f7; color: #667085; }

.admin-top-grid{
  display:grid;
  gap:16px;
  align-items:start;
  grid-template-columns: 1fr;
  margin-top:14px;
}
@media (min-width: 980px){
  .admin-top-grid{ grid-template-columns: 360px 1fr; }
  .admin-wide{ grid-column: 1 / -1; }
}

.admin-metrics-grid{
  display:grid;
  gap:14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top:12px;
}

/* Admin modules: clean “key/value rows” used by System status + Core counts */
.admin-module-kv{
  border: 1px solid var(--pl-border-subtle);
  border-radius: 14px;
  padding: 10px 12px;
  background: var(--pl-surface-light-soft);
}

.admin-kv-big .v{
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--pl-text-strong);
}
/* Core counts as metric cards (admin.html) */
.admin-metric-cards{
  display:grid;
  gap:12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top:12px;
}

@media (max-width: 820px){
  .admin-metric-cards{ grid-template-columns: 1fr; }
}

.admin-metric-card{
  border: 1px solid var(--pl-border-subtle);
  border-radius: 14px;
  padding: 12px 12px 10px;
  background: var(--pl-surface-light-soft);
}

.admin-metric-label{
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--pl-text-muted);
  margin-bottom: 6px;
}

.admin-metric-value{
  font-size: 28px;
  font-weight: 750;
  letter-spacing: -0.02em;
  color: var(--pl-text-strong);
  line-height: 1.1;
}

.admin-af-grid{
  display:grid;
  gap:14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top:12px;
}
@media (max-width: 820px){
  .admin-metrics-grid{ grid-template-columns: 1fr; }
  .admin-af-grid{ grid-template-columns: 1fr; }
}

.admin-kv{
  display:flex;
  justify-content:space-between;
  gap:12px;
  padding:6px 0;
  border-bottom: 1px solid rgba(148,163,184,0.25);
}
.admin-kv:last-child{ border-bottom:none; }
.admin-kv .k{ color: var(--pl-text-muted); }
.admin-kv .v{ font-weight:700; text-align:right; word-break:break-word; }
.admin-mono{ font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono","Courier New", monospace; font-size: 12px; }

/* Admin Control Surface modules (A–F) — make each block read like a dashboard card */
.admin-section-card{
  border: 1px solid var(--pl-border-subtle);
  border-radius: 14px;
  padding: 12px 12px 10px;
  background: var(--pl-surface-light-soft);
}

.admin-section-title{
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--pl-text-muted);
  margin-bottom: 8px;
}
/* Horizontal scroll wrapper for wide admin tables on small screens */
.admin-table-scroll{
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 12px;
}

/* Let wide tables scroll instead of crushing columns */
.admin-table-scroll table{
  min-width: 760px;
}

/* Mobile: admin tab row becomes 2-column grid (only on phones) */
@media (max-width: 640px){
  .admin-queue-tabs{
    display:grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap:8px !important;
  }

  .admin-subtabs{
    display:grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap:8px !important;
  }


  .admin-queue-tabs .admin-tab-btn{
    width:100% !important;
    justify-content:center !important;
    text-align:center !important;
    white-space: normal !important;
  }

  .admin-subtabs .admin-tab-btn{
    width:100% !important;
    justify-content:center !important;
    text-align:center !important;
    white-space: normal !important;
  }
@media (max-width: 640px){
  body.index-page .card-elevated.pl-index-card{
    padding: 18px 16px 20px;
    border-radius: 16px;
  }
  body.index-page .pl-index-section{
    margin-top: 16px;
  }
  body.index-page .pl-index-hero{
    padding: 18px 0 6px;
  }
}


  /* Admin header card action buttons stack cleanly on mobile */
  .admin-queue-card > div[style*="display:flex"][style*="justify-content:space-between"]{
    flex-direction:column !important;
    align-items:flex-start !important;
    gap:10px !important;
  }

  .admin-queue-card > div[style*="display:flex"][style*="justify-content:space-between"] > div[style*="display:flex"][style*="gap:8px"]{
    width:100% !important;
  }

  .admin-queue-card > div[style*="display:flex"][style*="justify-content:space-between"] > div[style*="display:flex"][style*="gap:8px"] .btn{
    flex:1 1 auto !important;
    width:100% !important;
  }

  /* Refund row: stack inputs/buttons on mobile without markup changes */
  #refundProofId,
  #refundPaymentIntent,
  #refundBtn{
    width:100% !important;
    min-width:0 !important;
    flex: 1 1 auto !important;
  }

  .pl-ops-section .pl-ops-body > div[style*="display:flex"][style*="gap: 10px"]{
    flex-direction:column !important;
    align-items:stretch !important;
  }
}


@media (max-width: 768px) {
  .marketing-shell {
    padding: 0 12px 56px;
  }



  .pricing-page-subtitle,
  .pricing-page-detail {
    max-width: 100%;
  }

  .pricing-tabs-row {
    display: flex;
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
  }

  .pricing-tabs-row .btn {
    flex: 1 1 140px;
    text-align: center;
  }

  .pricing-subscription-grid .pricing-wide-benefits {
    grid-column: 1 / -1;
    margin: 16px 0 0 0;
    max-width: none;
  }

  .pricing-plan-highlights-row {
    overflow-x: auto;
  }

  .pricing-plan-highlights-row table {
    min-width: 640px;
  }
}

/* ==========================================================
   HERO (CANONICAL) — MOBILE GOVERNANCE (<= 640px)
   Forces consistent hero sizing + CTA behavior across pages.
   ========================================================== */
@media (max-width: 640px){

  /* Give the hero enough vertical room to “lower” the title cleanly */
  .pl-hero-band .pl-hero-content{
    padding-top: 34px !important;
    padding-bottom: 14px !important;
  }

  /* Title: govern ALL hero titles, including page-specific classes */
  .pl-hero-band .page-header-title,
  .pl-hero-band .dash-title,
  .pl-hero-band .upload-title,
  .pl-hero-band .verify-title,
  .pl-hero-band .account-title,
  .pl-hero-band .support-title{
    font-size: 26px !important;
    line-height: 1.12 !important;
    margin-bottom: 10px !important;
  }

  /* Subtitle: govern all hero subtitle variants used across pages */
  .pl-hero-band .page-header-subtitle,
  .pl-hero-band .dash-subtitle,
  .pl-hero-band .pricing-page-subtitle{
    font-size: 14px !important;
    line-height: 1.45 !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  /* If pricing uses the longer detail paragraph under subtitle */
  .pl-hero-band .pricing-page-detail{
    font-size: 13px !important;
    line-height: 1.45 !important;
  }

  /* CTA row: stack buttons full-width on phones */
  .pl-hero-band .pl-hero-cta-row{
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 10px !important;
    margin-top: 16px !important;
  }

  .pl-hero-band .pl-hero-cta-row .btn{
    width: 100% !important;
  }
}
/* collapse ONLY on true phones */
@media (max-width: 520px) {
  .pricing-security ul {
    grid-template-columns: 1fr;
  }
  .pricing-security li {
    white-space: normal;    /* allow wrapping on narrow screens */
  }
}

/* ==========================================================
   ADMIN USERS — POLISH (CANONICAL)
   Styles only. No header/footer/menu overrides.
   ========================================================== */

/* Two-panel layout (list left, details right) */
.admin-users-grid{
  display:grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap:16px;
  align-items:start;
}

/* Search row */
.admin-users-search{
  display:flex;
  gap:10px;
  align-items:center;
}

.admin-users-search .input{
  flex:1 1 auto;
  min-width:0;
}

/* Scrollable user list */
.admin-user-list{
  margin-top:12px;
  border:1px solid var(--pl-border-subtle);
  border-radius:14px;
  overflow:hidden;
  background: var(--pl-surface-light);
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.06);
}

/* If list gets long, scroll instead of growing forever */
.admin-user-list{
  max-height: 520px;
  overflow:auto;
  -webkit-overflow-scrolling:touch;
}

/* Clickable rows */
.admin-user-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;

  padding:12px 12px;
  border-bottom:1px solid var(--pl-border-subtle);
  cursor:pointer;
  user-select:none;
}

.admin-user-row:last-child{ border-bottom:none; }

.admin-user-row:hover{
  background: rgba(21, 164, 152, 0.06);
}

.admin-user-row.active{
  background: rgba(21, 164, 152, 0.10);
  box-shadow: inset 3px 0 0 rgba(21, 164, 152, 0.85);
}

/* Email + subline */
.admin-user-meta{ min-width:0; }

.admin-user-email{
  font-weight:650;
  color: var(--pl-text-strong);
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.admin-user-sub{
  margin-top:3px;
  font-size:12px;
  color: var(--pl-text-muted);
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  align-items:center;
}

/* Pills (status + plan code) */
.pill{
  display:inline-flex;
  align-items:center;
  padding:2px 8px;
  border-radius:999px;
  font-size:11px;
  font-weight:650;
  border:1px solid rgba(15, 23, 42, 0.10);
  background: rgba(15, 23, 42, 0.03);
  color: #334155;
}

.pill.warn{
  background: rgba(250, 204, 21, 0.14);
  border-color: rgba(250, 204, 21, 0.38);
  color: #7c5c00;
}

.pill.bad{
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.30);
  color: #991b1b;
}

/* Detail panel: key/value grid */
.kv{
  display:grid;
  grid-template-columns: 180px minmax(0, 1fr);
  column-gap:14px;
  row-gap:10px;
  margin-top:10px;
}

.kv .k{
  font-size:12px;
  color: var(--pl-text-muted);
  font-weight:600;
}

.kv .v{
  font-size:13px;
  color: var(--pl-text-strong);
  word-break: break-word;
}

.kv .mono{
  font-size:12px;
}

/* Inline edit rows */
.admin-inline{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:12px;
  align-items:end;
}

/* Action row */
.panel-actions{
  display:flex;
  gap:10px;
  align-items:center;
  justify-content:flex-start;
  margin-top:12px;
}

.panel-actions .btn{
  white-space:nowrap;
}

/* Make dangerous action feel “deliberate” */
.panel-actions .btn-danger{
  border-radius:10px;
}

/* Mobile: stack everything, keep it readable */
@media (max-width: 980px){
  .admin-users-grid{
    grid-template-columns: 1fr;
  }

  .admin-user-list{
    max-height: 360px;
  }
}

@media (max-width: 640px){
  .admin-users-search{
    flex-direction:column;
    align-items:stretch;
  }

  .admin-users-search .btn{
    width:100%;
  }

  .kv{
    grid-template-columns: 1fr;
  }

  .admin-inline{
    grid-template-columns: 1fr;
  }

  .panel-actions{
    flex-direction:column;
    align-items:stretch;
  }

  .panel-actions .btn{
    width:100%;
    justify-content:center;
  }
}

/* -------------------------------------------------
   MOBILE DASHBOARD FILTER COMPACTION
   Applies only on small screens
-------------------------------------------------- */

@media (max-width: 640px) {

  .dash-shell {
    padding-top: 20px !important;
  }

  .filter-bar {
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    gap: 8px !important;
    padding-bottom: 6px !important;
    -webkit-overflow-scrolling: touch;
  }

  .filter-group label {
    display: none !important;
  }

  .filter-group select,
  .filter-group input {
    padding: 6px 12px !important;
    font-size: 12px !important;
    min-height: 32px !important;
    border-radius: 999px !important;
    white-space: nowrap !important;
  }

  .filter-group.filter-search {
    min-width: 140px !important;
    flex: 0 0 auto !important;
  }

  .proofs-table th,
  .proofs-table td {
    padding: 6px 8px !important;
  }

  .stat-card {
    min-height: 96px !important;
    padding: 12px 16px !important;
  }

  .stat-value {
    font-size: 22px !important;
  }
}

/* ==========================================================
   Certificate preview links (index.html)
   Open full-size image in new tab
   ========================================================== */

.cert-preview-link{
  display:block;
  cursor: pointer; /* opens full-size image in new tab */
}


.cert-preview{
  width:100%;
  height:auto;
  display:block;
  border-radius:10px;
  border:1px solid rgba(0,0,0,0.08);
}

/* =====================================
   Pre-footer Canonical Reference Block
   ===================================== */


/* (removed) Index-only reference block spacing overrides.
   Reference block spacing must be identical on every page. */


.pl-reference-block {
  display: flex;
  justify-content: center;
  margin: 18px 0;
}



.pl-reference-block .card-elevated {
  max-width: 980px;
  width: 100%;

  /* Lock reference block appearance (deterministic, sitewide) */
  border-radius: 16px;
  padding: 20px 20px 22px;
  background: var(--pl-surface-light);
  border: 1px solid #e5e7eb;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.10);
  color: var(--pl-text-body);
}


.pl-reference-block .text-muted {
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 6px;
  text-align: left;
  opacity: 0.65;
}

.pl-reference-block .text-body {
  font-size: 10px;
  line-height: 1.45;
  max-width: 820px;
  margin: 0 auto 6px;
  text-align: left;
}



.pl-reference-block .text-body:last-child {
  margin-bottom: 0;
}

@media (max-width: 640px) {
  .pl-reference-block .card-elevated {
    margin-left: 14px;
    margin-right: 14px;
  }

  .pl-reference-block .text-muted {
    font-size: 8px !important;
    letter-spacing: 0.20em !important;
    opacity: 0.6 !important;
    text-transform: uppercase !important;
    text-align: left !important;
  }

  .pl-reference-block .text-body {
    font-size: 10px !important;
    line-height: 1.4 !important;
    text-align: left !important;
  }
}








/* ==========================================================
   INDEX PAGE (FINTECH VISUAL POLISH)
   Page-scoped. No header/footer overrides.
   ========================================================== */

body.index-page .pl-index-shell{
  padding-top: 22px;
}

body.index-page .pl-index-center{
  display: flex;
  justify-content: center;
}

body.index-page .pl-index-max{
  max-width: 980px;
  width: 100%;
}

body.index-page .pl-index-section{
  margin-top: 16px;
}

/* Hero */
body.index-page .pl-index-hero{
  margin-top: 4px;
  padding: 18px 0 8px;
  position: relative;
}

/* ==========================================================
   Shared hero gradient band (reusable across pages)
   ========================================================== */

.pl-hero-band{
  position: relative;
}

/* This is the exact gradient you’re already using on index */
.pl-hero-band::before{
  content: "";
  position: absolute;
  inset: -8px -8px 0 -8px;
  background:

    /* Bottom fade (NEW — faster vertical blend to white) */
    linear-gradient(
      to bottom,
      rgba(248,250,252,0) 0%,
      rgba(248,250,252,0) 45%,

      rgba(248,250,252,1) 100%
    ),

    /* Side edge blend (prevents seam lines) */
    linear-gradient(
      to right,
      rgba(248,250,252,1) 0%,
      rgba(248,250,252,0) 18%,
      rgba(248,250,252,0) 82%,
      rgba(248,250,252,1) 100%
    ),

    /* Main centered glow */
    radial-gradient(900px 420px at 50% -30%, rgba(21,164,152,0.18), rgba(255,255,255,0) 70%),

    /* Right glow */
    radial-gradient(920px 420px at 92% 0%, rgba(14,165,233,0.09), rgba(255,255,255,0) 40%),

    /* Left glow */
    radial-gradient(920px 420px at 8% 0%, rgba(21,164,152,0.09), rgba(255,255,255,0) 40%);

  pointer-events: none;
}
/* HERO LAYOUT (index uses .pl-hero-band + inner wrappers) */
.pl-hero-band-inner{
  display: flex;
  justify-content: center;
}

.pl-hero-content{
  max-width: 980px;
  width: 100%;
  text-align: center;

  /* Increase this to “lower” the title while keeping the gradient flush to the header divider */
  padding: 52px 0 24px;
}

/* Mobile: keep it comfortable */
@media (max-width: 640px){
  .pl-hero-content{
    padding: 38px 0 18px;
  }
}

.pl-hero-band > *{
  position: relative;
  z-index: 1;
}

/* Keep index hero working exactly as before (it will now inherit the same gradient) */
body.index-page .pl-index-hero::before{
  /* intentionally empty — gradient is owned by .pl-hero-band */
}
  content: "";
  position: absolute;
  inset: -8px -8px 0 -8px;
  background:
    radial-gradient(900px 420px at 50% -10%, rgba(21,164,152,0.18), rgba(255,255,255,0) 60%),
    radial-gradient(700px 380px at 90% 0%, rgba(14,165,233,0.10), rgba(255,255,255,0) 55%);
  pointer-events: none;
}

body.index-page .pl-index-hero-inner{
  position: relative;
  text-align: center;
  padding: 6px 0 0;
}

body.index-page .pl-index-hero-title{
  font-size: 36px;
  line-height: 1.12;
  margin: 0 0 10px;
  letter-spacing: -0.03em;
}

body.index-page .pl-index-hero-subtitle{
  max-width: 780px;
  margin: 0 auto;
  font-size: 16px;
  line-height: 1.55;
  color: var(--pl-text-body);
}

body.index-page .pl-index-cta-row{
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 18px;
}

body.index-page .pl-index-hero-footnote{
  margin-top: 12px;
  font-size: 12px;
  color: var(--pl-text-muted);
}


/* Grids */
body.index-page .pl-index-grid-2{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

body.index-page .pl-index-grid-3{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

@media (max-width: 920px){
  body.index-page .pl-index-grid-2,
  body.index-page .pl-index-grid-3{
    grid-template-columns: 1fr;
  }
}

/* Card internals */
body.index-page .card-elevated.pl-index-card{
  padding: 22px 22px 24px;
}

body.index-page .pl-index-kicker{
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--pl-text-muted);
  margin-bottom: 8px;
}

body.index-page .pl-index-h2{
  margin: 0 0 10px;
}

body.index-page .pl-index-h3{
  margin: 0 0 10px;
}

body.index-page .pl-index-lead{
  margin: 0 0 14px;
}

body.index-page .pl-index-list{
  margin: 0;
}

body.index-page .pl-index-muted-italic{
  margin-top: 14px;
  font-style: italic;
}

/* Steps */
body.index-page .pl-index-steps{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 12px;
}

@media (max-width: 920px){
  body.index-page .pl-index-steps{
    grid-template-columns: 1fr;
  }
}

body.index-page .pl-index-step{
  border: 1px solid var(--pl-border-subtle);
  border-radius: 14px;
  background: rgba(255,255,255,0.75);
  padding: 14px 14px;
}

body.index-page .pl-index-step-top{
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

body.index-page .pl-index-step-num{
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--pl-text-muted);
}

body.index-page .pl-index-step-badge{
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid rgba(21,164,152,0.25);
  background: rgba(21,164,152,0.08);
  color: #0f5f55;
  white-space: nowrap;
}

/* Certificate grid */
body.index-page .pl-index-cert-grid{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 12px;
}

@media (max-width: 920px){
  body.index-page .pl-index-cert-grid{ grid-template-columns: 1fr; }
}

body.index-page .pl-index-cert-card{
  padding: 18px 18px 20px;
}

body.index-page .cert-preview{
  border-radius: 12px;
  border: 1px solid var(--pl-border-subtle);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.10);
  display: block;
  width: 100%;
  height: auto;
}

body.index-page .pl-index-centered{
  text-align: center;
}

/* Final CTA */
body.index-page .pl-index-final-cta{
  text-align: center;
}

/* Mobile hero tuning */
@media (max-width: 640px){
  body.index-page .pl-index-shell{ padding-top: 14px; }
  body.index-page .pl-index-hero-title{ font-size: 30px; }
  body.index-page .pl-index-hero{ padding: 14px 0 6px; }
}

/* Dashboard-only: widen the shell so the table fits */
body.dashboard-page .marketing-shell{
  max-width: 1240px;
}
