/* {{env("APP_NAME")}} — app.css (auth pages + client dashboard) */

/* ============ AUTH PAGES — IG-style: cream pitch + white form ============ */
.auth-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  background: var(--bg);
}

/* Left side: cream pitch panel (matches IG hero treatment) */
.auth-side {
  position: relative;
  overflow: hidden;
  padding: 56px 64px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--hero-bg);
  border-right: 1px solid var(--border);
}
.auth-side .auth-brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 800; font-size: 1.25rem;
  color: var(--text); text-decoration: none;
  letter-spacing: -0.02em;
}
.auth-side .auth-brand img { width: 40px; height: 40px; border-radius: 8px; }
.auth-side .auth-brand .brand-text { color: var(--text); }
.auth-side .auth-brand .brand-text .accent { color: var(--accent); }

.auth-side .pitch { max-width: 460px; }
.auth-side .pitch h2 {
  font-size: clamp(2.4rem, 3.5vw, 3.2rem);
  color: var(--text);
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-weight: 800;
  margin-bottom: 20px;
}
.auth-side .pitch h2 span {
  color: var(--accent);
  background: none;
  -webkit-background-clip: unset;
  background-clip: unset;
}
.auth-side .pitch p {
  color: var(--text-dim);
  font-size: 17px;
  line-height: 1.5;
  margin: 0;
}

.auth-side .trust-row {
  display: flex; flex-direction: column; gap: 12px;
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
}
.auth-side .trust-row .it {
  display: flex; gap: 12px; align-items: center;
}
.auth-side .trust-row svg {
  width: 18px; height: 18px;
  color: var(--accent);
  flex-shrink: 0;
}

/* Right side: clean white form panel */
.auth-form-side {
  padding: 48px;
  display: grid;
  place-items: center;
  background: var(--bg);
}
.auth-card { max-width: 440px; width: 100%; }
.auth-card .crumb { font-size: 13px; color: var(--text-mute); margin-bottom: 16px; }
.auth-card .crumb a { color: var(--text-mute); }
.auth-card .crumb a:hover { color: var(--accent); }
.auth-card h1 {
  font-size: 2.4rem;
  margin: 0 0 12px;
  color: var(--text);
  letter-spacing: -0.025em;
  font-weight: 800;
  line-height: 1.1;
}
.auth-card .sub {
  color: var(--text-dim);
  font-size: 16px;
  margin: 0 0 32px;
  line-height: 1.5;
}

/* Form fields — IG-style: white bg, soft border, big touch target */
.auth-card .field { margin-bottom: 18px; }
.auth-card .field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
  letter-spacing: -0.005em;
}
.auth-card .field input,
.auth-card .field select {
  width: 100%;
  padding: 14px 16px;
  background: #fff;
  border: 1.5px solid var(--border-dark);
  border-radius: 6px;
  color: var(--text);
  font-size: 15px;
  font-family: inherit;
  transition: border-color .15s, box-shadow .15s;
}
.auth-card .field input::placeholder { color: var(--text-mute); }
.auth-card .field input:focus,
.auth-card .field select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(224,78,42,.12);
}
.auth-card .field small {
  display: block;
  color: var(--text-mute);
  font-size: 12px;
  margin-top: 6px;
}
.auth-card .row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.auth-card .between {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 14px;
  margin: 8px 0 24px;
}
.auth-card .between .check {
  display: flex; align-items: center; gap: 8px;
  color: var(--text-dim);
  cursor: pointer;
}
.auth-card .between .check input { accent-color: var(--accent); }
.auth-card .between a {
  color: var(--text);
  font-weight: 600;
  border-bottom: 1.5px solid var(--text);
  padding-bottom: 1px;
}
.auth-card .between a:hover { color: var(--accent); border-bottom-color: var(--accent); }

.auth-card .btn {
  width: 100%;
  padding: 16px 24px;
  font-size: 16px;
  font-weight: 700;
  border-radius: 6px;
}

.auth-divider {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--text-dim);
  font-size: 15px;
}
.auth-divider a {
  color: var(--text);
  font-weight: 700;
  border-bottom: 1.5px solid var(--text);
  padding-bottom: 1px;
}
.auth-divider a:hover { color: var(--accent); border-bottom-color: var(--accent); }

.consent-row {
  display: flex; gap: 10px; align-items: flex-start;
  color: var(--text-dim);
  font-size: 13px;
  margin: 8px 0 20px;
  line-height: 1.5;
}
.consent-row input {
  width: auto; margin-top: 4px;
  accent-color: var(--accent);
}
.consent-row a { color: var(--accent); }

@media (max-width: 900px) {
  .auth-shell { grid-template-columns: 1fr; }
  .auth-side {
    padding: 32px 24px;
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
  .auth-side .pitch h2 { font-size: 2rem; }
  .auth-form-side { padding: 32px 24px; }
  .auth-card h1 { font-size: 2rem; }
}

/* ============ DASHBOARD (client portal) ============ */
.dash { display: grid; grid-template-columns: 250px 1fr; min-height: 100vh; background: #070b16; }
.dash-side {
  background: #050810;
  border-right: 1px solid #1a2342;
  padding: 24px 0;
  display: flex; flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}
/* Hide scrollbar but keep functionality */
.dash-side::-webkit-scrollbar { width: 6px; }
.dash-side::-webkit-scrollbar-thumb { background: #1a2342; border-radius: 3px; }
.dash-side::-webkit-scrollbar-track { background: transparent; }
.dash-side .brand-block { padding: 0 22px 22px; border-bottom: 1px solid #1a2342; }
.dash-side .brand-link { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 800; font-size: 1.05rem; }
.dash-side .brand-link img { width: 30px; height: 30px; }
.dash-side .acct-pill { display: inline-flex; gap: 8px; align-items: center; margin-top: 12px; color: var(--success); font-size: 12px; font-weight: 600; }
.dash-side .acct-pill .dot { width: 7px; height: 7px; background: var(--success); border-radius: 50%; box-shadow: 0 0 8px var(--success); }
.dash-side .nav-section { padding: 18px 0; }
.dash-side .nav-label { padding: 0 22px 8px; font-size: 11px; color: #54657f; text-transform: uppercase; letter-spacing: .1em; font-weight: 600; }
.dash-side .nav-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 22px; color: #9fb0d1; font-size: 14px; font-weight: 500;
  cursor: pointer; transition: color .15s, background .15s;
  position: relative; text-decoration: none;
}
.dash-side .nav-item[hidden] { display: none !important; }

/* ═══ P&L summary cards ═══ */
.pnl-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 24px;
}
.pnl-card {
  background: #0b1228;
  border: 1px solid #1a2342;
  border-radius: 12px;
  padding: 18px;
}
.pnl-lbl {
  color: var(--text-mute);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 600;
  margin-bottom: 8px;
}
.pnl-val {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text);
  font-family: 'JetBrains Mono', monospace;
}
.pnl-val.pos { color: #1fc77a; }
.pnl-val.neg { color: #ff5c5c; }
.pnl-sub {
  margin-top: 4px;
  font-size: 12px;
  color: var(--text-mute);
}
@media (max-width: 800px) { .pnl-grid { grid-template-columns: repeat(2, 1fr); } }
.dash-side .nav-item:hover { color: var(--text); background: rgba(255,255,255,0.02); }
.dash-side .nav-item.active { color: var(--accent-2); background: rgba(245,184,32,0.06); }
.dash-side .nav-item.active::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--accent); }
.dash-side .nav-item svg { width: 18px; height: 18px; flex: none; }
.dash-side .nav-item .chev { margin-left: auto; opacity: .5; }
.dash-side .sign-out { margin-top: auto; padding: 22px; border-top: 1px solid #1a2342; }
.dash-side .sign-out a { color: #6b7ea3; font-size: 13px; display: flex; align-items: center; gap: 10px; text-decoration: none; }
.dash-side .sign-out a:hover { color: var(--text); }

.dash-main { padding: 28px; overflow-x: hidden; }

.dash-welcome {
  background: #0b1228; border: 1px solid #1a2342; border-radius: 16px;
  padding: 32px; margin-bottom: 20px;
  display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap;
}
.dash-welcome .eyebrow { display: inline-flex; gap: 8px; align-items: center; color: var(--accent); font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.dash-welcome .eyebrow::before { content: "—"; }
.dash-welcome h1 { font-size: 2.2rem; margin: 8px 0 22px; color: var(--text); font-weight: 700; }
.dash-welcome .stats { display: flex; gap: 56px; }
.dash-welcome .stat-lbl { font-size: 11px; color: #6b7ea3; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 6px; font-weight: 600; }
.dash-welcome .stat-val { font-size: 1.7rem; font-weight: 700; color: var(--text); font-family: 'JetBrains Mono', monospace; }
.dash-welcome .stat-val small { font-size: .8rem; color: var(--text-mute); margin-left: 6px; font-weight: 500; font-family: 'Inter', sans-serif; }
.dash-welcome .actions { display: flex; gap: 10px; }
.btn-lime { background: var(--accent-2); color: #0a1224; padding: 12px 22px; border-radius: 10px; font-weight: 700; font-size: 14px; display: inline-flex; align-items: center; gap: 6px; }
.btn-lime:hover { background: #ffe27c; color: #0a1224; transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--text); border: 1px solid var(--border); padding: 12px 22px; border-radius: 10px; font-weight: 600; font-size: 14px; }
.btn-outline:hover { background: rgba(255,255,255,0.03); color: var(--text); }

.quick-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 20px; }
.quick-tile {
  background: #0b1228; border: 1px solid #1a2342; border-radius: 14px;
  padding: 20px; display: flex; gap: 14px; align-items: flex-start;
  cursor: pointer; transition: border-color .15s, transform .15s;
  text-decoration: none;
}
.quick-tile:hover { border-color: var(--accent); transform: translateY(-2px); }
.quick-tile .ico { width: 42px; height: 42px; background: rgba(245,184,32,0.1); border-radius: 10px; display: grid; place-items: center; color: var(--accent-2); flex: none; }
.quick-tile .ico svg { width: 20px; height: 20px; }
.quick-tile .info h4 { font-size: 14px; margin: 0 0 4px; color: var(--text); font-weight: 600; }
.quick-tile .info small { color: var(--text-mute); font-size: 12px; }

.quotes-card { background: #0b1228; border: 1px solid #1a2342; border-radius: 14px; overflow: hidden; }
.quotes-head { padding: 16px 24px; border-bottom: 1px solid #1a2342; display: flex; align-items: center; gap: 10px; }
.quotes-head .live-dot { width: 8px; height: 8px; background: var(--success); border-radius: 50%; box-shadow: 0 0 8px var(--success); animation: pulse 2s infinite; }
.quotes-head h3 { margin: 0; font-size: 12px; font-weight: 600; color: var(--text-dim); text-transform: uppercase; letter-spacing: .08em; }
.qt { width: 100%; border-collapse: collapse; }
.qt th { text-align: right; padding: 12px 16px; color: #6b7ea3; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.qt th:first-child { text-align: left; padding-left: 24px; }
.qt tbody tr:not(.cat-row) { border-top: 1px solid #15203d; }
.qt tbody tr:not(.cat-row):hover { background: rgba(255,255,255,0.02); }
.qt td { text-align: right; padding: 14px 16px; font-family: 'JetBrains Mono', monospace; font-size: 14px; color: var(--text-dim); }
.qt td:first-child { text-align: left; padding-left: 24px; font-family: 'Inter', sans-serif; }
.qt .cat-row td { background: #060b1a; font-size: 11px; color: #6b7ea3; text-transform: uppercase; letter-spacing: .08em; font-weight: 600; padding: 8px 24px; font-family: 'Inter', sans-serif; border-top: 1px solid #15203d; }
.qt .sym { display: flex; align-items: center; gap: 12px; color: var(--text); font-family: 'Inter', sans-serif; font-weight: 500; font-size: 14px; }
.qt .sym .ico { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 9px; font-weight: 700; color: #0a1224; flex: none; }
.qt .sym .ico.b { background: #ef4444; }
.qt .sym .ico.g { background: #1fc77a; }
.qt .sym .ico.y { background: #f5b820; }
.qt .sym .ico.p { background: #6366f1; color: #fff; }
.qt .sym .ico.c { background: #f97316; }
.qt .sym .ico.silver { background: #c0c0c0; color: #1a1a1a; font-size: 9px; }
.qt .sym .ico.oil { background: #2c2c2c; color: #fff; font-size: 7px; }
.qt .sym .ico.stock { background: #4f46e5; color: #fff; font-size: 7px; }
.qt td.price { font-family: 'JetBrains Mono', monospace; font-weight: 600; transition: background .5s; }
.qt td.price.flash-up { background: rgba(31,199,122,0.18); color: #1fc77a; }
.qt td.price.flash-down { background: rgba(239,68,68,0.18); color: #ef4444; }
.quotes-status { margin-left: auto; font-size: 11px; color: var(--text-mute); font-family: 'JetBrains Mono', monospace; }
.quotes-status.live { color: var(--success); }
.qt .pos { color: var(--success); }
.qt .neg { color: var(--danger); }

@media (max-width: 1000px) { .quick-tiles { grid-template-columns: 1fr 1fr; } }
@media (max-width: 900px) {
  .dash { grid-template-columns: 1fr; }
  .dash-side { position: relative; padding: 16px 0; }
  .dash-side .sign-out { margin-top: 16px; }
  .dash-welcome { padding: 24px; }
  .dash-welcome h1 { font-size: 1.6rem; }
  .dash-welcome .stats { gap: 28px; }
  .dash-main { padding: 16px; }
}
@media (max-width: 600px) { .quick-tiles { grid-template-columns: 1fr; } }

/* ============ CREDENTIALS MODAL ============ */
.fxlp-modal-backdrop {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(5, 11, 24, 0.85);
  backdrop-filter: blur(8px);
  display: grid; place-items: center;
  padding: 20px;
  animation: fadeIn .25s ease;
}
.fxlp-modal-backdrop[hidden] { display: none !important; }
.fxlp-modal {
  background: linear-gradient(180deg, #1a2950, #0f1a33);
  border: 1px solid var(--accent);
  border-radius: 20px;
  padding: 36px;
  max-width: 480px; width: 100%;
  box-shadow: 0 20px 80px rgba(0,0,0,0.6), 0 0 0 1px rgba(245,184,32,0.2);
  animation: slideUp .3s ease;
}
.fxlp-modal .check-icon {
  width: 60px; height: 60px; border-radius: 50%;
  background: linear-gradient(135deg, var(--success), #0fa066);
  display: grid; place-items: center;
  margin: 0 auto 18px;
  color: #fff; font-size: 32px; font-weight: 700;
  box-shadow: 0 8px 24px rgba(31,199,122,0.4);
}
.fxlp-modal h2 {
  text-align: center; margin: 0 0 8px;
  font-size: 1.6rem; color: var(--text);
}
.fxlp-modal .sub {
  text-align: center; color: var(--text-dim);
  margin: 0 0 24px; font-size: 14px;
}
.fxlp-modal .cred-row {
  background: #050b18; border: 1px solid #2a3d72;
  border-radius: 12px; padding: 14px 16px;
  margin-bottom: 12px;
  display: flex; align-items: center; gap: 12px;
}
.fxlp-modal .cred-row .lbl {
  font-size: 11px; color: var(--text-mute);
  text-transform: uppercase; letter-spacing: .08em; font-weight: 600;
  margin-bottom: 4px;
}
.fxlp-modal .cred-row .val {
  font-family: 'JetBrains Mono', monospace;
  font-size: 18px; color: var(--text); font-weight: 700;
  word-break: break-all;
}
.fxlp-modal .cred-row .copy-btn {
  background: var(--accent); color: #0a1224;
  border: none; padding: 8px 14px;
  border-radius: 8px; font-weight: 600; font-size: 13px;
  cursor: pointer; flex: none;
  transition: background .15s;
}
.fxlp-modal .cred-row .copy-btn:hover { background: var(--accent-2); }
.fxlp-modal .cred-row .copy-btn.copied { background: var(--success); color: #fff; }
.fxlp-modal .warn {
  background: rgba(245,184,32,0.08);
  border: 1px solid rgba(245,184,32,0.3);
  border-radius: 10px; padding: 12px 14px;
  margin: 18px 0;
  font-size: 13px; color: var(--accent-2);
  display: flex; gap: 10px; align-items: flex-start;
}
.fxlp-modal .warn::before { content: "⚠"; font-size: 18px; flex: none; }
.fxlp-modal .modal-btn {
  width: 100%;
  background: linear-gradient(135deg, var(--accent), #e0a200);
  color: #1a1300; padding: 14px;
  border: none; border-radius: 10px;
  font-weight: 700; font-size: 15px;
  cursor: pointer; margin-top: 8px;
}
.fxlp-modal .modal-btn:hover { transform: translateY(-1px); }
@keyframes fadeIn { from { opacity: 0; } }
@keyframes slideUp { from { transform: translateY(20px); opacity: 0; } }

/* ============ DASHBOARD VIEWS (SPA routing) ============ */
.view-title { font-size: 1.8rem; color: var(--text); margin: 0 0 6px; }
.view-sub { color: var(--text-dim); margin: 0 0 24px; font-size: 14px; }
.dash-side .nav-sub { display: none; padding-left: 22px; }
.dash-side .nav-sub.open { display: block; }
.dash-side .nav-subitem { display: block; padding: 8px 22px; color: #6b7ea3; font-size: 13px; text-decoration: none; }
.dash-side .nav-subitem:hover, .dash-side .nav-subitem.active { color: var(--accent-2); }
.dash-side .nav-parent.active .chev { transform: rotate(90deg); }
.dash-side .chev { transition: transform .2s; }

.card { background: #0b1228; border: 1px solid #1a2342; border-radius: 14px; padding: 28px; margin-bottom: 20px; }
.card.narrow { max-width: 520px; }
.card .field { margin-bottom: 16px; }
.card .field label { display: block; font-size: 13px; color: var(--text-dim); margin-bottom: 6px; font-weight: 600; }
.card .field input, .card .field select, .card .field textarea {
  width: 100%; padding: 12px 14px; background: #050b18;
  border: 1px solid #2a3d72; border-radius: 10px;
  color: var(--text); font-size: 15px; font-family: inherit;
}
.card .field input:focus, .card .field select:focus { outline: none; border-color: var(--primary); }
.card .row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.card small.muted { color: var(--text-mute); font-size: 12px; display: block; margin-top: -8px; }
.full { width: 100%; }
.mt-16 { margin-top: 16px; }

.plat-cards { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.plat-card { background: #0b1228; border: 1px solid #1a2342; border-radius: 14px; padding: 28px; text-align: center; }
.plat-card .plat-ico { width: 56px; height: 56px; margin: 0 auto 14px; background: rgba(245,184,32,0.1); border-radius: 14px; display: grid; place-items: center; color: var(--accent-2); }
.plat-card .plat-ico svg { width: 28px; height: 28px; }
.plat-card h3 { color: var(--text); margin: 0 0 8px; }
.plat-card p { color: var(--text-dim); font-size: 14px; margin: 0 0 18px; }
.plat-card .btn-lime { display: inline-block; }
@media (max-width: 900px) { .plat-cards { grid-template-columns: 1fr; } }

.kyc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.kyc-card { background: #0b1228; border: 1px solid #1a2342; border-radius: 14px; padding: 20px; }
.kyc-card h4 { color: var(--text); margin: 0 0 4px; }
.kyc-card small { color: var(--text-mute); font-size: 12px; display: block; margin-bottom: 14px; }
.kyc-card .kyc-btn { padding: 8px 14px; font-size: 13px; }
.kyc-card .kyc-status { margin-top: 12px; font-size: 13px; color: var(--text-mute); }
.kyc-card .kyc-status.uploaded { color: var(--success); }
.kyc-card .kyc-status.pending { color: var(--accent); }
.kyc-card .kyc-status.approved { color: var(--success); font-weight: 600; }
.kyc-card .kyc-status.rejected { color: var(--danger); }
@media (max-width: 700px) { .kyc-grid { grid-template-columns: 1fr; } }

.tabs { display: flex; gap: 8px; margin-bottom: 14px; }
.tab { background: transparent; border: 1px solid #1a2342; color: var(--text-dim); padding: 10px 18px; border-radius: 10px; cursor: pointer; font-weight: 600; font-size: 14px; }
.tab.active { background: var(--accent); border-color: var(--accent); color: #0a1224; }

.list-table { width: 100%; border-collapse: collapse; }
.list-table th, .list-table td { padding: 10px 12px; border-bottom: 1px solid #1a2342; text-align: left; font-size: 14px; }
.list-table th { color: var(--text-mute); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
.status-pill { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.status-pill.pending { background: rgba(245,184,32,0.15); color: var(--accent); }
.status-pill.approved, .status-pill.paid { background: rgba(31,199,122,0.15); color: var(--success); }
.status-pill.rejected { background: rgba(255,92,92,0.15); color: var(--danger); }

.deposit-block { background: #050b18; border: 1px solid #1a2342; border-radius: 12px; padding: 18px; margin-bottom: 14px; }
.deposit-block h4 { color: var(--text); margin: 0 0 10px; font-size: 15px; }
.deposit-block .kv { display: grid; grid-template-columns: 140px 1fr auto; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid #15203d; font-size: 14px; }
.deposit-block .kv:last-child { border: none; }
.deposit-block .kv .k { color: var(--text-mute); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
.deposit-block .kv .v { font-family: 'JetBrains Mono', monospace; color: var(--text); word-break: break-all; }
.deposit-block .kv .copy-btn { background: var(--accent); border: none; color: #0a1224; padding: 6px 12px; border-radius: 8px; font-weight: 600; font-size: 12px; cursor: pointer; }
.deposit-block .kv .copy-btn.copied { background: var(--success); color: #fff; }

/* ============ APPLICATION FORM (register) — IG-style centered layout ============ */
.appform-shell {
  min-height: 100vh;
  background: var(--bg-2);
  display: flex;
  flex-direction: column;
}

/* Top bar — brand + step indicator */
.appform-top {
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding: 16px 24px;
  position: sticky; top: 0; z-index: 50;
}
.appform-top .inner {
  max-width: 1240px; margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center;
  gap: 24px;
}
.appform-top .brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 800; font-size: 1.15rem;
  color: var(--text); text-decoration: none;
  letter-spacing: -0.02em;
}
.appform-top .brand img { width: 32px; height: 32px; border-radius: 6px; }
.appform-top .step-pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent-soft); color: var(--accent);
  font-size: 13px; font-weight: 700;
  padding: 6px 14px; border-radius: 100px;
  letter-spacing: -0.005em;
}
.appform-top .right-link {
  color: var(--text-dim); font-weight: 600; font-size: 14px;
  text-decoration: none;
}
.appform-top .right-link:hover { color: var(--accent); }

/* Progress bar (visual cue) */
.appform-progress {
  height: 3px; background: var(--border);
  position: relative;
}
.appform-progress::after {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0;
  width: 33%; background: var(--accent);
  transition: width .3s;
}

/* Main centered card */
.appform-main {
  flex: 1;
  display: flex; justify-content: center; align-items: flex-start;
  padding: 48px 24px 64px;
}
.appform-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  width: 100%;
  max-width: 720px;
  padding: 56px 56px 48px;
  box-shadow: 0 4px 24px rgba(58,0,16,.04);
}
@media (max-width: 600px) {
  .appform-card { padding: 36px 24px 32px; border-radius: 8px; }
  .appform-main { padding: 24px 16px 48px; }
}

.appform-card h1 {
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  margin-bottom: 12px;
  color: var(--text); font-weight: 800;
  letter-spacing: -0.025em; line-height: 1.1;
}
.appform-card .lede {
  color: var(--text-dim); font-size: 16px;
  margin-bottom: 40px; line-height: 1.5;
}

/* Form sections with subheadings */
.appform-section {
  margin-bottom: 36px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border);
}
.appform-section:last-of-type {
  border-bottom: none;
  padding-bottom: 16px;
}
.appform-section h3 {
  font-size: 1.05rem; font-weight: 700;
  color: var(--text); margin-bottom: 4px;
  letter-spacing: -0.01em;
}
.appform-section .section-desc {
  font-size: 14px; color: var(--text-mute);
  margin-bottom: 24px;
}

/* Two-column rows */
.appform-card .row-2 {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
}
@media (max-width: 600px) { .appform-card .row-2 { grid-template-columns: 1fr; gap: 0; } }

/* Field styling — bigger touch targets, IG-style */
.appform-card .field { margin-bottom: 18px; }
.appform-card .field:last-child { margin-bottom: 0; }
.appform-card .field label {
  display: block; font-size: 13px; font-weight: 600;
  color: var(--text); margin-bottom: 8px;
  letter-spacing: -0.005em;
}
.appform-card .field input,
.appform-card .field select {
  width: 100%;
  padding: 14px 16px;
  background: #fff;
  border: 1.5px solid var(--border-dark);
  border-radius: 6px;
  color: var(--text);
  font-size: 15px;
  font-family: inherit;
  transition: border-color .15s, box-shadow .15s;
  appearance: none;
  -webkit-appearance: none;
}
/* Custom select chevron */
.appform-card .field select {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%233A0010' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 44px;
}
.appform-card .field input::placeholder { color: var(--text-mute); }
.appform-card .field input:focus,
.appform-card .field select:focus {
  outline: none;
  border-color: var(--accent);
  