@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap");

:root {
  --bg: #f4f7f9;
  --bg-sidebar: #ffffff;
  --bg-card: #ffffff;
  --border: #e5e9ef;
  --border-strong: #d0d7e2;
  --text: #1a2332;
  --text-muted: #6c757d;
  --text-dim: #94a3b8;
  --primary: #0096ff;
  --primary-hover: #0078cc;
  --primary-light: #e7f4ff;
  --success: #22c55e;
  --warning: #f59e0b;
  --danger: #ef4444;
  --radius: 8px;
  --radius-lg: 12px;
  --shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 8px 30px rgba(15, 23, 42, 0.12);
  --font: "Inter", system-ui, -apple-system, sans-serif;
  --sidebar-width: 240px;
}

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

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  min-height: 100vh;
}

body.modal-open {
  overflow: hidden;
}

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Embedded portal (no sidebar — loads inside CRM) */
.portal-embed {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
}

.embed-topbar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 32px;
  background: #fff;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}

.embed-topbar__brand {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
}

.embed-topbar__section {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
}

.embed-topbar__right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 13px;
}

.embed-topbar__user {
  color: var(--text-muted);
}

.embed-topbar__logout {
  color: var(--text-muted);
  font-weight: 500;
  text-decoration: none;
}

.embed-topbar__logout:hover {
  color: var(--primary);
  text-decoration: none;
}

.embed-content {
  flex: 1;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px 48px;
}

/* Page header */
.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0 20px;
  gap: 16px;
  flex-wrap: wrap;
}

.page-header__title {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0;
  color: var(--text);
}

.page-header__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* Cards */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  margin-bottom: 24px;
  box-shadow: var(--shadow);
}

.card--table {
  padding-bottom: 20px;
}

.card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  gap: 12px;
}

.card__title {
  font-size: 1rem;
  font-weight: 700;
  margin: 0;
}

.card__meta {
  font-size: 13px;
  color: var(--text-muted);
}

/* Funds card */
.funds-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  margin-bottom: 24px;
  box-shadow: var(--shadow);
}

.funds-card__header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.funds-card__icon {
  font-size: 20px;
}

.funds-card__title {
  font-size: 1rem;
  font-weight: 700;
  margin: 0;
  flex: 1;
}

.funds-card__currency {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--bg);
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
}

.funds-card__balance {
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}

.funds-card__stats {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
}

.funds-card__stat-label {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.funds-card__stat-value {
  font-size: 1.125rem;
  font-weight: 700;
}

.funds-card__stat-value--accent {
  color: var(--primary);
}

/* Alerts */
.alert {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px 20px;
  border-radius: var(--radius);
  margin-bottom: 24px;
  font-size: 14px;
}

.alert p {
  margin: 4px 0 0;
  color: var(--text-muted);
}

.alert--warning {
  background: #fffbeb;
  border: 1px solid #fde68a;
  color: #92400e;
}

.alert--info {
  background: var(--primary-light);
  border: 1px solid #b3ddff;
  color: #0369a1;
}

.alert__icon {
  font-size: 20px;
}

/* Badges */
.badge {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
}

.badge--warning {
  background: #fef3c7;
  color: #b45309;
}

/* Table */
.table-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.table-toolbar__per-page {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
}

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

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.data-table th {
  text-align: left;
  padding: 12px 16px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  background: #fafbfc;
}

.data-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}

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

.data-table__loading td,
.data-table__error {
  text-align: center;
  color: var(--text-muted);
  padding: 32px !important;
}

.status-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.status-badge--pending {
  background: #fef3c7;
  color: #b45309;
}

.status-badge--approved {
  background: #dcfce7;
  color: #15803d;
}

.status-badge--rejected {
  background: #fee2e2;
  color: #b91c1c;
}

.table-empty {
  text-align: center;
  padding: 48px 24px;
  color: var(--text-muted);
}

.table-empty__icon {
  font-size: 40px;
  margin-bottom: 12px;
  opacity: 0.5;
}

.table-empty__sub {
  font-size: 14px;
  color: var(--text-dim);
  margin-top: 8px;
}

.table-pagination {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}

.table-pagination__btn {
  padding: 8px 14px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: #fff;
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  font-family: inherit;
}

.table-pagination__btn:hover:not(:disabled) {
  border-color: var(--primary);
  color: var(--primary);
}

.table-pagination__btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.table-pagination__info {
  font-size: 13px;
  color: var(--text-muted);
}

.table-pagination__goto {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-muted);
}

/* Growth options */
.growth-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.growth-option {
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  background: #fafbfc;
}

.growth-option--best {
  border-color: var(--primary);
  background: var(--primary-light);
}

.growth-option--active {
  border-color: var(--success);
  background: #f0fdf4;
}

.growth-option__badge {
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--primary);
  background: #fff;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid var(--primary);
}

.growth-option__label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 4px;
}

.growth-option__title {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 8px;
}

.growth-option__value {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 4px;
}

.growth-option__mult {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.growth-option__desc {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.growth-option__vs {
  font-size: 11px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 12px;
}

/* Hero brief */
.hero-brief {
  margin-bottom: 24px;
}

.hero-brief__headline {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0 0 12px;
  line-height: 1.2;
}

.hero-brief__base {
  color: var(--text);
}

.hero-brief__accent {
  color: var(--primary);
}

.hero-brief__sub {
  font-size: 14px;
  color: var(--text-muted);
  margin: 0 0 16px;
  max-width: 640px;
}

.hero-brief__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  display: inline-flex;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1px solid var(--border-strong);
  background: #fff;
  color: var(--text-muted);
}

/* Chart bars */
.chart-bars {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 32px;
  min-height: 220px;
  padding: 8px 0;
}

.chart-bar-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  max-width: 160px;
}

.chart-bar-col__value {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 4px;
}

.chart-bar-col__mult {
  font-size: 11px;
  color: var(--text-dim);
  margin-bottom: 12px;
  text-align: center;
}

.chart-bar {
  width: 100%;
  max-width: 100px;
  height: 160px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  border-radius: 8px 8px 4px 4px;
  overflow: hidden;
  background: #f1f5f9;
}

.chart-bar__profit {
  background: linear-gradient(180deg, #33aaff, var(--primary));
  width: 100%;
  flex-shrink: 0;
}

.chart-bar__principal {
  background: #94a3b8;
  width: 100%;
  flex-shrink: 0;
}

.chart-bar-col__label {
  margin-top: 12px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  text-align: center;
}

/* Lock modal tabs */
.lock-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.lock-tab {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 14px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: #fafbfc;
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  color: var(--text-muted);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}

.lock-tab.is-active {
  border-color: var(--primary);
  background: var(--primary-light);
  color: var(--primary);
}

.lock-tab__badge {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
}

.lock-tab-panel {
  display: none;
}

.lock-tab-panel.is-active {
  display: block;
}

.lock-detail-panel__vs {
  margin-top: 12px;
  font-size: 11px;
  font-weight: 600;
  color: var(--primary);
}

.lock-confirm-box {
  text-align: center;
  padding: 16px 8px 8px;
}

.lock-confirm-box__icon {
  font-size: 40px;
  margin-bottom: 12px;
}

.lock-confirm-box__title {
  font-size: 1.125rem;
  font-weight: 700;
  margin: 0 0 12px;
}

.lock-confirm-box__text {
  font-size: 14px;
  color: var(--text-muted);
  margin: 0 0 8px;
  line-height: 1.6;
}

.lock-confirm-box__hint {
  font-size: 13px;
  color: var(--text-dim);
  margin: 0;
}

/* Lock modal — chart & option card */
.lock-modal-chart {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 20px;
  background: #fafbfc;
}

.lock-modal-chart__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.lock-modal-chart__title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}

.lock-modal-chart__meta {
  font-size: 11px;
  color: var(--text-muted);
}

.chart-bars--compact {
  min-height: 140px;
  gap: 16px;
}

.chart-bars--compact .chart-bar {
  height: 100px;
  max-width: 72px;
}

.chart-bars--compact .chart-bar-col__value {
  font-size: 1rem;
}

.chart-bars--compact .chart-bar-col__mult {
  font-size: 10px;
  margin-bottom: 8px;
}

.lock-option-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  margin-bottom: 16px;
  background: #fff;
}

.lock-option-card--best {
  border-color: var(--primary);
  background: var(--primary-light);
}

.lock-option-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.lock-option-card__option {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-dim);
}

.lock-option-card__badge {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--primary);
}

.lock-option-card__title {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 4px;
}

.lock-option-card__desc {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.lock-option-card__metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 28px;
  margin-bottom: 12px;
}

.lock-option-card__metric-label {
  display: block;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 2px;
}

.lock-option-card__metric-value {
  font-size: 1.125rem;
  color: var(--text);
}

.lock-option-card__metric-value--accent {
  color: var(--primary);
  font-size: 14px;
}

.lock-option-card__note {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.lock-ack {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 4px;
  cursor: pointer;
  line-height: 1.5;
}

.lock-ack input {
  margin-top: 3px;
  accent-color: var(--primary);
  flex-shrink: 0;
}

.modal__footer--single {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 22px;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, box-shadow 0.15s;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn--primary {
  background: var(--primary);
  color: #fff;
}

.btn--primary:hover:not(:disabled) {
  background: var(--primary-hover);
}

.btn--outline {
  background: #fff;
  color: var(--primary);
  border: 1px solid var(--primary);
}

.btn--outline:hover:not(:disabled) {
  background: var(--primary-light);
}

.btn--pill {
  border-radius: 999px;
}

.btn--block {
  width: 100%;
}

/* Modals */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

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

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
}

.modal__dialog {
  position: relative;
  width: 100%;
  max-width: 480px;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.modal__dialog--wide {
  max-width: 640px;
}

.modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 28px 0;
  gap: 16px;
}

.modal__title {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0;
}

.modal__close {
  background: none;
  border: none;
  font-size: 28px;
  line-height: 1;
  color: var(--text-dim);
  cursor: pointer;
  padding: 0;
}

.modal__close:hover {
  color: var(--text);
}

.modal__body {
  padding: 20px 28px 28px;
}

.modal__subtitle {
  font-size: 14px;
  color: var(--text-muted);
  margin: 0 0 20px;
}

.modal__footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
}

.modal-empty {
  text-align: center;
  padding: 24px 0;
  color: var(--text-muted);
}

.modal-empty__icon {
  font-size: 36px;
  margin-bottom: 12px;
}

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

/* Lock modal */
.lock-stat-box {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-bottom: 16px;
  background: #fafbfc;
}

.lock-stat-box__label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}

.lock-stat-box__value {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--primary);
}

.lock-detail-panel {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  min-height: 140px;
  margin-bottom: 20px;
  background: #fff;
}

.lock-detail-panel__title {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 8px;
}

.lock-detail-panel__desc {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.lock-detail-panel__metrics {
  display: flex;
  gap: 32px;
}

.lock-detail-panel__metric-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 4px;
}

.lock-detail-panel__metrics strong {
  font-size: 1.25rem;
  color: var(--text);
}

.lock-disclaimer {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0 0 8px;
}

/* Forms */
.form-grid {
  display: grid;
  gap: 16px;
}

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

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-field label,
.form-field > span:first-child {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.field-input {
  width: 100%;
  padding: 10px 14px;
  font-size: 14px;
  font-family: inherit;
  color: var(--text);
  background: #fff;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.field-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 150, 255, 0.15);
}

.field-input::placeholder {
  color: var(--text-dim);
}

.field-input--search {
  max-width: 320px;
}

.field-input--select {
  width: auto;
  min-width: 70px;
  padding: 6px 10px;
}

.field-input--page {
  width: 56px;
  padding: 6px 8px;
  text-align: center;
}

textarea.field-input {
  resize: vertical;
  min-height: 72px;
}

.form-hint {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: var(--text-dim);
}

.form-error {
  font-size: 13px;
  color: var(--danger);
}

.form-field--error .field-input {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.12);
}

/* Wizard */
.wizard-steps {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.wizard-step {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-dim);
  border: 1px solid var(--border);
  background: #fafbfc;
}

.wizard-step__num {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  background: var(--border);
  color: var(--text-muted);
}

.wizard-step.is-active {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-light);
}

.wizard-step.is-active .wizard-step__num {
  background: var(--primary);
  color: #fff;
}

.wizard-step.is-done {
  color: var(--success);
  border-color: #bbf7d0;
}

.wizard-step.is-done .wizard-step__num {
  background: #dcfce7;
  color: var(--success);
}

.wizard-panel {
  display: none;
}

.wizard-panel.is-active {
  display: block;
}

.wizard-panel__lead {
  font-size: 14px;
  color: var(--text-muted);
  margin: 0 0 16px;
}

.wizard-actions {
  margin-top: 24px;
  display: flex;
  justify-content: flex-end;
}

.wizard-actions--split {
  justify-content: space-between;
}

.amount-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 20px;
}

.amount-chip {
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: #fff;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
}

.amount-chip:hover,
.amount-chip.is-active {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-light);
}

.fee-card {
  background: #fafbfc;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
}

.fee-row {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  color: var(--text-muted);
  padding: 6px 0;
}

.fee-row--total {
  border-top: 1px solid var(--border);
  margin-top: 8px;
  padding-top: 12px;
  font-weight: 700;
  color: var(--text);
}

.fee-row--total span:last-child {
  color: var(--primary);
}

.method-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 8px;
}

.method-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 20px 12px;
  border-radius: var(--radius);
  border: 1px solid var(--border-strong);
  background: #fff;
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.method-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.method-card.is-selected {
  border-color: var(--primary);
  box-shadow: 0 0 0 1px var(--primary);
  background: var(--primary-light);
}

.method-card__icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 10px;
}

.method-card__name {
  font-size: 14px;
  font-weight: 700;
}

.method-card__hint {
  font-size: 11px;
  color: var(--text-dim);
  margin-top: 4px;
}

.method-fields {
  display: none;
}

.method-fields.is-visible {
  display: grid;
  gap: 16px;
}

.review-card {
  background: #fafbfc;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 16px;
}

.review-card__title {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 12px;
}

.review-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  color: var(--text-muted);
}

.review-row:last-child {
  border-bottom: none;
}

.review-row strong {
  color: var(--text);
}

.review-row--highlight strong {
  color: var(--primary);
  font-size: 1.125rem;
}

.review-row--full {
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

.review-dest {
  font-family: ui-monospace, monospace;
  font-size: 13px;
  word-break: break-all;
}

.review-note {
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.6;
}

/* Login */
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  background: var(--bg);
}

.login-card {
  width: 100%;
  max-width: 420px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  box-shadow: var(--shadow-lg);
}

.login-card__brand {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 20px;
}

.login-card__title {
  font-size: 1.75rem;
  font-weight: 800;
  margin: 0 0 8px;
}

.login-card__sub {
  font-size: 14px;
  color: var(--text-muted);
  margin: 0 0 28px;
}

.login-card .form-field {
  margin-bottom: 18px;
}

.flash {
  padding: 12px 16px;
  border-radius: var(--radius);
  margin-bottom: 20px;
  font-size: 14px;
}

.flash--error {
  background: #fee2e2;
  border: 1px solid #fecaca;
  color: #b91c1c;
}

/* Toasts */
.toast-stack {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: min(400px, calc(100vw - 40px));
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: #fff;
  box-shadow: var(--shadow-lg);
  pointer-events: auto;
  animation: toast-in 0.25s ease;
}

.toast--hide {
  opacity: 0;
  transform: translateX(12px);
  transition: opacity 0.25s, transform 0.25s;
}

.toast--success {
  border-color: #bbf7d0;
}

.toast--error {
  border-color: #fecaca;
}

.toast__message {
  flex: 1;
  font-size: 14px;
  color: var(--text);
}

.toast__close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 20px;
  cursor: pointer;
  padding: 0;
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateX(16px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Responsive */
@media (max-width: 900px) {
  .embed-topbar,
  .embed-content {
    padding-left: 20px;
    padding-right: 20px;
  }

  .chart-bars {
    gap: 16px;
  }

  .chart-bar-col__value {
    font-size: 1rem;
  }

  .growth-options,
  .method-cards {
    grid-template-columns: 1fr;
  }

  .form-grid--2 {
    grid-template-columns: 1fr;
  }

  .wizard-actions--split {
    flex-direction: column-reverse;
    gap: 10px;
  }

  .wizard-actions--split .btn {
    width: 100%;
  }

  .lock-tabs {
    flex-direction: column;
  }
}

@media (max-width: 600px) {
  .chart-bars {
    flex-direction: column;
    align-items: center;
    min-height: auto;
  }

  .chart-bar {
    max-width: 80px;
    min-height: 100px;
  }
}
