* {
  box-sizing: border-box;
}

:root {
  color-scheme: dark;
  --bg: #000000;
  --panel: #111111;
  --panel-soft: #1b1b1b;
  --panel-top: #2b2b2b;
  --line: #343434;
  --line-soft: #454545;
  --text: #cbd5e1;
  --text-strong: #ffffff;
  --muted: #94a3b8;
  --accent: #2563eb;
  --accent-strong: #60a5fa;
  --blue: #38bdf8;
  --danger: #f87171;
  --shadow: rgba(0, 0, 0, 0.42);
  --card-start: #151515;
  --card-end: #101010;
  --topbar-start: #363636;
  --topbar-end: #2a2a2a;
  --chip-border: #3e3e3e;
  --chip-bg: #222222;
  --picker-border: #1e3a5f;
  --picker-active: #2563eb;
  --picker-bg: rgba(37, 99, 235, 0.10);
  --picker-bg-active: rgba(37, 99, 235, 0.20);
  --panel-elevated-start: #161616;
  --panel-elevated-end: #0f0f0f;
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #eef3fb;
  --panel: #ffffff;
  --panel-soft: #edf4ff;
  --panel-top: #dbe7f8;
  --line: #c5d3e7;
  --line-soft: #d4def0;
  --text: #315c93;
  --text-strong: #14345b;
  --muted: #5678a3;
  --accent: #1f4f8f;
  --accent-strong: #4a89dc;
  --blue: #226dc1;
  --danger: #c76a5c;
  --shadow: rgba(24, 53, 91, 0.18);
  --card-start: #ffffff;
  --card-end: #f3f8ff;
  --topbar-start: #f5f9ff;
  --topbar-end: #dfeafb;
  --chip-border: #b8cae2;
  --chip-bg: #ffffff;
  --picker-border: #bdd0ea;
  --picker-active: #4a89dc;
  --picker-bg: rgba(31, 79, 143, 0.08);
  --picker-bg-active: rgba(74, 137, 220, 0.16);
  --panel-elevated-start: #ffffff;
  --panel-elevated-end: #eef4ff;
}

body {
  margin: 0;
  width: 100%;
  min-width: 0;
  max-width: none;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--text);
  font: 13px/1.5 "Segoe UI", sans-serif;
}

.wallet-shell {
  min-height: 100dvh;
  padding: 20px 0 16px;
}

.brand-shell {
  margin-bottom: 22px;
  text-align: center;
  padding: 0 18px;
}

.section-kicker,
.info-label,
.stack-item .label {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin: 0;
}

h1,
h2,
strong,
code {
  color: var(--text-strong);
}

h1 {
  font-size: 29px;
  letter-spacing: 0.03em;
}

.brand-logo {
  display: block;
  width: 134px;
  height: auto;
  margin: 0 auto;
  filter:
    brightness(1.18)
    contrast(1.12)
    saturate(1.35)
    hue-rotate(175deg)
    drop-shadow(0 0 18px rgba(96, 165, 250, 0.28));
  position: relative;
  z-index: 1;
}

.brand-logo-orbit {
  position: relative;
  width: 152px;
  margin: 14px auto 0;
  transform-origin: center;
  transform-style: preserve-3d;
  animation: brand-logo-vertical-spin-pause 14.2s linear infinite;
}

.brand-logo-orbit::before {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 999px;
  background:
    radial-gradient(circle at 25% 30%, rgba(96, 165, 250, 0.44), transparent 24%),
    radial-gradient(circle at 78% 72%, rgba(59, 130, 246, 0.32), transparent 20%);
  filter: blur(12px);
  opacity: 0.92;
}

.brand-welcome {
  margin-top: 10px;
  color: var(--text-strong);
  font-size: 18px;
  font-weight: 700;
  text-align: center;
}

@keyframes brand-logo-vertical-spin-pause {
  0% {
    transform: perspective(900px) rotateY(0deg);
  }

  7.394% {
    transform: perspective(900px) rotateY(-90deg);
  }

  14.789% {
    transform: perspective(900px) rotateY(-180deg);
  }

  22.183% {
    transform: perspective(900px) rotateY(-270deg);
  }

  29.577% {
    transform: perspective(900px) rotateY(-360deg);
  }

  100% {
    transform: perspective(900px) rotateY(-360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .brand-logo-orbit {
    animation: none;
  }
}

.hidden {
  display: none;
}

.card,
.wallet-card {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: linear-gradient(180deg, var(--card-start) 0%, var(--card-end) 100%);
  box-shadow: 0 20px 48px var(--shadow);
}

.card {
  margin: 0 18px;
  padding: 18px;
}

.welcome-card {
  display: grid;
  gap: 12px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  min-height: 340px;
  align-content: end;
}

#welcomeView {
  padding: 0 18px;
}

.welcome-copy {
  text-align: center;
  color: var(--text-strong);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.language-picker {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.flag-button {
  width: 52px;
  height: 52px;
  padding: 0;
  border-radius: 16px;
  border: 1px solid var(--picker-border);
  background: var(--picker-bg);
  color: var(--text-strong);
  font-size: 27px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
}

.flag-button.is-active {
  border-color: var(--picker-active);
  background: var(--picker-bg-active);
  box-shadow:
    0 0 0 1px rgba(96, 165, 250, 0.14),
    0 10px 24px rgba(37, 99, 235, 0.14);
}

.theme-button {
  font-size: 26px;
}


.wallet-theme-picker {
  display: flex;
  justify-content: center;
  gap: 12px;
  padding: 0 18px 2px;
}

.language-hint {
  text-align: center;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.welcome-spacer {
  min-height: 72px;
}

.wallet-app-shell {
  display: grid;
  gap: 6px;
}

.wallet-topbar {
  position: relative;
  display: grid;
  grid-template-columns: 38px 1fr 38px;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  background: linear-gradient(180deg, var(--topbar-start) 0%, var(--topbar-end) 100%);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line);
}

.topbar-logo {
  width: 30px;
  height: 30px;
  object-fit: contain;
  justify-self: start;
}

.wallet-address-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 36px;
  border-radius: 8px;
  border: 1px solid var(--chip-border);
  background: var(--chip-bg);
  color: var(--muted);
  padding: 7px 10px;
}

.wallet-switcher-panel {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  width: min(340px, calc(100% - 20px));
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(180deg, var(--panel-elevated-start) 0%, var(--panel-elevated-end) 100%);
  box-shadow: 0 12px 30px var(--shadow);
  display: grid;
  gap: 8px;
  z-index: 30;
}

.wallet-switcher-panel.hidden {
  display: none;
}

.wallet-switcher-list {
  display: grid;
  gap: 8px;
}

.wallet-switcher-item {
  width: 100%;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid var(--picker-border);
  background: var(--picker-bg);
  color: var(--text-strong);
  text-align: center;
  display: grid;
  gap: 4px;
  justify-items: center;
}

.wallet-switcher-item.active {
  background: var(--picker-bg-active);
  border-color: var(--picker-active);
}

.wallet-switcher-item__title {
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.wallet-switcher-item__address {
  display: block;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
  white-space: normal;
  font-size: 12px;
  line-height: 1.35;
  color: var(--text-strong);
  text-align: center;
}

.wallet-switcher-panel .menu-action-button {
  text-align: center;
}

.chip-copy-icon {
  color: var(--text-strong);
  font-size: 14px;
}

.chip-arrow {
  font-size: 12px;
  color: var(--muted);
}

.wallet-menu-button {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 1px solid transparent;
  background: transparent;
  color: #c8c8c8;
  font-size: 28px;
  line-height: 1;
  padding: 0;
}

.wallet-menu-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 186px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(180deg, #161616 0%, #0f0f0f 100%);
  box-shadow: 0 12px 30px var(--shadow);
  display: grid;
  gap: 8px;
  z-index: 30;
}

.wallet-menu-panel.hidden {
  display: none;
}

.menu-action-button {
  width: 100%;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid #1e3a5f;
  background: rgba(37, 99, 235, 0.10);
  color: var(--text-strong);
  text-align: left;
}

.danger-menu-button {
  color: #bfdbfe;
}

.wallet-card {
  margin: 0 18px;
  padding: 16px;
}

.wallet-brand-shell {
  text-align: center;
  padding: 2px 18px 6px;
  display: grid;
  justify-items: center;
  gap: 8px;
}

.wallet-hero-logo-orbit {
  position: relative;
  width: 118px;
  margin: 0 auto;
  transform-origin: center;
  transform-style: preserve-3d;
  animation: brand-logo-vertical-spin-pause 14.2s linear infinite;
}

.wallet-hero-logo-orbit::before {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 999px;
  background:
    radial-gradient(circle at 28% 30%, rgba(96, 165, 250, 0.38), transparent 24%),
    radial-gradient(circle at 78% 72%, rgba(37, 99, 235, 0.24), transparent 20%);
  filter: blur(12px);
  opacity: 0.9;
}

.wallet-hero-logo {
  display: block;
  width: 104px;
  height: auto;
  margin: 0 auto;
  filter:
    brightness(1.18)
    contrast(1.12)
    saturate(1.35)
    hue-rotate(175deg)
    drop-shadow(0 0 18px rgba(96, 165, 250, 0.28));
  position: relative;
  z-index: 1;
}

.wallet-summary-shell {
  margin: 0 18px;
  padding: 0;
}

.active-wallet-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

#walletAddress {
  display: block;
  max-width: 270px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  text-align: center;
  font-size: 14px;
  color: var(--muted);
  font-weight: 600;
}

.copy-badge,
.copy-button,
.text-button {
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid #1e3a5f;
  background: rgba(37, 99, 235, 0.14);
  color: var(--text-strong);
}

.copy-badge {
  min-width: 42px;
  font-size: 15px;
}

.wallet-balance-panel {
  margin-top: 10px;
  padding: 8px 0 4px;
}

.wallet-quick-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 16px 18px 14px;
}

.wallet-quick-actions > button {
  min-height: 52px;
  padding: 12px 14px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.01em;
  border-radius: 16px;
}

.wallet-action-button {
  position: relative;
}

.market-action-badge {
  position: absolute;
  top: -6px;
  right: -4px;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: #d93a2f;
  color: #fff8f2;
  font-size: 11px;
  font-weight: 800;
  line-height: 20px;
  text-align: center;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.22);
}

.wallet-section-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin: 0 18px 14px;
  align-items: end;
}

.wallet-section-tab {
  position: relative;
  width: 100%;
  min-height: 34px;
  padding: 4px 0 10px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-align: center;
}

.wallet-section-tab:hover {
  transform: none;
  color: var(--text-strong);
}

.wallet-section-tab::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-strong) 100%);
  transform: translateX(-50%);
  transition: width 0.18s ease;
}

.wallet-section-tab.is-active {
  color: var(--text-strong);
}

.wallet-section-tab.is-active::after {
  width: 100%;
}

.market-card {
  display: grid;
  gap: 16px;
  padding: 20px 18px 18px;
  background:
    radial-gradient(circle at top, rgba(59, 130, 246, 0.10), transparent 38%),
    linear-gradient(180deg, #151515 0%, #101010 100%);
}

.market-panel {
  display: grid;
  gap: 12px;
}

.market-panel.hidden,
.market-panel-section.hidden {
  display: none;
}

.market-mode-row {
  margin-top: 0;
  margin-bottom: 4px;
}

.market-mini-list {
  margin-top: 10px;
}

.market-card-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  align-items: start;
}

.market-preview-grid {
  margin-top: 10px;
}

.market-detail-grid {
  margin-top: 12px;
}

.market-owned-header {
  display: grid;
  gap: 4px;
  margin-top: 2px;
}

.market-owned-summary {
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 400;
}

.market-card-tile {
  position: relative;
  border: 1px solid rgba(59, 130, 246, 0.20);
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.90) 0%, rgba(3, 7, 18, 0.96) 100%);
  padding: 12px 10px 10px;
  display: grid;
  gap: 7px;
  align-content: start;
  min-height: 206px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.24);
}

.market-listing-tile {
  cursor: pointer;
}

.market-card-remove {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 24px;
  height: 24px;
  border: 1px solid rgba(59, 130, 246, 0.30);
  border-radius: 999px;
  background: rgba(3, 7, 18, 0.84);
  color: var(--accent-strong);
  font-size: 16px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.24);
}

.market-card-remove:hover {
  background: rgba(15, 23, 42, 0.96);
  border-color: rgba(59, 130, 246, 0.60);
}

.market-card-tile.is-selectable {
  cursor: pointer;
}

.market-card-tile.is-selected {
  border-color: rgba(96, 165, 250, 0.74);
  box-shadow:
    0 0 0 1px rgba(59, 130, 246, 0.34),
    0 12px 28px rgba(0, 0, 0, 0.24);
  background:
    linear-gradient(180deg, rgba(30, 58, 95, 0.92) 0%, rgba(3, 7, 18, 0.98) 100%);
}

.market-card-visual {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
  border: 1px solid rgba(59, 130, 246, 0.20);
  box-shadow:
    0 8px 20px rgba(0, 0, 0, 0.16);
  margin-bottom: 2px;
}

.market-card-visual svg {
  display: block;
  width: 100%;
  height: 100%;
}

.market-card-fallback {
  color: var(--accent-strong);
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.market-card-name,
.market-card-score,
.market-card-tier,
.market-card-price {
  text-align: center;
}

.market-card-name {
  color: var(--text-strong);
  font-size: 13px;
  font-weight: 500;
}

.market-card-score {
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 400;
}

.market-card-tier,
.market-card-price {
  color: var(--muted);
  font-size: 11px;
  font-weight: 300;
}

.market-card-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-top: auto;
  padding-top: 4px;
}

.market-card-actions .secondary-button,
.market-card-actions .primary-button {
  min-height: 32px;
  padding: 8px 8px;
  font-size: 11px;
  font-weight: 400;
}

.market-approval-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  min-width: 170px;
}

.market-approval-actions .secondary-button,
.market-approval-actions .primary-button {
  min-height: 32px;
  padding: 8px 8px;
  font-size: 11px;
  font-weight: 400;
}

.market-panel .info-block {
  margin-top: 0;
}

.market-panel .button-row {
  margin-top: 10px;
}

.market-panel .button-row .primary-button,
.market-panel .button-row .secondary-button {
  min-height: 38px;
  font-size: 12px;
}

.market-approval-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
}

.market-approval-meta {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.market-approval-title {
  color: var(--text-strong);
  font-size: 13px;
}

.market-approval-copy {
  color: var(--muted);
  font-size: 11px;
}

.market-warning {
  color: #bfdbfe;
  margin-top: 0;
}

.market-feedback {
  min-height: 18px;
  margin: -2px 0 0;
  text-align: center;
}

.balance-line {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.balance-label {
  color: var(--muted);
  font-size: 21px;
  font-weight: 800;
}

.balance-value {
  color: #eff6ff;
  font-size: 38px;
  line-height: 1.05;
  font-weight: 500;
}

.balance-value.is-long {
  font-size: 30px;
}

.balance-value.is-very-long {
  font-size: 24px;
}

.wallet-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 10px;
  color: var(--muted);
}

.wallet-meta-row strong {
  color: var(--text-strong);
}

.sub-card {
  margin-top: 0;
}

.section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

label {
  display: block;
  margin: 12px 0 6px;
  color: var(--text-strong);
}

input,
textarea {
  width: 100%;
  padding: 12px 13px;
  border: 1px solid #373737;
  border-radius: 16px;
  background: #090909;
  color: var(--text-strong);
  font: inherit;
}

input[type="password"] {
  font-size: 20px;
  letter-spacing: 0.18em;
}

input[type="password"]::placeholder {
  font-size: 13px;
  letter-spacing: normal;
}

textarea {
  resize: vertical;
}

button {
  border: 0;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  transition: transform 0.15s ease, opacity 0.15s ease, background 0.15s ease;
}

button:hover {
  transform: translateY(-1px);
}

button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.cta-button,
.primary-button,
.ghost-button,
.secondary-button {
  border-radius: 999px;
}

.cta-button,
.primary-button {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-strong) 100%);
  color: #07111f;
}

.ghost-button,
.secondary-button {
  border: 1px solid #1e3a5f;
  background: rgba(37, 99, 235, 0.10);
  color: var(--text-strong);
}

.cta-button,
.ghost-button,
.wide-button {
  width: 100%;
  padding: 13px 16px;
}

.button-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.button-row .primary-button,
.button-row .secondary-button {
  flex: 1 1 0;
  padding: 12px 14px;
}

.info-block,
.stack-item {
  border: 1px solid #2f2f2f;
  border-radius: 18px;
  background: #1a1a1a;
}

.info-block {
  margin-top: 12px;
  padding: 12px 14px;
}

.info-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.info-row.align-top {
  align-items: flex-start;
}

code {
  display: block;
  overflow-wrap: anywhere;
  font-size: 12px;
}

.stack-list {
  display: grid;
  gap: 10px;
}

.stack-item {
  padding: 11px 12px;
}

.activity-item {
  display: grid;
  gap: 6px;
  overflow: hidden;
}

.activity-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 10px;
}

.activity-amount,
.activity-route,
.activity-hash,
.activity-status {
  min-width: 0;
}

.activity-amount {
  color: var(--text-strong);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.activity-route,
.activity-hash {
  color: #dbeafe;
  font-size: 11px;
  font-weight: 400;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.activity-route {
  text-align: right;
}

.activity-hash-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #dbeafe;
  text-align: left;
}

.activity-hash-link:disabled {
  opacity: 0.5;
}

.activity-hash-arrow {
  color: var(--accent-strong);
  font-size: 15px;
  font-weight: 900;
  line-height: 1;
}

.activity-status {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  text-align: right;
  white-space: nowrap;
}

.activity-status-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  border-radius: 999px;
  font-size: 10px;
  line-height: 1;
  flex-shrink: 0;
}

.activity-status-dots {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
}

.activity-status-dots span {
  width: 3px;
  height: 3px;
  border-radius: 999px;
  background: currentColor;
  opacity: 0.35;
  animation: activityPendingPulse 1.1s ease-in-out infinite;
}

.activity-status-dots span:nth-child(2) {
  animation-delay: 0.16s;
}

.activity-status-dots span:nth-child(3) {
  animation-delay: 0.32s;
}

.activity-status-text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.activity-status-badge--complete {
  color: #7de2a4;
}

.activity-status-badge--complete .activity-status-icon {
  background: rgba(34, 197, 94, 0.16);
  color: #7de2a4;
}

.activity-status-badge--pending {
  color: #f87171;
}

.activity-status-badge--pending .activity-status-icon {
  background: rgba(240, 194, 90, 0.18);
  color: #f87171;
}

@keyframes activityPendingPulse {
  0%,
  100% {
    opacity: 0.25;
    transform: translateY(0);
  }
  50% {
    opacity: 1;
    transform: translateY(-1px);
  }
}

.collection-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 12px;
}

.collection-name-grid {
  display: grid;
  gap: 6px;
  margin-top: 4px;
}

.collection-name-line {
  display: block;
  max-width: 100%;
  overflow-wrap: anywhere;
  color: #dbeafe;
  font-size: 12px;
  line-height: 1.45;
  font-weight: 400;
}

.wallet-manage-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 10px;
}

.address-book-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.address-book-meta {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.address-book-name {
  font-size: 14px;
  color: var(--text-strong);
}

.address-book-address {
  max-width: 240px;
  overflow-wrap: anywhere;
  color: var(--muted);
  font-size: 12px;
}

.wallet-manage-meta {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.wallet-manage-address {
  display: block;
  font-size: 13px;
  color: var(--text-strong);
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
  white-space: normal;
}

.wallet-manage-badge {
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.wallet-delete-button {
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid #1e3a5f;
  background: rgba(37, 99, 235, 0.10);
  color: #bfdbfe;
  align-self: start;
  flex-shrink: 0;
}

.address-book-action-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.address-book-copy-button {
  min-width: 40px;
  padding: 9px 12px;
  border-radius: 999px;
  border: 1px solid #1e3a5f;
  background: rgba(37, 99, 235, 0.10);
  color: var(--text-strong);
}

.warning-copy {
  margin-top: 10px;
  color: var(--text-strong);
}

#createDetailsView .section-head,
#createDetailsView .section-head > div,
#createWarningView .section-head,
#createWarningView .section-head > div,
#createPinView .section-head,
#createPinView .section-head > div,
#importWalletView .section-head,
#importWalletView .section-head > div {
  width: 100%;
  justify-content: center;
  text-align: center;
}

#createDetailsView .section-kicker,
#createDetailsView h2,
#createWarningView .section-kicker,
#createWarningView h2,
#createWarningView .warning-copy,
#createPinView .section-kicker,
#createPinView h2,
#importWalletView .section-kicker,
#importWalletView h2 {
  text-align: center;
}

#importWalletView label,
#createPinView label {
  text-align: center;
}

.show-private-key-head,
.show-private-key-head > div {
  justify-content: center;
  text-align: center;
  width: 100%;
}

.show-private-key-wallet-line {
  display: grid;
  gap: 4px;
  margin-bottom: 12px;
  text-align: center;
}

.show-private-key-wallet-line code {
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}

#showPrivateKeyView label {
  text-align: center;
}

#showPrivateKeyView input {
  text-align: center;
}

#showPrivateKeyView input::placeholder {
  text-align: center;
}

label[for="createWalletPinInput"],
label[for="importPin"],
label[for="unlockPin"],
label[for="sendHacPin"],
label[for="sendHacdPin"],
label[for="showPrivateKeyPinInput"] {
  text-align: center;
}

#createWalletPinInput,
#importPin,
#unlockPin,
#sendHacPin,
#sendHacdPin,
#showPrivateKeyPinInput {
  text-align: center;
}

#createWalletPinInput::placeholder,
#importPin::placeholder,
#unlockPin::placeholder,
#sendHacPin::placeholder,
#sendHacdPin::placeholder,
#showPrivateKeyPinInput::placeholder {
  text-align: center;
}

#createPinView .section-head,
#createPinView label,
#createPinView h2,
#createPinView .section-kicker,
#unlockView h2 {
  text-align: center;
  justify-content: center;
}

#createPinView .section-head > div,
#unlockView .section-head > div {
  width: 100%;
}

.unlock-title {
  margin-bottom: 16px;
}

#unlockView input {
  text-align: center;
  margin-bottom: 14px;
}

#unlockView input::placeholder {
  text-align: center;
}

.feedback {
  min-height: 20px;
  margin: 14px 18px 0;
  color: var(--danger);
}
/* Active bidding remains readable while only the small status dot pulses. */
.mining-auto-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 9px 0;
  padding: 8px 12px;
  border: 1px solid rgba(52, 211, 153, .3);
  border-radius: 10px;
  background: rgba(16, 185, 129, .08);
  color: #34d399;
  font-size: 12px;
  font-weight: 600;
}
.mining-auto-indicator.hidden { display: none; }
.mining-auto-dot {
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  border-radius: 50%;
  background: currentColor;
  animation: mining-auto-pulse 1.6s ease-in-out infinite;
}
@keyframes mining-auto-pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(52, 211, 153, .25); }
  50% { opacity: .35; box-shadow: 0 0 0 5px rgba(52, 211, 153, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .mining-auto-dot { animation: none; }
}
.action-success-notice {
  position: fixed; top: 18px; left: 50%; transform: translateX(-50%);
  z-index: 9999; display: flex; align-items: center; gap: 10px;
  width: max-content; max-width: calc(100vw - 32px); padding: 13px 17px;
  border: 1px solid #34d399; border-radius: 14px; background: #102b26;
  color: #a7f3d0; box-shadow: 0 8px 28px #0008; font-size: 12px;
  font-weight: 600; pointer-events: none; animation: action-success-show 2.2s ease both;
}
.action-success-notice > span:first-child { font-size: 24px; color: #34d399; }
@keyframes action-success-show {
  0% { opacity: 0; transform: translate(-50%, -10px) scale(.95); }
  12%, 80% { opacity: 1; transform: translate(-50%, 0) scale(1); }
  100% { opacity: 0; transform: translate(-50%, -6px); }
}
@media (prefers-reduced-motion: reduce) { .action-success-notice { animation: none; } }
