/* My page — light premium KR commerce */
.profile-hero {
  padding: 18px 16px;
  background: linear-gradient(145deg, #ffffff 0%, #f3f5ff 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  gap: 14px;
}
.avatar {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--grad-primary);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 20px;
  flex-shrink: 0;
  box-shadow: 0 6px 16px rgba(96,121,255,.3);
}
.profile-meta { flex: 1; min-width: 0; }
.profile-meta .name {
  margin: 0;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -.02em;
}
.profile-meta .uid {
  margin: 2px 0 0;
  font-size: 12px;
  color: var(--muted);
}
.profile-meta .credit {
  margin: 4px 0 0;
  font-size: 12px;
  color: var(--muted);
}
.profile-meta .credit em {
  font-style: normal;
  font-weight: 800;
  color: var(--primary-deep);
}
.profile-meta .vip {
  display: inline-block;
  margin-top: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  background: linear-gradient(135deg, #1b1f2a, #3d4660);
  color: #ffe082;
}
.profile-meta .vip[hidden] {
  display: none !important;
}

.wallet-card {
  margin-top: 12px;
  padding: 16px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #4a5fe0 0%, #6079ff 45%, #9aa8ff 100%);
  color: #fff;
  box-shadow: 0 14px 32px rgba(96,121,255,.28);
  position: relative;
  overflow: hidden;
}
.wallet-card::after {
  content: "";
  position: absolute;
  right: -20px;
  top: -30px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.22), transparent 70%);
}
.wallet-card .label {
  position: relative;
  font-size: 12px;
  opacity: .85;
  font-weight: 500;
}
.wallet-card .amount {
  position: relative;
  margin: 4px 0 14px;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -.03em;
}
.wallet-actions {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.wallet-actions .btn {
  background: #fff;
  color: var(--primary-deep);
  box-shadow: none;
}
.wallet-actions .btn.ghost-dark {
  background: transparent;
  border: 1px solid rgba(255,255,255,.45);
  color: #fff;
}

.menu-list {
  margin-top: 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}
.menu-item:last-child { border-bottom: none; }
.menu-item .arrow {
  margin-left: auto;
  color: var(--muted);
  font-size: 18px;
  font-weight: 400;
}
.menu-ico {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 16px;
  flex-shrink: 0;
}
.menu-ico.bet { background: rgba(96,121,255,.12); }
.menu-ico.order { background: rgba(124,108,240,.12); }
.menu-ico.out { background: rgba(251,59,59,.1); }
.menu-ico.in { background: rgba(28,193,0,.1); }

.logout-btn {
  display: block;
  width: 100%;
  margin-top: 14px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--sale);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
}
.logout-btn:active { background: #fff5f5; }

.sheet {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
}
.sheet.show { display: block; }
.sheet-mask {
  position: absolute;
  inset: 0;
  background: rgba(20, 24, 40, .4);
}
.sheet-panel {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  max-height: 72vh;
  overflow: auto;
  background: #fff;
  border-radius: 18px 18px 0 0;
  padding: 16px 16px calc(20px + env(safe-area-inset-bottom));
  box-shadow: 0 -12px 40px rgba(40,55,120,.15);
}
.sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.sheet-head h3 { margin: 0; font-size: 16px; font-weight: 800; }
.sheet-close {
  border: none;
  background: var(--bg2);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  color: var(--text2);
}
.record-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2px 10px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}
.record-row .t { font-weight: 700; color: var(--text); }
.record-row .m { font-weight: 800; }
.record-row .m.plus { color: var(--ok); }
.record-row .m.minus { color: var(--sale); }
.record-row .s { grid-column: 1; font-size: 11px; color: var(--muted); }
.record-row .st { grid-column: 2; font-size: 11px; color: var(--muted); text-align: right; font-weight: 700; }
.record-row .st.wait { color: #d97706; }
.record-row .st.ok { color: var(--ok, #16a34a); }
.record-row .st.bad { color: var(--sale, #e11d48); }
.record-row .remark {
  grid-column: 1 / -1;
  margin-top: 2px;
  padding: 8px 10px;
  border-radius: 8px;
  background: var(--bg2, #f3f4f6);
  font-size: 12px;
  line-height: 1.45;
  color: var(--text2, #4b5563);
  word-break: break-word;
}
.record-row .remark.bad {
  background: rgba(225, 29, 72, .08);
  color: #be123c;
}
.record-row.bet-row .bet-title {
  display: block;
}
.record-row .bet-chips {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
}
.record-row .bet-chip {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  background: #eef2ff;
  color: #3730a3;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.4;
}
.record-row .bet-count {
  font-size: 11px;
  color: var(--muted);
  font-weight: 600;
}
.record-row .bet-opt-list {
  display: grid;
  gap: 4px;
}
.record-row .bet-opt-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.record-row .bet-opt-amt {
  font-size: 12px;
  font-weight: 700;
  color: #be123c;
  white-space: nowrap;
}
.record-row .bet-opt-total {
  margin-top: 6px;
  font-size: 12px;
  color: var(--muted);
}
.record-row .bet-opt-total strong {
  color: var(--text);
  font-weight: 800;
}
.record-row .bet-opt-total.win {
  color: #047857;
}
.record-row .bet-opt-total.win strong {
  color: #047857;
}

@media (min-width: 768px) {
  .mine-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    align-items: start;
  }
}
