.account-section { min-height: calc(100vh - 192px); padding-block: 64px; }
.account-card { max-width: 480px; margin-inline: auto; padding: 32px; border: 1px solid var(--panel-line); background: var(--ink-soft); }
.account-card h1 { margin: 18px 0 14px; font-size: clamp(28px, 5vw, 38px); overflow-wrap: anywhere; }
.account-intro, .account-switch { color: var(--muted); font-size: 13px; }
.account-form { display: grid; gap: 10px; margin-top: 26px; }
.account-form label { margin-top: 8px; font-size: 12px; }
.account-form input:not([type="hidden"]) { width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid var(--panel-line); border-radius: 2px; background: var(--panel); color: var(--text); font: inherit; }
.account-form input:focus-visible, .account-section a:focus-visible, .account-form button:focus-visible, .logout-form button:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.account-form small, .account-note { color: var(--muted); font-size: 11px; }
.account-form .button { margin-top: 18px; cursor: pointer; }
.account-switch { margin: 24px 0 12px; }
.account-switch a { color: var(--gold-bright); text-decoration: underline; }
.account-note { margin: 0; }
.account-error { padding: 12px; border: 1px solid var(--gold); color: var(--gold-bright); font-size: 13px; }
.email-verification-card { max-width: 520px; }
.email-verification-logo { display: block; width: 64px; height: 64px; object-fit: contain; margin: 0 auto 20px; }
.email-verification-card > .section-kicker { text-align: center; }
.email-verification-card > h1, .email-verification-card > .account-intro { text-align: center; }
.email-verification-card > .account-intro strong { color: var(--aqua, #8fd8df); overflow-wrap: anywhere; }
.email-verification-card .account-form input[name="code"] { text-align: center; font-size: 24px; letter-spacing: .35em; font-variant-numeric: tabular-nums; }
.email-verification-resend { margin-top: 14px; }
.email-verification-resend .button { width: 100%; cursor: pointer; }
.email-verification-card > .account-note { margin-top: 18px; text-align: center; line-height: 1.7; }
.logout-form { margin: 0; }
.logout-form button { cursor: pointer; }
.dashboard-card { max-width: 760px; }
.customer-layout { display: grid; grid-template-columns: 236px minmax(0, 1fr); gap: 28px; align-items: start; }
.customer-sidebar { border: 1px solid var(--panel-line); background: var(--ink-soft); padding: 24px 16px; }
.sidebar-customer { display: grid; justify-items: center; gap: 12px; text-align: center; overflow-wrap: anywhere; }
.customer-avatar { width: 64px; height: 64px; object-fit: cover; border-radius: 50%; border: 1px solid var(--gold); }
.avatar-placeholder { display: grid; place-items: center; background: var(--panel); color: var(--gold); font-size: 25px; }
.customer-nav { display: grid; gap: 8px; margin-top: 28px; }
.customer-nav a { display: block; padding: 12px; border-left: 2px solid transparent; font-size: 13px; color: var(--muted); }
.customer-nav a:hover, .customer-nav a[aria-current="page"] { color: var(--gold-bright); background: var(--panel); border-left-color: var(--gold); }
.sidebar-note { color: var(--muted); font-size: 11px; margin: 28px 12px 0; }
.customer-content { min-width: 0; display: grid; gap: 24px; }
.customer-content .account-card { width: 100%; max-width: none; }
.customer-content h2 { margin: 14px 0; font-size: 22px; }
.account-success { margin: 0; padding: 14px 18px; border: 1px solid var(--gold); background: var(--panel); color: var(--gold-bright); font-size: 13px; }
.form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.field { min-width: 0; display: grid; align-content: start; gap: 8px; }
.full-width { grid-column: 1 / -1; }
.account-form textarea, .account-form select { width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid var(--panel-line); border-radius: 2px; background: var(--panel); color: var(--text); font: inherit; }
.account-form textarea { resize: vertical; }
.account-form textarea:focus-visible, .account-form select:focus-visible, .customer-sidebar a:focus-visible, .remove-form button:focus-visible, .status-guide summary:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.photo-preview-wrap { display: flex; gap: 20px; align-items: center; }
.photo-preview { object-fit: cover; border-radius: 50%; border: 1px solid var(--gold); }
.photo-preview[hidden] { display: none; }
.remove-form { margin: 18px 0; }
.remove-form button { cursor: pointer; }
.account-form input[type="file"] { font-size: 12px; }
.account-form input[type="file"]::file-selector-button { padding: 8px; margin-right: 12px; border: 1px solid var(--gold); background: var(--ink); color: var(--gold-bright); cursor: pointer; }
.account-form .checkbox-label { display: flex; align-items: flex-start; gap: 12px; color: var(--muted); }
.account-form input[type="checkbox"] { flex: 0 0 18px; width: 18px; min-height: 18px; margin-top: 3px; accent-color: var(--gold); }
.status-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-block: 8px; }
.status-badge { padding: 6px 12px; border: 1px solid var(--gold); color: var(--gold-bright); font-size: 12px; background: rgba(217,187,125,.08); }
.kyc-status-card .button { margin-top: 20px; }
.image-links { display: flex; flex-wrap: wrap; gap: 12px; }
.status-guide summary { cursor: pointer; color: var(--gold-bright); }
.status-guide dt { color: var(--gold-bright); margin-top: 14px; font-size: 13px; }
.status-guide dd { margin: 4px 0 0; color: var(--muted); font-size: 12px; }
@media (max-width: 900px) {
  .customer-layout { grid-template-columns: 1fr; }
  .customer-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 16px; }
  .sidebar-customer { grid-template-columns: auto minmax(0, 1fr); text-align: left; justify-items: start; }
  .sidebar-customer .account-note { grid-column: 2; }
  .sidebar-customer .customer-avatar { grid-row: span 2; }
  .sidebar-note { display: none; }
}
@media (max-width: 600px) {
  .form-grid { grid-template-columns: 1fr; }
  .customer-layout { width: calc(100% - 32px); padding-block: 24px; gap: 20px; }
  .photo-preview-wrap { flex-wrap: wrap; }
  .customer-content .account-card { padding: 22px; }
}
.account-details { margin-block: 28px; }
.account-details > div { display: grid; grid-template-columns: 90px 1fr; gap: 16px; padding-block: 14px; border-bottom: 1px solid var(--panel-line); }
.account-details dt { color: var(--muted); }
.account-details dd { margin: 0; overflow-wrap: anywhere; }
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Dashboard sections: summary cards, simulated chart, allocation and activity. */
.customer-logout { margin-top: 10px; }
.customer-logout-button { width: 100%; padding: 12px; border: 0; border-left: 2px solid transparent; background: none; color: var(--muted); font: inherit; font-size: 13px; text-align: left; cursor: pointer; transition: color .2s ease, background .2s ease; }
.customer-logout-button:hover { color: var(--gold-bright); background: var(--panel); border-left-color: var(--gold); }
.customer-logout-button:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.summary-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.summary-card { display: grid; gap: 10px; align-content: start; min-width: 0; padding: 20px 20px 18px; border: 1px solid var(--panel-line); background: linear-gradient(150deg, rgba(20, 31, 45, .9), rgba(12, 19, 29, .96)); }
.summary-label { color: var(--muted); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; }
.summary-value { font: 600 clamp(21px, 2.4vw, 28px) var(--display); overflow-wrap: anywhere; }
.summary-value.is-gold { color: var(--gold-bright); }
.summary-value.is-muted { color: var(--muted); font-size: clamp(15px, 1.6vw, 18px); }
.summary-foot { color: #8e9baa; font-size: 11px; overflow-wrap: anywhere; }
.summary-foot small { color: #6f7c8c; font-size: 10px; }
.split-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; align-items: start; }
.split-grid .account-card { display: grid; gap: 0; align-content: start; }
.split-grid .button { margin-top: 20px; justify-self: start; }
.allocation-list, .activity-list, .plain-list { display: grid; gap: 14px; margin: 18px 0 0; padding: 0; list-style: none; }
.allocation-item { display: grid; gap: 7px; }
.allocation-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.allocation-name { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; }
.allocation-name small { color: #78889a; font-size: 9px; }
.allocation-value { color: var(--gold-bright); font: 500 13px var(--display); }
.allocation-track { display: block; height: 5px; background: var(--panel); }
.allocation-bar { display: block; height: 100%; background: linear-gradient(90deg, var(--gold), var(--gold-bright)); }
.allocation-amount { color: #8e9baa; font-size: 11px; }
.allocation-amount small { color: #6f7c8c; font-size: 10px; }
.asset-icon.solana { background: rgba(134, 198, 161, .13); color: #86c6a1; }
.asset-icon.cash { background: rgba(151, 165, 182, .13); color: var(--muted); }
.activity-item { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--panel-line); }
.activity-item:last-child { border-bottom: 0; }
.activity-icon { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.activity-icon.return { background: var(--gold); }
.activity-icon.investment { background: var(--blue); }
.activity-icon.credit { background: #86c6a1; }
.activity-icon.fee { background: #6f7c8c; }
.activity-body { display: grid; min-width: 0; }
.activity-body strong { font-size: 12px; font-weight: 600; overflow-wrap: anywhere; }
.activity-body small { color: var(--muted); font-size: 10px; }
.activity-amount { font: 500 12px var(--display); white-space: nowrap; }
.is-positive { color: #86c6a1; }
.is-negative { color: #e0a08f; }

/* Simulated portfolio chart. The SVG scales to the card, the axes stay in HTML. */
.demo-chart { margin: 16px 0 0; }
.chart-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.chart-header h3 { margin: 0 0 5px; font-size: 15px; font-weight: 600; }
.chart-legend { display: flex; flex-wrap: wrap; gap: 16px; }
.chart-key { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); font-size: 10px; }
.chart-key-line { display: inline-block; width: 16px; height: 2px; background: var(--gold); }
.chart-key-btc { background: var(--blue); opacity: .8; }
.chart-frame { display: grid; grid-template-columns: 58px minmax(0, 1fr); gap: 8px; margin-top: 20px; }
.chart-yaxis { position: relative; height: 240px; }
.chart-yaxis-label { position: absolute; right: 0; transform: translateY(-50%); color: #718094; font-size: 9px; white-space: nowrap; }
.chart-plot { position: relative; height: 240px; }
.chart-svg { display: block; width: 100%; height: 240px; overflow: visible; }
.chart-gridline { stroke: rgba(169, 187, 211, .11); stroke-width: 1; vector-effect: non-scaling-stroke; }
.chart-area { fill: url(#demoAreaFill); }
.chart-line { fill: none; stroke: var(--gold); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; filter: drop-shadow(0 0 6px rgba(217, 187, 125, .35)); }
.chart-btc { fill: none; stroke: var(--blue); stroke-width: 1.5; stroke-dasharray: 5 4; opacity: .85; vector-effect: non-scaling-stroke; }
.chart-points { position: absolute; inset: 0; }
.chart-point { position: absolute; width: 6px; height: 6px; margin: -3px 0 0 -3px; border-radius: 50%; background: var(--gold); opacity: 0; transition: opacity .2s ease; }
.chart-point.is-last { opacity: 1; box-shadow: 0 0 0 3px rgba(217, 187, 125, .18); }
.chart-plot:hover .chart-point { opacity: .65; }
.chart-plot:hover .chart-point.is-last { opacity: 1; }
.chart-xaxis { position: relative; height: 18px; margin: 10px 0 0 66px; }
.chart-xaxis-label { position: absolute; top: 0; transform: translateX(-50%); color: #748195; font-size: 9px; white-space: nowrap; }
.chart-xaxis-label[style*="text-align: start"] { transform: none; }
.chart-xaxis-label[style*="text-align: end"] { transform: translateX(-100%); }

/* Read-only data tables. */
.table-scroll { margin-top: 20px; overflow-x: auto; }
.table-scroll:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.data-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.data-table th, .data-table td { padding: 12px 14px; border-bottom: 1px solid var(--panel-line); text-align: left; white-space: nowrap; }
.data-table thead th { color: var(--muted); font-size: 9px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; }
.data-table tbody th { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.data-table tbody th small { color: #78889a; font-size: 9px; font-weight: 400; }
.data-table td small { color: #78889a; font-size: 10px; }
.data-table tfoot th, .data-table tfoot td { color: var(--gold-bright); border-bottom: 0; }
.status-badge.is-active { background: rgba(217, 187, 125, .14); }
.progress { display: inline-block; width: 74px; height: 5px; margin-right: 8px; background: var(--panel); vertical-align: middle; }
.progress i { display: block; height: 100%; background: var(--gold); }
.plain-list { gap: 10px; }
.plain-list li { position: relative; padding-left: 16px; color: #9ca9b8; font-size: 12px; }
.plain-list li::before { position: absolute; top: 8px; left: 0; width: 5px; height: 5px; background: var(--gold); content: ""; }
.plain-list a { color: var(--gold-bright); text-decoration: underline; }
.button-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.button[disabled] { cursor: not-allowed; opacity: .45; }
.account-plans { display: grid; grid-template-columns: 1fr; gap: 15px; margin-top: 0; }
.account-plans .plan-card h3 { margin-top: 20px; }
.plan-detail .plan-amount { margin-top: 22px; }
.plan-detail .plan-metrics { max-width: 320px; }

@media (max-width: 1100px) {
  .summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .split-grid { grid-template-columns: 1fr; }
  .chart-frame { grid-template-columns: 46px minmax(0, 1fr); }
  .chart-xaxis { margin-left: 54px; }
}
@media (max-width: 600px) {
  .summary-grid { grid-template-columns: 1fr; }
  .chart-frame { grid-template-columns: 1fr; }
  .chart-yaxis { display: none; }
  .chart-xaxis { margin-left: 0; }
  .chart-plot, .chart-svg { height: 200px; }
}
@media (max-width: 480px) {
  .account-section { padding-block: 36px; }
  .account-card { padding: 22px; }
  .account-details > div { grid-template-columns: 1fr; gap: 4px; }
}


@media (max-width: 480px) {
  .account-section { padding-block: 36px; }
  .account-card { padding: 22px; }
  .account-details > div { grid-template-columns: 1fr; gap: 4px; }
}
