/* ============================================================
   Multichain Card Modal — Trust Wallet Brand
   ============================================================ */

/* Overlay */
#mc-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  z-index: 99999;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
#mc-modal-overlay.mc-open {
  display: flex;
}

/* Modal box */
#mc-modal {
  background: #fff;
  border-radius: 20px;
  width: 100%;
  max-width: 480px;
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(0,0,0,0.35);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  position: relative;
}

/* Header */
#mc-modal .mc-header {
  background: #1a1a2e;
  padding: 20px 24px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
#mc-modal .mc-header h2 {
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  margin: 0;
  letter-spacing: -0.2px;
}
#mc-modal .mc-close-btn {
  background: rgba(255,255,255,0.12);
  border: none;
  color: #fff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: background 0.2s;
}
#mc-modal .mc-close-btn:hover {
  background: rgba(255,255,255,0.22);
}

/* Progress tabs */
.mc-progress {
  display: flex;
  gap: 0;
  background: #1a1a2e;
  padding: 0 24px 16px;
}
.mc-progress-tab {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: #6b7280;
  white-space: nowrap;
  padding: 6px 10px;
  border-radius: 20px;
  transition: all 0.2s;
  cursor: default;
}
.mc-progress-tab .mc-tab-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid #6b7280;
  display: inline-block;
  flex-shrink: 0;
  transition: all 0.2s;
}
.mc-progress-tab.mc-active {
  color: #3375BB;
}
.mc-progress-tab.mc-active .mc-tab-dot {
  background: #3375BB;
  border-color: #3375BB;
}
.mc-progress-tab.mc-done {
  color: #3375BB;
}
.mc-progress-tab.mc-done .mc-tab-dot {
  background: #3375BB;
  border-color: #3375BB;
}

/* Step body */
.mc-step-body {
  padding: 28px 24px 24px;
}

/* ---- Step 1 ---- */
.mc-wallet-icon-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}
.mc-wallet-icon {
  width: 72px;
  height: 72px;
  background: linear-gradient(135deg, #3375BB 0%, #1a56a0 100%);
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(51,117,187,0.35);
}
.mc-wallet-icon svg {
  color: #fff;
}
.mc-step-desc {
  text-align: center;
  color: #4b5563;
  font-size: 15px;
  line-height: 1.5;
  margin: 0 0 28px;
}

/* ---- Continue / CTA button ---- */
.mc-btn-primary {
  display: block;
  width: 100%;
  background: #3375BB;
  color: #fff;
  border: none;
  border-radius: 14px;
  padding: 16px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: 0.2px;
  transition: background 0.2s, transform 0.1s;
}
.mc-btn-primary:hover {
  background: #2860a0;
}
.mc-btn-primary:active {
  transform: scale(0.98);
}

/* ---- Step 2 — Network list ---- */
.mc-network-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 4px;
}
.mc-network-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 14px;
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.15s;
  border: 1.5px solid transparent;
}
.mc-network-row:hover {
  background: #f1f5f9;
  border-color: #e2e8f0;
}
.mc-network-icon {
  font-size: 22px;
  width: 28px;
  text-align: center;
  flex-shrink: 0;
}
.mc-network-info {
  flex: 1;
}
.mc-network-name {
  font-size: 15px;
  font-weight: 600;
  color: #111827;
}
.mc-network-tag {
  font-size: 12px;
  color: #9ca3af;
  margin-top: 1px;
}
.mc-network-arrow {
  color: #9ca3af;
  font-size: 16px;
  flex-shrink: 0;
}

/* ---- Step 3 — Card picker ---- */
.mc-card-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 4px;
}
.mc-card-option {
  display: flex;
  align-items: center;
  gap: 14px;
  border: 2px solid #e5e7eb;
  border-radius: 14px;
  padding: 12px 14px;
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s;
  position: relative;
}
.mc-card-option.mc-selected {
  border-color: #3375BB;
  box-shadow: 0 0 0 3px rgba(51,117,187,0.12);
}
.mc-card-badge {
  position: absolute;
  top: -9px;
  left: 50%;
  transform: translateX(-50%);
  background: #f59e0b;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  border-radius: 20px;
  padding: 2px 10px;
  white-space: nowrap;
}

/* Card mockup mini */
.mc-card-mockup {
  width: 72px;
  height: 44px;
  border-radius: 8px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 6px 8px 5px;
  position: relative;
  overflow: hidden;
}
.mc-card-mockup.mc-white-card {
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  border: 1px solid #cbd5e1;
}
.mc-card-mockup.mc-blue-card {
  background: linear-gradient(135deg, #1A40FF 0%, #0e2db5 100%);
}
.mc-card-mockup.mc-metal-card {
  background: linear-gradient(135deg, #3a3a3a 0%, #1a1a1a 100%);
}
.mc-card-logo {
  font-size: 7px;
  font-weight: 800;
  letter-spacing: 0.5px;
}
.mc-white-card .mc-card-logo { color: #334155; }
.mc-blue-card .mc-card-logo { color: rgba(255,255,255,0.85); }
.mc-metal-card .mc-card-logo { color: rgba(255,255,255,0.7); }
.mc-card-digits {
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 1px;
}
.mc-white-card .mc-card-digits { color: #475569; }
.mc-blue-card .mc-card-digits { color: rgba(255,255,255,0.75); }
.mc-metal-card .mc-card-digits { color: rgba(255,255,255,0.6); }

.mc-card-info {
  flex: 1;
}
.mc-card-type-name {
  font-size: 14px;
  font-weight: 700;
  color: #111827;
  margin-bottom: 3px;
}
.mc-card-type-desc {
  font-size: 12px;
  color: #6b7280;
  line-height: 1.4;
}

/* Radio indicator */
.mc-radio-indicator {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid #d1d5db;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.15s;
}
.mc-card-option.mc-selected .mc-radio-indicator {
  border-color: #3375BB;
}
.mc-radio-indicator::after {
  content: '';
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: transparent;
  transition: background 0.15s;
}
.mc-card-option.mc-selected .mc-radio-indicator::after {
  background: #3375BB;
}

/* ---- Step 4 — Review ---- */
.mc-review-header {
  text-align: center;
  margin-bottom: 20px;
}
.mc-review-header .mc-check-icon {
  font-size: 40px;
  display: block;
  margin-bottom: 8px;
}
.mc-review-header h3 {
  font-size: 20px;
  font-weight: 700;
  color: #111827;
  margin: 0 0 4px;
}
.mc-review-header p {
  color: #6b7280;
  font-size: 14px;
  margin: 0;
}

.mc-review-info {
  background: #f8fafc;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 16px;
}
.mc-review-row {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  padding: 5px 0;
}
.mc-review-row-label {
  color: #6b7280;
}
.mc-review-row-val {
  font-weight: 600;
  color: #111827;
}

.mc-perks-title {
  font-size: 13px;
  font-weight: 700;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin: 0 0 10px;
}
.mc-perks-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}
.mc-perk {
  background: #eff6ff;
  color: #1d4ed8;
  border-radius: 20px;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 5px;
}
