:root {
  --bg: #07131a;
  --bg-deep: #031018;
  --panel: rgba(10, 23, 32, 0.82);
  --panel-strong: rgba(12, 28, 39, 0.94);
  --line: rgba(125, 225, 255, 0.12);
  --line-strong: rgba(125, 225, 255, 0.24);
  --text: #edf9ff;
  --muted: #93aab7;
  --teal: #2dd4bf;
  --teal-deep: #0ea5a4;
  --sand: #0e1d27;
  --gold: #60a5fa;
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.42);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 14px;
  --max-width: 1220px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  font-family: "Avenir Next", "PingFang SC", "Hiragino Sans GB", "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top, rgba(24, 114, 128, 0.2), transparent 28%),
    linear-gradient(180deg, #07131a 0%, #081923 52%, #061018 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(125, 225, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(125, 225, 255, 0.04) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(circle at center, rgba(0, 0, 0, 0.95), transparent 78%);
  pointer-events: none;
  z-index: -3;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

.site-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -2;
}

.site-glow {
  position: absolute;
  width: 44vw;
  height: 44vw;
  border-radius: 50%;
  filter: blur(18px);
  opacity: 0.52;
}

.site-glow-left {
  top: -12vw;
  left: -9vw;
  background: radial-gradient(circle, rgba(96, 165, 250, 0.24), transparent 68%);
}

.site-glow-right {
  top: 8vw;
  right: -12vw;
  background: radial-gradient(circle, rgba(45, 212, 191, 0.2), transparent 68%);
}

.layout {
  width: min(calc(100% - 32px), var(--max-width));
  margin: 22px auto 40px;
}

.topbar,
.hero-panel,
.band,
.story-card,
.info-card,
.feature-card,
.metric-card,
.route-card,
.page-hero,
.product-detail-card,
.table-card,
.timeline-card,
.risk-banner,
.contact-card,
.submission-card,
.cta-panel,
.footer {
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.topbar {
  position: sticky;
  top: 14px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 18px;
  border-radius: 999px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.brand-symbol {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-deep) 100%);
  color: #fff7ea;
  font-size: 0.94rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.brand-text {
  display: grid;
  gap: 3px;
}

.brand-text strong {
  font-size: 0.98rem;
}

.brand-text small,
.wallet-status,
.lead,
.story-card p,
.info-card p,
.feature-card p,
.metric-card p,
.route-card p,
.product-detail-card p,
.product-detail-card li,
.timeline-card p,
.risk-banner p,
.contact-card p,
.submission-entry p,
.footer p,
.empty-state,
.form-feedback {
  color: var(--muted);
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: transparent;
  padding: 10px 14px;
}

.topnav,
.topbar-actions,
.hero-actions,
.inline-actions,
.cta-actions,
.footer-links {
  display: flex;
  align-items: center;
  gap: 14px;
}

.language-switcher {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
}

.language-switcher span {
  font-size: 0.92rem;
}

.language-switcher select {
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  padding: 8px 12px;
  color: var(--text);
}

.topnav a {
  padding: 10px 12px;
  border-radius: 999px;
  color: var(--muted);
}

.topnav a.is-current,
.topnav a:hover,
.topnav a:focus-visible {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
}

.flow-entry,
.breadcrumb-bar,
.stepper,
.journey-card {
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.breadcrumb-bar,
.stepper {
  margin-top: 20px;
  border-radius: var(--radius-lg);
}

.breadcrumb-bar {
  padding: 14px 18px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--muted);
  font-size: 0.95rem;
}

.breadcrumb .is-current {
  color: var(--text);
  font-weight: 700;
}

.stepper {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 16px;
}

.step-item {
  padding: 14px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
}

.step-item small {
  display: block;
  color: var(--muted);
  margin-bottom: 8px;
}

.step-item strong {
  display: block;
}

.step-item.is-active {
  background: linear-gradient(135deg, rgba(13, 91, 83, 0.14), rgba(10, 63, 57, 0.08));
  border-color: rgba(13, 91, 83, 0.24);
}

.flow-entry {
  padding: 28px;
  border-radius: var(--radius-xl);
}

.journey-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.journey-card {
  padding: 22px;
  border-radius: var(--radius-lg);
}

.journey-card h3 {
  margin: 0 0 10px;
}

.journey-card p {
  margin: 0 0 16px;
  color: var(--muted);
  line-height: 1.75;
}

.wallet-status,
.wallet-chip {
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  white-space: nowrap;
}

.section,
.cta-panel {
  margin-top: 26px;
}

.hero-panel {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
  padding: 40px;
  margin-top: 24px;
  border-radius: var(--radius-xl);
  background:
    linear-gradient(135deg, rgba(10, 24, 34, 0.96), rgba(7, 18, 27, 0.86)),
    var(--panel);
}

.hero-copy h1,
.page-hero h1,
.section-head h2,
.cta-panel h2,
.wallet-dialog-head h2 {
  margin: 0;
  font-family: "Iowan Old Style", "Palatino Linotype", "Songti SC", serif;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.hero-copy h1 {
  max-width: 11ch;
  font-size: clamp(3rem, 7vw, 6rem);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--teal-deep);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.lead {
  max-width: 64ch;
  margin: 18px 0 0;
  font-size: 1.05rem;
  line-height: 1.8;
}

.small-lead {
  margin-top: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
}

.button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

.button-primary {
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-deep) 100%);
  color: #fff7ec;
}

.button-secondary,
.button-ghost {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--line-strong);
  color: var(--text);
}

.hero-metrics,
.stack-grid,
.card-grid,
.timeline,
.contact-layout {
  display: grid;
  gap: 18px;
}

.metric-card,
.story-card,
.info-card,
.feature-card,
.route-card,
.product-detail-card,
.timeline-card,
.contact-card {
  padding: 24px;
  border-radius: var(--radius-lg);
}

.metric-card span,
.timeline-card span,
.product-badge {
  display: inline-flex;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(45, 212, 191, 0.12);
  color: #8bf5e5;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.metric-card strong,
.route-card strong,
.submission-summary strong {
  display: block;
  margin-top: 18px;
  font-size: 1.25rem;
}

.accent-card {
  background:
    linear-gradient(135deg, rgba(10, 83, 92, 0.96), rgba(6, 44, 56, 0.98)),
    var(--panel);
}

.accent-card,
.accent-card p {
  color: #f7f2e6;
}

.accent-card span {
  background: rgba(255, 255, 255, 0.14);
  color: rgba(247, 242, 230, 0.88);
}

.band {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 22px;
  padding: 18px 22px;
  border-radius: var(--radius-lg);
}

.band span {
  display: inline-flex;
  margin-bottom: 8px;
  color: var(--teal-deep);
  font-weight: 800;
}

.section-head {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
}

.section-head h2,
.cta-panel h2 {
  max-width: 12ch;
  font-size: clamp(2rem, 5vw, 3.8rem);
}

.two-column {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 18px;
}

.story-card {
  display: grid;
  align-content: center;
  min-height: 100%;
}

.story-card p {
  margin: 0;
  font-size: 1.16rem;
  line-height: 1.9;
}

.stack-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.info-card h3,
.feature-card h3,
.product-detail-card h2,
.timeline-card h2,
.contact-card h2 {
  margin: 0 0 10px;
  font-size: 1.3rem;
}

.card-grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card-grid-2,
.contact-layout {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.route-card {
  position: relative;
  overflow: hidden;
}

.route-card::after,
.product-detail-card::after {
  content: "";
  position: absolute;
  width: 140px;
  height: 140px;
  right: -40px;
  bottom: -48px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(211, 154, 71, 0.2), transparent 68%);
}

.page-hero,
.table-card,
.submission-card,
.cta-panel {
  padding: 28px;
  border-radius: var(--radius-xl);
}

.page-hero h1 {
  font-size: clamp(2.6rem, 6vw, 4.8rem);
}

.product-detail-card ul {
  margin: 16px 0 0;
  padding-left: 18px;
  line-height: 1.8;
}

.table-card {
  overflow-x: auto;
}

.product-workbench,
.portfolio-summary,
.allocation-grid,
.dashboard-grid,
.dashboard-list,
.risk-mini-grid,
.position-form-grid {
  display: grid;
  gap: 18px;
}

.product-workbench {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.workbench-card,
.portfolio-panel,
.allocation-card {
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.workbench-card,
.portfolio-panel {
  padding: 24px;
  border-radius: var(--radius-xl);
}

.workbench-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.workbench-head h3 {
  margin: 10px 0 0;
  font-size: 1.36rem;
}

.product-entry-card {
  display: grid;
  gap: 14px;
}

.entry-threshold {
  margin: 0;
  color: var(--teal-deep);
  font-weight: 700;
}

.product-entry-points {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.8;
}

.rate-pill {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.46);
  font-size: 0.82rem;
  color: var(--muted);
}

.rate-pill span {
  color: var(--teal-deep);
  font-size: 1.2rem;
}

.product-form {
  display: grid;
  gap: 14px;
}

.approval-card {
  display: grid;
  gap: 16px;
  padding: 18px;
  border: 1px solid rgba(45, 212, 191, 0.2);
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(12, 31, 42, 0.88), rgba(8, 22, 31, 0.88)),
    rgba(255, 255, 255, 0.03);
}

.approval-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.approval-head strong {
  display: block;
  font-size: 1rem;
}

.approval-head p,
.approval-grid span {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.approval-status-badge {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.05);
  white-space: nowrap;
}

.approval-status-badge.is-approved {
  border-color: rgba(45, 212, 191, 0.3);
  color: var(--teal);
}

.approval-status-badge.is-pending {
  border-color: rgba(96, 165, 250, 0.32);
  color: var(--gold);
}

.approval-status-badge.is-revoked,
.approval-status-badge.is-none {
  border-color: rgba(248, 113, 113, 0.24);
  color: #fca5a5;
}

.approval-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.approval-grid article {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.04);
}

.approval-grid small {
  display: block;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
}

.approval-grid strong {
  display: block;
  margin-top: 8px;
  font-size: 1.08rem;
  line-height: 1.4;
}

.approval-note {
  margin: 0;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid var(--line);
}

.approval-note.is-ready {
  color: var(--teal);
  border-color: rgba(45, 212, 191, 0.22);
  background: rgba(45, 212, 191, 0.08);
}

.approval-note.is-warning {
  color: #f7d58b;
  border-color: rgba(245, 158, 11, 0.22);
  background: rgba(245, 158, 11, 0.08);
}

.approval-actions {
  flex-wrap: wrap;
}

.approval-feedback {
  min-height: 20px;
}

.product-form label {
  display: grid;
  gap: 8px;
}

.product-form span,
.workbench-metrics small,
.portfolio-summary small,
.allocation-card small {
  font-size: 0.92rem;
  font-weight: 700;
}

.product-form input {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.55);
  padding: 14px 16px;
  color: var(--text);
}

.workbench-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.workbench-metrics div,
.risk-mini-grid div,
.portfolio-summary article,
.allocation-card {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.48);
}

.workbench-metrics strong,
.risk-mini-grid strong,
.portfolio-summary strong,
.allocation-card strong {
  display: block;
  margin-top: 8px;
  font-size: 1.25rem;
}

.risk-mini-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.portfolio-panel {
  display: grid;
  gap: 18px;
}

.portfolio-summary {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.portfolio-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.allocation-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.dashboard-grid {
  grid-template-columns: 1.2fr 0.8fr;
}

.dashboard-side {
  display: grid;
  gap: 18px;
}

.dashboard-card h3 {
  margin: 0 0 14px;
}

.dashboard-list div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.dashboard-list div:last-child {
  border-bottom: 0;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}

.comparison-table th,
.comparison-table td {
  padding: 16px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

.comparison-table th {
  color: var(--teal-deep);
  font-size: 0.88rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.timeline {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.timeline-card {
  min-height: 100%;
}

.tall-card {
  min-height: 240px;
}

.risk-banner {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  padding: 24px;
  border-radius: var(--radius-xl);
}

.risk-banner strong {
  display: block;
  margin-bottom: 10px;
  font-size: 1.08rem;
}

.cta-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.contact-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 12px;
}

.contact-form {
  display: grid;
  gap: 14px;
}

.contact-form label {
  display: grid;
  gap: 8px;
}

.contact-form span {
  font-size: 0.95rem;
  font-weight: 700;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.55);
  padding: 14px 16px;
  color: var(--text);
}

.contact-form textarea {
  resize: vertical;
}

.form-feedback {
  margin: 0;
  min-height: 24px;
}

.submission-card {
  display: grid;
  gap: 18px;
}

.submission-summary {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.submission-list {
  display: grid;
  gap: 12px;
}

.submission-entry {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.48);
}

.submission-entry strong,
.submission-entry time {
  display: block;
}

.submission-entry time {
  margin: 6px 0 10px;
  color: var(--muted);
  font-size: 0.92rem;
}

.position-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.position-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.button-inline {
  min-height: 36px;
  padding: 0 12px;
  font-size: 0.92rem;
}

.button-danger {
  border-color: rgba(126, 34, 34, 0.2);
  background: rgba(153, 27, 27, 0.08);
  color: #8b2020;
}

.empty-state {
  margin: 0;
}

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 26px;
  padding: 24px;
  border-radius: var(--radius-lg);
}

.wallet-dialog {
  width: min(680px, calc(100% - 24px));
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 0;
  background: rgba(251, 246, 239, 0.96);
  box-shadow: 0 32px 80px rgba(23, 18, 11, 0.22);
}

.wallet-dialog::backdrop {
  background: rgba(14, 12, 9, 0.4);
  backdrop-filter: blur(4px);
}

.wallet-shell {
  padding: 28px;
}

.position-dialog {
  width: min(760px, calc(100% - 24px));
}

.wallet-dialog-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.dialog-close {
  width: 42px;
  height: 42px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: transparent;
  font-size: 1.4rem;
  cursor: pointer;
}

.wallet-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.wallet-option {
  display: grid;
  gap: 10px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.56);
  text-align: left;
  cursor: pointer;
}

.wallet-option strong {
  font-size: 1.06rem;
}

.wallet-option span {
  color: var(--muted);
}

.support-widget {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 40;
}

.support-launcher {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 18px;
  border: 1px solid rgba(13, 91, 83, 0.2);
  border-radius: 999px;
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-deep) 100%);
  color: #fff8ee;
  box-shadow: 0 18px 40px rgba(10, 63, 57, 0.25);
  cursor: pointer;
}

.support-welcome {
  position: absolute;
  right: 0;
  bottom: 132px;
  width: min(340px, calc(100vw - 24px));
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 250, 244, 0.98);
  box-shadow: 0 26px 64px rgba(26, 20, 12, 0.18);
  backdrop-filter: blur(16px);
}

.support-welcome strong {
  display: block;
  margin-bottom: 8px;
}

.support-welcome p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.support-welcome-actions {
  display: flex;
  gap: 10px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.support-badge {
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: #fff3da;
  color: var(--teal-deep);
  font-size: 0.8rem;
  font-weight: 800;
}

.support-shell {
  position: absolute;
  right: 0;
  bottom: 64px;
  width: min(380px, calc(100vw - 28px));
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 250, 244, 0.96);
  box-shadow: 0 30px 70px rgba(26, 20, 12, 0.18);
  backdrop-filter: blur(16px);
  overflow: hidden;
}

.support-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 18px 14px;
  border-bottom: 1px solid var(--line);
}

.support-header strong,
.support-header small {
  display: block;
}

.support-header small {
  margin-top: 4px;
  color: var(--muted);
}

.support-close {
  width: 36px;
  height: 36px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}

.support-quick {
  display: flex;
  gap: 8px;
  padding: 12px 18px 0;
  overflow-x: auto;
}

.support-chip {
  flex: 0 0 auto;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.65);
  color: var(--muted);
  cursor: pointer;
}

.support-messages {
  display: grid;
  gap: 10px;
  max-height: 320px;
  padding: 16px 18px;
  overflow-y: auto;
}

.support-message {
  display: flex;
}

.support-message.is-user {
  justify-content: flex-end;
}

.support-bubble {
  max-width: 84%;
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
}

.support-message.is-user .support-bubble {
  background: linear-gradient(135deg, rgba(13, 91, 83, 0.12), rgba(10, 63, 57, 0.08));
  border-color: rgba(13, 91, 83, 0.18);
}

.support-bubble strong,
.support-bubble time {
  display: block;
}

.support-bubble p {
  margin: 8px 0;
  line-height: 1.7;
  color: var(--text);
}

.support-bubble time {
  color: var(--muted);
  font-size: 0.85rem;
}

.support-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  padding: 0 18px 18px;
}

.support-input {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  padding: 12px 14px;
  color: var(--text);
}

.position-manage-summary {
  margin: 0 0 16px;
  color: var(--muted);
}

.position-form-grid label {
  display: grid;
  gap: 8px;
}

.position-form-grid input {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.55);
  padding: 14px 16px;
  color: var(--text);
}

.is-hidden {
  display: none !important;
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
}

.reveal.is-visible {
  animation: reveal-up 640ms ease forwards;
}

@keyframes reveal-up {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1080px) {
  .hero-panel,
  .two-column,
  .card-grid-3,
  .card-grid-2,
  .timeline,
  .product-workbench,
  .portfolio-summary,
  .allocation-grid,
  .dashboard-grid,
  .journey-grid,
  .stepper,
  .risk-banner,
  .contact-layout {
    grid-template-columns: 1fr;
  }

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

  .cta-panel {
    flex-direction: column;
    align-items: flex-start;
  }

  .wallet-options {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .layout {
    width: min(calc(100% - 18px), var(--max-width));
  }

  .topbar {
    flex-wrap: wrap;
    border-radius: 28px;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .topnav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    padding-top: 12px;
    border-top: 1px solid var(--line);
  }

  .topnav.is-open {
    display: flex;
  }

  .topbar-actions {
    width: 100%;
    justify-content: space-between;
  }

  .hero-panel,
  .page-hero,
  .cta-panel,
  .submission-card {
    padding: 22px;
  }

  .hero-copy h1 {
    max-width: 100%;
    font-size: clamp(2.5rem, 12vw, 4.6rem);
  }

  .section-head h2,
  .cta-panel h2,
  .page-hero h1 {
    max-width: 100%;
  }

  .band,
  .stack-grid,
  .workbench-metrics,
  .risk-mini-grid,
  .approval-grid {
    grid-template-columns: 1fr;
  }

  .topbar-actions,
  .hero-actions,
  .inline-actions,
  .cta-actions,
  .footer,
  .footer-links {
    flex-direction: column;
    align-items: flex-start;
  }

  .contact-card-head {
    flex-direction: column;
  }

  .position-header {
    flex-direction: column;
  }

  .approval-head {
    flex-direction: column;
  }

  .support-widget {
    right: 10px;
    bottom: 10px;
  }

  .support-shell {
    width: min(360px, calc(100vw - 20px));
    right: 0;
  }

  .support-welcome {
    width: min(340px, calc(100vw - 20px));
    right: 0;
  }
}
