/* platform/account.css — ポイント残高・ランキング・プロフィール・紹介・出金 (旧 core.css から分割・見た目の変更なし) */

/* ─── Wallet / Balance ─── */
.wallet-hero {
  background: linear-gradient(135deg, var(--hero-a) 0%, var(--hero-b) 100%);
  border: 1px solid var(--border2);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.wallet-hero::before {
  content: '';
  position: absolute;
  top: -40px; right: -40px;
  width: 120px; height: 120px;
  background: var(--accent);
  opacity: 0.06;
  border-radius: 50%;
}
.wallet-label { font-size: 0.78rem; color: var(--text-muted); margin-bottom: 4px; text-transform: uppercase; letter-spacing: 0.08em; }
.wallet-amount { font-size: 2.2rem; font-weight: 800; color: var(--accent); line-height: 1; }
.wallet-unit   { font-size: 0.9rem; color: var(--accent); opacity: 0.7; margin-left: 4px; }
.wallet-stats  { display: flex; justify-content: center; gap: 24px; margin-top: 14px; }
.wallet-stat-item { text-align: center; }
.wallet-stat-val  { font-size: 1rem; font-weight: 700; color: var(--text-primary); }
.wallet-stat-lbl  { font-size: 0.68rem; color: var(--text-muted); }

/* ─── Ranking ─── */
.rank-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 14px;
}
.rank-tab {
  flex: 1;
  padding: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  transition: all var(--transition);
  -webkit-tap-highlight-color: transparent;
}
.rank-tab.active {
  background: var(--accent);
  color: var(--on-accent);
  border-color: var(--accent);
}
.rank-list { display: flex; flex-direction: column; gap: 6px; }
.rank-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
}
.rank-item.me { border-color: var(--accent); background: var(--accent-soft); }
.rank-num  { width: 24px; text-align: center; font-weight: 700; font-size: 0.85rem; }
.rank-num.gold   { color: #ffd700; }
.rank-num.silver { color: #c0c0c0; }
.rank-num.bronze { color: #cd7f32; }
.rank-avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--bg-card2); display: flex; align-items: center; justify-content: center; font-size: 1.1rem; flex-shrink: 0; }
/* UZ Bonusから引き継いだ画像アイコン(丸い枠いっぱいに表示) */
.avatar-img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; }
.rank-name  { flex: 1; font-size: 0.85rem; font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank-score { font-size: 0.85rem; font-weight: 700; color: var(--accent2); }

/* ─── Profile ─── */
.profile-header {
  text-align: center;
  padding: 20px 0 16px;
}
.profile-avatar {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: var(--bg-card2);
  border: 3px solid var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem;
  margin: 0 auto 10px;
}
.profile-name { font-size: 1.1rem; font-weight: 700; }
.profile-level { font-size: 0.78rem; color: var(--accent); margin-top: 2px; }
.profile-stats {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  margin-top: 14px;
}
.profile-stat {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 8px;
  text-align: center;
}
.profile-stat-val { font-size: 1.1rem; font-weight: 700; color: var(--text-primary); }
.profile-stat-lbl { font-size: 0.65rem; color: var(--text-muted); margin-top: 2px; }

/* ─── Referral Box ─── */
.referral-box {
  background: linear-gradient(135deg, var(--ref-a), var(--ref-b));
  border: 1px solid var(--accent3);
  border-radius: var(--radius);
  padding: 16px;
  margin-top: 10px;
}
.referral-code-display {
  background: var(--bg-base);
  border: 1px dashed var(--border2);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 10px 0;
}
.referral-code-text { font-size: 1.2rem; font-weight: 800; letter-spacing: 0.1em; color: var(--accent); }

/* ─── Withdraw ─── */
.withdraw-option {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px;
  cursor: pointer;
  transition: border-color var(--transition);
  margin-bottom: 8px;
  -webkit-tap-highlight-color: transparent;
}
.withdraw-option:hover, .withdraw-option.selected { border-color: var(--accent); }
.withdraw-option-icon { font-size: 1.5rem; width: 36px; text-align: center; }
.withdraw-option-info { flex: 1; }
.withdraw-option-name { font-size: 0.9rem; font-weight: 600; }
.withdraw-option-detail { font-size: 0.72rem; color: var(--text-muted); margin-top: 1px; }
