* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  font-family: Inter, Arial, Helvetica, sans-serif;
  color: #fff;
  background:
    radial-gradient(circle at top left, rgba(0, 229, 255, 0.16), transparent 28%),
    radial-gradient(circle at top right, rgba(159, 95, 255, 0.15), transparent 28%),
    linear-gradient(180deg, #040714 0%, #07101e 48%, #03050f 100%);
}

.bg-grid {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
}

.page {
  max-width: 980px;
  margin: 0 auto;
  padding: 36px 16px 80px;
  position: relative;
  z-index: 1;
}

.hero {
  text-align: center;
  margin-bottom: 26px;
}

.badge {
  display: inline-flex;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(106, 221, 255, 0.28);
  background: rgba(9, 19, 36, 0.72);
  color: #9eeeff;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.hero h1 {
  margin: 0;
  font-size: 42px;
  line-height: 1.15;
  font-weight: 800;
  background: linear-gradient(90deg, #ffffff 0%, #93f4ff 48%, #c19cff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p {
  max-width: 760px;
  margin: 14px auto 0;
  color: #9ab1d1;
  line-height: 1.75;
  font-size: 15px;
}

.panel {
  border-radius: 28px;
  padding: 22px;
  background: rgba(8, 16, 31, 0.82);
  border: 1px solid rgba(88, 118, 187, 0.28);
  box-shadow: 0 30px 60px rgba(0,0,0,0.35);
  backdrop-filter: blur(16px);
}

.wallet-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 14px;
}

.wallet-btn {
  flex: 1 1 180px;
  min-width: 180px;
  border: 1px solid rgba(94, 124, 181, 0.28);
  background: linear-gradient(180deg, rgba(17, 28, 53, 0.95), rgba(10, 18, 34, 0.95));
  color: #fff;
  padding: 14px 16px;
  border-radius: 16px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: 0.2s ease;
}

.wallet-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 20px rgba(0, 226, 255, 0.12);
}

.wallet-btn.primary {
  border: none;
  background: linear-gradient(90deg, #15defe 0%, #4a8dff 55%, #8854ff 100%);
  color: #06111c;
}

.meta-card,
.summary-box,
.quote-box,
.status-box,
.info-box {
  border-radius: 18px;
  padding: 14px 16px;
  background: rgba(7, 13, 25, 0.88);
  border: 1px solid rgba(80, 102, 145, 0.26);
  line-height: 1.75;
  font-size: 13px;
  color: #d6e8ff;
  white-space: pre-wrap;
  word-break: break-all;
}

.meta-card {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
}

.fee-tag {
  display: inline-flex;
  margin-bottom: 16px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(4, 17, 31, 0.9);
  border: 1px solid rgba(88, 215, 255, 0.18);
  color: #8eedff;
  font-size: 13px;
  font-weight: 700;
}

.swap-box {
  display: grid;
  gap: 14px;
}

.swap-card {
  border-radius: 22px;
  padding: 18px;
  background: linear-gradient(180deg, rgba(14, 23, 42, 0.95), rgba(9, 15, 29, 0.95));
  border: 1px solid rgba(79, 101, 146, 0.26);
}

.swap-card label {
  display: block;
  margin-bottom: 10px;
  color: #9eb4d5;
  font-size: 13px;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 12px;
  align-items: end;
}

.grid-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
}

.input {
  width: 100%;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(87, 111, 158, 0.28);
  background: rgba(6, 12, 23, 0.92);
  color: #fff;
  font-size: 15px;
  outline: none;
}

.input::placeholder {
  color: #6b809f;
}

.hint {
  margin-top: 8px;
  font-size: 12px;
  color: #7e95b7;
  line-height: 1.6;
}

.hint.warn {
  color: #ffd79b;
}

.inline-actions {
  margin-top: 12px;
}

.switch-wrap {
  display: flex;
  justify-content: center;
  margin: -2px 0;
}

.switch-btn {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  border: 1px solid rgba(92, 121, 177, 0.28);
  background: linear-gradient(180deg, rgba(15, 29, 52, 0.96), rgba(8, 17, 31, 0.96));
  color: #9ff3ff;
  font-size: 26px;
  cursor: pointer;
  transition: 0.2s ease;
}

.switch-btn:hover {
  transform: rotate(180deg) scale(1.04);
}

.main-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.primary-btn,
.secondary-btn {
  border: none;
  cursor: pointer;
  transition: 0.2s ease;
  border-radius: 16px;
  padding: 14px 16px;
  font-size: 15px;
  font-weight: 800;
}

.primary-btn:hover,
.secondary-btn:hover {
  transform: translateY(-1px);
}

.primary-btn {
  color: #06101b;
  background: linear-gradient(90deg, #14e5ff 0%, #53bcff 50%, #9c75ff 100%);
}

.secondary-btn {
  color: #def6ff;
  border: 1px solid rgba(88, 112, 158, 0.32);
  background: linear-gradient(180deg, rgba(18, 33, 59, 0.95), rgba(9, 18, 33, 0.95));
}

.big {
  padding: 16px 18px;
}

.bottom-note {
  color: #7c91b2;
  font-size: 12px;
  line-height: 1.7;
}

@media (max-width: 820px) {
  .hero h1 {
    font-size: 32px;
  }

  .grid-2,
  .grid-3,
  .main-actions {
    grid-template-columns: 1fr;
  }

  .wallet-btn {
    min-width: auto;
  }

  .panel {
    padding: 16px;
  }
}