:root {
  --bg: #0b1020;
  --bg-soft: #171a30;
  --card: #222643;
  --accent: #ffb347;
  --accent-soft: #ffe0b3;
  --accent-2: #76dfff;
  --text-main: #fdfdfd;
  --text-sub: #c6c9ff;
  --danger: #ff6b81;
}

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

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont,
    "SF Pro Text", "Segoe UI", sans-serif;
  background: #f7f8fb;
  color: #111827;
}

.app-root {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.logo-img {
  width: 32px;
  height: 32px;
  border-radius: 999px;
}

.connect-btn {
  border: none;
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  background: #10b981;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
  transition: transform 0.12s ease, box-shadow 0.12s ease,
    filter 0.12s ease;
}

.connect-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.6);
  filter: brightness(1.04);
}

.connect-btn:active {
  transform: translateY(0);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.top-bar {
  width: 100%;
  padding: 16px 40px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.top-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.top-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-name {
  font-weight: 700;
  letter-spacing: 0.02em;
}

.main {
  flex: 1;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 48px 16px 56px;
}

.card {
  width: 100%;
  max-width: 480px;
  margin-top: 8px;
  background: #ffffff;
  border-radius: 20px;
  padding: 24px 22px 24px;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.1);
  border: 1px solid rgba(148, 163, 184, 0.25);
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.card-title {
  margin: 0;
  font-size: 20px;
}

.card-subtitle {
  margin: 4px 0 0;
  font-size: 13px;
  color: #6b7280;
}

.swap-panel {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.swap-row {
  background: #f9fafb;
  border-radius: 16px;
  padding: 12px 16px 12px;
  border: 1px solid rgba(209, 213, 219, 0.9);
}

.swap-row-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.swap-label {
  font-size: 11px;
  color: #6b7280;
}

.swap-network {
  font-size: 11px;
  color: #111827;
  padding: 2px 10px;
  border-radius: 999px;
  background: #e5f3ff;
  border: 1px solid #bfdbfe;
}

.row-main {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 4px;
}

.swap-arrow {
  display: flex;
  justify-content: center;
  align-items: center;
}

.swap-arrow-circle {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: #6b7280;
  border: 1px solid rgba(209, 213, 219, 0.9);
  box-shadow: 0 4px 10px rgba(148, 163, 184, 0.45);
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease;
  padding: 0;
  margin: 0;
}

.swap-arrow-circle:hover {
  transform: rotate(180deg);
  background-color: #f3f4f6;
}

.token-info {
  display: flex;
  align-items: center;
  gap: 8px;
}

.token-icon {
  width: 32px;
  height: 32px;
  border-radius: 999px;
}

.token-text {
  display: flex;
  flex-direction: column;
}

.token-symbol {
  font-size: 13px;
  font-weight: 600;
}

.token-chain {
  font-size: 11px;
  color: #9ca3af;
}

.amount-box {
  display: flex;
  align-items: center;
  gap: 8px;
}

.amount-box-disabled {
  opacity: 0.6;
}

.max-btn {
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.9);
  background: #ffffff;
  color: #374151;
  font-size: 11px;
  padding: 4px 10px;
  cursor: pointer;
}

.amount-input {
  width: 130px;
  text-align: right;
  background: transparent;
  border: none;
  outline: none;
  font-size: 16px;
  color: #111827;
}

.amount-input::placeholder {
  color: #d1d5db;
}

.row-footer {
  display: flex;
  justify-content: space-between;
  margin-top: 4px;
  font-size: 11px;
  color: #9ca3af;
}

.balance-label {
  font-size: 11px;
}

.balance-value {
  font-size: 11px;
}

.bridge-btn {
  width: 100%;
  margin-top: 18px;
  padding: 11px 0;
  border-radius: 18px;
  border: none;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  background: linear-gradient(135deg, #10b981, #34d399);
  color: #ecfdf5;
  box-shadow: 0 10px 24px rgba(16, 185, 129, 0.45);
  letter-spacing: 0.02em;
  transition: transform 0.12s ease, box-shadow 0.12s ease,
    filter 0.12s ease;
}

.bridge-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.8);
  filter: brightness(1.03);
}

.bridge-btn:active {
  transform: translateY(0);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.6);
}

.bridge-btn:disabled {
  cursor: default;
  opacity: 0.65;
  transform: none;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}

.status-text {
  margin: 12px 2px 4px;
  font-size: 13px;
  color: #6b7280;
}

.meta {
  margin-top: 16px;
  font-size: 12px;
  color: #6b7280;
}

.meta-row {
  display: flex;
  justify-content: space-between;
  padding: 2px 2px;
}

.fee-note {
  margin-top: 8px;
  font-size: 11px;
  color: #9ca3af;
}

.warning-box {
  margin-top: 16px;
  padding: 16px;
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  border: 2px solid #f59e0b;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.2);
}

.warning-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  font-size: 14px;
  font-weight: 700;
  color: #92400e;
}

.warning-icon {
  font-size: 18px;
}

.warning-content {
  font-size: 12px;
  color: #78350f;
  line-height: 1.6;
}

.warning-content p {
  margin: 6px 0;
}

.warning-link {
  display: block;
  margin-top: 8px;
  padding: 8px 12px;
  background: #ffffff;
  border: 1px solid #f59e0b;
  border-radius: 6px;
  color: #d97706;
  text-decoration: none;
  word-break: break-all;
  transition: background-color 0.2s ease;
}

.warning-link:hover {
  background: #fef3c7;
  text-decoration: underline;
}

.action-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.link-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 12px;
  border-radius: 999px;
  border: none;
  background: #e5f3ff;
  color: #1d4ed8;
  font-size: 12px;
  font-weight: 500;
  text-decoration: none;
}

.link-btn-ghost {
  background: #f3f4f6;
  color: #111827;
}

.tips {
  margin-top: 6px;
  padding-top: 8px;
  border-top: 1px dashed rgba(255, 255, 255, 0.16);
  font-size: 11px;
  color: var(--text-sub);
}

.footer {
  padding: 10px 18px 16px;
  font-size: 11px;
  text-align: center;
  color: rgba(148, 163, 184, 0.9);
}

@media (max-width: 720px) {
  .logo-img {
    width: 28px;
    height: 28px;
  }

  .card {
    margin-top: 0;
  }
}


