/* public/styles.css */
:root{
  --bg0:#061016;
  --bg1:#0b1a1f;
  --card: rgba(255,255,255,0.06);
  --border: rgba(255,255,255,0.12);
  --border2: rgba(255,255,255,0.18);
  --text: rgba(255,255,255,0.92);
  --muted: rgba(255,255,255,0.65);
  --muted2: rgba(255,255,255,0.48);
  --shadow: 0 20px 50px rgba(0,0,0,0.35);
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  color:var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  background:
    radial-gradient(1200px 600px at 20% 10%, rgba(70,120,255,0.18), transparent 60%),
    radial-gradient(900px 500px at 85% 20%, rgba(0,255,200,0.10), transparent 55%),
    radial-gradient(900px 500px at 70% 90%, rgba(255,70,120,0.10), transparent 55%),
    linear-gradient(160deg, var(--bg0), var(--bg1));
  overflow-x:hidden;
}

.container{
  width:min(1200px, 92vw);
  margin: 34px auto 60px;
}

.topbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  margin-bottom: 18px;
}

.title{
  font-size: 30px;
  font-weight: 800;
}

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

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 10px 14px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.07);
  color: var(--text);
  text-decoration:none;
  cursor:pointer;
  font-weight: 700;
  transition: transform .12s ease, background .12s ease, border-color .12s ease;
  backdrop-filter: blur(10px);
}
.btn:hover{
  transform: translateY(-1px);
  background: rgba(255,255,255,0.10);
  border-color: var(--border2);
}
.btn:active{ transform: translateY(0px); }

.btn-outline{
  background: rgba(255,255,255,0.03);
}

/* ✅ 解绑危险按钮 */
.btn-danger{
  border-color: rgba(255,92,122,0.45);
  background: rgba(255,92,122,0.10);
}
.btn-danger:hover{
  border-color: rgba(255,92,122,0.75);
  background: rgba(255,92,122,0.16);
}

.notice{
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.05);
  box-shadow: var(--shadow);
  margin-bottom: 16px;
}
.notice.error{
  border-color: rgba(255,92,122,0.45);
  background: rgba(255,92,122,0.08);
}

.account-card{
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.035));
  border-radius: 20px;
  padding: 18px;
  box-shadow: var(--shadow);
  margin-top: 16px;
}

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

.account-title{
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 2px;
}
.account-sub{
  color: var(--muted);
  font-size: 14px;
}

.range-grid{
  display:grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
@media (max-width: 1100px){
  .range-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px){
  .range-grid{ grid-template-columns: 1fr; }
}

.range-card{
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.05);
  border-radius: 18px;
  padding: 14px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.28);
  backdrop-filter: blur(10px);
  min-height: 240px;
}

.range-title{
  font-weight: 900;
  font-size: 16px;
  margin-bottom: 6px;
}

.range-updated{
  color: var(--muted2);
  font-size: 13px;
  margin-bottom: 10px;
}

.metrics{
  display:flex;
  flex-direction:column;
  gap: 10px;
  padding-top: 6px;
}

.metric-row{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap: 12px;
  padding: 10px 10px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(0,0,0,0.16);
}

.metric-name{
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.metric-value{
  font-size: 18px;
  font-weight: 900;
}

.error-text{
  margin-top: 8px;
  color: rgba(255,92,122,0.95);
  font-size: 13px;
  line-height: 1.4;
  white-space: pre-wrap;
}

.muted{
  color: var(--muted);
  font-size: 13px;
  margin-top: 8px;
}
