


  /* WALLET CONNECT */

  /* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:          #0b0d12;
  --surface:     #13161e;
  --surface-2:   #1b1f2b;
  --border:      rgba(255,255,255,0.07);
  --border-hover:rgba(255,255,255,0.14);
  --accent:      #4f6ef7;
  --accent-glow: rgba(79,110,247,0.25);
  --text-1:      #f0f2f8;
  --text-2:      #7c84a0;
  --text-3:      #4a5068;
  --green:       #22c55e;
  --radius-lg:   18px;
  --radius-md:   12px;
  --radius-sm:   8px;
  --mono:        'DM Mono', monospace;
  --display:     'Syne', sans-serif;
  --transition:  0.22s cubic-bezier(0.4,0,0.2,1);
}





/* ── Wallet Info Card ── */
.wallet-info-card {
  display: none;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 28px;
  min-width: 280px;
}

.info-row {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}
.info-row:last-child { border-bottom: none; }

.info-label {
  font-size: 11px;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  width: 64px;
  flex-shrink: 0;
}

.info-value {
  font-size: 13px;
  color: var(--text-1);
  flex: 1;
  word-break: break-all;
}

.info-value.mono { font-family: var(--mono); }
.info-unit { font-size: 11px; color: var(--text-3); font-family: var(--mono); }
/* ── Modal Overlay ── */
.modal-overlay {
  position: fixed; inset: 0;
  z-index: 100000;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.modal-backdrop-blur {
  position: absolute; inset: 0;
  background: rgba(7, 8, 13, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* ── Modal Panel ── */
.modal-panel {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 440px;
  padding: 32px;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.04),
    0 40px 80px rgba(0,0,0,0.5),
    0 0 60px rgba(79,110,247,0.06);
  transform: translateY(18px) scale(0.97);
  transition:
    transform 0.32s cubic-bezier(0.34,1.56,0.64,1),
    opacity 0.22s ease;
  opacity: 0;
}

.modal-overlay.open .modal-panel {
  transform: translateY(0) scale(1);
  opacity: 1;
}

/* ── Close Button ── */
.modal-close {
  position: absolute;
  top: 18px; right: 18px;
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--text-2);
  cursor: pointer;
  transition: var(--transition);
}

.modal-close:hover {
  background: rgba(255,255,255,0.08);
  color: var(--text-1);
  border-color: var(--border-hover);
}

/* ── Modal Header ── */
.modal-header {
  display: flex; align-items: center; gap: 16px;
  margin-bottom: 28px;
}

.modal-icon {
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, rgba(79,110,247,0.15), rgba(79,110,247,0.04));
  border: 1px solid rgba(79,110,247,0.2);
  border-radius: var(--radius-md);
  color: var(--accent);
  flex-shrink: 0;
}

.modal-title {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-1);
  line-height: 1.2;
}

.modal-subtitle {
  font-size: 12px;
  color: var(--text-2);
  margin-top: 3px;
  font-weight: 600;
}

/* ── Wallet Options ── */
.modal-options {
  display: flex; flex-direction: column; gap: 10px;
  margin-bottom: 24px;
}

.wallet-option {
  display: flex; align-items: center; gap: 16px;
  width: 100%;
  padding: 16px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition);
  text-align: left;
  position: relative;
  overflow: hidden;
}

.wallet-option::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(79,110,247,0.06), transparent);
  opacity: 0;
  transition: opacity var(--transition);
}

.wallet-option:hover {
  border-color: var(--border-hover);
  background: rgba(255,255,255,0.04);
  transform: translateX(3px);
}

.wallet-option:hover::before { opacity: 1; }

.wallet-option:active { transform: translateX(1px) scale(0.99); }

/* ── Option Icon ── */
.option-icon {
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  overflow: hidden;
}

.option-icon svg { display: block; }

/* ── Option Info ── */
.option-info {
  display: flex; flex-direction: column; gap: 3px;
  flex: 1;
}

.option-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-1);
  letter-spacing: -0.01em;
}

.option-desc {
  font-size: 12px;
  color: var(--text-2);
  font-weight: 600;
}

/* ── Badges ── */
.option-badge {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 9px;
  border-radius: 20px;
  flex-shrink: 0;
}

.popular-badge {
  background: rgba(34, 197, 94, 0.12);
  color: var(--green);
  border: 1px solid rgba(34,197,94,0.2);
}

/* ── Option Arrow ── */
.option-arrow {
  color: var(--text-3);
  transition: var(--transition);
  flex-shrink: 0;
}

.wallet-option:hover .option-arrow {
  color: var(--text-2);
  transform: translateX(3px);
}

/* ── Modal Footer ── */
.modal-footer {
  display: flex; align-items: center; gap: 8px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--text-2);
  font-weight: 600;
}

.modal-footer svg { color: var(--text-3); flex-shrink: 0; }

.modal-footer a {
  color: var(--accent);
  text-decoration: none;
}

.modal-footer a:hover { text-decoration: underline; }

/* ── Loading Spinner (used inside button) ── */
@keyframes spin {
  to { transform: rotate(360deg); }
}

.btn-loading::after {
  content: '';
  display: inline-block;
  width: 14px; height: 14px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  margin-left: 8px;
}

/* ── Connecting State ── */
.wallet-option.connecting {
  opacity: 0.6;
  pointer-events: none;
}

.wallet-option.connecting .option-arrow {
  animation: spin 0.7s linear infinite;
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }






.borrow-rates {
  width: 100%;
}

.borrow-title {
  margin-bottom: 20px;
  font-weight: 700;
  font-size: 16px;
  line-height: 24px;
}

.rate-item {
  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 12px 0;

  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.rate-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.rate-icon {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.rate-left span {
  font-size: 14px;
  font-weight: 500;
}

.rate-value {
  font-size: 14px;
  font-weight: 600;
}

.hidden-by-default {
  display: none;
}

#addressInput {
  display: none;
}

.font-base {
  font-size: 16px!important;
}


.wallet-logo {
  width: 36px;
  height: 36px;
  object-fit: contain;
  border-radius: 10px;
}

.option-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}








.wallet-connecting-state {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 24px;
  min-height: 420px;
  color:white;
}

.wallet-connecting-state.active {
  display: flex;
}

.connecting-logo-wrap {
  position: relative;
  width: 110px;
  height: 110px;
  margin-bottom: 28px;
}

.connecting-spinner {
  position: absolute;
  inset: 0;
  border-radius: 50%;

  background:
    conic-gradient(
      from 0deg,
      transparent 0deg,
      transparent 240deg,
      rgba(255,255,255,.08) 250deg,
      rgba(255,255,255,.2) 280deg,
      rgba(255,255,255,.9) 320deg,
      rgba(255,255,255,.2) 360deg
    );

  animation: spinLoader 1.1s linear infinite;
}

.connecting-spinner::after {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  background: #0d111c;
}

.connecting-logo {
  position: absolute;
  inset: 16px;
  border-radius: 50%;

  display: flex;
  align-items: center;
  justify-content: center;

  background:
    radial-gradient(
      circle at center,
      rgba(255,255,255,.04),
      rgba(255,255,255,.01)
    );

  z-index: 2;
}

.connecting-logo img {
  width: 64px;
  height: 64px;
}

.connecting-title {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 12px;
}

.connecting-desc {
  max-width: 280px;
  line-height: 1.5;
  opacity: .8;
}

@keyframes spinLoader {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}