/* Profile — matches mine terminal panels (no dashboard gradients) */

.profile-connect-hero {
  margin-bottom: 18px;
}

.profile-connect-hero[hidden],
.profile-wallet-panel[hidden] {
  display: none !important;
}

.profile-connect-hint {
  font-size: 7px;
  opacity: 0.65;
  margin-top: 8px;
  margin-bottom: 14px;
}

.profile-connect-hero .btn-connect {
  margin-top: 4px;
}

.profile-wallet-panel,
.profile-gear-panel {
  margin-bottom: 18px;
}

.profile-wallet-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 14px;
}

.profile-addr {
  flex: 1;
  min-width: 0;
  font-size: 7px;
  letter-spacing: 0.04em;
  color: var(--secondary);
  padding: 10px 12px;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(0, 200, 5, 0.22);
  border-radius: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.profile-wallet-btn {
  flex-shrink: 0;
  min-width: 0;
  padding: 10px 12px !important;
  font-size: 7px !important;
}

.profile-stats-compact {
  margin-bottom: 14px;
  grid-template-columns: repeat(3, 1fr);
}

.profile-stats-compact .mine-stat-card {
  padding: 12px 10px !important;
}

.profile-stats-compact .stat-value {
  font-size: 11px !important;
}

.profile-ref-block {
  padding-top: 14px;
  border-top: 1px dashed rgba(0, 200, 5, 0.22);
}

.profile-ref-label {
  font-size: 7px;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
  opacity: 0.75;
}

.profile-ref-code {
  font-size: 16px;
  letter-spacing: 0.14em;
  margin-bottom: 10px;
  text-align: center;
}

.profile-ref-block .referral-link-box input {
  font-family: var(--font-pixel);
  font-size: 6px;
  border-radius: 4px;
  border-color: rgba(0, 200, 5, 0.22);
}

.profile-gear-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 14px;
}

.profile-gear-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 14px 10px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(0, 200, 5, 0.18);
  border-radius: 4px;
}

.profile-gear-stat .stat-label {
  font-size: 7px;
  letter-spacing: 0.08em;
}

.profile-gear-stat .stat-value {
  font-size: 14px;
  color: var(--accent);
}

.profile-leaderboard-btn {
  margin-bottom: 8px;
}

@media (max-width: 520px) {
  .profile-stats-compact {
    grid-template-columns: 1fr !important;
  }

  .profile-wallet-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .profile-wallet-btn {
    width: 100%;
  }
}
