:root {
  --mc-navy: #e8f2ff;
  --mc-navy-2: #b8cce8;
  --mc-blue: #00e5ff;
  --mc-sky: #7df9ff;
  --mc-ice: #0d1524;
  --mc-paper: #111a2e;
  --mc-white: #ffffff;
  --mc-gold: #00ff9d;
  --mc-gold-2: #b8ffe8;
  --mc-ink: #e8edf7;
  --mc-muted: #8b9cb8;
  --mc-line: rgba(0, 229, 255, 0.14);
  --mc-ok: #00ff9d;
  --mc-warn: #ffb020;
  --mc-font: "DM Sans", system-ui, sans-serif;
  --mc-display: "Outfit", system-ui, sans-serif;
  --mc-mono: "DM Sans", ui-monospace, monospace;
  --mc-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --mc-safe-t: env(safe-area-inset-top, 0px);
  --mc-safe-b: env(safe-area-inset-bottom, 0px);
  --mc-shadow: 0 4px 20px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(0, 229, 255, 0.1);
  --mc-shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(0, 229, 255, 0.15), 0 0 32px rgba(0, 229, 255, 0.06);
  --mc-bg-deep: #060b14;
  --mc-surface: #0d1524;
  --mc-surface-2: #131d30;
  --mc-accent-grad: linear-gradient(135deg, #00e5ff 0%, #0066ff 55%, #7b61ff 100%);
  --mc-profit-grad: linear-gradient(135deg, #00ff9d 0%, #00e5ff 100%);
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
img { max-width: 100%; display: block; }
button, input, select { font-family: inherit; }
a { color: var(--mc-blue); text-decoration: none; }

body.mc-app {
  font-family: var(--mc-font);
  color: var(--mc-ink);
  background: var(--mc-bg-deep);
  -webkit-font-smoothing: antialiased;
}

.mc-phone {
  width: min(430px, 100%);
  min-height: 100dvh;
  margin: 0 auto;
  background:
    linear-gradient(180deg, rgba(0, 229, 255, 0.04) 0%, transparent 22%),
    radial-gradient(ellipse 90% 40% at 50% -8%, rgba(0, 102, 255, 0.18), transparent 55%),
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 23px,
      rgba(0, 229, 255, 0.03) 23px,
      rgba(0, 229, 255, 0.03) 24px
    ),
    var(--mc-bg-deep);
  position: relative;
  overflow-x: hidden;
}

.mc-phone::before {
  content: "";
  position: fixed;
  inset: 0;
  max-width: 430px;
  margin: 0 auto;
  pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M60 0H0V60' fill='none' stroke='rgba(0,229,255,0.04)'/%3E%3C/svg%3E");
  opacity: 0.6;
  z-index: 0;
}

.mc-stage {
  min-height: 100dvh;
  position: relative;
  z-index: 1;
}

body.has-mc-dock .mc-stage,
body.has-ax-dock .mc-stage {
  padding-bottom: calc(96px + var(--mc-safe-b));
}

.mc-dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  transform: none;
  pointer-events: none;
}

.mc-dock__pill {
  pointer-events: auto;
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: stretch;
  gap: 0;
  width: min(400px, calc(100% - 16px));
  margin: 0 auto 8px;
  padding: 8px 4px calc(8px + var(--mc-safe-b));
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(19, 29, 48, 0.95) 0%, rgba(8, 12, 22, 0.98) 100%);
  border: 1px solid rgba(0, 229, 255, 0.2);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.04) inset,
    0 -8px 32px rgba(0, 229, 255, 0.08),
    0 16px 40px rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(16px);
}

.mc-dock__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  min-height: 52px;
  justify-content: center;
  padding: 4px 0;
  color: #6a7d9a;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  transition: color 0.15s var(--mc-ease), transform 0.12s var(--mc-ease);
}

.mc-dock__ico {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  border-radius: 10px;
  background: transparent;
  transition: background 0.15s var(--mc-ease), box-shadow 0.15s var(--mc-ease);
}

.mc-dock__ico img {
  width: 26px;
  height: 26px;
  object-fit: contain;
  display: block;
}

.mc-dock__ico svg {
  width: 20px;
  height: 20px;
}

.mc-dock__item.is-active {
  color: var(--mc-blue);
}

.mc-dock__item.is-active .mc-dock__ico {
  background: rgba(0, 229, 255, 0.12);
  box-shadow: 0 0 16px rgba(0, 229, 255, 0.25);
  transform: translateY(-1px);
}

.mc-dock__item--hub {
  transform: none;
}

.mc-dock__item--hub .mc-dock__ico {
  background: var(--mc-accent-grad);
  color: #060b14;
  box-shadow: 0 4px 16px rgba(0, 229, 255, 0.35);
}

.mc-dock__item--hub.is-active .mc-dock__ico {
  color: #060b14;
}

.mc-subhead {
  display: grid;
  grid-template-columns: 44px 1fr 36px;
  align-items: center;
  gap: 10px;
  padding: calc(12px + var(--mc-safe-t)) 16px 8px;
}

.mc-subhead__back {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: #060b14;
  background: var(--mc-accent-grad);
  box-shadow: 0 6px 20px rgba(0, 229, 255, 0.35);
}

.mc-subhead__back svg { width: 18px; height: 18px; }

.mc-subhead__copy p {
  margin: 0;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.2em;
  color: var(--mc-blue);
  font-family: var(--mc-mono);
}

.mc-subhead__copy h1 {
  margin: 2px 0 0;
  font-family: var(--mc-display);
  font-size: 22px;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--mc-navy);
}

.mc-subhead__mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid var(--mc-line);
}

.icp-btn, .mc-btn {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  border: 0;
  border-radius: 14px;
  background: var(--mc-accent-grad);
  color: #060b14;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  box-shadow: 0 8px 24px rgba(0, 102, 255, 0.35);
  cursor: pointer;
}

.icp-btn:active, .mc-btn:active {
  transform: translateY(2px);
  box-shadow: 0 4px 12px rgba(0, 102, 255, 0.25);
}

.icp-btn:disabled, .mc-btn:disabled { opacity: 0.45; }

.icp-section { margin-top: 14px; }
.icp-section__title {
  margin: 0 0 10px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mc-muted);
  font-family: var(--mc-mono);
}

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

.icp-chip {
  min-height: 44px;
  border-radius: 12px;
  border: 1px solid var(--mc-line);
  background: var(--mc-surface);
  font-weight: 800;
  color: var(--mc-ink);
  font-family: var(--mc-mono);
  font-size: 13px;
}

.icp-chip.is-on {
  background: rgba(0, 229, 255, 0.15);
  color: var(--mc-blue);
  border-color: rgba(0, 229, 255, 0.45);
}

.icp-amount-wrap { display: block; }
.icp-amount-wrap__lbl {
  display: block;
  margin-bottom: 6px;
  font-size: 11px;
  font-weight: 800;
  color: var(--mc-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.icp-amount-wrap__field {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 58px;
  padding: 0 16px;
  border-radius: 14px;
  background: var(--mc-surface);
  border: 1px solid var(--mc-line);
  box-shadow: var(--mc-shadow);
}

.icp-amount-wrap__prefix {
  font-weight: 800;
  color: var(--mc-gold);
  font-size: 20px;
  font-family: var(--mc-mono);
}

.icp-amount-wrap__input {
  flex: 1;
  border: 0;
  outline: none;
  font-size: 22px;
  font-weight: 700;
  width: 100%;
  background: transparent;
  color: var(--mc-ink);
  font-family: var(--mc-mono);
}

.icp-amount-wrap__hint {
  display: block;
  margin-top: 6px;
  font-size: 11px;
  color: var(--mc-muted);
  font-weight: 600;
}

.icp-channel {
  min-height: 48px;
  padding: 0 14px;
  border-radius: 14px;
  border: 1px solid var(--mc-line);
  background: var(--mc-surface);
  font-weight: 800;
  color: var(--mc-ink);
}

.icp-account {
  display: block;
  margin-bottom: 10px;
  cursor: pointer;
}

.icp-account__radio {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

.icp-account__body {
  display: block;
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--mc-surface);
  border: 1px solid var(--mc-line);
  transition: border-color 0.15s var(--mc-ease), background 0.15s var(--mc-ease), box-shadow 0.15s var(--mc-ease);
}

.icp-account__radio:checked + .icp-account__body {
  border-color: rgba(0, 229, 255, 0.5);
  background: rgba(0, 229, 255, 0.06);
  box-shadow: 0 0 20px rgba(0, 229, 255, 0.12);
}

.icp-account__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.icp-account__name {
  display: block;
  font-weight: 800;
  font-size: 14px;
  color: var(--mc-ink);
}

.icp-account__check {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid rgba(139, 156, 184, 0.4);
  flex-shrink: 0;
  position: relative;
}

.icp-account__radio:checked + .icp-account__body .icp-account__check {
  border-color: var(--mc-blue);
  background: var(--mc-blue);
}

.icp-account__radio:checked + .icp-account__body .icp-account__check::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 3px;
  width: 5px;
  height: 9px;
  border: solid #060b14;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.icp-account__meta,
.icp-account__num {
  display: block;
  font-size: 12px;
  color: var(--mc-muted);
  font-weight: 600;
  margin-top: 4px;
  font-family: var(--mc-mono);
}

.icp-link-btn { display: inline-block; margin: 8px 0 12px; font-weight: 800; color: var(--mc-blue); }

.np-hp {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
}
