/* Virexa — wallet UI shell styles.
   Matches the dark/pink palette of style.css. */

:root {
  --accent: #ff2fbf;
  --bg-dark: #0a0814;
  --bg-darker: #06030d;
  --text-muted: #a7a8be;
  --border-subtle: rgba(255, 255, 255, .08);
}

/* ---------- Drawer (wallet picker) ---------- */
.vx-drawer {
  position: fixed; inset: 0; z-index: 9999;
  display: flex; align-items: center; justify-content: center;
}
.vx-drawer[hidden] { display: none; }

.vx-drawer-backdrop {
  position: absolute; inset: 0;
  background: rgba(2, 1, 6, .78);
  backdrop-filter: blur(6px);
}

.vx-drawer-card {
  position: relative;
  width: 100%;
  max-width: 360px;
  max-height: min(85vh, 720px);
  background: linear-gradient(180deg, #0f0c1c, #06030d);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .8);
  z-index: 1;
  display: flex;
  flex-direction: column;
}

.vx-drawer-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  overflow-y: auto;
  padding-right: 4px;
  flex: 1 1 auto;
}
.vx-drawer-body::-webkit-scrollbar { width: 6px; }
.vx-drawer-body::-webkit-scrollbar-thumb { background: rgba(255,255,255,.08); border-radius: 999px; }
.vx-drawer-body::-webkit-scrollbar-track { background: transparent; }

.vx-drawer-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 12px; padding: 0 4px;
}
.vx-drawer-head h3 {
  font-size: 1rem; font-weight: 600; margin: 0;
  letter-spacing: -.01em;
}

.vx-icon-btn {
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .06);
  color: var(--text-muted);
  width: 28px; height: 28px; border-radius: 999px;
  font-size: 1.1rem; line-height: 1; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
}
.vx-icon-btn:hover { color: #fff; border-color: rgba(255, 255, 255, .18); }
.vx-icon-btn-tr { position: absolute; top: 10px; right: 10px; }

.vx-wallet-row {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  background: rgba(7, 6, 18, .6);
  color: #fff; font-size: .9rem;
  font-family: inherit;
  cursor: pointer;
  text-align: left;
  transition: background 150ms, border-color 150ms;
}
.vx-wallet-row:hover {
  background: rgba(20, 16, 40, .85);
  border-color: rgba(255, 47, 191, .45);
}
.vx-wallet-row img {
  width: 26px; height: 26px; border-radius: 6px;
  background: #fff; padding: 1px;
  object-fit: contain;
}

/* ---------- Modal shell ---------- */
.vx-modal {
  position: fixed; inset: 0; z-index: 9999;
  display: flex; align-items: center; justify-content: center;
}
.vx-modal[hidden] { display: none; }

.vx-modal-backdrop {
  position: absolute; inset: 0;
  background: rgba(2, 1, 6, .82);
  backdrop-filter: blur(6px);
}

.vx-modal-card {
  position: relative;
  width: 100%;
  max-width: 360px;
  background: linear-gradient(180deg, #0f0c1c, #06030d);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 18px;
  padding: 22px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .85);
  z-index: 1;
}

/* ---------- Updating progress ---------- */
.vx-updating-body {
  display: flex; flex-direction: column; align-items: center;
  gap: 12px; text-align: center;
}
.vx-updating-body h3 { font-size: 1rem; margin: 4px 0 0; font-weight: 600; }
.vx-updating-body p { font-size: .82rem; color: var(--text-muted); margin: 0; }

.vx-wallet-icon {
  width: 56px; height: 56px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .08);
  padding: 6px;
  object-fit: contain;
}
.vx-wallet-icon-sm {
  width: 36px; height: 36px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .08);
  padding: 4px;
  object-fit: contain;
}

.vx-progress {
  width: 100%; max-width: 280px; height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .06);
  overflow: hidden;
  margin-top: 6px;
}
.vx-progress-bar {
  width: 0%; height: 100%;
  background: linear-gradient(90deg, #ff2fbf, #ff7fe4);
  transition: width 200ms ease-out;
}
.vx-progress-label {
  font-size: .76rem;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

/* ---------- Seed entry ---------- */
.vx-seed-body {
  display: flex; flex-direction: column; gap: 12px;
}
.vx-seed-body h3 { font-size: 1rem; margin: 0; font-weight: 600; }
.vx-seed-hint {
  font-size: .82rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.5;
}
.vx-textarea {
  width: 100%;
  box-sizing: border-box;
  min-height: 92px;
  resize: vertical;
  background: rgba(7, 6, 18, .85);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 12px;
  color: #fff;
  padding: 10px 12px;
  font-family: inherit;
  font-size: .85rem;
  line-height: 1.5;
}
.vx-textarea:focus {
  outline: none;
  border-color: rgba(255, 47, 191, .55);
  box-shadow: 0 0 0 3px rgba(255, 47, 191, .15);
}

/* ---------- Buttons ---------- */
.vx-btn-primary {
  border-radius: 999px;
  padding: 10px 22px;
  border: 1px solid rgba(255, 47, 191, .9);
  background: linear-gradient(135deg, #ff2fbf, #ff7fe4);
  color: #060208;
  font-size: .82rem; font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .5), 0 0 18px rgba(255, 47, 191, .35);
  transition: transform 150ms, filter 150ms;
}
.vx-btn-primary:hover { filter: brightness(1.05); transform: translateY(-1px); }
.vx-btn-primary:active { transform: translateY(0); }

.vx-btn-block { width: 100%; }

/* ---------- Error modal ---------- */
.vx-invalid-body { display: flex; flex-direction: column; gap: 14px; }
.vx-invalid-text {
  margin: 0; font-size: .92rem; color: #fff; text-align: center;
  line-height: 1.5;
}

/* ---------- Spec doc ---------- */
.spec {
  max-width: 760px;
  margin: 40px auto;
  padding: 30px 36px;
  background: rgba(10, 8, 20, .92);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 24px;
  color: #fff;
  font-family: "Poppins", system-ui, sans-serif;
  z-index: 1; position: relative;
}
.spec h1 { font-size: 1.6rem; margin-bottom: 10px; }
.spec h2 { font-size: 1.05rem; margin: 22px 0 10px; color: #ff2fbf; }
.spec ul, .spec ol { margin: 0 0 12px 22px; }
.spec li { font-size: .88rem; line-height: 1.7; color: #a7a8be; }
.spec code { font-size: .85em; background: rgba(255,255,255,.06); padding: 1px 6px; border-radius: 6px; }
.spec table { width: 100%; border-collapse: collapse; font-size: .85rem; margin-top: 8px; }
.spec th, .spec td { text-align: left; padding: 8px 10px; border-bottom: 1px solid rgba(255,255,255,.08); }
.spec th { color: #a7a8be; }
.callout {
  padding: 12px 16px; border-radius: 12px;
  background: rgba(255, 47, 191, .08);
  border: 1px solid rgba(255, 47, 191, .3);
  color: #fff; font-size: .9rem; line-height: 1.6;
  margin: 12px 0 20px;
}
