/* ============================================
   PREMIER BRIQUE – Inner App Premium Styles
   Covers: dashboard, wallet, deposit, invest,
           onboarding, suitability, account, forms
   ============================================ */

/* ---------- Design Tokens ---------- */
:root {
  --pb-red: #A42515;
  --pb-red-hover: #8A1F11;
  --pb-red-light: rgba(164, 37, 21, 0.08);
  --pb-dark: #101010;
  --pb-grey: #6b7280;
  --pb-grey-light: #e5e7eb;
  --pb-beige: #fbf5ee;
  --pb-beige-dark: #f4e8dc;
  --pb-white: #ffffff;
  --pb-green: #16a34a;
  --pb-green-bg: #dcfce7;
  --pb-orange: #ea580c;
  --pb-orange-bg: #fff7ed;
  --pb-radius: 12px;
  --pb-radius-sm: 8px;
  --pb-shadow: 0 1px 3px rgba(16,16,16,.06), 0 6px 24px rgba(16,16,16,.04);
  --pb-shadow-lg: 0 4px 12px rgba(16,16,16,.06), 0 20px 48px rgba(16,16,16,.08);
}

/* ---------- Page Hero Bands ---------- */
.hero-band {
  background: linear-gradient(135deg, var(--pb-beige) 0%, #fff 100%);
  border: 1px solid var(--pb-beige-dark);
  border-radius: var(--pb-radius);
  padding: 40px 36px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.hero-band h1 {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--pb-dark);
  margin: 8px 0 4px;
  line-height: 1.2;
}

.hero-band .eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--pb-red);
}

.hero-band .muted {
  color: var(--pb-grey);
  font-size: 0.95rem;
  margin: 0;
}

.hero-band .stats {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}

.hero-band .stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-width: 100px;
}

.hero-band .stat strong {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--pb-dark);
}

.hero-band .stat span {
  font-size: 0.8rem;
  color: var(--pb-grey);
  text-align: center;
}

/* ---------- Cards ---------- */
.card {
  background: var(--pb-white);
  border: 1px solid var(--pb-grey-light);
  border-radius: var(--pb-radius);
  box-shadow: var(--pb-shadow);
  overflow: hidden;
  transition: box-shadow 0.25s ease, transform 0.2s ease;
}

.card:hover {
  box-shadow: var(--pb-shadow-lg);
  transform: translateY(-2px);
}

.card-body {
  padding: 28px 24px;
}

.card-body h2 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--pb-dark);
  margin: 0 0 8px;
}

.card-body .muted {
  color: var(--pb-grey);
  font-size: 0.9rem;
  line-height: 1.5;
  margin: 0 0 16px;
}

/* ---------- Grid Layout ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}

@media (max-width: 720px) {
  .grid {
    grid-template-columns: 1fr;
  }
  .hero-band {
    padding: 28px 20px;
    flex-direction: column;
  }
}

/* ---------- Form Cards ---------- */
.form-card {
  background: var(--pb-white);
  border: 1px solid var(--pb-grey-light);
  border-radius: var(--pb-radius);
  box-shadow: var(--pb-shadow);
  padding: 40px 36px;
  max-width: 640px;
  margin: 0 auto;
}

.form-card .eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--pb-red);
  margin-bottom: 4px;
}

.form-card h1 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--pb-dark);
  margin: 0 0 8px;
}

.form-card .muted {
  color: var(--pb-grey);
  font-size: 0.9rem;
  line-height: 1.5;
  margin: 0 0 28px;
}

@media (max-width: 720px) {
  .form-card {
    padding: 28px 20px;
  }
}

/* ---------- Premium Form Styling ---------- */
.form-card form p {
  margin-bottom: 20px;
}

.form-card form label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--pb-dark);
  margin-bottom: 6px;
}

.form-card form input[type="text"],
.form-card form input[type="email"],
.form-card form input[type="password"],
.form-card form input[type="number"],
.form-card form input[type="date"],
.form-card form input[type="tel"],
.form-card form select,
.form-card form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--pb-grey-light);
  border-radius: var(--pb-radius-sm);
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--pb-dark);
  background: var(--pb-white);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  box-sizing: border-box;
  appearance: none;
  -webkit-appearance: none;
}

.form-card form input:focus,
.form-card form select:focus,
.form-card form textarea:focus {
  outline: none;
  border-color: var(--pb-red);
  box-shadow: 0 0 0 3px var(--pb-red-light);
}

.form-card form input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--pb-red);
  margin-right: 8px;
  vertical-align: middle;
  cursor: pointer;
}

/* Radio buttons for suitability form */
.form-card form ul {
  list-style: none;
  padding: 0;
  margin: 8px 0 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.form-card form ul li {
  display: flex;
  align-items: center;
  gap: 10px;
}

.form-card form ul li label {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border: 1.5px solid var(--pb-grey-light);
  border-radius: var(--pb-radius-sm);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  width: 100%;
  margin: 0;
  font-weight: 500;
}

.form-card form ul li label:hover {
  border-color: var(--pb-red);
  background: var(--pb-red-light);
}

.form-card form ul li input[type="radio"] {
  accent-color: var(--pb-red);
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* Checkbox label inline */
.form-card form p:has(input[type="checkbox"]) label {
  display: inline;
  font-weight: 500;
}

/* Error list */
.form-card form .errorlist {
  list-style: none;
  padding: 0;
  margin: 4px 0 0;
}

.form-card form .errorlist li {
  color: var(--pb-red);
  font-size: 0.82rem;
  padding: 0;
  border: none;
}

.form-card form .errorlist li label {
  color: var(--pb-red);
  font-size: 0.82rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 24px;
  border-radius: var(--pb-radius-sm);
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--pb-red);
  color: var(--pb-white);
  border-color: var(--pb-red);
}

.btn-primary:hover {
  background: var(--pb-red-hover);
  border-color: var(--pb-red-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(164, 37, 21, 0.25);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-ghost {
  background: transparent;
  color: var(--pb-red);
  border-color: var(--pb-red);
}

.btn-ghost:hover {
  background: var(--pb-red-light);
}

.btn-sm {
  min-height: 36px;
  padding: 0 16px;
  font-size: 0.85rem;
}

/* ---------- Tables ---------- */
.table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--pb-white);
  border: 1px solid var(--pb-grey-light);
  border-radius: var(--pb-radius);
  overflow: hidden;
  box-shadow: var(--pb-shadow);
}

.table thead th {
  background: var(--pb-beige);
  color: var(--pb-dark);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--pb-beige-dark);
}

.table tbody td {
  padding: 14px 16px;
  font-size: 0.9rem;
  color: var(--pb-dark);
  border-bottom: 1px solid #f3f4f6;
}

.table tbody tr:last-child td {
  border-bottom: none;
}

.table tbody tr:hover {
  background: #fafafa;
}

.table tbody td a {
  color: var(--pb-red);
  text-decoration: none;
  font-weight: 600;
}

.table tbody td a:hover {
  text-decoration: underline;
}

/* ---------- Status Badges ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.badge-success {
  background: var(--pb-green-bg);
  color: var(--pb-green);
}

.badge-warning {
  background: var(--pb-orange-bg);
  color: var(--pb-orange);
}

.badge-info {
  background: var(--pb-red-light);
  color: var(--pb-red);
}

/* ---------- Step Progress Indicator ---------- */
.steps-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 32px;
}

.step {
  display: flex;
  align-items: center;
  gap: 8px;
}

.step-number {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  border: 2px solid var(--pb-grey-light);
  color: var(--pb-grey);
  background: var(--pb-white);
  transition: all 0.3s ease;
}

.step.active .step-number {
  background: var(--pb-red);
  border-color: var(--pb-red);
  color: var(--pb-white);
}

.step.done .step-number {
  background: var(--pb-green);
  border-color: var(--pb-green);
  color: var(--pb-white);
}

.step-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--pb-grey);
}

.step.active .step-label {
  color: var(--pb-dark);
}

.step.done .step-label {
  color: var(--pb-green);
}

.step-line {
  width: 48px;
  height: 2px;
  background: var(--pb-grey-light);
  margin: 0 8px;
}

.step-line.done {
  background: var(--pb-green);
}

/* ---------- Empty States ---------- */
.empty-state {
  text-align: center;
  padding: 48px 24px;
  color: var(--pb-grey);
}

.empty-state-icon {
  font-size: 3rem;
  margin-bottom: 16px;
  opacity: 0.4;
}

.empty-state h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--pb-dark);
  margin: 0 0 8px;
}

.empty-state p {
  font-size: 0.9rem;
  line-height: 1.5;
  margin: 0 0 20px;
}

/* ---------- Quick Actions ---------- */
.quick-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 18px;
}

/* ---------- Amount Display ---------- */
.amount-display {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--pb-dark);
  letter-spacing: -1px;
}

.amount-display .currency {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--pb-grey);
}

/* ---------- Info Banner ---------- */
.info-banner {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 20px;
  border-radius: var(--pb-radius-sm);
  background: var(--pb-beige);
  border: 1px solid var(--pb-beige-dark);
  margin-bottom: 24px;
}

.info-banner-icon {
  font-size: 1.2rem;
  color: var(--pb-red);
  flex-shrink: 0;
  margin-top: 2px;
}

.info-banner p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--pb-dark);
  line-height: 1.5;
}

/* ---------- Verification Code Input ---------- */
.code-input {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin: 24px 0;
}

.code-input input {
  width: 48px;
  height: 56px;
  text-align: center;
  font-size: 1.5rem;
  font-weight: 700;
  border: 2px solid var(--pb-grey-light);
  border-radius: var(--pb-radius-sm);
  transition: border-color 0.2s;
}

.code-input input:focus {
  border-color: var(--pb-red);
  outline: none;
  box-shadow: 0 0 0 3px var(--pb-red-light);
}

/* ---------- Responsive Refinements ---------- */
@media (max-width: 640px) {
  .amount-display {
    font-size: 2rem;
  }
  .steps-indicator {
    flex-wrap: wrap;
    gap: 4px;
  }
  .step-label {
    display: none;
  }
  .step-line {
    width: 24px;
  }
}

/* ---------- Logged-in app shell matching account reference ---------- */
.pb-app-body {
  margin: 0;
  background: #fff;
  color: #101010;
  font-family: "Manrope", Arial, sans-serif;
  overflow-x: hidden;
}

html {
  overflow-x: hidden;
}

.app-topbar {
  height: 84px;
  border-bottom: 1px solid #e8e8e8;
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 50;
}

.app-topbar-inner {
  width: min(1420px, calc(100% - 48px));
  height: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 280px 1fr 320px;
  align-items: center;
  gap: 24px;
}

.app-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #101010;
  text-decoration: none;
  font-weight: 800;
  font-size: 26px;
  line-height: 1;
}

.brand-mark {
  width: 28px;
  height: 28px;
  color: #ae2316;
  display: inline-flex;
}

.brand-mark svg {
  width: 100%;
  height: 100%;
}

.brand-text {
  white-space: nowrap;
}

.app-nav {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 48px;
  height: 100%;
}

.app-nav-item {
  position: relative;
  min-width: 110px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  color: #545454;
  text-decoration: none;
  font-size: 16px;
  font-weight: 600;
}

.app-nav-item i {
  font-size: 28px;
  line-height: 1;
}

.app-nav-item.is-active {
  color: #a42515;
}

.app-nav-item.is-active::after {
  content: "";
  position: absolute;
  top: 14px;
  right: 22px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #a42515;
}

.app-actions {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 18px;
}

.top-add {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #a42515;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 28px;
  box-shadow: 0 0 0 10px #f7f4f3;
}

.balance-pill {
  min-width: 94px;
  min-height: 54px;
  border-radius: 28px;
  background: #f8f6f5;
  color: #101010;
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  padding: 0 18px;
  text-decoration: none;
}

.balance-pill small {
  color: #777;
  font-size: 12px;
}

.balance-pill strong {
  font-size: 18px;
  font-weight: 700;
}

.icon-ghost {
  border: 0;
  background: transparent;
  color: #555;
  font-size: 28px;
  padding: 8px;
  cursor: pointer;
}

.top-logout,
.public-account-btn {
  min-height: 42px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  background: #a42515;
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  white-space: nowrap;
}

.top-logout {
  background: transparent;
  color: #a42515;
  border: 1px solid #a42515;
}

.account-menu {
  position: relative;
}

.avatar-pill {
  width: 58px;
  height: 58px;
  border: 1px solid #e9ead4;
  border-radius: 50%;
  background: #fbfbe6;
  color: #687500;
  font-weight: 800;
  font-size: 18px;
  cursor: pointer;
  position: relative;
}

.avatar-pill::after {
  content: "";
  position: absolute;
  top: 5px;
  right: 5px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #a42515;
}

.account-dropdown {
  position: absolute;
  top: 66px;
  right: 0;
  width: 350px;
  background: #fff;
  border: 1px solid #e7e7e7;
  box-shadow: 0 6px 18px rgba(16, 16, 16, .08);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: .18s ease;
  z-index: 80;
}

.account-menu:hover .account-dropdown,
.account-menu:focus-within .account-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.account-head {
  padding: 18px 20px;
  display: grid;
  gap: 6px;
}

.account-head strong {
  font-size: 18px;
}

.account-head span,
.account-dropdown a {
  color: #6c6c6c;
}

.group-strip {
  padding: 18px 20px;
  background: #fbfde8;
  color: #697400;
  font-size: 18px;
}

.account-dropdown a {
  min-height: 64px;
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
  font-size: 18px;
  border-bottom: 1px solid transparent;
}

.account-dropdown a:hover {
  background: #fafafa;
  color: #101010;
}

.account-dropdown i {
  font-size: 22px;
}

.account-dropdown .dot {
  margin-left: auto;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #a42515;
}

.account-dropdown .separated {
  border-top: 1px solid #e8e8e8;
}

.account-dropdown .logout-link {
  border-top: 1px solid #e8e8e8;
  color: #777;
}

.mobile-bottom-nav {
  display: none;
}

.app-main {
  min-height: calc(100vh - 84px);
  padding: 56px 0 88px;
}

.app-container {
  width: min(1460px, calc(100% - 32px));
  margin: 0 auto;
  max-width: 100%;
  box-sizing: border-box;
  overflow-x: hidden;
}

.messages-container {
  margin-bottom: 22px;
}

.alert-box {
  padding: 12px 16px;
  border-radius: 8px;
  background: #fbf3ef;
  color: #7e1d11;
  font-weight: 700;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, .9fr);
  gap: 60px;
}

.hello-title,
.screen-title {
  font-size: 42px;
  line-height: 1.12;
  margin: 6px 0 42px;
  font-weight: 800;
  letter-spacing: 0;
}

.signup-progress-card {
  min-height: 145px;
  border-radius: 7px;
  background: #fff0ed;
  display: grid;
  grid-template-columns: 92px 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 0 30px;
  margin-bottom: 38px;
  box-sizing: border-box;
}

.ring-progress {
  width: 74px;
  height: 74px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle closest-side, #fff0ed 78%, transparent 80%),
    conic-gradient(#b12518 calc(var(--progress, 1) * 25%), #eadeda 0);
  color: #a42515;
  font-weight: 800;
  font-size: 20px;
}

.signup-progress-card h2,
.podcast-card h2,
.featured-side h2 {
  margin: 0 0 4px;
  font-size: 26px;
  line-height: 1.15;
}

.signup-progress-card p,
.podcast-card p {
  margin: 0;
  color: #6a6a6a;
  font-size: 18px;
  line-height: 1.35;
}

.cta-red {
  min-height: 55px;
  border-radius: 7px;
  background: #a42515;
  color: #fff;
  border: 0;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 0 22px;
  font-weight: 800;
  font-size: 18px;
}

/* ── Drop-down alert notifications ── */
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-14px); }
  to   { opacity: 1; transform: translateY(0); }
}

.messages-container {
  padding-top: 0 !important;
  margin-bottom: -10px;
}

.alert-box {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  border-radius: 9px;
  padding: 14px 18px;
  margin-bottom: 14px;
  font-size: 14.5px;
  line-height: 1.5;
  animation: slideDown .28s cubic-bezier(.22,.68,0,1.2) both;
}

.alert-box > i {
  font-size: 20px;
  flex-shrink: 0;
  margin-top: 1px;
}

.alert-box > span {
  flex: 1;
}

/* success */
.alert-success {
  background: #f3faf6;
  border: 1.5px solid #b7e4cc;
  color: #0d3c26;
}
.alert-success > i { color: #04b263; }

/* info */
.alert-info {
  background: #fffdf0;
  border: 1.5px solid #fde68a;
  color: #78350f;
}
.alert-info > i { color: #d97706; }

/* warning */
.alert-warning {
  background: #fffdf0;
  border: 1.5px solid #fde68a;
  color: #78350f;
}
.alert-warning > i { color: #d97706; }

/* error / danger */
.alert-error, .alert-danger {
  background: #fff5f5;
  border: 1.5px solid #fecaca;
  color: #7f1d1d;
}
.alert-error > i, .alert-danger > i { color: #dc2626; }

/* KYC status cards styling */
.kyc-status-card {
  min-height: auto;
  border-radius: 7px;
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 20px !important;
  padding: 20px 30px !important;
  margin-bottom: 38px;
  box-sizing: border-box;
  width: 100%;
}

.kyc-status-card.kyc-approved {
  background: #f3faf6 !important;
  border: 1.5px solid #dcf2e6 !important;
}

.kyc-status-card.kyc-approved .kyc-icon {
  background: #e8f8f0 !important;
  color: #04b263 !important;
  border: 1px solid #c2ebd4 !important;
}

.kyc-status-card.kyc-review {
  background: #fffdf5 !important;
  border: 1.5px solid #fef3c7 !important;
}

.kyc-status-card.kyc-review .kyc-icon {
  background: #fef3c7 !important;
  color: #d97706 !important;
  border: 1px solid #fde68a !important;
}

.kyc-status-card.kyc-rejected {
  background: #fff5f5 !important;
  border: 1.5px solid #fed7d7 !important;
}

.kyc-status-card.kyc-rejected .kyc-icon {
  background: #fed7d7 !important;
  color: #dc2626 !important;
  border: 1px solid #fecaca !important;
}

.kyc-status-card .kyc-icon {
  width: 54px;
  height: 54px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
}

.kyc-status-card p {
  margin: 0;
  font-size: 16px;
  line-height: 1.45;
  color: #1f2937;
}

.kyc-status-card.kyc-approved p {
  color: #0d3c26;
}

.kyc-status-card.kyc-review p {
  color: #78350f;
}

.kyc-status-card.kyc-rejected p {
  color: #7f1d1d;
}

.kyc-status-card .small-cta {
  min-height: 40px;
  padding: 0 16px;
  font-size: 14px;
  margin-left: auto;
}

.metric-large {
  color: #626262;
  font-size: 20px;
  margin-top: 10px;
}

.metric-large strong {
  display: block;
  color: #101010;
  font-size: 54px;
  line-height: 1.05;
  margin: 8px 0;
}

.gain-cards {
  display: grid;
  grid-template-columns: 1fr 1fr 2.05fr;
  gap: 10px;
  margin: 40px 0 50px;
  min-width: 0;
}

.gain-card {
  min-height: 118px;
  border-radius: 16px;
  background: #faf8f8;
  padding: 18px;
  border: 1px solid #f0eeee;
  display: grid;
  align-content: space-between;
  box-sizing: border-box;
}

.icon-ghost {
  position: relative;
}

.notification-badge {
  position: absolute;
  top: 2px;
  right: 0;
  min-width: 16px;
  height: 16px;
  padding: 0 3px;
  border-radius: 9px;
  background: #a42515;
  color: #fff;
  display: grid;
  place-items: center;
  box-sizing: border-box;
  font-size: 9px;
  font-weight: 700;
  line-height: 1;
}

/* Reference mobile app dimensions from the captured LPB markup. */
@media (max-width: 720px) {
  .pb-app-body {
    padding-bottom: 76px;
    font-weight: 400;
  }

  .app-container {
    width: calc(100% - 26px);
  }

  .app-topbar-inner {
    width: calc(100% - 26px);
    grid-template-columns: 48px 1fr 32px;
  }

  .account-menu,
  .balance-pill,
  .icon-ghost {
    grid-row: 1;
  }

  .account-menu {
    grid-column: 1;
  }

  .top-add {
    left: auto;
    right: 121px;
    width: 34px;
    height: 34px;
    margin-left: 0;
    font-size: 19px;
  }

  .balance-pill {
    grid-column: 2;
    justify-self: end;
    width: 108px;
    min-width: 108px;
    min-height: 48px;
    margin-right: 22px;
    padding: 0 10px 0 48px;
  }

  .balance-pill small {
    font-size: 10px;
  }

  .balance-pill strong {
    font-size: 16px;
  }

  .icon-ghost {
    grid-column: 3;
    width: 32px;
    height: 48px;
    font-size: 20px;
  }

  .notification-badge {
    top: 4px;
    right: -2px;
  }

  .mobile-bottom-nav {
    height: 76px;
  }

  .mobile-bottom-nav a {
    position: relative;
    gap: 3px;
    font-size: 12px;
    font-weight: 600;
  }

  .mobile-nav-icon {
    position: relative;
    width: 24px;
    height: 24px;
    display: grid;
    place-items: center;
  }

  .mobile-bottom-nav i {
    grid-area: 1 / 1;
    font-size: 24px;
  }

  .mobile-bottom-nav .nav-icon-fill {
    display: none;
  }

  .mobile-bottom-nav a.is-active .nav-icon-outline {
    display: none;
  }

  .mobile-bottom-nav a.is-active .nav-icon-fill {
    display: inline-block;
  }

  .mobile-bottom-nav a:nth-child(2)::after {
    content: "";
    position: absolute;
    top: 7px;
    left: calc(50% + 12px);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #a42515;
  }

  .app-main {
    padding-top: 30px;
    padding-bottom: 94px;
  }

  .hello-title,
  .screen-title {
    margin: 0 0 25px;
    font-size: 24px;
    font-weight: 500;
  }

  .hello-title {
    font-size: 22px;
  }

  .signup-progress-card {
    min-height: 176px;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 12px;
    padding: 24px;
    margin-bottom: 27px;
  }

  .ring-progress {
    width: 68px;
    height: 68px;
    font-size: 16px;
  }

  .signup-progress-card h2 {
    margin-bottom: 5px;
    font-size: 19px;
    font-weight: 500;
  }

  .signup-progress-card p {
    font-size: 14px;
  }

  .signup-progress-card .cta-red {
    min-height: 44px;
    font-size: 14px;
  }

  .metric-large strong {
    font-size: 38px;
  }

  .metric-large b {
    font-size: 14px;
  }

  .lpb-card-media {
    height: 282px;
  }

  .lpb-card-media img {
    height: 242px;
  }

  .type-strip {
    height: 40px;
    font-size: 14px;
  }

  .lpb-card-body h2 {
    font-size: 16px;
    font-weight: 500;
  }

  .project-place {
    margin-bottom: 16px;
    font-size: 13px;
  }

  .money-line {
    font-size: 20px;
    font-weight: 500;
  }

  .project-facts {
    font-size: 13px;
  }

  .investments-title {
    display: none;
  }

  .empty-investments {
    min-height: 0;
    display: block;
    padding-top: 70px;
  }

  .empty-investments > div > i {
    width: 72px;
    height: 72px;
    margin-bottom: 20px;
    font-size: 30px;
  }

  .empty-investments p {
    margin: 0 0 14px;
    font-size: 14px;
  }

  .empty-investments .cta-red {
    min-height: 44px;
    padding: 0 16px;
    font-size: 14px;
  }

  .empty-investments .cta-red i {
    width: auto;
    height: auto;
    margin: 0;
    border-radius: 0;
    background: transparent;
    color: inherit;
    display: inline;
    font-size: 16px;
  }
}

/* Final mobile header and account panel overrides. */
@media (max-width: 720px) {
  .balance-pill {
    width: 112px;
    min-width: 112px;
    margin-right: 18px;
    padding: 0 8px 0 52px;
  }

  .balance-pill strong {
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 0;
    transform: translateX(-3px);
  }

  .balance-pill small {
    font-size: 10px;
    font-weight: 400;
    transform: translateX(-3px);
  }

  .account-menu:hover .account-dropdown,
  .account-menu:focus-within .account-dropdown {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }

  .account-dropdown {
    position: fixed;
    inset: 0 auto 0 50%;
    width: min(390px, 100vw);
    height: 100dvh;
    max-height: 100dvh;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    touch-action: pan-y;
    transform: translateX(-50%);
    border: 0;
    box-shadow: none;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .16s ease;
    z-index: 220;
  }

  .account-menu.is-open .account-dropdown {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%);
  }

  .account-back {
    width: 44px;
    height: 44px;
    margin: 14px 0 18px 16px;
    display: grid;
    place-items: center;
    border: 0;
    background: transparent;
    color: #6c6c6c;
    font-size: 23px;
    cursor: pointer;
  }

  .account-head {
    min-height: 94px;
    padding: 0 16px 16px;
    display: grid;
    grid-template-columns: 50px 1fr;
    align-items: center;
    gap: 12px;
  }

  .account-head-avatar {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border: 1px solid #e9ead4;
    border-radius: 50%;
    background: #fbfbe6;
    color: #687500;
    font-size: 16px;
    font-weight: 500;
  }

  .account-head-copy {
    display: grid;
    gap: 3px;
  }

  .account-head-copy strong {
    color: #101010;
    font-size: 15px;
    font-weight: 500;
  }

  .account-head-copy > span {
    color: #747474;
    font-size: 13px;
  }

  .group-strip {
    padding: 18px 16px;
    font-size: 15px;
  }

  .account-dropdown a {
    min-height: 54px;
    padding: 0 18px;
    gap: 14px;
    font-size: 14px;
    font-weight: 400;
  }

  .account-dropdown i {
    font-size: 19px;
  }

  .account-dropdown .logout-link {
    min-height: 66px;
  }

  body.account-menu-open {
    overflow: hidden;
  }

  body.account-menu-open .mobile-bottom-nav {
    display: none;
  }
}

.gain-card:first-child {
  background: #fcfde9;
}

.gain-icon {
  width: 40px;
  height: 40px;
  border-radius: 7px;
  background: #101010;
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 20px;
}

.gain-label {
  color: #6a6a6a;
  font-size: 16px;
}

.gain-value {
  color: #008d6b;
  font-size: 24px;
  font-weight: 800;
}

.dashboard-bottom {
  border-top: none;
  padding-top: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin-top: 32px;
}

.dashboard-bottom > div {
  background: #fff;
  min-width: 0;
}

.dashboard-bottom h2 {
  margin: 0 0 28px;
  font-size: 25px;
  font-weight: 800;
  color: #101010;
}

.empty-donut {
  position: relative;
  width: 260px;
  height: 260px;
  margin: 0 auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #e9ebef;
}

.empty-donut::after {
  content: "";
  position: absolute;
  inset: 32px;
  border-radius: 50%;
  background: #fff;
}

.empty-donut-inner {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  text-align: center;
  gap: 8px;
}

.empty-donut-inner strong {
  font-size: 38px;
  line-height: 1;
  color: #6f6f6f;
  font-weight: 500;
}

.empty-donut-inner small {
  color: #6f6f6f;
  font-size: 20px;
  line-height: 1.25;
  text-transform: none;
}

.chart-empty-copy {
  margin: 28px 0 0;
  color: #707070;
  font-size: 17px;
  line-height: 1.35;
  text-align: center;
}

.podcast-card {
  border: 1px solid #e5e5e5;
  border-radius: 16px;
  padding: 22px 20px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: start;
  margin-top: 140px;
}

.slider-dots {
  margin: 26px 0 66px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.slider-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #d5d5d5;
}

.slider-dots span:first-child {
  background: #101010;
}

.featured-list {
  display: grid;
  gap: 0;
}

.mini-project {
  display: grid;
  grid-template-columns: 60px 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 20px 0;
  border-bottom: 1px solid #e7e7e7;
  color: #101010;
  text-decoration: none;
}

.mini-project img {
  width: 60px;
  height: 60px;
  border-radius: 8px;
  object-fit: cover;
}

.mini-project strong {
  display: block;
  font-size: 20px;
}

.mini-project span {
  color: #777;
  font-size: 17px;
}

.small-status {
  border-radius: 5px;
  background: #efff7a;
  color: #6b7400;
  padding: 9px 10px;
  font-weight: 700;
  white-space: nowrap;
}

.outline-btn {
  min-height: 55px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #101010;
  border-radius: 7px;
  color: #101010;
  text-decoration: none;
  padding: 0 20px;
  font-weight: 800;
  font-size: 18px;
}

.projects-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 30px;
}

.filter-tabs {
  display: flex;
  gap: 18px;
  background: #f7f5f5;
  border-radius: 8px;
  padding: 5px;
}

.filter-tabs button {
  height: 46px;
  min-width: 92px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.filter-tabs .active {
  background: #fff;
  box-shadow: 0 0 0 1px #e8e8e8;
}

.project-search {
  width: 100%;
  max-width: 320px;
  height: 56px;
  border: 1px solid #e3e3e3;
  border-radius: 7px;
  padding: 0 18px 0 46px;
  font: inherit;
  font-size: 18px;
  background: #fff;
  box-sizing: border-box;
}

.search-box {
  position: relative;
}

.search-box i {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 22px;
}

.lpb-project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 66px 16px;
}

.lpb-project-card {
  color: #101010;
  text-decoration: none;
  display: block;
}

.lpb-card-media {
  height: 356px;
  border-radius: 4px;
  overflow: hidden;
  position: relative;
  background: #ddd;
}

.lpb-card-media img {
  width: 100%;
  max-width: 100%;
  height: 306px;
  object-fit: cover;
  display: block;
}

.lpb-project-card.is-past .lpb-card-media img {
  filter: brightness(.55);
}

.lpb-card-status {
  position: absolute;
  top: 25px;
  left: 31px;
  border-radius: 5px;
  background: #efff7a;
  color: #667000;
  padding: 9px 12px;
  font-weight: 700;
  z-index: 2;
}

.lpb-project-card.is-past .lpb-card-status {
  background: #ffc3d9;
  color: #7d172b;
}

.lpb-project-card.is-funded .lpb-card-status {
  background: #cfe0ff;
  color: #16427b;
}

.share-floating {
  position: absolute;
  top: 25px;
  right: 30px;
  color: #fff;
  font-size: 30px;
  z-index: 2;
}

.type-strip {
  height: 50px;
  background: #c8e713;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 17px;
  font-weight: 700;
}

.type-strip.locatif {
  background: #ffa1c2;
}

.lpb-card-body {
  padding-top: 22px;
}

.lpb-card-body h2 {
  margin: 0 0 3px;
  font-size: 22px;
  line-height: 1.2;
}

.project-place {
  color: #747474;
  font-size: 18px;
  margin-bottom: 20px;
}

.money-line {
  display: flex;
  align-items: baseline;
  gap: 9px;
  font-size: 28px;
  font-weight: 800;
}

.money-line small {
  color: #606060;
  font-size: 15px;
  font-weight: 600;
}

.progress-line {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  margin: 8px 0 18px;
}

.progress-track {
  height: 9px;
  border-radius: 3px;
  background: #eceef1;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  background: #c8e713;
}

.progress-bar.locatif {
  background: #ffa1c2;
}

.project-facts {
  display: grid;
  gap: 8px;
  font-size: 18px;
}

.project-facts i {
  margin-right: 8px;
}

.empty-investments {
  min-height: 520px;
  display: grid;
  place-items: center;
  text-align: center;
}

.empty-investments i {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: #f7f4f4;
  color: #988f8f;
  display: inline-grid;
  place-items: center;
  font-size: 42px;
  margin-bottom: 26px;
}

.empty-investments p {
  color: #666;
  font-size: 18px;
  line-height: 1.35;
}

.pagination-row {
  margin-top: 70px;
  display: flex;
  justify-content: center;
  gap: 18px;
}

.page-num {
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #555;
  font: inherit;
  font-size: 18px;
  cursor: pointer;
  display: inline-grid;
  place-items: center;
  text-decoration: none;
}

.page-num.active {
  background: #fbf8f6;
  color: #101010;
}

/* ---------- Dashboard Featured Projects Section ---------- */
.dashboard-projects-section {
  margin-top: 80px;
}

.dashboard-projects-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

@media (max-width: 1120px) {
  .app-topbar-inner {
    grid-template-columns: 1fr;
    height: auto;
    padding: 16px 0;
  }

  .app-topbar {
    height: auto;
    position: relative;
  }

  .app-nav,
  .app-actions {
    justify-content: flex-start;
    justify-self: start;
  }

  .dashboard-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .lpb-project-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .podcast-card {
    margin-top: 0;
  }

  .signup-progress-card {
    grid-template-columns: 1fr;
    padding: 24px;
  }
}

@media (max-width: 720px) {
  .pb-app-body {
    padding-bottom: 88px;
  }

  .app-container {
    width: calc(100% - 32px);
    max-width: 100%;
  }

  .app-topbar {
    height: 72px;
    border-bottom: 1px solid #e7e9ec;
    padding: 0;
    position: sticky;
  }

  .app-topbar-inner {
    position: relative;
    width: calc(100% - 32px);
    height: 100%;
    display: grid;
    grid-template-columns: 48px 1fr 48px;
    align-items: center;
    gap: 10px;
    padding: 0;
  }

  .app-brand,
  .app-nav {
    display: none;
  }

  .app-actions {
    width: 100%;
    display: contents;
  }

  .account-menu {
    grid-column: 1;
    justify-self: start;
  }

  .avatar-pill {
    width: 48px;
    height: 48px;
    font-size: 16px;
    border-width: 1px;
  }

  .top-add {
    position: absolute;
    left: 50%;
    margin-left: -78px;
    width: 48px;
    height: 48px;
    font-size: 25px;
    box-shadow: none;
    z-index: 3;
    border-radius: 999px;
  }

  .balance-pill {
    grid-column: 2;
    justify-self: center;
    width: 154px;
    min-height: 56px;
    padding: 0 12px 0 70px;
    border-radius: 999px;
    background: #f9f7f7;
    display: grid;
    align-content: center;
    justify-items: start;
    box-sizing: border-box;
  }

  .balance-pill small {
    font-size: 12px;
    color: #6c6c6c;
    line-height: 1.1;
  }

  .balance-pill strong {
    font-size: 20px;
    line-height: 1.1;
    white-space: nowrap;
  }

  .icon-ghost {
    grid-column: 3;
    width: 48px;
    height: 48px;
    background: #fff;
    border: 0;
    color: #6c6c6c;
    padding: 0;
    justify-self: end;
    font-size: 27px;
    display: grid;
    place-items: center;
  }

  .top-logout {
    display: none;
  }

  .account-dropdown {
    left: 0;
    right: auto;
    width: min(350px, calc(100vw - 32px));
  }

  .mobile-bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 100;
    height: 90px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    align-items: center;
    background: #fff;
    border-top: 1px solid #e8e8e8;
    box-shadow: 0 -4px 14px rgba(16, 16, 16, .04);
  }

  .mobile-bottom-nav a {
    color: #6a6a6a;
    text-decoration: none;
    display: grid;
    justify-items: center;
    gap: 4px;
    font-weight: 500;
    font-size: 14px;
    line-height: 1.1;
    text-align: center;
  }

  .mobile-bottom-nav i {
    font-size: 28px;
  }

  .mobile-bottom-nav a.is-active {
    color: #a42515;
  }

  .app-main {
    padding-top: 26px;
    padding-bottom: 112px;
  }

  .dashboard-grid {
    gap: 0;
  }

  .hello-title,
  .screen-title {
    font-size: 24px;
    line-height: 1.2;
    margin: 0 0 26px;
  }

  .signup-progress-card {
    min-height: 220px;
    grid-template-columns: 84px minmax(0, 1fr);
    gap: 18px;
    padding: 28px 24px 24px;
    margin-bottom: 28px;
  }

  .ring-progress {
    width: 72px;
    height: 72px;
    font-size: 18px;
  }

  .signup-progress-card h2 {
    font-size: 23px;
    line-height: 1.12;
    margin-bottom: 5px;
  }

  .signup-progress-card p {
    font-size: 16px;
    line-height: 1.25;
  }

  .signup-progress-card p br {
    display: none;
  }

  .signup-progress-card .cta-red {
    grid-column: 1 / -1;
    width: 100%;
    min-height: 48px;
    font-size: 16px;
    box-sizing: border-box;
  }

  .metric-large {
    margin-top: 0;
    font-size: 16px;
  }

  .metric-large strong {
    font-size: 42px;
    font-weight: 500;
    margin: 10px 0;
  }

  .metric-large b {
    font-size: 16px;
  }

  .gain-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin: 34px 0 40px;
  }

  .gain-card {
    min-height: 142px;
    padding: 16px;
  }

  .gain-card:nth-child(3) {
    grid-column: 1 / -1;
    min-height: 90px;
  }

  .gain-label {
    font-size: 14px;
  }

  .gain-value {
    font-size: 19px;
  }

  .dashboard-bottom {
    display: block;
    margin: 0 -16px;
  }

  .dashboard-bottom > div {
    border-top: 1px solid #e7e9ec;
    padding: 34px 16px 40px;
  }

  .dashboard-bottom > div:last-child {
    border-bottom: 1px solid #e7e9ec;
  }

  .dashboard-bottom h2 {
    margin: 0 0 26px;
    font-size: 24px;
  }

  .empty-donut {
    width: 200px;
    height: 200px;
  }

  .empty-donut::after {
    inset: 25px;
  }

  .empty-donut-inner {
    gap: 5px;
  }

  .empty-donut-inner strong {
    font-size: 28px;
  }

  .empty-donut-inner small {
    font-size: 17px;
  }

  .chart-empty-copy {
    margin-top: 26px;
    font-size: 16px;
  }

  .featured-side {
    padding-top: 38px;
  }

  .podcast-card {
    border-radius: 16px;
    padding: 22px 18px;
  }

  .podcast-card h2,
  .featured-side h2 {
    font-size: 23px;
  }

  .podcast-card p {
    font-size: 16px;
  }

  .slider-dots {
    justify-content: center;
    margin: 20px 0 38px;
  }

  .mini-project {
    grid-template-columns: 64px minmax(0, 1fr) auto;
    gap: 12px;
    padding: 16px 0;
  }

  .mini-project img {
    width: 64px;
    height: 64px;
  }

  .mini-project strong {
    font-size: 17px;
  }

  .mini-project span {
    font-size: 14px;
  }

  .small-status {
    font-size: 13px;
    padding: 8px;
  }

  .projects-toolbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .projects-toolbar > div {
    width: 100%;
    flex-wrap: wrap;
  }

  .search-box {
    width: 100%;
  }

  .project-search {
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
  }

  .lpb-project-grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .lpb-card-media {
    height: 290px;
    border-radius: 4px;
  }

  .lpb-card-media img {
    height: 240px;
  }

  .money-line {
    font-size: 22px;
    flex-wrap: wrap;
  }

  .project-facts {
    font-size: 15px;
  }

  .dashboard-projects-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}

.page-num.disabled {
  color: #cfd1d4;
  cursor: default;
}

.onboarding-shell {
  width: min(760px, calc(100% - 32px));
  margin: 0 auto;
}

.onboarding-shell h1 {
  margin: 24px 0 8px;
  font-size: 38px;
  font-weight: 500;
}

.back-link {
  color: #a42515;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.onboarding-steps {
  display: grid;
  margin-top: 34px;
  border-top: 1px solid #e5e5e5;
}

.onboarding-step {
  min-height: 90px;
  display: grid;
  grid-template-columns: 44px 1fr 24px;
  align-items: center;
  gap: 16px;
  border-bottom: 1px solid #e5e5e5;
  color: #101010;
  text-decoration: none;
}

.onboarding-step > span {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #f7f4f4;
  color: #777;
}

.onboarding-step div { display: grid; gap: 5px; }
.onboarding-step small { color: #707070; }
.onboarding-step.is-done > span { background: #b12518; color: #fff; }
.onboarding-step.is-done > i { color: #b12518; }
.document-sent { padding: 14px; margin: 18px 0; background: #f6f9e8; color: #607000; border-radius: 7px; }

.payment-method-screen {
  width: min(660px, 100%);
  min-height: 100dvh;
  margin: 0 auto;
  padding: 76px 32px 40px;
  position: relative;
  box-sizing: border-box;
}

.payment-close {
  position: absolute;
  top: 28px;
  right: 28px;
  color: #777;
  font-size: 36px;
  text-decoration: none;
}

.payment-method-screen h1 {
  font-size: 46px;
  line-height: 1.25;
  font-weight: 500;
  margin: 0 0 70px;
}

.payment-method-list { display: grid; gap: 30px; }
.payment-method-row {
  display: grid;
  grid-template-columns: 96px 1fr 28px;
  align-items: center;
  gap: 32px;
  color: #101010;
  text-decoration: none;
}
.payment-method-row > span {
  width: 96px;
  height: 96px;
  border-radius: 12px;
  background: #faf7f7;
  display: grid;
  place-items: center;
  font-size: 42px;
}
.payment-method-row div { display: grid; gap: 5px; }
.payment-method-row strong { font-size: 34px; font-weight: 500; }
.payment-method-row small { color: #777; font-size: 21px; }
.payment-method-row > i { font-size: 27px; color: #777; }

.projects-help {
  margin: 70px auto 0;
  padding-top: 50px;
  border-top: 1px solid #e1e4e7;
  max-width: 900px;
  text-align: center;
}
.projects-help h2 { margin: 0 0 10px; font-size: 38px; font-weight: 500; }
.projects-help > p { color: #707070; font-size: 21px; margin: 0 auto 32px; }
.help-disabled { cursor: default; }
.risk-notice { margin-top: 52px; text-align: left; color: #707070; font-size: 16px; line-height: 1.55; }

@media (max-width: 720px) {
  .onboarding-shell { padding: 22px 0 90px; }
  .onboarding-shell h1 { font-size: 30px; }
  .onboarding-step { grid-template-columns: 38px 1fr 18px; gap: 12px; }
  .payment-method-screen { padding: 44px 16px 40px; }
  .payment-close { top: 16px; right: 16px; font-size: 24px; }
  .payment-method-screen h1 { font-size: 25px; line-height: 1.22; font-weight: 400; margin-bottom: 48px; }
  .payment-method-list { gap: 16px; }
  .payment-method-row { grid-template-columns: 48px 1fr 16px; gap: 16px; }
  .payment-method-row > span { width: 48px; height: 48px; border-radius: 8px; font-size: 23px; }
  .payment-method-row strong { font-size: 20px; line-height: 1.2; font-weight: 400; white-space: nowrap; }
  .payment-method-row small { font-size: 14px; }
  .payment-method-row > i { font-size: 18px; }
  .pagination-row { gap: 4px; justify-content: space-between; }
  .page-num { width: 42px; height: 48px; }
  .projects-help { margin-top: 48px; padding: 44px 8px 120px; }
  .projects-help h2 { font-size: 27px; font-weight: 500; }
  .projects-help > p { font-size: 17px; line-height: 1.4; max-width: 330px; }
  .projects-help .outline-btn { font-size: 17px; font-weight: 500; min-height: 58px; padding: 0 24px; }
  .risk-notice { font-size: 14px; line-height: 1.48; }
}

/* Desktop density matches the reference app's 1168 CSS-pixel content canvas. */
@media (min-width: 1121px) {
  .app-topbar {
    height: 67px;
  }

  .app-topbar-inner {
    width: min(1136px, calc(100% - 38px));
    grid-template-columns: 224px 1fr 256px;
    gap: 19px;
  }

  .app-brand {
    gap: 10px;
    font-size: 21px;
    font-weight: 700;
  }

  .brand-mark {
    width: 23px;
    height: 23px;
  }

  .app-nav {
    gap: 38px;
  }

  .app-nav-item {
    min-width: 88px;
    gap: 4px;
    font-size: 13px;
    font-weight: 500;
  }

  .app-nav-item i {
    font-size: 23px;
  }

  .app-nav-item.is-active::after {
    top: 11px;
    right: 18px;
    width: 6px;
    height: 6px;
  }

  .app-actions {
    gap: 10px;
  }

  .top-add {
    width: 39px;
    height: 39px;
    font-size: 23px;
    margin-right: -19px;
    box-shadow: 0 0 0 8px #f7f4f3;
    z-index: 2;
  }

  .balance-pill {
    min-width: 96px;
    min-height: 44px;
    padding: 0 14px 0 27px;
    border-radius: 23px;
  }

  .balance-pill small {
    font-size: 10px;
  }

  .balance-pill strong {
    font-size: 15px;
  }

  .icon-ghost {
    font-size: 23px;
    padding: 6px;
  }

  .top-logout {
    display: none;
  }

  .avatar-pill {
    width: 47px;
    height: 47px;
    font-size: 15px;
  }

  .app-main {
    min-height: calc(100vh - 67px);
    padding: 45px 0 70px;
  }

  .app-container {
    width: min(1168px, calc(100% - 26px));
  }

  .dashboard-grid {
    grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
    gap: 96px;
  }

  .hello-title,
  .screen-title {
    font-size: 32px;
    margin: 5px 0 34px;
    font-weight: 500;
  }

  .hello-title {
    font-size: 24px;
  }

  .signup-progress-card {
    min-height: 116px;
    grid-template-columns: 74px 1fr auto;
    gap: 19px;
    padding: 0 24px;
    margin-bottom: 30px;
  }

  .ring-progress {
    width: 62px;
    height: 62px;
    font-size: 16px;
  }

  .signup-progress-card h2,
  .podcast-card h2,
  .featured-side h2 {
    font-size: 21px;
    font-weight: 500;
  }

  .signup-progress-card p,
  .podcast-card p {
    font-size: 14px;
  }

  .cta-red {
    min-height: 44px;
    padding: 0 18px;
    font-size: 14px;
  }

  .metric-large {
    font-size: 16px;
    margin-top: 8px;
  }

  .metric-large strong {
    font-size: 43px;
    font-weight: 500;
    margin: 6px 0;
  }

  .gain-cards {
    gap: 8px;
    margin: 32px 0 40px;
  }

  .gain-card {
    min-height: 95px;
    padding: 14px;
    border-radius: 14px;
  }

  .gain-icon {
    width: 32px;
    height: 32px;
    font-size: 16px;
  }

  .gain-label {
    font-size: 13px;
  }

  .gain-value {
    font-size: 19px;
  }

  .podcast-card {
    padding: 18px 16px;
    margin-top: 68px;
  }

  .slider-dots {
    margin: 21px 0 53px;
    gap: 10px;
  }

  .mini-project {
    grid-template-columns: 48px 1fr auto;
    gap: 11px;
    padding: 16px 0;
  }

  .mini-project img {
    width: 48px;
    height: 48px;
  }

  .mini-project strong {
    font-size: 16px;
  }

  .mini-project span {
    font-size: 14px;
  }

  .small-status {
    padding: 7px 8px;
    font-size: 13px;
  }

  .outline-btn {
    min-height: 44px;
    padding: 0 16px;
    font-size: 14px;
  }

  .lpb-project-grid {
    gap: 53px 12px;
  }

  .lpb-card-media {
    height: 285px;
  }

  .lpb-card-media img {
    height: 245px;
  }

  .type-strip {
    height: 40px;
    gap: 8px;
    font-size: 14px;
  }

  .lpb-card-status {
    top: 20px;
    left: 25px;
    padding: 7px 10px;
    font-size: 13px;
  }

  .share-floating {
    top: 20px;
    right: 24px;
    font-size: 24px;
  }

  .lpb-card-body {
    padding-top: 18px;
  }

  .lpb-card-body h2 {
    font-size: 18px;
    font-weight: 600;
  }

  .project-place {
    font-size: 14px;
    margin-bottom: 16px;
  }

  .money-line {
    font-size: 22px;
    font-weight: 500;
  }

  .money-line small,
  .project-facts {
    font-size: 14px;
  }

  .empty-investments {
    min-height: 416px;
  }

  .empty-investments i {
    width: 72px;
    height: 72px;
    font-size: 34px;
    margin-bottom: 21px;
  }

  .empty-investments p {
    font-size: 14px;
  }
}

@media (max-width: 720px) {
  .pb-app-body { padding-bottom: 76px; font-weight: 400; }
  .app-container { width: calc(100% - 26px); }
  .app-topbar-inner { width: calc(100% - 26px); grid-template-columns: 48px 1fr 32px; }
  .account-menu, .balance-pill, .icon-ghost { grid-row: 1; }
  .account-menu { grid-column: 1; }
  .top-add { left: auto; right: 125px; width: 34px; height: 34px; margin-left: 0; font-size: 19px; }
  .balance-pill { grid-column: 2; justify-self: end; width: 108px; min-width: 108px; min-height: 48px; margin-right: 22px; padding: 0 8px 0 58px; }
  .balance-pill small { font-size: 10px; }
  .balance-pill strong { font-size: 16px; }
  .icon-ghost { grid-column: 3; width: 32px; height: 48px; font-size: 20px; }
  .notification-badge { top: 4px; right: -2px; }
  .mobile-bottom-nav { height: 76px; }
  .mobile-bottom-nav a { position: relative; gap: 3px; font-size: 12px; font-weight: 600; }
  .mobile-nav-icon { position: relative; width: 24px; height: 24px; display: grid; place-items: center; }
  .mobile-bottom-nav i { grid-area: 1 / 1; font-size: 24px; }
  .mobile-bottom-nav .nav-icon-fill { display: none; }
  .mobile-bottom-nav a.is-active .nav-icon-outline { display: none; }
  .mobile-bottom-nav a.is-active .nav-icon-fill { display: inline-block; }
  .mobile-bottom-nav a:nth-child(2)::after { content: ""; position: absolute; top: 7px; left: calc(50% + 12px); width: 6px; height: 6px; border-radius: 50%; background: #a42515; }
  .app-main { padding-top: 30px; padding-bottom: 94px; }
  .hello-title, .screen-title { margin: 0 0 25px; font-size: 24px; font-weight: 500; }
  .hello-title { font-size: 22px; }
  .signup-progress-card { min-height: 176px; grid-template-columns: 72px minmax(0, 1fr); gap: 12px; padding: 24px; margin-bottom: 27px; }
  .ring-progress { width: 68px; height: 68px; font-size: 16px; }
  .signup-progress-card h2 { margin-bottom: 5px; font-size: 19px; font-weight: 500; }
  .signup-progress-card p { font-size: 14px; }
  .signup-progress-card .cta-red { min-height: 44px; font-size: 14px; }
  .metric-large strong { font-size: 38px; }
  .metric-large b { font-size: 14px; }
  .lpb-card-media { height: 282px; }
  .lpb-card-media img { height: 242px; }
  .type-strip { height: 40px; font-size: 14px; }
  .lpb-card-body h2 { font-size: 16px; font-weight: 500; }
  .project-place { margin-bottom: 16px; font-size: 13px; }
  .money-line { font-size: 20px; font-weight: 500; }
  .project-facts { font-size: 13px; }
  .investments-title { display: none; }
  .empty-investments { min-height: 0; display: block; padding-top: 70px; }
  .empty-investments > div > i { width: 72px; height: 72px; margin-bottom: 20px; font-size: 30px; }
  .empty-investments p { margin: 0 0 14px; font-size: 14px; }
  .empty-investments .cta-red { min-height: 44px; padding: 0 16px; font-size: 14px; }
  .empty-investments .cta-red i { width: auto; height: auto; margin: 0; border-radius: 0; background: transparent; color: inherit; display: inline; font-size: 16px; }
}

.account-back,
.account-head-avatar {
  display: none;
}

.account-head-copy {
  display: grid;
  gap: 4px;
}

/* Authoritative mobile header/menu sizing; kept last to override legacy breakpoints. */
@media (max-width: 720px) {
  .balance-pill {
    width: 112px;
    min-width: 112px;
    min-height: 48px;
    margin-right: 18px;
    padding: 0 8px 0 52px;
  }
  .balance-pill small {
    font-size: 10px;
    font-weight: 400;
    transform: translateX(-3px);
  }
  .balance-pill strong {
    font-size: 16px;
    line-height: 1.1;
    font-weight: 500;
    letter-spacing: 0;
    transform: translateX(-3px);
  }

  .account-menu:hover .account-dropdown,
  .account-menu:focus-within .account-dropdown {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }
  .account-dropdown {
    position: fixed;
    inset: 0 auto 0 50%;
    width: min(390px, 100vw);
    height: 100dvh;
    max-height: 100dvh;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    touch-action: pan-y;
    transform: translateX(-50%);
    border: 0;
    box-shadow: none;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .16s ease;
    z-index: 220;
  }
  .account-menu.is-open .account-dropdown {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%);
  }
  .account-back {
    width: 44px;
    height: 44px;
    margin: 14px 0 14px 12px;
    display: grid;
    place-items: center;
    border: 0;
    background: transparent;
    color: #6c6c6c;
    font-size: 23px;
    cursor: pointer;
  }
  .account-head {
    min-height: 82px;
    padding: 0 16px 14px;
    display: grid;
    grid-template-columns: 50px 1fr;
    align-items: center;
    gap: 12px;
  }
  .account-head-avatar {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border: 1px solid #e9ead4;
    border-radius: 50%;
    background: #fbfbe6;
    color: #687500;
    font-size: 16px;
    font-weight: 500;
  }
  .account-head-copy strong { color: #101010; font-size: 15px; font-weight: 500; }
  .account-head-copy > span { color: #747474; font-size: 13px; }
  .group-strip { padding: 17px 16px; font-size: 15px; }
  .account-dropdown a { min-height: 52px; padding: 0 18px; gap: 14px; font-size: 14px; font-weight: 400; }
  .account-dropdown i { font-size: 19px; }
  .account-dropdown .logout-link { min-height: 62px; }
  body.account-menu-open { overflow: hidden; }
  body.account-menu-open .mobile-bottom-nav { display: none; }
}

@media (max-width: 720px) {
  .kyc-status-card {
    padding: 16px 20px !important;
    gap: 12px !important;
    margin-bottom: 27px;
    flex-wrap: wrap;
  }
  .kyc-status-card .kyc-icon {
    width: 44px;
    height: 44px;
    font-size: 20px;
  }
  .kyc-status-card p {
    font-size: 14px;
  }
  .kyc-status-card .small-cta {
    width: 100%;
    margin-top: 10px;
    margin-left: 0;
  }
}

/* ── Dynamic Onboarding and Bank Details styling ── */
.investor-type-selector {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 10px;
  margin-bottom: 24px;
}
.type-option {
  cursor: pointer;
  display: block;
}
.type-option input[type="radio"] {
  display: none;
}
.type-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  padding: 20px 16px;
  background: #fdfdfd;
  border: 1.5px solid #e5e7eb;
  border-radius: 9px;
  transition: all 0.2s ease;
}
.type-box i {
  font-size: 26px;
  color: #6b7280;
  transition: color 0.2s;
}
.type-box strong {
  font-size: 15px;
  color: #111827;
}
.type-box small {
  font-size: 12px;
  color: #6b7280;
}
.type-option input[type="radio"]:checked + .type-box {
  background: #fdf2f2;
  border-color: #a42515;
}
.type-option input[type="radio"]:checked + .type-box i {
  color: #a42515;
}

.form-group-wrapper {
  margin-bottom: 28px;
}
.section-title {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: #111827;
  border-bottom: 1.5px solid #f3f4f6;
  padding-bottom: 8px;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-grid-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1.5fr;
  gap: 16px;
}
.field-container {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}
.field-container label {
  font-size: 13.5px;
  font-weight: 600;
  color: #4b5563;
}
.field-container input, .field-container select {
  height: 48px;
  border-radius: 7px;
  border: 1px solid #d1d5db;
  padding: 0 14px;
  font-size: 14.5px;
  background: #fff;
  transition: border-color 0.2s;
}
.field-container input:focus, .field-container select:focus {
  border-color: #a42515;
  outline: none;
}

/* Bank Details coordinate list styling */
.bank-info-grid {
  display: grid;
  gap: 16px;
  background: #fdfdfd;
  border: 1px solid #e5e7eb;
  border-radius: 9px;
  padding: 20px;
  margin: 20px 0;
}
.bank-info-item {
  display: grid;
  gap: 6px;
}
.bank-info-item label {
  font-size: 12px;
  color: #6b7280;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.bank-info-value-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f9fafb;
  border-radius: 7px;
  padding: 12px 14px;
  border: 1.5px solid #e5e7eb;
}
.bank-info-value {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 15px;
  color: #111827;
  font-weight: 600;
  word-break: break-all;
}
.iban-value {
  letter-spacing: 0.8px;
}
.copy-btn {
  background: transparent;
  border: 0;
  color: #a42515;
  font-size: 18px;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
}
.copy-btn:hover {
  color: #7f1a0e;
}
.bank-transfer-note {
  display: flex;
  gap: 12px;
  background: #f0f7ff;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  padding: 16px;
  font-size: 13.5px;
  color: #1e3a8a;
  line-height: 1.6;
}
.bank-transfer-note i {
  font-size: 20px;
  flex-shrink: 0;
  color: #2563eb;
  margin-top: 1px;
}

@media (max-width: 720px) {
  .investor-type-selector {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .form-grid-2, .form-grid-3 {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

.balance-pill strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 720px) {
  .top-add {
    width: 32px;
    height: 32px;
    font-size: 20px;
    box-shadow: 0 0 0 8px #f7f4f3;
  }

  .balance-pill {
    width: max-content;
    min-width: 112px;
    max-width: calc(100vw - 170px);
    min-height: 48px;
    padding: 0 12px 0 52px;
    border-radius: 24px;
  }

  .balance-pill small {
    font-size: 10px;
    line-height: 1.05;
  }

  .balance-pill strong {
    font-size: 15px;
    line-height: 1.1;
    max-width: none;
  }
}

/* Final wallet pill fit: fixed LPB-like mobile header, adaptive long balances. */
@media (max-width: 720px) {
  .app-topbar {
    height: 72px;
    overflow: hidden;
  }

  .app-topbar-inner {
    width: calc(100% - 32px);
    grid-template-columns: 48px minmax(0, 1fr) 32px;
    gap: 10px;
  }

  .app-actions {
    display: contents;
  }

  .top-add {
    position: absolute;
    top: 50%;
    right: 124px;
    left: auto;
    width: 34px;
    height: 34px;
    margin: 0;
    transform: translateY(-50%);
    border-radius: 999px;
    font-size: 21px;
    box-shadow: none;
    z-index: 4;
  }

  .balance-pill {
    grid-column: 2;
    justify-self: end;
    width: 112px;
    min-width: 112px;
    max-width: 112px;
    height: 48px;
    min-height: 48px;
    margin-right: 16px;
    padding: 0 8px 0 52px;
    border-radius: 999px;
    overflow: hidden;
    display: grid;
    align-content: center;
    justify-items: start;
    gap: 0;
    box-sizing: border-box;
  }

  .balance-pill small {
    max-width: 52px;
    overflow: hidden;
    color: #707070;
    font-size: 10px;
    font-weight: 400;
    line-height: 1.05;
    transform: none;
  }

  .balance-pill strong {
    max-width: 58px;
    overflow: visible;
    color: #101010;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.12;
    white-space: nowrap;
    text-overflow: clip;
    transform: none;
  }

  .balance-pill strong.is-medium {
    font-size: 13.5px;
  }

  .balance-pill strong.is-long {
    font-size: 10.5px;
  }

  .icon-ghost {
    grid-column: 3;
    justify-self: end;
    width: 32px;
    height: 48px;
    padding: 0;
    font-size: 22px;
  }
}


