
/* v13.1 approved header correction: keep long nav items on one row and style login header actions */
.navbar .nav-inner{display:flex;align-items:center;gap:18px;min-width:0;}
.navbar .brand{flex:0 0 auto;}
.navbar .brand img{max-height:58px;width:auto;}
.navbar .nav-links{display:flex!important;align-items:center;gap:28px;flex:1 1 auto;min-width:0;white-space:nowrap;flex-wrap:nowrap;}
.navbar .nav-links>a,.navbar .nav-links .nav-item>a{display:inline-flex!important;align-items:center;gap:6px;white-space:nowrap!important;line-height:1.1!important;font-size:14px;font-weight:900;text-decoration:none;}
.navbar .nav-actions{display:flex;align-items:center;gap:10px;flex:0 0 auto;margin-left:auto;white-space:nowrap;}
.navbar .nav-icon,.navbar .pp-header-action{width:44px;height:44px;border:1px solid #dbe7fb;border-radius:15px;display:inline-grid!important;place-items:center;text-decoration:none;background:#fff;color:#0b5cff;font-weight:900;position:relative;box-shadow:0 8px 22px rgba(6,26,64,.05);}
.navbar .nav-icon em,.navbar .pp-header-action em{position:absolute;right:-4px;top:-6px;min-width:19px;height:19px;border-radius:999px;background:#ff2d20;color:#fff;display:grid;place-items:center;font-size:11px;font-style:normal;line-height:1;padding:0 5px;border:2px solid #fff;}
.navbar .account-chip{height:48px;border:1px solid #dbe7fb;border-radius:999px;background:#fff;display:flex;align-items:center;gap:9px;padding:0 14px;font-weight:900;color:#061a40;box-shadow:0 8px 22px rgba(6,26,64,.05);}
.navbar .account-chip small{font-size:12px;color:#667085;font-weight:800;}
.navbar .avatar-dot{width:32px;height:32px;border-radius:50%;background:#061a55;color:#fff;display:inline-grid;place-items:center;font-weight:900;}
@media(max-width:1180px){.navbar .nav-links{gap:18px}.navbar .nav-links>a,.navbar .nav-links .nav-item>a{font-size:13px}.navbar .brand img{max-width:190px}}
@media(max-width:980px){.navbar .nav-links{display:none!important}.navbar .mobile-menu{display:inline-flex!important}.navbar .nav-actions .btn{padding:0 13px}.navbar .brand img{max-width:170px}}
/* v13.1 unified admin shell should not show the deprecated direct dashboard link */
.ppx-sidebar>.ppx-dashboard-direct{display:none!important;}
/* v13.1 invest flow cards */
.pp-invest-entry{background:#f4f8ff;padding:64px 20px;}
.pp-invest-entry .wide{max-width:1180px;margin:0 auto;display:grid;grid-template-columns:minmax(0,1.35fr) minmax(300px,.85fr);gap:28px;align-items:start;}
.pp-invest-card{background:#fff;border:1px solid #dce6f6;border-radius:24px;padding:36px;box-shadow:0 22px 60px rgba(6,26,64,.08);}
.pp-invest-card h1{margin:12px 0 16px;color:#061a40;font-size:42px;line-height:1.05;letter-spacing:-.055em;}
.pp-invest-card p{color:#536285;font-size:17px;line-height:1.75;font-weight:650;}
.pp-invest-pill{display:inline-flex;border-radius:999px;background:#fff3df;color:#b45b00;font-weight:900;padding:8px 13px;font-size:12px;}
.pp-invest-breadcrumb{font-size:13px;color:#51648a;font-weight:800;margin-bottom:18px}.pp-invest-breadcrumb a{color:#0b5cff;text-decoration:none;}
.pp-invest-meta{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:26px 0}.pp-invest-meta div{border:1px solid #dce6f6;border-radius:16px;padding:16px;background:#fbfdff}.pp-invest-meta span{display:block;color:#667085;font-size:12px;font-weight:900;margin-bottom:8px}.pp-invest-meta strong{color:#061a40;font-size:16px}.pp-invest-actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:20px}.pp-invest-btn{min-height:50px;display:inline-flex;align-items:center;justify-content:center;border-radius:999px;text-decoration:none;padding:0 22px;font-weight:950;border:1px solid #dce6f6}.pp-invest-btn.primary{background:#061a55;color:#fff;border-color:#061a55}.pp-invest-btn.secondary{background:#eef4ff;color:#0b5cff}.pp-invest-alert{margin-top:20px;border:1px solid #ffd8a8;background:#fff8ed;color:#7c3f00;border-radius:16px;padding:16px;font-weight:800;line-height:1.6}.pp-invest-summary h2{margin:0 0 18px;color:#061a40}.pp-invest-row{display:flex;justify-content:space-between;gap:18px;border-bottom:1px solid #e6eef8;padding:14px 0;color:#536285;font-weight:750}.pp-invest-row strong{color:#061a40;text-align:right}.pp-invest-risk{margin-top:20px;border:1px solid #dce6f6;background:#f8fbff;border-radius:16px;padding:16px;color:#536285;line-height:1.6;font-weight:700}@media(max-width:900px){.pp-invest-entry .wide{grid-template-columns:1fr}.pp-invest-card{padding:24px}.pp-invest-card h1{font-size:30px}.pp-invest-meta{grid-template-columns:1fr}}

/* Invest Now enterprise workflow refresh */
.pp-invest-entry.pp-invest-v2{background:linear-gradient(180deg,#f7fbff 0%,#edf4fb 100%);padding:44px 20px 70px;position:relative;overflow:hidden}.pp-invest-entry.pp-invest-v2:before{content:"";position:absolute;inset:auto -10% -38% -10%;height:420px;background:radial-gradient(circle at 18% 20%,rgba(11,92,255,.10),transparent 35%),radial-gradient(circle at 82% 12%,rgba(197,145,43,.12),transparent 34%);pointer-events:none}.pp-invest-entry.pp-invest-v2>.wide{position:relative;max-width:1280px;margin:0 auto;display:grid;grid-template-columns:minmax(0,1.55fr) 420px;gap:28px;align-items:start}.pp-invest-entry.pp-invest-v2>.wide.single{display:block;max-width:920px}.pp-invest-v2 .pp-invest-card,.pp-invest-v2 .pp-invest-summary-v2{background:rgba(255,255,255,.94);border:1px solid #dbe6f5;box-shadow:0 24px 70px rgba(8,31,82,.08);border-radius:18px}.pp-invest-v2 .pp-invest-main-v2{padding:44px 48px;overflow:hidden}.pp-invest-v2 .pp-invest-breadcrumb{display:flex;gap:9px;align-items:center;font-size:13px;color:#64748b;font-weight:850;margin:0 0 28px}.pp-invest-v2 .pp-invest-breadcrumb a{color:#0b5cff;text-decoration:none}.pp-invest-hero-row{display:grid;grid-template-columns:minmax(0,1fr) 190px;gap:22px;align-items:start}.pp-invest-v2 .pp-invest-pill{display:inline-flex;border-radius:7px;background:#fff4df;color:#965000;border:1px solid #ffd89a;font-size:12px;font-weight:950;padding:8px 11px;text-transform:uppercase;letter-spacing:.06em}.pp-invest-v2 h1{margin:15px 0 15px;color:#051943;font-size:clamp(34px,4.4vw,58px);line-height:1;letter-spacing:-.06em}.pp-invest-v2 .pp-invest-lede{max-width:780px;margin:0;color:#4e5f7d;font-size:18px;line-height:1.75;font-weight:700}.pp-invest-refbox{border-left:4px solid #0b5cff;background:#f8fbff;padding:17px 18px}.pp-invest-refbox span{display:block;font-size:11px;text-transform:uppercase;letter-spacing:.09em;color:#64748b;font-weight:950;margin-bottom:7px}.pp-invest-refbox strong{color:#061a55;font-size:20px}.pp-invest-progress-panel{margin:34px 0 24px;padding:22px 0;border-top:1px solid #e6eef8;border-bottom:1px solid #e6eef8}.pp-invest-progress-head{display:flex;justify-content:space-between;gap:16px;align-items:flex-end;margin-bottom:13px}.pp-invest-progress-head strong{font-size:24px;color:#061a55}.pp-invest-progress-head span{color:#536285;font-weight:800}.pp-invest-progress-track{height:10px;background:#e8eef8;overflow:hidden}.pp-invest-progress-track i{display:block;height:100%;background:linear-gradient(90deg,#0b5cff,#11b981,#f4bd3d)}.pp-invest-v2 .pp-invest-meta{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0;margin:0 0 30px;border:1px solid #e2ebf7}.pp-invest-v2 .pp-invest-meta div{border:0;border-right:1px solid #e2ebf7;background:#fff;padding:18px 20px;border-radius:0}.pp-invest-v2 .pp-invest-meta div:last-child{border-right:0}.pp-invest-v2 .pp-invest-meta span{display:block;color:#687995;font-size:12px;text-transform:uppercase;letter-spacing:.06em;font-weight:950;margin:0 0 9px}.pp-invest-v2 .pp-invest-meta strong{color:#061a55;font-size:17px}.pp-invest-workflow{padding-top:4px}.pp-invest-workflow h2{font-size:22px;color:#061a55;margin:0 0 16px}.pp-invest-steps{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.pp-invest-steps article{background:#fbfdff;border:1px solid #e2ebf7;padding:18px 16px;min-height:145px}.pp-invest-steps article b{width:34px;height:34px;display:grid;place-items:center;background:#eef4ff;color:#0b5cff;font-weight:950;margin-bottom:14px}.pp-invest-steps article.done b{background:#e8fff2;color:#04934b}.pp-invest-steps article.active{border-color:#0b5cff;box-shadow:inset 0 0 0 1px #0b5cff}.pp-invest-steps article strong{display:block;color:#061a55;font-size:15px;margin-bottom:8px}.pp-invest-steps article span{display:block;color:#5d6c85;font-size:13px;line-height:1.5;font-weight:700}.pp-invest-next{margin-top:28px;border:1px solid #ffd394;background:linear-gradient(135deg,#fff8ea,#fff);padding:22px;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:18px;align-items:center}.pp-invest-next.pp-invest-next-ready{border-color:#b8f0ca;background:linear-gradient(135deg,#effdf5,#fff)}.pp-invest-next strong{display:block;color:#061a55;font-size:18px;margin-bottom:6px}.pp-invest-next span{display:block;color:#536285;line-height:1.6;font-weight:750}.pp-invest-v2 .pp-invest-actions{display:flex;gap:12px;flex-wrap:wrap;margin:0}.pp-invest-v2 .pp-invest-btn{min-height:52px;display:inline-flex;align-items:center;justify-content:center;text-decoration:none;border-radius:9px;padding:0 22px;font-weight:950;border:1px solid #cfdced;transition:.18s ease}.pp-invest-v2 .pp-invest-btn:hover{transform:translateY(-1px)}.pp-invest-v2 .pp-invest-btn.primary{background:#061a55;color:#fff;border-color:#061a55;box-shadow:0 14px 28px rgba(6,26,85,.18)}.pp-invest-v2 .pp-invest-btn.secondary{background:#eef4ff;color:#0b5cff}.pp-invest-secondary-actions{margin-top:18px;display:flex;justify-content:space-between;gap:18px;align-items:center;color:#6b7a92;font-size:13px;font-weight:750}.pp-invest-link{color:#0b5cff;text-decoration:none;font-weight:950}.pp-invest-summary-v2{padding:0;position:relative}.pp-invest-sticky{position:sticky;top:96px;padding:30px}.pp-invest-summary-v2 h2{margin:0 0 8px;font-size:26px;color:#061a55;letter-spacing:-.04em}.pp-invest-summary-title{color:#536285;font-weight:850;margin-bottom:20px}.pp-invest-v2 .pp-invest-row{display:grid;grid-template-columns:1fr auto;gap:18px;align-items:center;border-bottom:1px solid #e6eef8;padding:16px 0;color:#536285;font-weight:850}.pp-invest-v2 .pp-invest-row strong{color:#061a55;text-align:right;font-size:16px}.pp-invest-risk{margin:22px 0;border-left:4px solid #d49b21;background:#fff9ed;padding:16px;color:#5d4a23;line-height:1.55;font-weight:760}.pp-invest-risk strong{color:#7a4600}.pp-invest-btn.ghost-wide{width:100%;box-sizing:border-box;background:#f3f7ff;color:#0b5cff}.pp-invest-money{font-weight:950}.pp-global-money.pp-invest-money{color:inherit}.pp-invest-v2 .pp-currency-pill{display:flex}@media(max-width:1100px){.pp-invest-entry.pp-invest-v2>.wide{grid-template-columns:1fr}.pp-invest-sticky{position:static}.pp-invest-steps{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:760px){.pp-invest-entry.pp-invest-v2{padding:24px 14px 48px}.pp-invest-v2 .pp-invest-main-v2{padding:26px 20px}.pp-invest-hero-row,.pp-invest-next{grid-template-columns:1fr}.pp-invest-v2 .pp-invest-meta{grid-template-columns:1fr}.pp-invest-v2 .pp-invest-meta div{border-right:0;border-bottom:1px solid #e2ebf7}.pp-invest-v2 .pp-invest-meta div:last-child{border-bottom:0}.pp-invest-steps{grid-template-columns:1fr}.pp-invest-progress-head,.pp-invest-secondary-actions{display:block}.pp-invest-progress-head span{display:block;margin-top:6px}.pp-invest-v2 .pp-invest-actions{display:grid}.pp-invest-v2 .pp-invest-btn{width:100%;box-sizing:border-box}.pp-invest-sticky{padding:24px 20px}}

/* PHASE 5N: Invest Now mobile width hard-fix
   The invest entry page was still inheriting narrow card behavior on phones.
   These overrides are intentionally scoped to the public investment entry page only. */
@media (max-width: 640px) {
  html, body {
    max-width: 100%;
    overflow-x: hidden;
  }
  .pp-invest-entry.pp-invest-v2 {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 14px 8px 36px !important;
    margin: 0 !important;
  }
  .pp-invest-entry.pp-invest-v2 > .wide {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 12px !important;
    box-sizing: border-box;
  }
  .pp-invest-v2 .pp-invest-card,
  .pp-invest-v2 .pp-invest-main-v2,
  .pp-invest-v2 .pp-invest-summary-v2 {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    box-sizing: border-box;
    border-radius: 18px !important;
  }
  .pp-invest-v2 .pp-invest-main-v2 {
    padding: 20px 16px !important;
  }
  .pp-invest-v2 .pp-invest-breadcrumb {
    flex-wrap: wrap;
    gap: 5px 8px;
    margin-bottom: 18px;
    font-size: 13px;
    line-height: 1.35;
  }
  .pp-invest-v2 h1 {
    font-size: clamp(30px, 9.2vw, 40px) !important;
    line-height: 1.03 !important;
    letter-spacing: -0.05em !important;
    margin: 14px 0 12px !important;
    overflow-wrap: anywhere;
  }
  .pp-invest-v2 .pp-invest-lede {
    font-size: 16px !important;
    line-height: 1.62 !important;
  }
  .pp-invest-hero-row,
  .pp-invest-next {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 14px !important;
  }
  .pp-invest-refbox {
    width: 100%;
    box-sizing: border-box;
  }
  .pp-invest-progress-panel {
    margin: 22px 0 18px !important;
    padding: 16px 0 !important;
  }
  .pp-invest-v2 .pp-invest-meta {
    width: 100% !important;
    grid-template-columns: minmax(0, 1fr) !important;
    margin-bottom: 22px !important;
  }
  .pp-invest-steps {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 10px !important;
  }
  .pp-invest-steps article {
    min-height: auto !important;
    padding: 15px !important;
  }
  .pp-invest-next {
    padding: 16px !important;
  }
  .pp-invest-v2 .pp-invest-actions {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 10px !important;
    width: 100%;
  }
  .pp-invest-v2 .pp-invest-btn {
    width: 100% !important;
    max-width: 100% !important;
    min-height: 50px !important;
    box-sizing: border-box;
    padding-inline: 14px !important;
    text-align: center;
  }
  .pp-invest-secondary-actions {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 10px !important;
  }
  .pp-invest-sticky {
    padding: 20px 16px !important;
  }
  .pp-invest-v2 .pp-invest-row {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 6px !important;
    align-items: start !important;
  }
  .pp-invest-v2 .pp-invest-row strong {
    text-align: left !important;
  }
  .pp-currency-pill,
  .pp-global-currency-switcher,
  .pp-currency-switcher {
    max-width: calc(100vw - 18px) !important;
  }
}

@media (max-width: 430px) {
  .pp-invest-entry.pp-invest-v2 {
    padding-left: 6px !important;
    padding-right: 6px !important;
  }
  .pp-invest-v2 .pp-invest-main-v2 {
    padding-left: 14px !important;
    padding-right: 14px !important;
  }
}
