/* wallet-connect.css — 지갑 연결 팝업 + 인라인 선택기 */

/* ============ 공통 지갑 버튼 ============ */
.wallet-btn{
  display: grid;
  grid-template-columns: 36px 1fr;
  column-gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid #262b35;
  border-radius: 10px;
  background: #0f1218;
  color: #e9ecf1;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  transition: border-color .18s, background .18s, transform .12s;
}
.wallet-btn:hover:not([disabled]){
  border-color: color-mix(in srgb, var(--wallet, #91f3c8), transparent 50%);
  background: #121520;
  transform: translateY(-1px);
}
.wallet-btn[disabled]{
  opacity: .35;
  cursor: not-allowed;
  filter: grayscale(.6);
}
.wallet-btn.selected{
  border-color: #91f3c8;
  background: #131d19;
  box-shadow: 0 0 0 1px #91f3c8 inset;
}
html[data-theme="light"] .wallet-btn.selected{
  border-color: #0b9e74;
  background: #eafaf3;
  box-shadow: 0 0 0 1px #0b9e74 inset;
}
.wallet-btn .mark{
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: color-mix(in srgb, var(--wallet, #91f3c8), transparent 82%);
  border: 1px solid color-mix(in srgb, var(--wallet, #91f3c8), transparent 55%);
  color: var(--wallet, #91f3c8);
  font-weight: 900;
  font-size: 16px;
  overflow: hidden;
}
/* 공식 로고 이미지가 있을 때: 흰 배경 위에 로고 */
.wallet-btn .mark.has-logo{
  background: #fff;
  border-color: rgba(0,0,0,.08);
}
.wallet-btn .mark img{
  width: 26px;
  height: 26px;
  object-fit: contain;
  display: block;
}
.wallet-btn .name{ color: inherit; font-size: 14px; font-weight: 700 }
.wallet-btn .meta{ color: #777e8b; font-size: 11px; margin-top: 2px }

/* ============ 모달 ============ */
.wallet-modal{
  position: fixed;
  inset: 0;
  z-index: 500;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0,0,0,.6);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}
.wallet-modal[open]{ display: flex; animation: wm-fade .18s ease both }
@keyframes wm-fade{ from{opacity:0} to{opacity:1} }

.wallet-modal-panel{
  width: min(480px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  padding: 24px;
  border: 1px solid #262b35;
  border-radius: 16px;
  background: #0a0d14;
  box-shadow: 0 24px 60px rgba(0,0,0,.5);
  animation: wm-pop .22s cubic-bezier(.2,.9,.3,1) both;
}
@keyframes wm-pop{
  from{ transform: translateY(10px) scale(.98); opacity: 0 }
  to  { transform: none; opacity: 1 }
}
.wallet-modal-head{
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}
.wallet-modal h2{
  margin: 0;
  font-size: 18px;
  color: #fff;
}
.wallet-modal-close{
  width: 32px; height: 32px;
  padding: 0; border: 0;
  background: rgba(255,255,255,.06);
  color: #e9ecf1;
  font-size: 18px;
  border-radius: 8px;
  cursor: pointer;
}
.wallet-modal-sub{
  margin: 0 0 18px;
  color: #9299a8;
  font-size: 12px;
  line-height: 1.6;
}
.wallet-modal-list{
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}
@media(min-width:480px){
  .wallet-modal-list{ grid-template-columns: 1fr 1fr }
}
.wallet-modal-note{
  margin-top: 14px;
  padding: 10px 12px;
  border: 1px dashed #343943;
  border-radius: 8px;
  color: #777e8b;
  font-size: 11px;
  line-height: 1.6;
}

/* ============ 인라인 선택기 (스테이킹 페이지) ============ */
.wallet-selector{
  margin-top: 18px;
}
.wallet-selector-head{
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 10px;
}
.wallet-selector-head h3{
  margin: 0;
  font-size: 13px;
  color: #b9bec8;
}
.wallet-selector-head .active-coin{
  font-size: 11px;
  color: #777e8b;
}
.wallet-selector-head .active-coin b{
  color: #91f3c8;
  font-weight: 800;
  margin-left: 4px;
}
.wallet-selector-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
@media(min-width:560px){
  .wallet-selector-grid{ grid-template-columns: 1fr 1fr 1fr }
}

/* ============ 어드민: 지원 매트릭스 ============ */
.wallet-matrix-wrap{
  margin-top: 28px;
  padding: 20px;
  border: 1px solid #222731;
  border-radius: 12px;
  background: #0f1218;
}
.wallet-matrix-wrap h2{
  margin: 0 0 6px;
  font-size: 16px;
  color: #fff;
}
.wallet-matrix-wrap .sub{
  margin: 0 0 18px;
  color: #9299a8;
  font-size: 12px;
}
.wallet-matrix-table{
  overflow-x: auto;
}
.wallet-matrix-table table{
  width: 100%;
  border-collapse: collapse;
  min-width: 520px;
}
.wallet-matrix-table th,
.wallet-matrix-table td{
  padding: 10px 12px;
  border-bottom: 1px solid #1b2028;
  text-align: center;
  font-size: 12px;
}
.wallet-matrix-table th{
  color: #777e8b;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  font-size: 10px;
}
.wallet-matrix-table td:first-child,
.wallet-matrix-table th:first-child{
  text-align: left;
  color: #e9ecf1;
  font-weight: 700;
}
.wallet-matrix-table input[type="checkbox"]{
  width: 18px; height: 18px;
  accent-color: #91f3c8;
  cursor: pointer;
}
