.mt-shell {
  position: relative; overflow: hidden; background: #fff; border: 1px solid rgba(91,33,182,.14);
  border-radius: 22px; padding: 1.6rem 1.7rem 1.5rem; box-shadow: 0 24px 60px -28px rgba(59,10,109,.35), var(--shadow-sm);
  animation: fadeSlideUp .35s ease;
}
.mt-shell-glow {
  position: absolute; inset: -140px -120px auto auto; width: 380px; height: 380px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(229,72,77,.12) 0%, rgba(91,33,182,.08) 45%, transparent 70%);
}

.mt-steps { position: relative; display: flex; align-items: center; gap: .6rem; list-style: none; margin: 0 0 1.5rem; padding: 0; }
.mt-step { display: flex; align-items: center; gap: .55rem; color: var(--ink-soft); font-weight: 700; font-size: .82rem; white-space: nowrap; }
.mt-step-dot {
  width: 30px; height: 30px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  border: 2px solid var(--border); background: #fff; font-size: .8rem; transition: all .25s ease;
}
.mt-step.is-current { color: var(--purple); }
.mt-step.is-current .mt-step-dot { border-color: var(--purple-light); color: var(--purple-light); box-shadow: 0 0 0 5px rgba(91,33,182,.1); }
.mt-step.is-done { color: var(--ink); }
.mt-step.is-done .mt-step-dot { border-color: transparent; color: #fff; background: linear-gradient(135deg, var(--purple-light), var(--red)); }
.mt-step-line { flex: 1; height: 2px; min-width: 24px; border-radius: 2px; background: var(--border); transition: background .3s ease; }
.mt-step-line.is-done { background: linear-gradient(90deg, var(--purple-light), var(--red)); }

.mt-accounts { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.1rem; }
.mt-accounts.has-receiver { grid-template-columns: minmax(0, 1fr) 54px minmax(0, 1fr); align-items: start; }

.mt-card {
  position: relative; border-radius: 18px; padding: 1.25rem 1.3rem 1.35rem; background: #fff;
  border: 1px solid var(--border); transition: border-color .2s ease, box-shadow .2s ease; animation: fadeSlideUp .3s ease;
}
.mt-card::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 4px; border-radius: 18px 18px 0 0; }
.mt-card-sender::before { background: linear-gradient(90deg, var(--red), var(--red-light)); }
.mt-card-receiver::before { background: linear-gradient(90deg, var(--purple-light), #8b5cf6); }
.mt-card:focus-within { border-color: rgba(91,33,182,.35); box-shadow: 0 14px 34px -18px rgba(59,10,109,.35); }
.mt-card-head { display: flex; align-items: center; gap: .8rem; margin-bottom: 1.05rem; }
.mt-card-icon { width: 40px; height: 40px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.mt-card-sender .mt-card-icon { background: rgba(229,72,77,.1); color: var(--red); }
.mt-card-receiver .mt-card-icon { background: rgba(91,33,182,.1); color: var(--purple-light); }
.mt-card-title { font-family: 'Sora', sans-serif; font-size: 1rem; font-weight: 700; margin: 0; color: var(--ink); display: flex; align-items: center; gap: .5rem; }
.mt-card-sub { margin: .15rem 0 0; font-size: .78rem; color: var(--ink-soft); }

.mt-connector { display: flex; align-items: center; justify-content: center; align-self: center; height: 100%; min-height: 120px; position: relative; }
.mt-connector::before { content: ''; position: absolute; top: 12%; bottom: 12%; left: 50%; width: 2px; background: linear-gradient(180deg, transparent, var(--border), transparent); }
.mt-connector-orb {
  position: relative; width: 48px; height: 48px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  color: #fff; background: linear-gradient(135deg, var(--purple-light), var(--red)); box-shadow: 0 10px 26px rgba(229,72,77,.35);
  animation: mtPulse 2.6s ease-in-out infinite;
}
@keyframes mtPulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(229,72,77,.35); } 50% { box-shadow: 0 0 0 12px rgba(229,72,77,0); } }

.mt-label { display: block; font-size: .78rem; font-weight: 700; color: var(--ink); margin-bottom: .4rem; }
.mt-required { color: var(--red); }
.mt-input-wrap {
  position: relative; display: flex; align-items: center; background: var(--bg-soft); border: 1.5px solid var(--border);
  border-radius: 14px; transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.mt-input-wrap:focus-within, .mt-input-wrap.is-open { border-color: var(--purple-light); background: #fff; box-shadow: 0 0 0 4px rgba(91,33,182,.1); }
.mt-input-wrap.is-invalid { border-color: var(--red); box-shadow: 0 0 0 4px rgba(229,72,77,.1); }
.mt-input-prefix, .mt-input-suffix { display: inline-flex; align-items: center; justify-content: center; color: var(--ink-soft); flex-shrink: 0; }
.mt-input-prefix { padding: 0 .2rem 0 .95rem; }
.mt-input-suffix { padding: 0 .9rem 0 .4rem; gap: .3rem; }
.mt-input-wrap:focus-within .mt-input-prefix { color: var(--purple-light); }
.mt-input {
  flex: 1; min-width: 0; border: none; outline: none; background: transparent; font-family: inherit;
  font-size: .92rem; font-weight: 600; color: var(--ink); padding: .82rem .6rem;
}
.mt-input::placeholder { color: var(--ink-soft); font-weight: 500; opacity: .75; }
.mt-input:disabled { cursor: not-allowed; opacity: .6; }
.mt-input[type=number]::-webkit-outer-spin-button, .mt-input[type=number]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.mt-input[type=number] { -moz-appearance: textfield; }
.mt-input-amount .mt-input { font-family: 'Sora', sans-serif; font-size: 1.15rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.mt-currency { font-weight: 800; font-size: .8rem; color: var(--purple-light); background: rgba(91,33,182,.08); border-radius: 999px; padding: .3rem .65rem; margin-right: .6rem; }
.mt-counter { font-size: .72rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.mt-icon-btn { border: none; background: transparent; color: var(--ink-soft); cursor: pointer; display: inline-flex; padding: .2rem; border-radius: 8px; }
.mt-icon-btn:hover { color: var(--red); background: var(--warn-bg); }
.mt-field-error { display: flex; align-items: center; gap: .35rem; color: var(--red); font-size: .76rem; font-weight: 600; margin-top: .4rem; }
.mt-field-hint { font-size: .76rem; color: var(--ink-soft); margin-top: .4rem; }
.mt-field-hint strong { color: var(--purple); }

.mt-dropdown {
  position: absolute; top: calc(100% + 8px); left: 0; right: 0; z-index: 60; background: #fff; border: 1px solid var(--border);
  border-radius: 16px; box-shadow: 0 22px 50px -12px rgba(59,10,109,.3); max-height: 340px; overflow-y: auto; padding: .4rem;
  animation: fadeSlideUp .16s ease;
}
.mt-option { display: flex; align-items: center; gap: .75rem; padding: .62rem .7rem; border-radius: 12px; cursor: pointer; transition: background .12s ease; }
.mt-option.is-active { background: var(--bg-soft); }
.mt-option.is-disabled { opacity: .5; cursor: not-allowed; }
.mt-option-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: .25rem; }
.mt-option-name { font-weight: 700; font-size: .88rem; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mt-option-meta { display: flex; flex-wrap: wrap; gap: .3rem; }
.mt-option-amount { font-family: 'Sora', sans-serif; font-weight: 800; font-size: .86rem; color: var(--purple); white-space: nowrap; font-variant-numeric: tabular-nums; }
.mt-option-amount small { font-family: 'Manrope', sans-serif; font-size: .66rem; font-weight: 700; color: var(--ink-soft); margin-left: .2rem; }
.mt-dropdown-empty, .mt-dropdown-hint { display: flex; align-items: center; gap: .5rem; padding: .7rem .8rem; font-size: .78rem; color: var(--ink-soft); }
.mt-dropdown-hint { border-top: 1px dashed var(--border); margin-top: .3rem; }

.mt-chip { display: inline-flex; align-items: center; gap: .2rem; font-size: .68rem; font-weight: 800; padding: .12rem .5rem; border-radius: 999px; background: rgba(91,33,182,.1); color: var(--purple-light); }
.mt-chip-soft { background: var(--bg-soft); color: var(--ink-soft); }
.mt-chip-ok { background: var(--success-bg); color: var(--success); }
.mt-chip-warn { background: var(--warn-bg); color: var(--warn); }

.mt-avatar {
  width: 38px; height: 38px; border-radius: 12px; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: .78rem; color: #fff; background: linear-gradient(135deg, var(--red), var(--red-light));
}
.mt-tone-receiver .mt-avatar, .mt-avatar-receiver { background: linear-gradient(135deg, var(--purple-light), #8b5cf6); }
.mt-avatar-lg { width: 52px; height: 52px; border-radius: 16px; font-size: 1rem; }

.mt-selected { animation: popIn .2s ease; }
.mt-selected-head { display: flex; align-items: center; gap: .9rem; }
.mt-selected-id { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: .35rem; }
.mt-selected-name { font-family: 'Sora', sans-serif; font-weight: 800; font-size: 1.05rem; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mt-change-btn {
  display: inline-flex; align-items: center; gap: .35rem; border: 1px solid var(--border); background: #fff; color: var(--ink-soft);
  font-family: inherit; font-weight: 700; font-size: .78rem; padding: .45rem .8rem; border-radius: 999px; cursor: pointer; transition: all .15s ease;
}
.mt-change-btn:hover { border-color: var(--purple-light); color: var(--purple-light); }
.mt-selected-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; margin-top: 1rem; }
.mt-stat { display: flex; flex-direction: column; gap: .25rem; padding: .7rem .85rem; border-radius: 12px; background: var(--bg-soft); min-width: 0; }
.mt-stat-label { display: flex; align-items: center; gap: .3rem; font-size: .7rem; font-weight: 700; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .04em; }
.mt-stat-value { font-family: 'Sora', sans-serif; font-weight: 800; font-size: 1.02rem; color: var(--ink); font-variant-numeric: tabular-nums; }
.mt-stat-value small { font-family: 'Manrope', sans-serif; font-size: .7rem; color: var(--ink-soft); }
.mt-stat-text { font-family: 'Manrope', sans-serif; font-size: .86rem; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mt-stat-accent { background: linear-gradient(135deg, rgba(91,33,182,.1), rgba(229,72,77,.08)); }
.mt-tone-sender .mt-stat-accent .mt-stat-value { color: var(--red); }
.mt-tone-receiver .mt-stat-accent .mt-stat-value { color: var(--purple-light); }

.mt-details { position: relative; margin-top: 1.4rem; padding-top: 1.4rem; border-top: 1px dashed var(--border); }
.mt-details-grid { display: grid; grid-template-columns: 1.1fr 1.5fr .8fr .9fr; gap: 1rem 1.1rem; }

.mt-preview {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 1.2rem; padding: .9rem 1.1rem;
  border-radius: 14px; background: linear-gradient(135deg, rgba(91,33,182,.06), rgba(229,72,77,.05)); border: 1px solid rgba(91,33,182,.12);
  animation: fadeIn .2s ease;
}
.mt-preview-side { display: flex; flex-direction: column; gap: .15rem; min-width: 0; }
.mt-preview-side.mt-right { text-align: right; }
.mt-preview-label { font-size: .78rem; font-weight: 700; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mt-preview-flow { font-size: .78rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.mt-negative { color: var(--red); }
.mt-positive { color: var(--success); }
.mt-preview-amount {
  display: inline-flex; align-items: center; gap: .4rem; flex-shrink: 0; font-family: 'Sora', sans-serif; font-weight: 800; font-size: .95rem;
  color: #fff; padding: .45rem .95rem; border-radius: 999px; background: linear-gradient(135deg, var(--purple-light), var(--red));
}

.mt-actions { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 1.3rem; flex-wrap: wrap; }
.mt-secure { display: inline-flex; align-items: center; gap: .4rem; font-size: .76rem; font-weight: 600; color: var(--ink-soft); }
.mt-secure .icon { color: var(--success); }
.mt-execute { padding: .85rem 1.7rem; font-size: .9rem; }

.mt-history { margin-top: 1.6rem; animation: fadeSlideUp .4s ease; }
.mt-history-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: .8rem; }
.mt-history-count { font-size: .78rem; font-weight: 700; color: var(--ink-soft); }
.mt-row-cancelled td { opacity: .55; }
.mt-row-cancelled td:first-child { text-decoration: line-through; }

.mt-modal { max-width: 520px; }
.mt-confirm-amount { font-family: 'Sora', sans-serif; font-weight: 800; font-size: 2rem; text-align: center; color: var(--ink); margin-bottom: 1rem; }
.mt-confirm-amount small { font-size: .9rem; color: var(--ink-soft); }
.mt-confirm-flow { display: flex; flex-direction: column; align-items: stretch; gap: .4rem; }
.mt-confirm-party { display: flex; align-items: center; gap: .75rem; padding: .7rem .85rem; border-radius: 14px; background: var(--bg-soft); }
.mt-confirm-arrow { align-self: center; color: var(--purple-light); }
.mt-success { text-align: center; padding-top: 2rem; }
.mt-success h3 { font-family: 'Sora', sans-serif; margin: .9rem 0 .3rem; }
.mt-success-badge {
  width: 70px; height: 70px; border-radius: 50%; margin: 0 auto; display: flex; align-items: center; justify-content: center; color: #fff;
  background: linear-gradient(135deg, #16a34a, #22c55e); box-shadow: 0 14px 32px rgba(22,163,74,.35); animation: popIn .3s ease;
}
.mt-receipt { margin-top: 1.2rem; text-align: left; border: 1px dashed var(--border); border-radius: 14px; padding: .4rem 1rem; }
.mt-receipt div { display: flex; justify-content: space-between; gap: 1rem; padding: .55rem 0; border-bottom: 1px solid var(--border); font-size: .84rem; }
.mt-receipt div:last-child { border-bottom: none; }
.mt-receipt span { color: var(--ink-soft); }

@media (max-width: 1180px) {
  .mt-details-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 980px) {
  .mt-accounts.has-receiver { grid-template-columns: minmax(0, 1fr); }
  .mt-connector { min-height: 0; height: auto; padding: .1rem 0; }
  .mt-connector::before { display: none; }
  .mt-connector-orb { transform: rotate(90deg); }
}
@media (max-width: 640px) {
  .mt-shell { padding: 1.1rem 1rem; border-radius: 18px; }
  .mt-steps .mt-step-text { display: none; }
  .mt-details-grid, .mt-selected-grid { grid-template-columns: minmax(0, 1fr); }
  .mt-preview { flex-direction: column; align-items: stretch; text-align: center; }
  .mt-preview-side.mt-right { text-align: center; }
  .mt-actions { flex-direction: column-reverse; align-items: stretch; }
  .mt-execute { width: 100%; }
}
